/re-arch:re-arch-pitchfrom re-arch
Translates architecture audit findings into a management-facing pitch for funding refactoring work. Reads .re-arch/ files to produce a decision-ready case with risks, options, recommendation, and investment sizing.
Ships in re-arch. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Management funds risk reduction and delivery capacity, not architecture. The pitch translates the audit into those terms, honestly enough to survive the first hard question in a steering committee.
.re-arch/findings.json, .re-arch/options.json, .re-arch/plan.json (sizes, phases), .re-arch/domains.json, .re-arch/meta.json. If the plan is missing, the pitch can still compare options, but say that the investment is indicative until the plan exists.
impact_business in the findings. The share of fix commits and knowledge concentration (pseudonymised, never named) are usually the most convincing facts for non-technical readers: "half of the changes since launch were fixes", "two critical areas are understood by one person".| Size | Codebase of 5,000+ lines of production code | Smaller codebase |
|---|---|---|
| S | up to 0.5 | up to 0.25 |
| M | 1 to 2 | 0.25 to 0.5 |
| L | 3 to 6 | 1 to 2 |
| XL | split before estimating | split before estimating |
Sum the phases, divide by the capacity share to get calendar sprints, and write the derivation in the assumptions ("P0 M + P1 S + P2 L = 4 to 8.5 developer-sprints; one third of 3 developers = 1 developer-sprint per sprint; 4 to 9 sprints"). Derive it from the plan, not from intuition, and write the derivation in investment.assumptions so anyone can redo it: which phases are counted, their sizes, the team size and the share of capacity assumed. If the team has its own calibration (past velocity on similar work, the tech lead's reference for an M), use it and say so; otherwise say the range is an order of magnitude to calibrate. A T-shirt size is not a commitment: say that the tech lead calibrates it with the team before the decision. Never go below the sprint as a unit (no day counts) and never convert into money.
7. Milestones: what changes visibly after each phase, and the stop points (the effort can stop after phase N and still pay off).
8. Success indicators: a few measurable ones with baseline ("to measure" if unknown) and target. Prefer delivery and quality metrics management already understands: incidents and bugs in the area, lead time for changes, change failure rate, time to restore, onboarding time, time to ship a typical feature in the area.
9. Decision requested: exactly what is asked (capacity, priority over features, a review date).
10. Glossary: only for the few terms that could not be avoided.
debt_intent to say it precisely: deliberate-prudent debt ("we shipped first, knowing the cost") is a normal business decision now coming due; inadvertent debt is what a team learns by building..re-arch/pitch.json (rendered by re-arch-report in the management tab):{
"headline": "...", "situation": "...",
"risks": [{"risk": "...", "consequence": "...", "likelihood": "high", "evidence": "F1"}],
"options": [{"name": "Do nothing", "size": "-", "gain": "...", "risk": "..."}, {"name": "...", "size": "L", "gain": "...", "risk": "..."}],
"recommendation": "...",
"investment": {"size": "L", "capacity": "about a third of the team over 3 to 4 sprints (hypothesis to calibrate)", "assumptions": ["..."]},
"milestones": [{"when": "end of P1", "what": "...", "indicator": "..."}],
"kpis": [{"name": "...", "baseline": "to measure", "target": "..."}],
"decision_requested": "...",
"glossary": [{"term": "...", "definition": "..."}]
}
.re-arch/pitch.md: the same as a short memo to paste into an email or a slide, generated from the JSON (never by hand; re-run after any edit):
python3 <this-skill-dir>/scripts/pitch_to_md.py <repo>/.re-arch
Strings in the deliverable language. Before finishing, re-read as a CFO who has never written code: every sentence should make sense to them.
Give the headline, the recommendation and the decision requested in the conversation, and the memo as pitch.md.
What SKILL.md sets; muted values are Claude Code's defaults
10 skills in this plugin
/re-arch-academyProduces training material to upskill a development team on the architecture and practices of a refactoring - a learning path ordered by the refactoring plan, modules anchored in the team's own code (before/after taken from their repository, katas extracted from real files, exercises, review checklists), curated references, for juniors and seniors. Use when a team must learn clean architecture, hexagonal, DDD, layering, testing legacy code or refactoring techniques, when a tech lead wants onboarding or workshop material about their codebase's target architecture, when developers who vibe-code need to learn craftsmanship basics, or as the training step of an architecture audit. Part of the re-arch suite; reads .re-arch/findings.json, options.json and plan.json./re-arch-auditUse this skill whenever someone questions the overall structure or health of an existing codebase and wants a verdict and a way forward, not a single code fix. This covers "is our repo/workspace/solution well structured?", layer or dependency leaks (domain code depending on the DB or framework), and projects, crates or modules nobody can untangle. It also covers an inherited legacy monolith or a vibe-coded/AI-generated app that is getting hard to change, rewrite vs incremental cleanup, tech debt assessment, refactoring roadmaps, and justifying the investment to a CTO, management or board. Also use it for team architecture rules and re-audits. Produces an evidence-based audit (domain map, weaknesses with file references, sized options from light fixes to modular monolith, hexagonal or CQRS, phased plan, management pitch, CI and AI guardrails, HTML report). JS/TS, PHP/Laravel/Symfony, .NET, Java/Kotlin, C/C++, Go, Rust. Not for one PR review, one-function refactor, security audit or cloud diagram.npx claudepluginhub gregorybabonaux/re-arch --plugin re-archOther plugins' skills for the same job