Split File banner
CBirkbeck CBirkbeck

Split File

Development community

Description

--- 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 1. Get the file outline using `lean_file_outline` 2. List all declarations with their line numbers 3. Group declarations by naming prefix (e.g., `cauchyPrincipalValue*`, `residue*`) ### Step 2: Identif

Installation

Installs to ~/.claude/skills/cbirkbeck-mathlib-quality-split-file/SKILL.md

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

Full documentation available on GitHub

View Source Repository