Skip to content
Back to skills

Standards

ASecurity

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.

  • 2 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added September 5, 2026
developmentrustgitsecurity

Security analysis

A100/100

Scanned September 5, 2026

npx -y skills add yknnv/brownspec --skill standards --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Standards?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Standards
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/yknnv-standards/badge)](https://www.skillsdirectory.com/skills/yknnv-standards)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: standards
description: 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.
---

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

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.