Audit Session Metrics
centminmod/my-claude-code-setup
Audit a session-metrics JSON export for token-usage waste and produce a plain-English findings report.
Prevent AI style drift on legacy projects by scanning the codebase for implicit conventions, resolving conflicts with the operator one at a time, and writing an enforceable .ai-style-rules.md…
$ npx skills add affaan-m/ECC --skill inherit-legacy-style -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install affaan-m/ECC inherit-legacy-style --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/affaan-m/ECC.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/inherit-legacy-style .claude/skills/inherit-legacy-style && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "inherit-legacy-style" agent skill from https://github.com/affaan-m/ECC/tree/main/skills/inherit-legacy-style into .claude/skills/inherit-legacy-style/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "inherit-legacy-style", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/affaan-m/ECC/tree/main/skills/inherit-legacy-styleType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add affaan-m/ECC --skill inherit-legacy-style -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install affaan-m/ECC inherit-legacy-style --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/affaan-m/ECC.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/inherit-legacy-style .agents/skills/inherit-legacy-style && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "inherit-legacy-style" agent skill from https://github.com/affaan-m/ECC/tree/main/skills/inherit-legacy-style into .agents/skills/inherit-legacy-style/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "inherit-legacy-style", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add affaan-m/ECC --skill inherit-legacy-style -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install affaan-m/ECC inherit-legacy-style --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/affaan-m/ECC.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/inherit-legacy-style .cursor/skills/inherit-legacy-style && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "inherit-legacy-style" agent skill from https://github.com/affaan-m/ECC/tree/main/skills/inherit-legacy-style into .cursor/skills/inherit-legacy-style/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "inherit-legacy-style", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/affaan-m/ECC.git --path skills/inherit-legacy-style--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add affaan-m/ECC --skill inherit-legacy-style -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install affaan-m/ECC inherit-legacy-style --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/affaan-m/ECC.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/inherit-legacy-style .gemini/skills/inherit-legacy-style && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "inherit-legacy-style" agent skill from https://github.com/affaan-m/ECC/tree/main/skills/inherit-legacy-style into .gemini/skills/inherit-legacy-style/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "inherit-legacy-style", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install affaan-m/ECC inherit-legacy-styleInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add affaan-m/ECC --skill inherit-legacy-style -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/affaan-m/ECC.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/inherit-legacy-style .github/skills/inherit-legacy-style && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "inherit-legacy-style" agent skill from https://github.com/affaan-m/ECC/tree/main/skills/inherit-legacy-style into .github/skills/inherit-legacy-style/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "inherit-legacy-style", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add affaan-m/ECC --skill inherit-legacy-style -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install affaan-m/ECC inherit-legacy-style --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/affaan-m/ECC.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/inherit-legacy-style .opencode/skills/inherit-legacy-style && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "inherit-legacy-style" agent skill from https://github.com/affaan-m/ECC/tree/main/skills/inherit-legacy-style into .opencode/skills/inherit-legacy-style/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "inherit-legacy-style", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
inherit-legacy-stylePrevent AI style drift on legacy projects by scanning the codebase for implicit conventions, resolving conflicts with the operator one at a time, and writing an enforceable .ai-style-rules.md…
Inherit Legacy Style is an agent skill from affaan-m/ECC. Prevent AI style drift on legacy projects by scanning the codebase for implicit conventions, resolving conflicts with the operator one at a time, and writing an enforceable .ai-style-rules.md (Golden Files, naming rules, DONTs) plus an optional CLAUDE.md hook. Use when onboarding an AI agent onto a hand-written legacy codebase or extracting a project's unwritten coding rules.
Its SKILL.md is about 2.1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Agent Workflows, covering Plain language and style rules and Agent instruction files. The repository describes itself as: The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond. The licence is MIT.
4 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 2d515e4. It shows what the files ask for, not the result of running them.
Pre-approves these tools, so the agent can use them without asking each time:
ReadGlobGrepBashEditWriteAskUserQuestionFrom allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
gittsxgojavaphpswiftFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Inherit Legacy Style loads about 2.1k tokens when it runs. Until then it costs about 100 tokens; SKILL.md has 1,008 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check noted patterns worth knowing about, such as sudo or a known installer.
allowed-tools: Read, Glob, Grep, Bash, Edit, Write, AskUserQuestionAutomated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from affaan-m/ECC at commit 2d515e4, republished under its MIT licence (© affaan-m). 1,008 words, ~2,079 tokens.
.claude/skills/inherit-legacy-style/SKILL.md (or your agent's skills folder).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.© affaan-m, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in skills/inherit-legacy-style of affaan-m/ECC.
Open the folder on GitHubat commit 2d515e4
We found 2 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in affaan-m/ECC, which our catalogue first saw on October 7, 2026.
Inherit Legacy Style next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Inherit Legacy Style this skillaffaan-m/ECC | 277k | 1 repos | ~2.1k | Automated safety check: Notes | MIT | |
| Audit Session Metricscentminmod/my-claude-code-setup | 2.7k | — | ~2.1k | Automated safety check: Pass | MIT | |
| Ponylang Prose Reviewponylang/ponylang-website | 160 | — | ~2.9k | Automated safety check: Pass | BSD-2-Clause | |
| Talk Normalhexiecs/talk-normal | 1.9k | — | ~784 | Automated safety check: Pass | MIT | |
| Asd Ste100danyuchn/asd-ste100-skill | 4.3k | — | ~4.1k | Automated safety check: Pass | MIT | |
| Firstmate Coding Guidelineskunchenguid/firstmate | 7.8k | — | ~3.1k | Automated safety check: Pass | MIT |
centminmod/my-claude-code-setup
Audit a session-metrics JSON export for token-usage waste and produce a plain-English findings report.
ponylang/ponylang-website
Ensemble review of ponylang blog and Last Week in Pony prose.
hexiecs/talk-normal
Installs an always-on set of rules into your agent's workspace config that cuts filler, hedging and padded closings from its replies.
danyuchn/asd-ste100-skill
A skill your agent uses when English text must be parsed without a human to resolve ambiguity — tool descriptions, error messages, inter-agent instructions, system prompts, status reports — and…
kunchenguid/firstmate
Agent-only reference for changing firstmate's shared, tracked material per AGENTS.md section 1.
RyanAlberts/best-of-Agent-Harnesses
Rule enforcer that finds which written rules in AGENTS.md, CLAUDE.md, and GEMINI.md a coding agent keeps breaking, counts every violation in recent Claude Code, Codex, Gemini CLI, and OpenCode…
affaan-m/ECC
Audits your installed Claude skills and commands for quality, with a quick mode for recently changed skills and a full mode that evaluates all of them through subagents.
affaan-m/ECC
Ingests, indexes, searches, edits and monitors video, audio and live streams through the VideoDB Python SDK, returning stream links, clips and timestamps.
affaan-m/ECC
Route broad documentation-governance requests to existing ECC skills and run an opt-in, read-only audit of mapped documentation roles, links, ADR indexes, and evidence references.
affaan-m/ECC
Scans installed skills for principles that recur across them and proposes rule-file changes: append, revise, add a section, create a file or leave as covered.
affaan-m/ECC
Builds DRAFT counterparty agreements from one markdown template and a small JSON spec per party, with clauses picked by the party's role.
affaan-m/ECC
Set an ECC-specific frontend design direction for production UI work.
Categories
Prevent AI style drift on legacy projects by scanning the codebase for implicit conventions, resolving conflicts with the operator one at a time, and writing an enforceable .ai-style-rules.md…. Inherit Legacy Style is an agent skill from affaan-m/ECC.md hook.
Inherit Legacy Style fits situations like: onboarding an AI agent onto a hand-written legacy codebase; extracting a projects unwritten coding rules.
Run `npx skills add affaan-m/ECC --skill inherit-legacy-style -a claude-code`. Or copy the skill folder (skills/inherit-legacy-style in affaan-m/ECC) into .claude/skills/inherit-legacy-style in your project. Claude Code loads it when a task matches its description.
Run `npx skills add affaan-m/ECC --skill inherit-legacy-style -a codex`. Or copy the skill folder (skills/inherit-legacy-style in affaan-m/ECC) into .agents/skills/inherit-legacy-style in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add affaan-m/ECC --skill inherit-legacy-style -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/inherit-legacy-style, .gemini/skills/inherit-legacy-style, .github/skills/inherit-legacy-style and .opencode/skills/inherit-legacy-style in your project.
Going by SKILL.md and its folder, Inherit Legacy Style needs the command-line tools its instructions call (git, tsx, go, java, php and swift). Its frontmatter pre-approves these tools: Read, Glob, Grep, Bash, Edit, Write, AskUserQuestion.
SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.
Inherit Legacy Style is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.1k tokens (SKILL.md is roughly 8.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Inherit Legacy Style: Audit Session Metrics (centminmod/my-claude-code-setup, 2.7k stars), Ponylang Prose Review (ponylang/ponylang-website, 160 stars), Talk Normal (hexiecs/talk-normal, 1.9k stars) and Asd Ste100 (danyuchn/asd-ste100-skill, 4.3k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
affaan-m (a GitHub user) maintains it in affaan-m/ECC, which has 276,673 GitHub stars. The repository holds 683 skills in this directory. The repository was last updated on October 11, 2026.
Source: affaan-m/ECC on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.