standards
Skill2 starsChanged 3 months agoMITView on GitHub
Bootstrap or refresh .brownspec/ for this repository — project-map.json and conventions.md derived from the code, plus a policies.md stub for humans to fill in. Use on first run in a new repo, when conventions have drifted, or when the user says /brownspec:init.
5 other projects use a version of this.
Adopted by
Most recently taken up by
- grezxune/ai-toolstheir own version, first seen Oct 5, 2026
- denolfe/dotfilestheir own version, first seen Sep 19, 2026
- byshahriar/skill-forgetheir own version, first seen Aug 29, 2026
- Prashantxo/CodeForgetheir own version, first seen Jun 23, 2026
- BankrBot/skillstheir own version, first seen Apr 28, 2026
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- BankrBot/skills★ 1.2ksame name
- denolfe/dotfiles★ 87same name
- byshahriar/skill-forge★ 0same name
- grezxune/ai-tools★ 0same name
- Prashantxo/CodeForge★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository4 other files it gives its agents.
- designSkill
- repo-readingSkill
- specSkill
- tasksSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 2 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 27
Before writing anything, check whether it exists.
- Very specific: line 31
Run level 1 from the repo-reading skill.
- Very specific: line 35
Run level 2 from the repo-reading skill.
- Distinctive: line 45
Every rule carries a short real excerpt and the path it came from.
- Very specific: line 62
Create .brownspec/policies.md from the stub only if it does not already exist.
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Bootstrap .brownspec/
First run in a repository. Produces three things:
| File | Who writes it | On re-run |
.brownspec/project-map.json | generated | overwritten |
.brownspec/conventions.md | generated, user corrects | overwritten |
.brownspec/policies.md | people — security, architecture | never touched |
The one rule that cannot be broken
If .brownspec/policies.md exists, do not write to it. Do not reformat it, do not
merge into it, do not append a section, do not "helpfully" fill in a blank. Create it
only when it is absent, and only from
${CLAUDE_PLUGIN_ROOT}/templates/policies.md.tmpl — an unmodified stub.
That file holds requirements a security team signed off on. Overwriting it with inferred content would delete a control and leave a plausible-looking document in its place, and nobody would notice until an audit. Conventions are cheap to regenerate; policies are not.
Before writing anything, check whether it exists. If it does, say so and leave it alone.
Phase 1 — Map
Run level 1 from the repo-reading skill. Write .brownspec/project-map.json.
Phase 2 — Conventions
Run level 2 from the repo-reading skill. Sample two or three modules — prefer the
ones with the most recent activity in git log, since stale modules teach stale
conventions. Fill in ${CLAUDE_PLUGIN_ROOT}/templates/conventions.md.tmpl and write
.brownspec/conventions.md.
Sources, in order of trust: the code itself where it is consistent, then linter and
formatter configuration, CI pipeline definitions, CONTRIBUTING.md, ADRs, PR templates,
and any existing CLAUDE.md. Prefer what the code does over what a document claims.
Where a document and the code disagree, that disagreement is itself worth recording.
Every rule carries a short real excerpt and the path it came from. A rule with no example is an opinion, and the next agent to read this file will not be able to apply it.
Where the codebase contradicts itself, record both variants in the Inconsistencies table rather than picking one. Do not resolve it silently — that is the user's call, and it is usually the most interesting thing you found.
Phase 3 — Confirm
Present the conventions draft and ask the user to correct it. One question per message, and only about entries you were genuinely unsure of. Do not walk the document section by section; the user is correcting a draft, not filling in a form.
Rewrite conventions.md after each answer.
Phase 4 — Hand off the part you cannot do
Create .brownspec/policies.md from the stub only if it does not already exist.
Then tell the user plainly:
- Policies are not inferred from code, because the code may be what violates them
- Regulatory profiles are opt-in — nothing is enabled until they list one under
profiles:in that file ru/152-fz-pdnships with the plugin and applies to any repository touching personal data of people in Russia- The file should be reviewed by whoever owns security or architecture, and committed
Exit check
project-map.jsonwritten, with the dependency manifest recorded for invalidationconventions.mddescribes observed behavior, every rule with a real excerpt- Contradictions in the codebase are recorded as contradictions, not averaged away
policies.mdexists — either created from the untouched stub, or left exactly as it was found- The user has been told which of the two files is theirs to maintain
Everything here is checked into the repository and shared by everyone working in it. Say so before writing — the user is setting team-wide state, not a personal preference.
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.

