agentleFS
jaysonventurajaysonventura/claude-dev-team/skills/requirement-intelligence/SKILL.md

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.

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

    When the work is driven by a document (a PDF/DOCX/Markdown spec, a requirements file, an attached doc), do NOT skim-and-guess.

    line 8
  2. Distinctive:

    NOT skim-and-guess. Extract requirements deterministically and cite their source, then build against the cited set only.

    line 9
  3. Distinctive:

    Run the extractor (local, token-free, no external AI by default):

    line 14
  4. Very specific:

    Read EXTRACTED_REQUIREMENTS.json (every requirement carries a required source reference) and OPEN_QUESTIONS.md.

    line 21

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

  1. Run the extractor (local, token-free, no external AI by default):
    cdt-spec <files...>
    It writes into <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.
  2. Read EXTRACTED_REQUIREMENTS.json (every requirement carries a required source reference) and OPEN_QUESTIONS.md. Resolve open questions and NEEDS_REVIEW items with the user before implementing — never invent missing requirements.
  3. Implement against the cited requirements; map each to a verification in QA_TEST_PLAN.md and record results via cdt-verify -- <command>.

Guardrails

  • Deterministic by default. External AI review of documents is OFF unless CDT_EXTERNAL_AI_ALLOWED=true AND 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) — suggest cdt-spec, don't force it. When the user opts in (CDT_SPEC_AUTO=true), the UserPromptSubmit hook auto-runs cdt-spec on any spec document named in the prompt (.pdf/.docx or a requirement-named .md/.txt); source files and folders are excluded, so it never extracts from code.

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.