extract-requirements

Extract business requirements from undocumented codebases into requirements.md.

1|1|Updated Nov 25, 2025
One-click install
npx skills add https://github.com/PearlThoughts/CodeCompass --skill extract-requirements
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: extract-requirements
Source: https://github.com/PearlThoughts/CodeCompass/tree/main/.claude/skills/extract-requirements
Command: npx skills add https://github.com/PearlThoughts/CodeCompass --skill extract-requirements

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Documenting business requirements from undocumented legacy code is a manual, labor-intensive, and often incomplete process. This Skill automates the discovery and extraction of critical business logic, saving months of reverse engineering.

Core Features & Use Cases

  • 6-Phase Extraction Workflow: Systematically extracts validation rules, use cases, business rules, data models, and workflow mappings from code.
  • Automated Documentation: Generates structured requirements documents, capability maps, and use case catalogs.
  • Validation & Traceability: Cross-checks extracted requirements with tests and provides traceability to source code.
  • Use Case: Automatically generate a comprehensive requirements document for a legacy system with no existing documentation, enabling faster onboarding for new teams or smoother migration planning.

Quick Start

Use the extract-requirements skill to generate a requirements document from the attached codebase, focusing on user management features.

Frequently Asked Questions about extract-requirements

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract business requirements from undocumented legacy code?

Extract requirements from undocumented code by running the automated extraction pipeline, which analyzes your codebase through six phases—automated extraction, validation rules, use cases, business rules, data models, and workflow mapping—to generate a structured requirements.md document with full traceability to source code.

Can I use requirement extraction to reverse engineer a system with no documentation?

Yes. Requirement extraction systematically discovers business logic, validation rules, and workflows from undocumented codebases, producing comprehensive requirements documents, capability maps, and use case catalogs that enable faster onboarding and reduce months of manual reverse engineering.

What's the best way to document requirements for a legacy system migration?

Automated requirement extraction accelerates migration planning by generating baseline requirements from existing code, including data models, business rules, and use case mappings, while providing validation and traceability to ensure no critical logic is missed during transition.

How does requirement extraction help with compliance audits and M&A due diligence?

Requirement extraction discovers and documents hidden business rules, validation logic, and data workflows from code, producing auditable requirements with source traceability—essential for compliance verification and M&A assessment of system capabilities and dependencies.

What output does the requirement extraction process generate?

The extraction pipeline produces structured requirements documentation including a requirements.md file, use case catalogs, data model diagrams, workflow mappings, validation rules, and cross-references to source code for complete traceability.

Can requirement extraction handle knowledge transfer for large codebases?

Yes. Automated extraction generates comprehensive capability maps and requirements documents that serve as baseline knowledge for onboarding new teams, eliminating the need for manual code review and reducing knowledge transfer time significantly.