agentleFS
yknnvyknnv/brownspec/skills/standards/SKILL.md

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

  • Other versions5 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 5

    1. BankrBot/skills★ 1.2ksame name
    2. denolfe/dotfiles★ 87same name
    3. byshahriar/skill-forge★ 0same name
    4. grezxune/ai-tools★ 0same name
    5. 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.

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
  1. Distinctive:

    Before writing anything, check whether it exists.

    line 27
  2. Very specific:

    Run level 1 from the repo-reading skill.

    line 31
  3. Very specific:

    Run level 2 from the repo-reading skill.

    line 35
  4. Distinctive:

    Every rule carries a short real excerpt and the path it came from.

    line 45
  5. Very specific:

    Create .brownspec/policies.md from the stub only if it does not already exist.

    line 62

“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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Bootstrap .brownspec/

First run in a repository. Produces three things:

FileWho writes itOn re-run
.brownspec/project-map.jsongeneratedoverwritten
.brownspec/conventions.mdgenerated, user correctsoverwritten
.brownspec/policies.mdpeople — security, architecturenever 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-pdn ships 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.json written, with the dependency manifest recorded for invalidation
  • conventions.md describes observed behavior, every rule with a real excerpt
  • Contradictions in the codebase are recorded as contradictions, not averaged away
  • policies.md exists — 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.