requirement-intelligence
Skill19 starsChanged 6 months agoMITView on GitHub
Use when a task references requirement/spec documents (PDF/DOCX/MD), an attached file, "the spec", "requirements", or a doc to implement from. Turns documents into a deterministic, cited requirement set under .claude/specs/ before any code is written.
In this repository14 other files it gives its agents.
- automation-firstSkill
- clean-code-typescriptSkill
- code-splittingSkill
- final-responseSkill
- gauge-improvementsSkill
- karpathy-guidelinesSkill
- mobile-qaSkill
- orchestrationSkill
- qa-sharedSkill
- root-cause-analysisSkill
- technical-writingSkill
- ui-ux-pro-maxSkill
- web-design-guidelinesSkill
- web-qaSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
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
- Very specific: line 8
When the work is driven by a document (a PDF/DOCX/Markdown spec, a requirements file, an attached doc), do NOT skim-and-guess.
- Distinctive: line 9
NOT skim-and-guess. Extract requirements deterministically and cite their source, then build against the cited set only.
- Distinctive: line 14
Run the extractor (local, token-free, no external AI by default):
- Very specific: line 21
Read EXTRACTED_REQUIREMENTS.json (every requirement carries a required source reference) and OPEN_QUESTIONS.md.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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
Requirement intelligence (deterministic spec extraction)
When the work is driven by a document (a PDF/DOCX/Markdown spec, a requirements file, an attached doc), do NOT skim-and-guess. Extract requirements deterministically and cite their source, then build against the cited set only.
How to apply
- Run the extractor (local, token-free, no external AI by default):
It writes intocdt-spec <files...><project>/.claude/specs/:RAW_TEXT.md,DOCUMENT_INDEX.json,EXTRACTED_REQUIREMENTS.json,SPEC_CONTRACT.md,TRACEABILITY_MATRIX.md,DEV_TASK_BRIEF.md,QA_TEST_PLAN.md,OPEN_QUESTIONS.md. - Read
EXTRACTED_REQUIREMENTS.json(every requirement carries a requiredsourcereference) andOPEN_QUESTIONS.md. Resolve open questions andNEEDS_REVIEWitems with the user before implementing — never invent missing requirements. - Implement against the cited requirements; map each to a verification in
QA_TEST_PLAN.mdand record results viacdt-verify -- <command>.
Guardrails
- Deterministic by default. External AI review of documents is OFF unless
CDT_EXTERNAL_AI_ALLOWED=trueAND the user approves AND the document is not sensitivity-flagged. - Sensitive docs stay local. Payroll, user data, contracts/legal, secrets, production DB details, and auth/payment logic are never sent to an external model; their spec output carries a do-not-commit banner.
- Images/diagrams with weak/disabled OCR are marked
NEEDS_REVIEW, not implemented directly. - Auto-extraction is off by default (
CDT_SPEC_AUTO=false) — suggestcdt-spec, don't force it. When the user opts in (CDT_SPEC_AUTO=true), the UserPromptSubmit hook auto-runscdt-specon any spec document named in the prompt (.pdf/.docxor a requirement-named.md/.txt); source files and folders are excluded, so it never extracts from code.
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.

