# Requirements Extraction

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

Requirements Extraction is a paid AI agent skill on Agensi by Osama Khaled, in Prompt & Skill Engineering. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $1 (one-time purchase)
- Creator: [Osama Khaled](https://www.agensi.io/creators/osama-khaled)
- Category: [Prompt & Skill Engineering](https://www.agensi.io/skills/prompt-skill-engineering)
- Version: 1.0
- Last updated: 2026-11-29
- Security: scan passed (2026-11-28); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/requirements-extraction
- Tags: prompt-engineering, python, requirements-analysis, json, traceability

## 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.

## Known limitations

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 this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Requirements Extraction skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What file formats are supported for requirements extraction?

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.

### How does this skill differ from just asking an LLM to 'summarize' my requirements?

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.

### What exactly is included in the purchase of this skill?

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.

### Can the extracted data be integrated into tools like Jira or Trello?

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.

### Are there any limitations when extracting data from complex document layouts?

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.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
