Split File — Development skill for Claude Code
Split large files (>1500 lines) into focused modules.
How to install Split File
Installs to ~/.claude/skills/cbirkbeck-mathlib-quality-split-file/SKILL.md
mkdir -p ~/.claude/skills/cbirkbeck-mathlib-quality-split-file && curl -fsSL https://raw.githubusercontent.com/CBirkbeck/mathlib-quality/HEAD/commands/split-file.md -o ~/.claude/skills/cbirkbeck-mathlib-quality-split-file/SKILL.md Restart Claude Code, or start a new session, for it to be picked up.
What Split File does
name: split-file description: Split large files (>1500 lines) into focused modules
/split-file - Split Large Lean Files
Split a large Lean file (>1500 lines) into smaller, focused modules.
Usage
/split-file [file_path]
Splitting Strategy
Step 1: Analyze the File
- Get the file outline using
lean_file_outline - List all declarations with their line numbers
- Group declarations by naming prefix (e.g.,
cauchyPrincipalValue*,residue*)
Step 2: Identif
Alternatives in Development
- Flow Parallel — Decompose and execute large changes, migrations, or multi-issue fixes in parallel with quality gates 2.8k ★
- 00 Index — Skill Modules Index 1.1k ★
- Module Status — Show status of all modules or a specific module (enabled/disabled, version, routes, migrations) 407 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Magic Modules
Magic Modules Skill
Progress
Track your progress through the masterclass. Update this file as you complete modules - Claude Code reads this
Death Crystal
Architectural deepening lens — surface shallow Modules and propose interface alternatives using Pocock vocabul
Tappaas Module Dependencies
Generate a Mermaid dependency graph of all TAPPaaS modules and write it to src/module-dependencies.md.
Surveycto Skill
A Claude Code skill for designing SurveyCTO survey instruments. Built for development economists, research tea
Onboarding Plan
Generate a structured new sales rep onboarding and ramp plan with milestones, training modules, and certificat
Related Agents
File Refactor Organizer
Use this agent when you need to break down large files into smaller, more maintainable components or modules.
Clean Code Refactor
Use this agent when you need to refactor existing code, rewrite a module for better maintainability, decompose
Reviewer Lite
Use after fast/normal mode tasks (new pages, UI components, styling, simple endpoints, small changes, new modu