agentleFS
ardihikaruardihikaru/gaos/.claude/skills/gaos-design-review/SKILL.md

gaos-design-review

Skill0 starsChanged 22 days agoApache-2.0View on GitHub

Use when a GAOS change is big enough to need a design document — it walks the trigger list, drafts docs/designs/<feature>.md, runs the zero-context goldfish reviewers with a canary probe and a positive control, triages the findings, and asks for approval before anything is implemented.

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 4 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run it when the request adds or changes: a Go handler, a store method, or a schema statement.

    line 14
  2. Very specific:

    Write docs/designs/<feature>.md.

    line 27
  3. Distinctive:

    Run them in parallel; they share nothing but the target file and the rubric.

    line 62
  4. Distinctive:

    Remove every planted line, whether the run succeeded, failed or was interrupted, and confirm the tree is clean:

    line 105
  5. Very specific:

    Write each report to docs/designs/reviews/<feature>-review-<n>.md (and <feature>-security-review-<n>.md).

    line 117
  6. Distinctive:

    Run the arithmetic twice — once by the author, once by a reviewer that cannot see the conversation.

    line 144

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

GAOS Design Review

The end-to-end runbook for the Elephant-Goldfish Model in GAOS. The policy is docs/rules/gaos-design-review.md; the directory contract is docs/designs/README.md; the reviewer lenses are .claude/agents/gaos-goldfish-*.md.

When this applies

Run it when the request adds or changes: a Go handler, a store method, or a schema statement; an event type, a task status, or a packet kind; a Blueprint policy kind or a rendered Blueprint file; a validation script, a test, or a CI workflow; an agent, a skill, a rule, CLAUDE.md, AGENTS.md or GEMINI.md; a deployment, a stack file, or an edge config; or a published docs page.

A fix does not need a design — bug fixes, typos, comments, one-line config changes and routine maintenance go straight to implementation.

Steps

1. Draft the design

Write docs/designs/<feature>.md. It must stand alone: every claim anchored to file:line, the change list complete, the arithmetic written down, the alternatives real, nothing left undecided, the non-goals listed.

2. Plant the canaries

One unique string per standing file, so a leak in any of them is visible:

for f in .claude/CLAUDE.md AGENTS.md GEMINI.md .claude/rules/rule-index.md \
         .claude/rules/qa-test-plan.md .claude/rules/agent-workspace.md \
         .claude/rules/frontend.md; do
  [ -f "$f" ] || continue
  printf '\n<!-- EGM-MARKER-%s-%s -->\n' "$(basename "$f" | tr -c 'a-zA-Z0-9' -)" \
    "$(head -c 6 /dev/urandom | od -An -tx1 | tr -d ' \n')" >> "$f"
done

Record which files were touched. Removal is unconditional — see step 5.

3. Run the reviewers

Spawn the lens agents with only the document path and the rubric path list. Do not paste the design into the prompt. Do not summarise it. Do not pass the conversation.

  • gaos-goldfish-comprehension — always.
  • gaos-goldfish-zoom-out — always.
  • gaos-goldfish-critic — always.
  • gaos-goldfish-readiness — always.
  • gaos-goldfish-security — additionally, when the design touches auth, authorisation, credentials, tokens, the egress allowlist, the workspace allowlist, the back-office surface, a new external origin, or an outbound call to one.

Run them in parallel; they share nothing but the target file and the rubric.

4. Verify the isolation

grep -rn "EGM-MARKER-" docs/designs/reviews/    # must return nothing

Then the positive control — one review with the exclusion deliberately disabled, which must produce a report containing a canary. Without it, a probe that can never detect anything is indistinguishable from a clean run.

The CLAUDE.md probe (verified 2026-11-25, Claude Code 2.1.332)

Reviewers carry omitClaudeMd: true (frontmatter; Claude Code 2.1.271+), which keeps the project CLAUDE.md and its @ imports out of their context. Prove it rather than assume it. A canary appended to CLAUDE.md during a session proves nothing: agents inherit the session-start snapshot, so the canary is not in it (both probes below answered NONE for exactly that reason). Probe with a sentence that is already in the snapshot instead, and use two agents with no tool call before the first answer:

  1. Positive control — a general-purpose agent, asked "does your context contain the sentence starting Four invariants, and where to read the rest?" must answer YES. If it says NO the probe cannot see the file and proves nothing.
  2. The test — a gaos-goldfish-* agent, the same question, must answer NO; then have it Read one file under docs/ and ask again: still NO.

Two side effects, one of them a real leak that is now closed (verified 2026-11-26):

  • Reading under docs/ or the registers attaches the path-scoped rule files (.claude/rules/agent-workspace.md, qa-test-plan.md) to every agent, reviewers included. That is the rubric; it mentions CLAUDE.md by name, which earlier rounds misread as CLAUDE.md being loaded.
  • Opening a file under .claude/ makes the harness attach .claude/CLAUDE.md (the nested-memory loader), even with omitClaudeMd: true, which only covers the session-start load. Round 1 of the auto-fix review saw this in all three lenses because the agent definitions told them to read .claude/rules/*; round 2, told not to open anything under .claude/, saw only the rule files. The five reviewer definitions now say so, and a prompt must never send a reviewer into .claude/.

5. Remove the canaries

Remove every planted line, whether the run succeeded, failed or was interrupted, and confirm the tree is clean:

grep -rn "EGM-MARKER-" . && echo "LEFTOVER — remove before committing"

deploy/check-workspace.sh fails on a leftover, so an aborted run is caught by the validator rather than by a later git diff.

6. Save the reports

Write each report to docs/designs/reviews/<feature>-review-<n>.md (and <feature>-security-review-<n>.md). Append-only, numbered — the sequence of rounds is the record of convergence. Never overwrite one.

7. Triage

One disposition per finding: CONTEST (wrong, with a checkable reason), ESCALATE (right, out of scope), PROPOSE FIX (right, fixed here), DECLINE (right, the fix costs more than the defect). Never change a severity. A comprehension gap is never contested — fix the document instead.

8. Apply and re-review

Apply the PROPOSE FIX items to the design, update it, and run another round if any Blocker survives. Keep the reports.

9. Ask the operator

Show the paraphrase, every 🔴 Blocker and 🟡 Major, and the triage table. Implementation starts only after approval.

The trap this workflow exists to catch

The author and the reviewer share the assumption that broke the last thing. A plan whose numbers do not follow from its own change list is the classic symptom: nobody outside the conversation ever checked the arithmetic.

Run the arithmetic twice — once by the author, once by a reviewer that cannot see the conversation. And remember what the reviews found here: the first round caught the plan's own change list disagreeing with its own headings, a headline figure that mixed two measurement bases, and an isolation probe that could not fail. The method does not only find defects in the product; it finds them in the plan.

Related

  • docs/rules/gaos-design-review.md — the policy (the source of truth)
  • docs/designs/README.md — the design-document contract
  • .claude/rules/agent-workspace.md — the workspace layout and the deny-list
  • .claude/rules/rule-index.md — what to read before what

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.