meta-conventions
Skill2 starsChanged 15 days agoMITView on GitHub
Write down the conventions a repo follows, as path-scoped rules with a citation for each
In this repository81 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- templates/CLAUDE.mdCLAUDE.md
- add-languageSkill
- audit-a11ySkill
- audit-archSkill
- audit-ciSkill
- audit-debtSkill
- audit-doc-driftSkill
- audit-flagsSkill
- audit-infraSkill
- audit-perfSkill
- audit-readinessSkill
- audit-securitySkill
- audit-slopSkill
- audit-testsSkill
- audit-tokensSkill
- audit-verifySkill
- backup-patternsSkill
- bash-patternsSkill
- claude-code-mods-patternsSkill
- code-challengeSkill
- code-contractSkill
- code-deep-reviewSkill
- code-evaluateSkill
- code-from-designSkill
- code-historySkill
- code-host-patternsSkill
- code-impactSkill
- code-migrateSkill
- code-tourSkill
- code-visualSkill
- depsSkill
- django-patternsSkill
- docker-patternsSkill
- drf-patternsSkill
- engineering-fundamentalsSkill
- fastapi-patternsSkill
- git-patternsSkill
- go-patternsSkill
- graphql-patternsSkill
- investigateSkill
- javascript-patternsSkill
- kit-rulesSkill
- logging-patternsSkill
- meta-promptSkill
- meta-refreshSkill
- meta-retroSkill
- meta-skillSkill
- monitoring-patternsSkill
- next-app-router-patternsSkill
- nuxt-patternsSkill
- opentofu-patternsSkill
- pr-descriptionSkill
- pr-publishSkill
- pr-queueSkill
- pr-replySkill
- pr-reviewSkill
- python-patternsSkill
- react-patternsSkill
- report-formatSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 21
Ask via AskUserQuestion, in one call:
- Very specific: line 27
Write one file per area with at least one convention: <root>/.claude/rules/conventions/<area>.md, per skills/kit-rules/reference/output.md …
- Distinctive: line 43
Every bullet ends with its citations.
- Very specific: line 51
Never overwrite an existing file under .claude/rules/conventions/ without showing the diff and asking.
- Distinctive: line 52
Commit nothing. The user reviews the rules first.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/meta-conventions
Find the conventions this repo actually follows and write them down once, as path-scoped rules with a citation behind every claim, so later sessions read them instead of rediscovering them.
Loading this skill isn't enough. Before the step a row names, read its file.
| Before | Read |
| Writing a rule file, step 6 | reference/rules-files.md |
Procedure
- Scope. The arguments are: $ARGUMENTS. Resolve the project root with
kit project-root. Use the<repo-context>block for the stack. - Ask via AskUserQuestion, in one call:
- Which areas to cover (multi-select): state, data fetching, styling, testing, errors, naming, file layout. Areas named in the arguments are pre-answered; skip this question when they cover everything.
- Whether to write the rules under
<root>/.claude/rules/conventions/(one file per area) or only report them. These files are meant to be committed, so writing needs a yes.
- Investigate each chosen area with the
investigateskill: "What convention does this repo follow for<area>? Cite every instance asfile:line." For independent areas, fan out as the skill allows. - Review comments, when the repo is on a code host (
skills/kit-rules/reference/tooling.mdsection 4): the review comments of the last 90 days, by the code-host-patterns skill's "Review comments across the repo" call. Group the ones that make the same point. A point made in at least two comments on at least two PRs, about a chosen area, is a candidate convention: confirm it in the code like any other, and cite the comments next to its code instances. For each, name the cheapest enforcement in the report (a lint rule, anast-greprule, or this rule file's line), perskills/kit-rules/reference/change.mdsection 7. - Keep a convention only when it has at least two cited
file:lineinstances that you've read yourself, and no cited counter-examples that outnumber them. A single instance is an example, not a convention. An area left with nothing is recorded asno convention foundin the report. It gets no rule file, since an empty rule costs context and says nothing. Write one file per area with at least one convention:
<root>/.claude/rules/conventions/<area>.md, perskills/kit-rules/reference/output.mdsection 3:--- paths: - "<glob covering where this convention applies>" --- # Conventions: <area> Written by /meta-conventions on <YYYY-MM-DD>. `/audit-doc-drift` re-checks the citations. - <Convention, stated as an instruction>. Seen at `<path>:<line>`, `<path>:<line>`[; asked for in review: <comment link>, <comment link>].pathsis the narrowest set of globs where the convention holds, such as"src/**/*.{ts,tsx}"for a component convention. Leavepathsout only for a convention that truly applies to every file (naming, sometimes). When each loads: reference/rules-files.md.- Every bullet ends with its citations. A bullet without one gets cut.
- Record what the code does, not what it should do. A convention you'd argue against still goes in as found; raise the disagreement in the report.
- Report: the files written, each with its convention count; the areas marked
no convention found; any conventions with notable counter-examples, which are the candidates for a cleanup; and each review-comment convention with its cheapest enforcement.
Rules
- A convention is only as good as its citations. Read each cited line before writing it down.
- Never overwrite an existing file under
.claude/rules/conventions/without showing the diff and asking. - Commit nothing. The user reviews the rules first.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

