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

spec

Skill2 starsChanged 3 months agoMITView on GitHub

Start or resume a specification for a change to this codebase. Interviews the user one question at a time, writes spec.md to disk, then separately lists the organizational policies the change touches. Use when the user asks to spec out a change, write requirements, plan a feature before coding, or says /brownspec:spec.

96 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use tickets, make-pdf and 9 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • toveruxSkill

    tickets

    Break a spec, plan, or the current conversation into tracer-bullet tickets, each declaring its blocking edges.

    Also in 3 projects that use this

  • chloropineSkill

    make-pdf

    Turn any markdown file into a publication-quality PDF. Proper 1in margins, intelligent page breaks, page numbers, cover pages, running headers, curly quotes and em dashes, clickable TOC, diagonal DRAFT watermark. Not a draft artifact — a finished artifact. Use when asked to "make a PDF", "export to PDF", "turn this markdown into a PDF", or "generate a document". (cgstack) Voice triggers (speech-to-text aliases): "make this a pdf", "make it a pdf", "export to pdf", "turn this into a pdf", "turn this markdown into a pdf", "generate a pdf", "make a pdf from", "pdf this markdown".

    Also in 3 projects that use this

  • anombyte93Skill

    discover

    Phase 1 of the prd-taskmaster pipeline: brainstorm-driven discovery. Delegates to superpowers:brainstorming in Interactive Mode (one adaptive question at a time), or self-brainstorms in Autonomous Mode when no user is present. Intercepts before the brainstorming chain hands off to writing-plans — this skill owns the exit. Extracts constraints, calibrates scale (Solo / Team / Enterprise), and advances the pipeline to GENERATE.

    Also in 5 projects that use this

  • diego-tobalinaSkill

    build-fix

    Fix build and compilation errors systematically. Run when build fails.

    Also in 3 projects that use this

  • chloropineSkill

    context-restore

    Restore working context saved earlier by $context-save. Loads the most recent saved state (across all branches by default) so you can pick up where you left off — even across Conductor workspace handoffs. Use when asked to "resume", "restore context", "where was I", or "pick up where I left off". Pair with $context-save. Formerly /checkpoint resume — renamed because Codex treats /checkpoint as a native rewind alias in current environments. (cgstack)

    Also in 3 projects that use this

  • GoogleSkill

    metrics

    Expertise in analyzing time-series repository health metrics, investigating root causes, and proposing proactive workflow improvements.

    Also in 3 projects that use this

  • +1 more from chloropine

The file

We split this skill into the rules it gives an agent

11 rules. 0 are common, 7 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 79 edited versions we read keep these.

  • 7

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read .brownspec/conventions.md and .brownspec/project-map.json.

    line 14
  2. Very specific:

    Read .brownspec/policies.md if present.

    line 17
  3. Very specific:

    If spec.md already exists there, you are resuming.

    line 20
  4. Very specific:

    Run levels 1 and 2 of the repo-reading skill.

    line 26
  5. Distinctive:

    The file on disk is the state of the interview: Do not hold answers in your head.

    line 43
  6. Distinctive:

    One question per message: Never batch. Never number a list of questions.

    line 52
  7. Distinctive:

    Only ask what changes the outcome: If the answer would not change what gets built or how it is verified, record an assumption and move on.

    line 53
  8. Distinctive:

    Never ask what the repo can answer: If you have not looked, look.

    line 55
  9. Distinctive:

    A separate pass, after the spec is otherwise finished: Not woven into drafting — if you apply policies while writing, you will shape the …

    line 71
  10. Distinctive:

    Do not edit the body of the spec to make a rule stop firing.

    line 100
  11. Distinctive:

    If a rule's trigger is ambiguous against this spec, list it as touched.

    line 102

“Common” is measured: kept by at least 6 in 10 of the 79 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

Write a specification for a change

You are specifying a change to an existing system, not a greenfield project. The system already has behavior, contracts, and consumers. Most of what you need is in the repository — go read it before you ask the user anything.

