Check requirements against code

From brianwestphal/glassbox · View interactive version

Check requirements against code is an AI agent skill from the GitHub repository brianwestphal/glassbox. Check requirements docs against implementation, report discrepancies and gaps

How to use this skill

Skill file

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

  1. Read all requirements documents in docs/ (numbered files like 1-review-workflow.md through 17-claude-channel.md). Each contains functional (FR-) and non-functional (NFR-) requirements.
  1. For each requirement, verify the implementation exists:
  1. 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.
  1. Synchronize the AI summaries (docs/ai/code-summary.md and docs/ai/requirements-summary.md):
  1. Verify the CLAUDE.md index is complete:
  1. 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:

Not Implemented — Requirements with no corresponding implementation:

Undocumented Features — Code functionality not covered by requirements:

Summary & Index Synchronization — What you changed (or confirmed correct) in:

Questions — Ambiguities or contradictions found:

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.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.