agentleFS
chatquillchatquill/claude-code-websites/.claude/skills/consistency-check/SKILL.md

consistency-check

Skill1 starsChanged 24 days agoMITView on GitHub

Cross-checks that the PRD, feature specs, API contract, data model, stories, ADRs and the code agree: every requirement has a spec and stories, every contract endpoint exists in code and vice versa, and every entity matches the schema. Reports drift. Use before a gate, after a big change, or when things feel out of sync.

16 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 14 edited versions we read keep these.

  • 0

    Distinctive

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

    Run the checks in scope; under modes.rigor: minimal run C1, C3, C4, C6 only.

    line 43
  2. Very specific:

    Ask before writing the report to production/audits/consistency-YYYY-MM-DD.md.

    line 45

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

Consistency Check

Finds drift between documents and code. It reports and writes a report file; it never "fixes" docs or code itself. Fixes go through /propagate-design-change or the owning skill.

Inputs

  • docs/product/prd.md, docs/specs/features/*.md, docs/architecture/api/*, docs/architecture/data-model.md, docs/architecture/adr/*
  • production/epics/, production/stories/
  • Code: routes (app/**/page.*, app/**/route.*, pages/, src/routes/, routes/, server/api/, urls.py, routes/web.php, config/routes.rb), schema files (prisma/schema.prisma, drizzle/*, models)

Checks

IDCheck
C1Every PRD requirement (FR-/NFR-) is traced by at least one spec
C2Every spec traces back to a PRD requirement (no orphan features)
C3Every spec requirement has at least one story; every story links an existing spec anchor
C4Every endpoint/action in the contract exists in code, with matching method and path
C5Every API route in code is in the contract (undocumented endpoints)
C6Every entity/field in the data model exists in the schema with the same type/nullability, and vice versa
C7Accepted ADRs are reflected in project.yaml → stack and the code (e.g. ADR says Drizzle, code imports Prisma)
C8Stories marked done have their ACs ticked and tests that exist
C9Sitemap pages exist as routes (marketing/e-commerce projects)
C10Terms are used consistently (entity names in PRD, specs, UI copy, code)

Phases

  1. Gather inventories with Glob/Grep (observations).
  2. Run the checks in scope; under modes.rigor: minimal run C1, C3, C4, C6 only.
  3. Report: a table per check with OK or each mismatch (docs/specs/features/billing.md#api ↔ app/api/billing/route.ts: spec says POST /billing/portal, code has GET), and the owner who should resolve it.
  4. Ask before writing the report to production/audits/consistency-YYYY-MM-DD.md.

Next step

/propagate-design-change for spec-side fixes; /dev-story or a new story for code-side fixes.

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.