agentleFS
vmobifystudiovmobifystudio/app-dev-team/skills/spec-critic/SKILL.md

spec-critic

Skill5 starsChanged 8 days agoMITView on GitHub

On an app-dev-team project, use after the impl specs and board exist and before any developer is spawned, to file every question a developer would otherwise guess at as a ledger row. Run by tech-lead from /app-plan; used by product-manager.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    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. Very specific:

    Run it once per sprint, after docs/22-impl-spec-*.md and docs/31-board.md exist and before /app-build spawns anyone.

    line 11
  2. Distinctive:

    Idempotency and atomicity: Run it twice — same result?

    line 35
  3. Very specific:

    Be answerable in one sentence: If it needs a design discussion, it is a scope issue — send it to tech-manager as a blocker, not to …

    line 48
  4. Distinctive:

    Never file a question you can answer by re-reading the spec.

    line 97
  5. Distinctive:

    Never file style preferences, naming opinions, or "consider also…".

    line 98
  6. Very specific:

    Never skip filing a question because you already know the answer.

    line 99

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

Spec critic

tech-lead runs this. Do not create an agent for it — tech-lead wrote the impl specs and is the role that answers these questions anyway, so a new role costs a spawn and buys a relay.

Run it once per sprint, after docs/22-impl-spec-*.md and docs/31-board.md exist and before /app-build spawns anyone. Not once per ticket.

Why it exists

An agent that can proceed will proceed, so ICs rarely use the live channel (team-protocol §ICs (developers, reviewers, QA): declare, don't dispatch).

"Declare, don't dispatch" catches the guess after it was made. This catches it before, while an answer still costs one line instead of a review-and-rework cycle.

What you hunt

For each ticket on the board, read its acceptance criteria and the spec section it points at, then ask what a developer would have to invent. Ground every question in an acceptance criterion — a question no criterion depends on is noise.

  • Error type at a boundary. Which type crosses repo → view model? What does the spec's named type map to when the platform throws its own?
  • Empty, loading, failure. Each is a state with UI. Which of the three does the spec skip?
  • Source of truth. Two components hold the same value — which one wins when they disagree?
  • Cancel. The happy path is usually specified and the cancel branch usually is not. This project shipped a photo picker whose success branch was right and whose cancel branch wiped the existing photo (skills/defect-hunting/SKILL.md §1).
  • Idempotency and atomicity. Run it twice — same result? Fail halfway — is the write all or nothing?
  • Validation ownership. Which layer rejects bad input: UI, view model, or repository? Named once or in all three?
  • Exact copy. A user-visible string the spec describes but does not quote.
  • Numbers. Units, and what happens exactly at the boundary value, not near it.
  • Offline. Queue, fail, or read stale?

The discipline that keeps it from becoming noise

Every question must:

  1. Name the ticket. A question with no ticket cannot be routed or closed.
  2. Be answerable in one sentence. If it needs a design discussion, it is a scope issue — send it to tech-manager as a blocker, not to tech-lead as a question.
  3. State the two-or-more plausible answers a developer would pick between. If you can only think of one plausible answer, the spec is terse, not ambiguous. Do not file it.

Cap at 3 questions per ticket, highest-risk first. If you dropped any, say so and name what you dropped — this codebase forbids silent caps.

Filing them

One question row per ticket, carrying up to three numbered questions in the body — not one row per question. Two reasons: the anti-ping-pong guard refuses a third send on the same pair and ticket, and board-doctor pairs questions to answers by count, so three rows need three separate answers to close while one row closes with one.

--from is the ticket's Owner, never spec-critic. You are a skill, not a role: you are in no org-chart row, so an answer addressed back to you is addressed to nobody and the developer who needed it never sees it. File on the owner's behalf — the same thing /app-build step 1a does with an ASSUMED, NOT RAISED line — so the answer comes back to a party that will actually read it.

sh "${CLAUDE_PLUGIN_ROOT}/scripts/team-message.sh" \
   --from ios-developer --to tech-lead --ticket APP-004 --kind question \
   --summary "3 spec gaps on APP-004: error type, cancel path, empty state" \
   --body "1) Toggle failure: TodoError or the IOException the repo throws? 2) Picker cancel: keep the existing photo or clear it? 3) Empty list: placeholder copy is unspecified — exact string?"

The helper exits 1 if it refuses the send. A refused send is not a sent message — if it refuses, stop and file one escalation to tech-manager instead. Never write that you raised a question you did not raise.

Then — and the fold-back is the delivery

tech-lead answers in the same run wherever it can — it wrote the specs, so most answers are one line — with an answer row per ticket. Then, mandatorily, it edits each answer into docs/22-impl-spec-*.md at the section the question was about, and names the edited section in the answer body.

A closed ledger is not delivery. The developer is spawned against the impl spec; it is not handed the ledger and has no reason to read it. So the row closes the count and the edit is what reaches the person who has to decide. Skip the fold-back and the board renders clean, the doctor reports no question_unanswered, and the developer guesses exactly as if nobody had asked — a metric that cannot fail. Answering without editing the spec is not answering; it is scoring.

Anything still open after this round becomes a tech-manager action item under the unanswered-question rule in team-protocol.

Never

  • Never file a question you can answer by re-reading the spec. Read it first.
  • Never file style preferences, naming opinions, or "consider also…". This is ambiguity only.
  • Never skip filing a question because you already know the answer. File first (the critic pass), then answer as the spec's owner (the tech-lead pass above) — the row is the record that the gap existed, and the fold-back is the fix.

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.