architecture-refiner
Installation
SKILL.md
Architecture Refiner
Step 0: Style Selection
Before anything else, ask the user which architecture style their team uses:
"What architecture style does your team use?
- Clean Architecture (default) — layers (Domain, Application, Interface, Infrastructure), dependency inversion, command/query separation
- Hexagonal / Ports & Adapters — core domain surrounded by ports, adapters on the outside
- Modular Monolith — vertical slices, each module owns its own layers
- Custom / Define from scratch — you describe the layers and rules"
Branching:
- Option 1 → proceed to the clean architecture flow below (existing interview). Template:
./assets/template-clean-arch.md. Output:.lattice/standards/architecture.md. Config key:paths.architecture. Noarchitecture_modekey needed (defaults toclean). - Options 2–4 → proceed to the generic architecture flow. Template:
./assets/template-generic.md. Output:.lattice/standards/architecture.md. Config key:paths.architecture. Additionally, setarchitecture_mode: customin.lattice/config.yaml.
The rest of this document describes the clean architecture flow (Option 1). For the generic flow (Options 2–4), read ./assets/template-generic.md and follow its <!-- INTERVIEW GUIDANCE: --> comments. The facilitation approach, conversation style, output assembly, and document quality checks below apply to both flows — substitute the appropriate template, output path, and config key.