agentleFS
stalniystalniy/skills/skills/spec-review/SKILL.md

spec-review

Skill1 starsChanged 57 days agoApache-2.0View on GitHub

Verify a specification for defects before implementation and recommend which requirements formal methods (Quint, TLA+, Lean) should check. Use after spec-grilling, typically in a subagent, or when the author wants a final jidoka check of a spec.

55 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use get-pr-reviews, push-everything and 10 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.
  • saffron-healthSkill

    get-pr-reviews

    Get nicely formatted output of the last review comments on a PR. Used internally by other skills.

    Also in 3 projects that use this

  • saffron-healthSkill

    push-everything

    Stage ALL changes in the repository (not just session changes), commit, and push. Use when you need to commit all pending changes.

    Also in 3 projects that use this

  • fernandoxavier02Skill

    spec-requirements

    Generate EARS-format requirements based on project description and steering context. Use when generating requirements from project description.

    Also in 3 projects that use this

  • NVIDIASkill

    generate-spec

    Produce a feature specification covering API changes, backward compatibility, cross-language impact, performance, and a file-level change plan. Use when designing a new feature, planning a significant change, or the user asks to spec something out.

    Also in 3 projects that use this

  • xfstudioSkill

    spec-tasks

    Generate actionable, dependency-ordered tasks.md organized by user story. Use when user says "/spec-tasks", "create tasks", "generate task list" after /spec-plan to prepare for implementation.

    Also in 3 projects that use this

  • telefrekSkill

    spec-init

    Bootstrap the spec corpus for this project

    Also in 3 projects that use this

  • +2 more from saffron-health

The file

We split this skill into the rules it gives an agent

9 rules. 0 are common, 5 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 49 edited versions we read keep these.

  • 5

    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. Distinctive:

    Verify the specification the way we verify code.

    line 7
  2. Very specific:

    Read GLOSSARY.md when present and use its terms.

    line 17
  3. Distinctive:

    Read relevant ADRs, tests, configuration, and code that the spec touches.

    line 18
  4. Very specific:

    Read .spec-grill/<spec-slug>/decision-graph.ai.md when present, with the decision graph contract.

    line 19
  5. Distinctive:

    Do not reopen an accepted decision because another option is better.

    line 20
  6. Distinctive:

    Run every check. Cite the spec passage, ADR, or code that shows each finding.

    line 24
  7. Very specific:

    Keep attention on decisions that affect architecture or behavior, or that are expensive to reverse.

    line 36
  8. Distinctive:

    Check project evidence before you raise a finding.

    line 38
  9. Very specific:

    Use ready only when no stop finding exists.

    line 100

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

Verify the specification the way we verify code. A spec can contain bugs, and every implementation decision builds on it.

Report each defect that would carry into code, so the author can resolve it first.

This skill is a read-only verification pass. Report findings. Leave the specification, ADRs, glossary, and decision graph unchanged.

Input and independence

Review the specification as it stands now. A grilling session usually settled its load-bearing decisions. Treat the grilled spec as the artifact under test, not as proof of quality.

  • Read GLOSSARY.md when present and use its terms.
  • Read relevant ADRs, tests, configuration, and code that the spec touches.
  • Read .spec-grill/<spec-slug>/decision-graph.ai.md when present, with the decision graph contract. Accepted decisions are settled. Deferred issues keep their boundary. Provisional decisions are unverified claims.
  • Do not reopen an accepted decision because another option is better. Report it when it contradicts another requirement, an ADR, or evidence.

Checks

Run every check. Cite the spec passage, ADR, or code that shows each finding.

  1. Internal contradiction. Can all requirements hold at the same time? Compare each requirement with every other requirement that shares an entity, state, or trigger. Include requirements added by grilling.
  2. ADR conflict. Does the spec reverse or weaken an accepted ADR? If the change is intentional, name the ADR that needs an update. If it is accidental, name the requirement that must change.
  3. Ambiguity. Could two reasonable implementations behave differently while both appear to satisfy the spec? Write both readings.
  4. Missing information. Are failure cases, boundaries, ordering, concurrency, and recovery rules undefined? Walk each state and transition, including cancel, retry, timeout, and partial failure.
  5. Assumption. What must the implementer guess? Mark each guess that needs a human decision.
  6. Observable behavior change. What will users or dependent systems experience differently? Is the change intentional, testable, and backward compatible? Check APIs, events, persisted data, and defaults.
  7. Upfront refactoring. Does the current structure make the change unnecessarily hard or risky? Name the refactor that should happen first and why.

Select findings

Keep attention on decisions that affect architecture or behavior, or that are expensive to reverse. Report a lower-impact defect only when it is a certain, cheap fix. Fold it into a single Minor line.

Check project evidence before you raise a finding. When evidence settles it, report the settled answer, not a question.

For each finding, make the author's next step clear:

  • Stop — implementation would build on a defect. A human must decide.
  • Clarify — the spec can be fixed from evidence or by a local edit. Give the proposed wording.

Formal verification candidates

Prose has limits. A requirement can sound clear until we describe every state and transition. Identify requirements where a formal model finds defects that review and tests miss.

Recommend only requirements that meet a property type below. Skip plain CRUD, validation, and formatting rules.

Property typeToolExample
Concurrent or interleaved actions on shared state; races; orderingQuintA cancelled order must never ship, even when cancel and dispatch race.
Safety and liveness of distributed protocols, retries, leader election, or fairness assumptions, especially when the team already uses TLA+TLA+Every accepted message is eventually processed after any number of crashes.
Invariants over data or arithmetic that must hold for all inputs, or a pure algorithm needing a proofLeanEvery allowed inventory operation keeps stock non-negative.

Quint and TLA+ explore behavior within the chosen model and bounds and show a counterexample trace. Lean proves a stated property under explicit assumptions. Prefer Quint when both model-checkers fit. Choose TLA+ for liveness, refinement, or an existing TLA+ practice.

For each candidate give:

  • the requirement and its source passage;
  • the property: the invariant, the temporal property, or the race to check;
  • the tool and why it fits;
  • the assumptions and bounds the model needs (for example, number of actors, queue size);
  • the finding it could expose, when a check above already suggests one.

Rank candidates by cost of a missed defect. State when the spec has no worthwhile candidate.

Recommend the formal model; do not write it. Note that a verified model also yields traces and counterexamples the author can turn into acceptance and edge-case tests.

Report

Return one report. Lead with the verdict.

## Spec review: <spec title>

**Verdict:** `stop` | `clarify` | `ready`
**Basis:** <spec revision or file, ADRs and evidence read>

### Findings

#### F1 — <title> · <check name> · stop | clarify

**Evidence:** <passage, ADR, or code reference>

**Problem:** <contradiction, two readings, missing rule, or hidden assumption>

**Resolution needed:**

> <question for the author, or the smallest spec change>

### Minor
<one line per cheap fix, or `None`>

### Formal verification candidates
<table or list from the section above, or `None`>

Use ready only when no stop finding exists. List stop findings first. Write None under an empty section. Keep each finding to what a reader needs to decide.

Completion

Finish when every check ran against the whole spec, each finding cites evidence, each requirement with a qualifying property type has a recommendation, and the verdict is stated. Do not start implementation or edit the spec. The caller owns clarification with the author and the next review pass.

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.