/re-arch:re-arch-reportfrom re-arch
Renders .re-arch/*.json architecture audit results into a self-contained HTML report with management summary, domain map, findings, options comparison, and refactoring plan. Validates inputs, checks responsive rendering, and exports an Open Knowledge Format bundle.
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.
One HTML file the team can open on a phone in a meeting, send to management, or print to PDF. It renders whatever .re-arch/*.json files exist, so it also works after a partial run.
Validate the inputs.
python3 <this-skill-dir>/scripts/validate.py <repo>/.re-arch
It checks the contract (enums, cross-file ids, evidence files and lines, plan coverage of critical/high findings and hotspots, a light option and a "do nothing" option present). Fix every error in the JSON (never in the renderer) and read the warnings.
Render:
python3 <this-skill-dir>/scripts/render.py <repo>/.re-arch
Output: <repo>/.re-arch/report.html and <repo>/.re-arch/architecture.md (domain map and context view as Mermaid, for the repository's docs), standard library only, no network needed to view it (no external fonts, scripts or images). Language of the labels comes from meta.json lang (fr or en; other languages fall back to English labels with your content strings unchanged, so tell the person if that happens).
Check the rendering, do not assume it.
python3 <this-skill-dir>/scripts/check_render.py <repo>/.re-arch/report.html
It visits every tab at 390px and 1280px, fails on horizontal scroll or overflowing elements, and writes screenshots to .re-arch/screenshots/. Look at the 390px screenshots of the summary and the domain map yourself (Read the PNG): text clipped in a domain box, unreadable labels or an empty section are content problems to fix in the JSON (shorter domain names, fewer words in a title). If Playwright is not available, say so and explain how to check by hand with browser device emulation.
Export the knowledge bundle (OKF).
python3 <this-skill-dir>/scripts/to_okf.py <repo>/.re-arch
Writes <repo>/.re-arch/okf/, an Open Knowledge Format v0.2 bundle: Markdown concepts with YAML frontmatter that people, coding agents and knowledge catalogs read without tooling. One concept per domain (responsibility, entities, code, dependencies, target style, rules, known weaknesses), per external system, per architecture rule, plus the target decision, the roadmap, the system overview (including what looks wrong but is intended) and a log.md that keeps its history across re-audits. Trust is explicit: generated.by: re-arch/<version>, status: draft and no verified until the team validated the domain map (validated_by_team) or chose the option (decision.by: team); then verified: human:<meta.reviewed_by or team>. stale_after defaults to 120 days (--stale-days), 60 for the roadmap.
The script leaves out what must not be committed: knowledge distribution, the pitch, security findings and open security phases (described generically), where secrets live, and masks secret-like strings; it ends with the spec section 11 conformance check (to_okf.py --check <dir> runs it alone). Read its last line: 0 error expected.
Deliver the HTML file. In the message: the main weakness, the recommended or retained option with its two sizes, the size of the first phase, and the decision requested from management if any. Mention that the report prints cleanly to PDF (all tabs expand when printing) and that the screenshots are available if they want to paste the domain map somewhere.
| Tab | Source | Audience |
|---|---|---|
| Summary | progress since the previous audit (diff.json), pitch.json (or a minimal summary), key figures from scan | management first, everyone |
| Domains | domains.json: domain map and C4 context view (separate layouts for desktop and phone), cards, fuzzy zones, shared parts | everyone |
| Diagnosis | findings.json: strengths, findings filterable by severity with fix size, evidence, impacts, non-findings, open questions | tech |
| Options | options.json: quality scenarios matrix, comparison with both sizes, retained or recommended option, prerequisites, rejected styles, opportunities | tech and decision-makers |
| Plan | plan.json: phases timeline, sizes with rationale, steps as checklists, exit criteria, rollback, stop points | tech leads |
| Upskilling | academy.json | team, managers |
| AI & CI guardrails | guardrails.json | tech |
| Appendix | scan.json: graph sources, build units, DI bindings, knowledge distribution (pseudonymised), dependency hygiene, routes, hotspots, modules, cycles, limits | tech |
Links between ids work across tabs (a risk links to its finding, a phase to the findings it fixes).
People will comment ("rename this domain", "phase 2 is too big"). Edit the JSON file concerned, re-run render.py and check_render.py. Never hand-edit report.html: the next render overwrites it.
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-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./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./re-arch-domainsIdentifies the business domains of an existing application (bounded-context candidates) from its code, data model, routes, dependency-injection wiring and git history, and draws a domain map with dependencies, external systems (C4 context view), shared technical parts, fuzzy zones and a confidence level per domain. Use when someone wants to understand what an application is made of, visualise its functional areas, prepare a modular monolith or microservice split, organise a refactoring per domain, or as the domain-mapping step of an architecture audit. Works even when folder names mean nothing, as in vibe-coded apps. Part of the re-arch suite; needs .re-arch/scan.json from re-arch-scan./re-arch-guardrailsGenerates the guardrails that keep a codebase in its chosen architecture - rules for AI coding agents (root and per-domain AGENTS.md, CLAUDE.md, Cursor rules), a project skill telling agents where new code goes, agent hooks that run the architecture check during the agent's own turn, fitness functions for CI with a frozen baseline (dependency-cruiser, deptrac, Pest arch, NetArchTest, ArchUnit, Spring Modulith, go-arch-lint, depguard, Cargo workspaces, cargo-deny, CMake targets, plus a language-agnostic checker), an ADR (MADR) and a review checklist. Use after choosing a target architecture, when AI agents keep putting code in the wrong place, to enforce layering or module boundaries, set up architecture tests, or frame vibe coding. Part of the re-arch suite./re-arch-optionsProposes and compares 2 to 4 target architectures for an existing codebase, each sized by human understanding cost and implementation size (S, M, L, XL), scored against the business's quality scenarios, justified by signals in the code and possibly different per domain. Covers targeted refactoring, transaction script, layered service/repository, feature folders, vertical slices, modular monolith, clean/hexagonal/onion, rich domain model, CQRS, event sourcing, domain events, anti-corruption layers and feature-sliced design, with reasons for rejected styles. Never defaults to hexagonal. Use when choosing which architecture to move to, comparing clean vs hexagonal vs simpler options, deciding whether event sourcing or CQRS is worth it, or as the options step of an architecture audit. Part of the re-arch suite.Other plugins' skills for the same job