Phase 0 — Locate state

  1. Read .brownspec/conventions.md and .brownspec/project-map.json. If either is missing, say once that /brownspec:init will produce them, then continue without. Rebuild the project map if the dependency manifest has changed since it was cached.
  2. Read .brownspec/policies.md if present. Do not apply it yet — phase 3.
  3. Derive the slug (kebab-case, from the user's description). Working directory is .brownspec/features/<slug>/.
  4. If spec.md already exists there, you are resuming. Read it, find every <!-- OPEN: ... --> marker, and continue from the first one. Do not re-ask anything the file already answers.

Phase 1 — Recon, then a draft

Run levels 1 and 2 of the repo-reading skill. Establish:

  • Which modules the change plausibly touches, and what they currently do
  • The public contracts of those modules — HTTP/RPC, events, tables, config, CLI
  • How similar changes were done before: git log on the touched paths, and any adjacent specs under .brownspec/features/
  • Existing tests covering the affected behavior

Do not run level 3 here. Full blast radius is expensive and belongs in /brownspec:design, once the change actually has a shape. What you need now is a hypothesis about where it lands, not a complete dependency graph.

Then fill ${CLAUDE_PLUGIN_ROOT}/templates/spec.md.tmpl with what you found and what you can reasonably infer, and write it to disk. Inferences go in Assumptions marked (assumed). Anything you genuinely cannot infer gets an <!-- OPEN: ... --> marker in place.

The file on disk is the state of the interview. Do not hold answers in your head.

Phase 2 — Interview

Present the recon summary and your assumptions first. A wrong assumption is cheaper for the user to correct than a question is to answer.

Then work through the OPEN markers.

  • One question per message. Never batch. Never number a list of questions.
  • Only ask what changes the outcome. If the answer would not change what gets built or how it is verified, record an assumption and move on.
  • Never ask what the repo can answer. If you have not looked, look.
  • After every answer, rewrite spec.md — replace the marker with resolved content, then ask the next question.
  • Six questions or fewer. Past ten you are interrogating rather than specifying: write down what you have, move the rest to open risks, and stop.

Priority, highest first:

  1. Boundaries — what is explicitly out of scope
  2. Behavior at the edges — empty, duplicate, concurrent, oversized, unauthorized
  3. Failure — what happens when each dependency is slow, down, or wrong
  4. Contract impact — what breaks for existing consumers, and how they migrate
  5. Acceptance — what observable fact proves this is done

Phase 3 — Policy routing

A separate pass, after the spec is otherwise finished. Not woven into drafting — if you apply policies while writing, you will shape the spec to satisfy them instead of revealing where they bite.

Load the rules: every profile listed under profiles: in .brownspec/policies.md, read from ${CLAUDE_PLUGIN_ROOT}/policies/<profile>.md, plus the local rules in that file. If nothing is enabled, write "No policies enabled" in the section and move on.

For each rule, match its Trigger against the finished spec. When it fires, add a line naming the rule and the specific decision or confirmation this spec still owes — not a restatement of the rule.

## Policies touched

- **PDN-03** (logging of personal data) — needs a decision: where phone numbers are
  masked before they reach logs and traces
- **PDN-05** (retention) — needs confirmation: how long export files persist and what
  deletes them

Generated by matching policy triggers against this spec. **Not a compliance assessment.**
Requires review by whoever owns security.

Rules:

  • Route, never certify. "Touches PDN-03, show security" — never "complies with 152-ФЗ", "meets the requirement", or "no issues found". A false sense of coverage is worse than no check at all, because it stops someone from looking.
  • Do not edit the body of the spec to make a rule stop firing. If the spec is genuinely wrong, say so and go back to phase 2.
  • If a rule's trigger is ambiguous against this spec, list it as touched. Over-listing costs a reviewer a minute; under-listing costs an audit finding.

Phase 4 — Exit check

Finished only when every item holds. State the result plainly; do not claim completion while any fails.

  • Non-goals are written and non-empty
  • Every affected contract is named, with breaking changes flagged
  • Behavior under dependency failure is specified
  • Acceptance criteria are observable, and each maps to a stated requirement
  • Every assumption is either confirmed by the user or listed as an open risk
  • Nothing in the file merely restates what the code already shows
  • Policy routing has run, and its output is a routing list — not a verdict
  • Conflicts with conventions.md are written down with the reason for departing

Then say the spec is ready and that /brownspec:design is next. Do not design or write code in this skill.

What does not belong in a spec

Implementation detail the code will express better than prose — class names, function signatures, chosen libraries, SQL. If a reader could learn it by opening the file, leave it out. It will rot within a sprint and take the spec's credibility with it.

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.