/re-arch:re-arch-academyfrom re-arch
Generates team-specific training material for architecture refactoring (clean architecture, hexagonal, DDD, layering) using the team's own code as examples. Part of the re-arch suite.
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.
Generic tutorials on clean architecture are everywhere and change little in a team. What changes practice is material built on the team's own code: "here is our route.ts, here is why it hurts, here is the same code after, now you do the next one". That is the only kind of material this skill produces.
.re-arch/findings.json (what is wrong), .re-arch/options.json (retained target and its concepts), .re-arch/plan.json (when each concept is needed), .re-arch/domains.json, .re-arch/guardrails.json if present, .re-arch/meta.json (team seniority, language). Read the code files the modules will use as examples.
understanding_detail.concepts), the findings (each recurring finding is a missing habit) and the plan's techniques (characterisation tests, strangler fig...). Drop what the team visibly masters already (consistent use of a pattern in the code is evidence)..re-arch/academy/NN-slug.md using references/module-template.md. Each module:
references/reading.md, chapter-level when possible;foundation (every developer), practitioner (people who will lead refactoring phases), advanced (patterns used locally, such as event sourcing scoped to one domain).academy/README.md): suggested sessions (duration, format: mob refactoring on a kata, code review dojo, lunch talk on the ADR), and who could animate them..re-arch/academy.json (index used by the report) and .re-arch/academy/README.md (path and how to use the material).One module per recurring habit, not per finding: usually 3 to 5 modules for a small repository or team, 6 to 10 for a large one. Fewer, well-anchored modules beat a complete curriculum nobody follows.
.re-arch/academy.json{
"modules": [
{
"id": "A1", "title": "...", "audience": "all developers", "level": "foundation", "duration": "30 min read + 1h kata",
"why_here": "F1, F3: pricing and stock rules live in HTTP handlers", "findings": ["F1", "F3"],
"concepts": ["pure function", "service layer"], "file": "academy/01-business-rules-out-of-handlers.md"
}
],
"path": [{"step": 1, "modules": ["A1", "A2"], "when": "before phase P0"}],
"reading": [{"title": "Working Effectively with Legacy Code", "author": "Michael Feathers", "why": "characterisation tests and seams, needed for P0"}]
}
Strings in the deliverable language.
List the path (steps, modules, when) in the conversation and point to academy/README.md.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub gregorybabonaux/re-arch --plugin re-arch10 skills in this plugin
/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./re-arch-diagnoseDiagnoses the architectural weaknesses of an existing codebase with evidence (file and line) for every finding, rated by severity and fix size, explained in technical and business impact, with the strengths to keep and what looks bad but is fine. Covers layering, business logic in controllers or UI, coupling and cycles, duplicated rules, domain boundaries, data model, testability, state, error handling, configuration and secrets, dependency hygiene, knowledge concentration, and the tells of vibe-coded or AI-generated code. Use for architecture-level code reviews, technical debt assessments, "what is wrong with this codebase", before a refactoring plan, or as the diagnosis step of an architecture audit. Part of the re-arch suite; reads .re-arch/scan.json and domains.json.Other plugins' skills for the same job