Requirements Extraction

    by Osama Khaled

    1

    Extracts requirements and user stories from unstructured files into validated, machine-readable JSON datasets.

    $1

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+23 more

    Requirements Extraction

    Example session with this skill installed

    Extract requirements from the provided transcript 'meeting_notes.txt'. Categorize them by type and ensure every requirement has a source quote. Output the final dataset in JSON format.

    • Read your context and instructions
    • Compiled the requirements extraction

    Extracted 4 requirements and 2 user stories from meeting_notes.txt. Validated all source quotes and generated the structured dataset.

    Extraction Results

    IDTypeTitleBasisConfidence
    EX-REQ-001RequirementOAuth2 Authenticationverbatim0.95
    EX-REQ-002RequirementData Encryption at Restverbatim0.98
    EX-US-001User StoryProfile Managementderived0.85
    EX-SPEC-001SpecAPI Rate Limitingverbatim0.92
    {
      "assessments": {
        "entries": [
          {
            "id": "EX-REQ-001",
            "type": "requirement",
            "title": "OAuth2 Authentication",
            "text": "The system must support OAuth2 for third-party logins.",
            "sources": [{"block_id": "B002", "quote": "must support OAuth2 for third-party logins"}],
            "basis": "verbatim",
            "confidence": 0.95,
            "id_basis": "generated"
          },
          {
            "id": "EX-US-001",
            "type": "story",
            "title": "Profile Management",
            "text": "Users need to update their own contact details without admin help.",
            "sources": [{"block_id": "B005", "quote": "I want to change my email myself"}],
            "basis": "derived",
            "confidence": 0.85,
            "id_basis": "generated"
          }
        ],
        "non_requirement_blocks": [
          {"block_id": "B001", "reason": "Introductory greetings and attendance list."}
        ]
      }
    }
    

    Next steps

    • Review the questions array in the output for 2 ambiguous statements regarding rate limit thresholds.
    • Run finalize --format all to generate the human-readable markdown summary for stakeholders.
    • Import WORK/extraction/out/dataset.json into your backlog management tool.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Technical debt begins the moment unstructured requirements are copied into a project management tool by hand. This skill automates the extraction of requirements, user stories, and specifications from messy source files like transcripts, emails, and PDFs, converting them into a traceable, machine-readable dataset.

    What it does

    • Multi-format ingestion parses .txt, .md, .eml, .log, .vtt, .docx, and PDF files to identify functional data.
    • Granular classification categorizes findings into requirements, user stories, or technical specifications based on stakeholder needs.
    • Traceability mapping maintains a direct link between extracted items and their source blocks with verbatim quotes.
    • Automated validation runs an internal engine to verify that every block is accounted for and all quotes exist in the source.
    • Structured output generates a dataset.json following a strict schema for downstream engineering workflows.

    How it works

    1. Ingest unstructured source files using the blocks command to fragment text into manageable data segments.
    2. Analyze each block against extraction rules to identify business needs, user outcomes, or behavioral rules.
    3. Draft a dataset.json including confidence scores, priority evidence, and source citations.
    4. Finalize the output through a validation script that checks for schema compliance and quote integrity.

    Frameworks & tools

    The skill utilizes a Python-based execution engine (rat.py) for data processing and validation. It handles standard document formats and exports machine-readable JSON datasets compatible with most requirements management systems.

    Why this beats prompting it yourself

    Manual prompting often misses compound requirements or loses the link back to the original email or transcript. This skill enforces a rigorous resolution path and validation loop, ensuring no requirement is "hallucinated" without a direct source quote.

    Use cases

    • Converting meeting transcripts or .vtt files into actionable user stories.
    • Auditing legacy .docx specifications to create a structured backlog.
    • Extracting technical constraints from client email chains into a dataset.json.
    • Mapping stakeholder interviews to specific functional requirements with traceability.

    Known limitations

    Scanned images and audio files require pre-processing via OCR or transcription. Tables in PDF or DOCX may lose structural alignment during extraction.

    Requires Python to run the rat.py engine. Scanned PDFs/images need OCR first. Table structures in complex documents may require manual review.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Frequently Asked Questions

    The skill processes unstructured text from .txt, .md, .eml, .docx, and PDFs, as well as meeting transcripts (.vtt) and logs. Note that scanned documents or images require OCR pre-processing before they can be ingested by the tool.

    Unlike simple prompting, this skill uses a specialized Python-based execution engine that enforces a validation loop. This ensures every requirement is backed by a verbatim source quote and a traceability link, preventing the "hallucinations" or missed details common in manual AI prompting.

    The primary output is a structured `dataset.json` file containing categorized requirements, user stories, and technical specs. You also receive the `rat.py` execution engine and the logic required to run the multi-step ingest, analyze, and validate workflow.

    The JSON output is designed with a strict, machine-readable schema that allows for easy mapping to Jira, Azure DevOps, or other project management tools. This makes it ideal for teams looking to automate the transition from discovery documents to a structured engineering backlog.

    While the skill handles complex text extremely well, it may struggle with structural alignment in nested tables within PDFs or Word docs. We recommend reviewing extracted data if your source files rely heavily on complex visual layouts or multi-column tables.

    New in Prompt & Skill Engineering

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Prompt & Skill Engineering.