check-requirements-against-code
Skill34 starsChanged 4 months agoMITView on GitHub
Check requirements docs against implementation, report discrepancies and gaps
In this repository35 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/glassbox.mdcCursor rule
- .cursor/rules/hotsheet-instructions.mdcCursor rule
- .cursor/rules/hotsheet.mdcCursor rule
- .cursor/rules/hs-bug.mdcCursor rule
- .cursor/rules/hs-feature.mdcCursor rule
- .cursor/rules/hs-investigation.mdcCursor rule
- .cursor/rules/hs-issue.mdcCursor rule
- .cursor/rules/hs-requirement-change.mdcCursor rule
- .cursor/rules/hs-task.mdcCursor rule
- hotsheetSkill
- hotsheet-workerSkill
- hs-bugSkill
- hs-featureSkill
- hs-investigationSkill
- hs-issueSkill
- hs-requirement-changeSkill
- hs-taskSkill
- absorb-ticketsSkill
- analyze-code-qualitySkill
- check-code-hygieneSkill
- glassboxSkill
- hotsheetSkill
- hotsheet-workerSkill
- hs-bugSkill
- hs-featureSkill
- hs-investigationSkill
- hs-issueSkill
- hs-requirement-changeSkill
- hs-taskSkill
- kerf-appSkill
- prep-major-releaseSkill
- technical-changelogSkill
- ux-reviewSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 5 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
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
- Distinctive: line 7
Check the requirements documents against the actual implementation, verify the AI-oriented summaries still match reality, and confirm the …
- Very specific: line 14
Search the codebase (src/) for the relevant code
- Distinctive: line 15
Check that the behavior described in the requirement is actually implemented
- Distinctive: line 18
Check for undocumented features: Look for significant functionality in the code that isn't covered by any requirement.
- Very specific: line 30
If you find drift, fix it directly — this skill has the Edit tool for exactly this reason.
- Very specific: line 33
Read CLAUDE.md and find the requirements index (the bulleted list under the "Requirements documents" heading that names each …
- Distinctive: line 35
Every numbered requirements doc must appear in the index with the correct filename and a one-line description.
- Distinctive: line 37
If you find missing, stale, or mis-named entries, fix them directly in CLAUDE.md.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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.
Files
Check the requirements documents against the actual implementation, verify the AI-oriented summaries still match reality, and confirm the CLAUDE.md index is complete. Generate a report with recommendations and questions about any discrepancies.
Process
- Read all requirements documents in
docs/(numbered files like1-review-workflow.mdthrough17-claude-channel.md). Each contains functional (FR-) and non-functional (NFR-) requirements. - For each requirement, verify the implementation exists:
- Search the codebase (
src/) for the relevant code - Check that the behavior described in the requirement is actually implemented
- Note any partial implementations or deviations from the spec
- Search the codebase (
- Check for undocumented features: Look for significant functionality in the code that isn't covered by any requirement. These may be intentional additions that need documentation, or accidental scope creep.
- Synchronize the AI summaries (
docs/ai/code-summary.mdanddocs/ai/requirements-summary.md):- Open both files and verify they reflect the current state of the tree.
- For
code-summary.md: walk through each section and confirm it matches what's actually insrc/,src-tauri/,scripts/, and the database schema. Look specifically for:- Files/folders listed that no longer exist
- Files/folders in the tree that aren't mentioned
- Routes in the catalog that no longer exist (or new ones missing)
- Database tables/columns that don't match
src/db/schema.ts - External deps in §14 that don't match
tsup.config.tsandscripts/build-sidecar.sh - Any entry in the "Where do I look to…" reverse index that points at a renamed or moved file
- For
requirements-summary.md: confirm every requirements doc indocs/has a section, the section number matches the doc number, and the status marker (Shipped / Partially built / Design only / Deferred / Superseded) still reflects reality based on what you found in step 2. - If you find drift, fix it directly — this skill has the
Edittool for exactly this reason. Don't just report the drift; update the summaries so they're correct when you're done.
- Verify the CLAUDE.md index is complete:
- Read
CLAUDE.mdand find the requirements index (the bulleted list under the "Requirements documents" heading that names eachdocs/N-topic.md). - Cross-check against the actual list of numbered docs in
docs/(viaGlobondocs/*-*.md). - Every numbered requirements doc must appear in the index with the correct filename and a one-line description. Every entry in the index must correspond to a real file.
- Also verify the AI summaries block (the section pointing at
docs/ai/code-summary.mdanddocs/ai/requirements-summary.md) is present and accurate. - If you find missing, stale, or mis-named entries, fix them directly in
CLAUDE.md.
- Read
Generate the report with these sections:
Requirements Coverage Report
Fully Implemented — Requirements that are correctly implemented (brief list)
Partially Implemented — Requirements where the implementation exists but is incomplete or deviates:
- Requirement ID and description
- What's implemented vs what's missing
- Recommendation
Not Implemented — Requirements with no corresponding implementation:
- Requirement ID and description
- Recommendation (implement, defer, or remove from requirements)
Undocumented Features — Code functionality not covered by requirements:
- Feature description and location
- Recommendation (document or remove)
Summary & Index Synchronization — What you changed (or confirmed correct) in:
docs/ai/code-summary.mddocs/ai/requirements-summary.mdCLAUDE.mdrequirements index and AI-summaries section
Questions — Ambiguities or contradictions found:
- The specific requirement(s) involved
- The question or concern
Present the report directly to the user. Focus on actionable findings — skip trivially correct implementations. If the summaries and index were already in sync, say so in one line rather than padding the report.
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.

