agentleFS
vu1nvu1n/pillbox/.claude/skills/brief-author-decision/SKILL.md

brief-author-decision

Skill2 starsChanged 2 months agoApache-2.0View on GitHub

Write or scope a brief governance decision doc in .brief/docs/. Use when capturing an architectural decision or invariant as a governed constraint — defining its anchor, the code it governs, and the invariant code must conform to. Invoke for "add a decision", "write an ADR in brief", "govern this invariant".

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Is it a decision at all?: Only if a capable agent reading the code would plausibly do the wrong thing AND that mistake is costly or hard to …

    line 41
  2. Very specific:

    Firmness: start draft while forming (freely editable).

    line 59

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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.

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

Authoring a brief decision

A decision doc records why — a constraint code must conform to — not what the code does. One decision per file, one anchor per decision.

File: .brief/docs/<doc-id>.md

---
id: <doc-id>            # kebab, stable; e.g. adr-007-session-ownership
project: <project>
type: decision
status: active          # draft = freely editable while forming; active/ratified = LOCKED
signoff: required       # optional; omit unless silent drift is dangerous (see Rules)
title: <one line>
related_code:           # the governed surface — globs, not every file
  - "src/session/**"
  - "src/gateway.rs"
---

<!-- brief:anchor <anchor-id> -->
## <imperative statement of the decision>

<1–3 sentences: the decision / invariant.>

**Why.** <the reason — the durable value; code can't reconstruct intent cheaply.>

### Invariant
- <a checkable statement code must satisfy>
- <prefer invariants a test could later enforce (L2)>

Rules

  • Is it a decision at all? Only if a capable agent reading the code would plausibly do the wrong thing AND that mistake is costly or hard to undo. Otherwise write a one-line why-comment at the code (and a feature-map Gotcha) instead. Every extra decision dilutes the ones that matter.
  • signoff: required is for the dangerous few (security boundaries, data loss, money, irreversible formats). It makes brief check ask for a conforms line whenever a change touches the code under this decision's // Context: refs. Without it the decision is still read-only; its refs and one-line rules do the informing. Adding or removing it on an active decision is an edit, so it goes through brief ratify.
  • The anchor is a promise. kebab-case, stable, never renamed after code references it. It is the citable API — pick it deliberately.
  • Scope related_code to the governed surface, not the whole repo. Glob the files that actually embody the decision. The // Context: refs narrow it further: with signoff: required, only a change to the block under a ref (or to a governed file with no ref at all) asks for a sign-off, so wire refs at the specific functions.
  • Write the invariant to be conformance-checkable. "Every event carries an actor" beats "actors matter." A good invariant can later get a test:// link (L2 enforcement).
  • Firmness: start draft while forming (freely editable); promote to active once the team commits — then it is read-only to coding work and only an amendment can change it.
  • One decision per doc. Overlapping related_code across decisions is fine and expected.

After authoring

Reference it from each governing site with a one-line comment: // Context: doc://<project>/<doc-id>@latest#<anchor> — <the rule, in one line>. The ref is checked by the gate; the one-line rule is what the next agent actually reads at that spot, and it outweighs stale memory there. Keep the reasoning in the doc, not the comment.

Then run brief doctor and close what it reports for this decision — it is how you confirm you actually wired it, not just wrote it:

  • active-unwired → you set status: active but no governed file references it. Add the // Context: ref.
  • active-unpublished → an active decision with no frozen revision; @latest still points at a mutable doc. Run brief publish <doc-id>, then brief pin.
  • draft-governing-code → code already leans on this decision while it's still draft (informational). When it firms up, promote + publish + pin.

doctor is advisory (won't block), but leaving its findings for a human review to catch is the failure mode this closes.

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.