- Home
- Skills
- Prompt & Skill Engineering
- Requirements Extraction
Requirements Extraction
by Osama Khaled
Extracts requirements and user stories from unstructured files into validated, machine-readable JSON datasets.
$1
Works with the AI Agents you already use
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
| ID | Type | Title | Basis | Confidence |
|---|---|---|---|---|
| EX-REQ-001 | Requirement | OAuth2 Authentication | verbatim | 0.95 |
| EX-REQ-002 | Requirement | Data Encryption at Rest | verbatim | 0.98 |
| EX-US-001 | User Story | Profile Management | derived | 0.85 |
| EX-SPEC-001 | Spec | API Rate Limiting | verbatim | 0.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
questionsarray in the output for 2 ambiguous statements regarding rate limit thresholds. - Run
finalize --format allto generate the human-readable markdown summary for stakeholders. - Import
WORK/extraction/out/dataset.jsoninto 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.jsonfollowing a strict schema for downstream engineering workflows.
How it works
- Ingest unstructured source files using the
blockscommand to fragment text into manageable data segments. - Analyze each block against extraction rules to identify business needs, user outcomes, or behavioral rules.
- Draft a
dataset.jsonincluding confidence scores, priority evidence, and source citations. - 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
.vttfiles into actionable user stories. - Auditing legacy
.docxspecifications 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
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
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 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.
Trust & safety
Security scan
Security scan passed 5 days ago
Permissions
What's inside
Frequently Asked Questions
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.