Produce a structured
.correctless/ARCHITECTURE.mdfor any project. Two modes: reverse-engineer from existing code or greenfield directed discovery. Output includes machine-referenceable entrypoints YAML and human-readable prose sections.
/cupdate-arch invocations can maintain/carchitect runs independently of the TDD pipeline. It produces .correctless/ARCHITECTURE.md, which other skills read but do not write. After the initial architecture doc is created, use /cupdate-arch for feature-level updates. Phase 0 is standalone — no other skills are modified.
Asks which mode to use, or accepts --greenfield / --reverse-engineer flags:
If an ARCHITECTURE.md already exists with real content, offers to delete and start fresh, redirect to /cupdate-arch, or exit.
.gitignore, excluding vendor directories)--continue for morearchitecture-reviewer agent to find missed entrypoints and violated patternsWrites .correctless/ARCHITECTURE.md with these sections:
Only Entrypoints is mandatory and structured. Other sections are prose stubs marked with <!-- TODO: verify --> where uncertain.
User: /carchitect
Agent: Does this project have meaningful existing code I should analyze,
or are we designing from scratch?
1. Reverse-engineer — analyze existing code
2. Greenfield — design from scratch
User: 1
Agent: Scanning project...
Coverage Report:
- src/: 42 files (38 analyzed, 4 skipped: 2 generated, 2 < 5 lines)
- tests/: 15 files (all skipped: test files)
- config/: 3 files (all analyzed)
High-confidence patterns (>= 75%):
1. Express route handlers follow controller pattern (32/38 files)
2. All database access goes through repository layer (28/38 files)
3. Error responses use structured { error, code, message } shape (35/38 files)
Confirm all, or drill into any? (enter number to drill in)
| Reads | Writes |
|---|---|
| Source code (full project) | .correctless/ARCHITECTURE.md |
.gitignore |
|
Existing .correctless/ARCHITECTURE.md (existence check) |
| Flag | Purpose |
|---|---|
--greenfield |
Skip mode selection, enter greenfield mode |
--reverse-engineer |
Skip mode selection, enter reverse-engineer mode |
--continue |
Resume pattern review (within current session only) |
/cupdate-arch for incremental updates, or exit.--continue to review the next batch.