spec-review
Skill0 starsChanged 4 months agoMITView on GitHub
Stage 2.5 pre-implementation spec review — verify a journey + SPEC against the live codebase, apply a code-review lens to the design, run a security design threat-model, and run a gap analysis BEFORE any code is written. Use after a spec is written and before implementation, or whenever the user asks to review/validate a spec or journey.
18 other projects use a version of this.
Adopted by
Most recently taken up by
- komluk/scaffoldingtheir own version, first seen Sep 28, 2026
- markkj/skillstheir own version, first seen Sep 26, 2026
- FooJiaYin/dev-skillstheir own version, first seen Sep 24, 2026
- abhattacherjee/claude-code-skillstheir own version, first seen Sep 24, 2026
- VerusK/claude-skillstheir own version, first seen Sep 22, 2026
- HHU3637kr/skillstheir own version, first seen Sep 22, 2026
Used with
Projects with it also use plan-review, design-review and 1 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.
longranger2Skillplan-review
Use when the user says "/plan-review", "plan review", or "PRD review" and provides a plan file path that needs critical review and iterative refinement with Codex.
Also in 3 projects that use this
AICreator-WindSkilldesign-review
编码设计师工具。设计审计和修复。
Also in 3 projects that use this
GoogleSkillcode-review
Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.
Also in 5 projects that use this
Other versions18 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 18
- microsoft/winappCli★ 1.3ksame name
- cashew-labs/libretto★ 904same name
- HHU3637kr/skills★ 145same name
- agent-ix/quoin★ 20same name
- azents/azents★ 16same name
- komluk/scaffolding★ 15same name
- markkj/skills★ 4same name
- RizwanZafaris/product-manager-OS★ 4same name
- aictrl-dev/skills★ 2same name
- anyoneanderson/agent-skills★ 2same name
8 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository16 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- adoptSkill
- browser-verifySkill
- create-spec-promptSkill
- feature-planSkill
- implement-specSkill
- orchestrateSkill
- pr-reviewSkill
- security-reviewSkill
- self-code-reviewSkill
- browser-verifySkill
- create-specSkill
- implement-specSkill
- spec-reviewSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 1 is distinctive, and 3 are very specific to this project.
0
Common
Most of the 17 edited versions we read keep these.
1
Distinctive
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
- Very specific: line 16
Mandatory: after Stage 2 (spec written) and before Stage 4 (implement).
- Very specific: line 19
Run automatically as the final step of the feature-plan skill, or invoked explicitly on any spec.
- Distinctive: line 21
Skip rule: only a trivial doc-only spec is exempt — record "Trivial spec, Stage 2.5 not required" in the spec.
- Very specific: line 68
Template: every section of SPEC-TEMPLATE.md present, accurate, and internally consistent (acceptance criteria ↔ phases ↔ test plan …
“Common” is measured: kept by at least 6 in 10 of the 17 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.
Files
Spec Review (Stage 2.5)
The spec-artifact mirror of Stage 5.5 (self-code-review
reviews code; this reviews the spec before any code exists). Goal: catch design errors,
reinvention of existing infrastructure, and missing requirements before they cost a
wrong-shape implementation, repeated fix loops, and operator-review churn.
When this runs
- Mandatory after Stage 2 (spec written) and before Stage 4 (implement). A spec that
reaches implementation without a recorded Stage 2.5 pass is a process error
(see
00-core-workflow.md). - Run automatically as the final step of the
feature-planskill, or invoked explicitly on any spec. - Skip rule: only a trivial doc-only spec is exempt — record "Trivial spec, Stage 2.5 not required" in the spec.
Inputs
- The
docs/specs/SPEC-NNN-*.mdfile and its journey section. - The live codebase. This review is worthless if done from the spec text alone. Open every file/service/endpoint the spec names, and grep for systems it might be reinventing.
The five lenses (run all; findings-first)
1. Infrastructure and pattern verification — "extend, don't duplicate"
- Every file, function, endpoint, and table the spec references must exist — open it and confirm. Flag any invented or misnamed reference.
- Grep before you spec. For each "new" service/endpoint/worker/component the spec proposes, search for an existing one that already does the job (an existing retry or notify path, a scheduler job, a shared composable or component). The spec must reuse or extend it, not add a parallel system. Reinvented infrastructure is the single most expensive spec defect.
- Confirm reuse of the repo's base patterns:
BaseController<T>/BaseRepository<T>for CRUD, the shared frontend layer (frontend/layers/shared) for components/composables/utils, and centralized formatting helpers rather than inline formatting. - Confirm ORM feasibility. Some designs the ORM cannot express declaratively — e.g. Prisma's
@@uniquecannot declare a partial/filtered unique index, which requires a raw-SQL migration. If the spec assumes a declarative feature, verify the ORM actually supports it, and note that the model name and the physical table name may differ in raw SQL.
2. Code-review lens on the design
Apply the self-code-review findings discipline to the
proposed design: bugs or regressions the design would introduce, missing cases in the Test
Plan, schema-contract risks, convention violations, reuse gaps. Order HIGH / MEDIUM / LOW.
3. Security design threat-model
Apply the security-review focus areas to the design (there
is no diff yet): authentication/session, authorization on every new write path (is each new
endpoint role-gated and audited?), sensitive-data exposure, least privilege on new scopes,
tokens, and service credentials, unsafe defaults and overly broad trust, validation and
injection, environment isolation for any external read/write (dev/staging/prod must never
cross), audit/secret/logging handling.
Output requirements the implementation must satisfy — usually as new acceptance criteria added to the spec, so the contract itself carries them into Stage 4.
4. Gap analysis (template + SDLC + commonly-missed)
- Template: every section of
SPEC-TEMPLATE.mdpresent, accurate, and internally consistent (acceptance criteria ↔ phases ↔ test plan cross-cited). - SDLC: branch-from-main, no-merge boundary, a Stage 5.5 phase, an operator-verification
phase, and a "containers required" line (see
00-core-workflow.mdanddocs/sdlc.md). - Commonly-missed checklist — verify each item is addressed or consciously N/A:
- Reinventing existing infrastructure (a search proved reuse)
- Audit trail preserved on every new write path (
audit.service.ts→ActivityLog) - Soft delete preserved (no hard deletes introduced on CRUD paths)
- Real-time push emitted on every new state transition (
sse.service.ts, after commit) - Authorization tier identified for each new endpoint (which guard, which roles) + audited
- Least privilege on any new OAuth scope, token, or service credential
- Environment isolation for any external read/write (no prod side effects from dev/test)
- Transaction safety for multi-row mutations
- Concurrency/claiming on new workers or queues; re-entrancy on intervals
- Idempotency / duplicate-guard interplay on retried operations
- Raw-SQL migration flagged where the ORM cannot express the constraint
- Validation contract regenerated (
pnpm zod:generate) + typecheck after schema changes - Container preflight and data-freshness decisions recorded
5. Resolution
- HIGH: fix in the spec before implementation, or split into an iteration spec
(
SPEC-NNN<letter>-...). A spec is not implementation-ready with an open HIGH. - MEDIUM: fold in when cheap; otherwise record under "Known follow-ups" in the spec.
- LOW: note in the spec.
- Record the pass as a short block-quote under the spec's header ("Self-review applied (date). …key corrections…") so the contract shows it was verified.
Output format
# Spec Review — SPEC-NNN
## HIGH
### N. <title> [file.ts](path#Lline)
<2-4 sentences: what's wrong vs the live code, why it matters, the fix>
## MEDIUM / ## LOW
...
## Security requirements (design threat-model)
| ID | Concern | Requirement (usually a new acceptance criterion) |
## Gap analysis
- Template / SDLC / commonly-missed: pass, or the specific gap
## Verdict
Implementation-ready: yes / no (+ the blocking HIGHs)Anti-waste reminder
This gate spends a little review now instead of many tokens later on wrong-shape
implementation and fix loops. Be thorough on high-leverage specs (schema, auth, cross-service
contracts, external integrations); for a small low-leverage spec, run the lenses quickly and
say so — match depth to leverage
(effort-discipline.md).
Spec under review:
$ARGUMENTS
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
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.

