re-arch
English | Français | Español | Deutsch | Português | Italiano | 简体中文 | 日本語 · Website

A suite of agent skills that audits the architecture of an existing application, proposes target architectures sized by what they cost to understand and to build, plans the refactoring, makes the case to management, frames AI coding agents and CI around the chosen target, and produces training material built on the team's own code. Designed for any codebase, and especially for vibe-coded or AI-generated ones.
Supported ecosystems: JavaScript / TypeScript, PHP, .NET (C#), Java / Kotlin, C / C++, Go, Rust.
What you get
Run re-arch-audit on a repository and you get, in .re-arch/:
- a domain map of the application (business areas, dependencies, external systems as a C4 context view, fuzzy zones, confidence per domain), even when the folder structure means nothing;
- a diagnosis where every finding cites files and lines, with its impact for the team and for the business and its fix size, plus the strengths to keep, what looks bad but is fine, and open questions for the maintainers;
- 2 to 4 target options (from "targeted refactoring, same structure" to layered, vertical slices, modular monolith, clean / hexagonal, CQRS or event sourcing when the code justifies them), each sized in understanding cost and implementation size (S, M, L, XL), scored against the business's quality scenarios, possibly different per domain, with the styles considered and rejected;
- a phased refactoring plan in T-shirt sizes with explicit criteria: safety net of characterisation tests first, steps with a
verify command, exit gates, rollback, stop points, and coverage of every critical and high finding;
- a pitch for management: risks, options including doing nothing, investment as a capacity range with its derivation, milestones, indicators, decision requested;
- guardrails: root and per-domain AGENTS.md, a project skill telling agents where new code goes, an agent hook that runs the architecture check in the agent's own turn, fitness functions for CI adopted with a frozen baseline (native tools per ecosystem plus a language-agnostic checker), an ADR (MADR 4), a review checklist;
- an academy: a learning path aligned with the plan, modules anchored in real files of the repo (before/after, katas, review questions), curated reading;
- a responsive HTML report gathering everything, validated against the data contract and checked at phone width, printable to PDF, plus Mermaid diagrams for the repo's docs;
- an Open Knowledge Format (OKF v0.2) bundle of the architecture knowledge (system, domains, external systems, decision, rules, roadmap, history), to commit under
docs/architecture/okf/ for people, coding agents and knowledge catalogs; trust fields say what the team validated, and sensitive content stays out;
- re-audits that show what was resolved, what is new and how the metrics moved.
Example report
Generated by re-arch on Factureo, a fictional vibe-coded invoicing app written for the evals (the report is in French). Download the full report and open it in a browser.
Domain map: business domains and their dependencies, mutual dependencies in orange.

Options: 2 to 4 targets, each sized in understanding cost and implementation size, scored against the business's quality scenarios.

Plan: phases with their size, exit criteria, rollback and stop points.

On a phone: every tab is checked at 390 px wide.

Skills