legislative-flattener
CommunityFlatten legal text into ready-to-use requirements.
Authorcri-matthew
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill automates the extraction of hierarchical legislative or regulatory text from Word documents into a flat, numbered list of discrete requirements, saving time and reducing manual mapping effort.
Core Features & Use Cases
- Flatten parent-child structures into standalone requirements while preserving references
- Maintain context paths for traceability in regulatory mappings
- Export results to XLSX, CSV, JSON, and Markdown for reporting and analysis
- Detect normative language and extract keywords to speed up cross-framework mapping
Quick Start
- Install dependencies: pip install python-docx openpyxl
- Basic usage: python flattener_utility.py input.docx output.xlsx
- Specify formats: python flattener_utility.py input.docx output.csv --format csv
- View outputs: open the generated XLSX or JSON file to review flattened requirements
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: legislative-flattener Download link: https://github.com/cri-matthew/legislative-flattener-skill/archive/main.zip#legislative-flattener Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.