de-monolithize-your-codebase-isomorphically
Made by JeffFind monolith files, prove seams empirically, split isomorphically with zero API/perf/compile drift; hand off as beads. Use when de-monolithize, split giant file, modularize repo, or file too big.
From Jeffrey's Skills.md: professionally crafted skills for any AI agent, installed and kept in sync by the jsm CLI. Subscription only, $20/month.
Works With
Quality and Utility come from canonical skill metadata. Community ratings appear separately as stars when subscriber reviews exist.
Subscribe to download
Public previews are available, but downloads, CLI sync, and premium content require an active subscription.
Sign In to Subscribe- Full skill content with deterministic versioning
- CLI sync + local search index
- Access to Jeffrey’s premium library
Save to your account
Saved skills live in your cloud list. Run jsm sync on each machine to pull them locally.
What's New with this Skill
1Updates, enhancements, and release notes for this skill.
New: De-Monolithize Your Codebase Isomorphically, find the real giants, prove the seam, split with zero API/perf/compile drift
Splitting a 14,000-line file by eye is how regressions ship. This skill ranks monoliths by complexity x churn x expanded size rather than wc -l, then discovers seams empirically from the call graph, including ones coupled through file-local mutable state. Nothing is cut until an experiment proves the split isomorphic: same tests, same public API via facade re-exports, same performance, same compile cost. The output is a proof-gated decomposition plan handed off as dependency-aware beads.
- Census ranks files by complexity x churn x expanded size, cargo-expand and llvm-lines aware, so it catches macro-heavy and shared-state monoliths a line-count sort walks past, and flags generated files to never hand-split.
- Seams come from the call graph, not the eyeball: an intra-file graph is community-detected and weighted by shared-state coupling and git co-change. The visual types-up-top, helpers-at-the-bottom cut is rejected because it slices through call graphs.
- The Isomorphism Contract is four parts, all mandatory: behaviour (full suite, goldens, property tests), public API (every import path resolves via facade re-exports, diff empty or additions-only), performance (within measured noise), compile cost (time and peak RSS neutral or better).
- No proof gate, no split. Every extraction is a scratch-branch experiment with a SEAM_CONFIRMED or SEAM_REFUTED verdict before a line moves; convergence needs at least ten rounds and zero unresolved hypotheses.
- Migration keeps git blame intact: one mechanical git mv per commit, facade shims so downstream deep-imports keep working, and a cycle check after every move.
- Seventeen subagents and a script suite (census, intra-file graph, churn-coupling, baseline matrix, API snapshot, perf baseline, compile-RSS profiler, facade scaffold, isomorphism gate, convergence tracker) across Rust, Go, TypeScript, Python, and C++.
- A justified-monolith escape hatch documents the cohesive files you should leave alone, so the skill never slices a coherent 12,000-line file just because it is big.
Most codebases accumulate a few monster files that everyone is scared to touch. The usual fix is to eyeball the file, drag some functions into new modules, and hope the tests still pass. That is how silent regressions, broken import paths, and quiet performance cliffs get shipped.
This skill treats a split as a claim that must be proven. First it runs a weighted census (size, cyclomatic complexity, churn, and post-macro expanded size) to find which files are genuinely pathological, and tags each one with one of twelve buckets: god files, grab-bag utils, macro-heavy files, conditional-compilat