What is inherit-legacy-style?
Legacy-project style inheritance skill. Language- and framework-agnostic — it aligns meta-architecture only, not syntax.
affaan-m/ECC
Legacy-project style inheritance skill. Use when the user types /inherit-legacy-style, or when onboarding an AI coding agent onto a hand-written legacy project and you need to prevent "style drift" (the model imposing its pretrained mainstream idioms onto the project). Language- and framework-agnostic — it aligns meta-architecture only, not syntax. Once run, it becomes a behavioral constraint on all subsequent coding tasks. Do NOT use for pure research or one-off questions unrelated to code-styl
npx skills add https://github.com/affaan-m/ECC --skill "skills/inherit-legacy-style"Quick start
Install it or open the source, trigger it with a clear task, then follow the source workflow.
npx skills add https://github.com/affaan-m/ECC --skill "skills/inherit-legacy-style"Use inherit-legacy-style to help me with: [describe your task]. Before you begin, tell me what input you need, the steps you will follow, and the expected output.
5 key workflow steps, examples, and cautions are distilled below.
Continue to the workflowDirect answers
Legacy-project style inheritance skill. Language- and framework-agnostic — it aligns meta-architecture only, not syntax.
It is relevant to workflows involving Engineering, Operations, Research.
SkillSignal detected this source-specific command: npx skills add https://github.com/affaan-m/ECC --skill "skills/inherit-legacy-style". Inspect the repository and command before running it.
The upstream source does not declare a dedicated Agent platform.
Static analysis detected exec-script signals. Review the cited source lines before installing; these signals are not a security audit.
This page combines upstream documentation with deterministic repository, quality, and static-risk signals. It is not described as a manual test or security review.
SkillSignal brief
Legacy-project style inheritance skill. Language- and framework-agnostic — it aligns meta-architecture only, not syntax.
Useful in these contexts
Core capabilities
Distilled from the source
About 6 min · 11 sections
Use this skill when you need to preserve legacy project style and prevent AI-generated style drift. See When to Activate above for trigger conditions.
Step 0 — Auto-Detect Mode
Branch A — First-time Full-Scan
Branch B — Incremental Sniff
Per-Turn Enforcement
File Anatomy — in-file declaration order (imports → types → main logic → helpers → export)
First-time onboarding
User: "Help me onboard AI to this older codebase without changing its style."
Action: Run Branch A full-scan → measure scale → scan 4 dimensions → grill conflicts → generate .ai-style-rules.md → offer hook strength (soft/hard/none).
FAIL: Do NOT skip the scale measurement step — sampling a 30-file project "starves" it; full-scanning a 5,000-file repo blows up
FAIL: Do NOT stack multiple conflict questions at once — grilling is strictly one-at-a-time
FAIL: Do NOT overwrite old rules in incremental mode — always append evolution logs
FAIL: Do NOT default to "hard hook" without asking — enforcement strength is the user's call
Quality breakdown
Based on traceable docs and repository signals; stars are not treated as quality.
Compare before choosing
These links are selected from shared tasks, functions, stacks, platforms, and same-name variants. Compare the source owner, documentation, permissions, and maintenance signals.
Use when the user says "review the design", "check the UI", or wants a comprehensive UI/UX review. Uses a 7-phase methodology covering interaction, responsiveness, accessibility, and more.
Distributed computing for larger-than-RAM pandas/NumPy workflows. Use when you need to scale existing pandas/NumPy code beyond memory or across clusters. Best for parallel file processing, distributed ML, integration with existing pandas code. For out-of-core analytics on single machine use vaex; for in-memory speed use polars.
Use NeuroKit2 to build or audit reproducible research workflows for physiological time-series preprocessing, event/interval analysis, multimodal alignment, variability, and complexity. Trigger when code imports neurokit2 or needs its current APIs, schemas, and method-aware validation—not for diagnosis or device validation.
Analyze raw prompts, identify intent and gaps, match ECC components (skills/commands/agents/hooks), and output a ready-to-paste optimized prompt. Advisory role only — never executes the task itself. TRIGGER when: user says "optimize prompt", "improve my prompt", "how to write a prompt for", "help me prompt", "rewrite this prompt", or explicitly asks to enhance prompt quality. Also triggers on Chinese equivalents: "优化prompt", "改进prompt", "怎么写prompt", "帮我优化这个指令". DO NOT TRIGGER when: user wants th
Standard single-cell RNA-seq analysis pipeline. Use for QC, normalization, dimensionality reduction (PCA/UMAP/t-SNE), clustering, differential expression, visualization, and converting R-friendly single-cell formats such as Seurat or SingleCellExperiment RDS files into h5ad for Scanpy. Best for exploratory scRNA-seq analysis with established workflows. For deep learning models use scvi-tools; for data format questions use anndata.
Prevents AI code style drift in legacy projects by scanning the codebase for implicit conventions across 4 meta-architecture dimensions, resolving conflicts with the user one at a time, and crystallizing the consensus into an enforceable .ai-style-rules.md. Fully language- and framework-agnostic.
/inherit-legacy-styleUse this skill when you need to preserve legacy project style and prevent AI-generated style drift. See When to Activate above for trigger conditions.
.ai-style-rules.md and optionally CLAUDE.md)Silently check for .ai-style-rules.md at the project root:
| File exists? | Mode |
|---|---|
| No | Branch A — First-time Full-Scan |
| Yes | Branch B — Incremental Sniff |
Announce the mode in one line and proceed — never ask the user to pick.
1. Measure scale, pick a scanning tier
git ls-files | grep -cE '\.(js|ts|jsx|tsx|vue|py|go|rs|java|kt|rb|php|cs|swift|c|cpp|h)$'
| Tier | Source files | Strategy |
|---|---|---|
| Small | ≲ 50 | Full close-read every source |
| Medium | 50–500 | Infra layer = full read; business layer = sample 2–3 per dimension |
| Large | ≳ 500 | Strict sampling + budget cap; --stat summary first, then targeted reads |
2. Scan along 4 dimensions
3. Apply signal-threshold noise reduction
Before interrupting the user, evaluate signal strength:
4. Resolve conflicts one at a time (Grilling Protocol)
For each strong-signal conflict, present exactly ONE question with 4 options:
Evidence:
pathAuses style X,pathBuses style Y WARNING: Risk: mixing both fractures the project style Choose:1follow X2follow Y3this is evolution, update rules4I have a new rule
Suspend until the user answers, then proceed to the next conflict. Never stack questions.
5. Generate .ai-style-rules.md with three mandatory sections:
6. Install the persistent hook
Ask the user for enforcement strength (use AskUserQuestion):
| Option | Mechanism |
|---|---|
| 1 Soft hook (recommended) | Write @.ai-style-rules.md reference into project CLAUDE.md |
| 2 Hard hook | Soft hook + PreToolUse[Write|Edit|MultiEdit] Hook in settings.json |
| 3 No hook | Keep the rules file; user references manually |
.ai-style-rules.md; if it has a commit fingerprint, git diff <last_hash> HEAD --stat to pinpoint deltagit log -3 --stat → inspect suspect files on demand)--stat summary only + sample the largest changes.ai-style-rules.md (never overwrite old rules)When .ai-style-rules.md is in context (loaded via CLAUDE.md), every code-writing task must open with a compliance declaration in the reasoning chain, naming the exemplar being followed and the DONTs being avoided.
This skill auto-detects whether it's a first-time or incremental run via .ai-style-rules.md presence:
.ai-style-rules.md with Golden Files / Naming Rules / DONTs, and offers optional enforcement hooks.CLAUDE.md, every code-writing task opens with a compliance declaration naming the exemplar followed and the DONTs avoided..ai-style-rules.md at project root (with commit fingerprint + scale tier in header)CLAUDE.md with @.ai-style-rules.md reference### [YYYY-MM-DD] Style Evolution Log entries--stat summaries first, then targeted Read on suspect files@.ai-style-rules.md) is usually sufficient; hard hook only if the user wants mechanical enforcementinit — initialize a new CLAUDE.md with codebase documentationcode-review — review diffs for correctness and style issuessimplify — review code for reuse and simplification opportunitiesFirst-time onboarding
.ai-style-rules.md → offer hook strength (soft/hard/none).Incremental update after team changes
Enforcing DONTs via CLAUDE.md
.ai-style-rules.md auto-loaded every session → every code-writing task opens with compliance declaration, reusing exemplar patterns and avoiding DONTs.