From groundwork
Mid-session codebase architecture review. All exploration runs in isolated subagents so findings never pollute main context. Surfaces shallow modules, coupling smells, and testability gaps as an HTML report. Use between tasks to retrospect on architecture without bloating the session context window.
How this skill is triggered — by the user, by Claude, or both
Slash command
/groundwork:arch-reviewThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Surface architectural friction in the current codebase without polluting the main session context. All heavy exploration runs in subagents — only distilled findings enter your conversation.
Surface architectural friction in the current codebase without polluting the main session context. All heavy exploration runs in subagents — only distilled findings enter your conversation.
This skill runs subagents to keep raw exploration output out of context, but the findings summary and grilling conversation still land in your main session. Two native Claude Code commands let you go further:
| Want | Do |
|---|---|
| Full branch isolation — review findings disappear if you don't like them | Type /fork, then invoke /groundwork:arch-review. Type /resume to roll back entirely, or keep the branch if findings are useful. |
| One quick question without any context cost | Skip this skill. Type /btw [your architecture question] directly — it's read-only, ephemeral, and never enters history. Best for "is this pattern ok?" asides, not full reviews. |
| Findings in main context (discuss and act on immediately) | Invoke /groundwork:arch-review directly — no fork needed. |
Recommended default: /fork before invoking. The branch costs nothing if you discard it.
NEVER explore directly. Every byte of exploration output must stay out of main context.
Spawn multiple Explore subagents simultaneously — one per codebase area. Adapt the areas to the actual project shape, but typical targets:
Each subagent prompt (fill in [AREA]):
Explore [AREA] in this codebase. Return ONLY structured findings — no prose padding.
For each issue found, return:
- file: path/to/file.ts (+ line range if relevant)
- type: shallow_module | tight_coupling | testability_gap | pass_through | naming_inconsistency
- summary: one sentence describing the friction
- deletion_test: pass | fail | n/a
- strength: strong | worth_exploring | speculative
Limit: top 5 findings per area. Be specific — file paths and function names, not vague descriptions.
Collect all findings as Task return values. Do not log them into your conversation.
After all subagents return: deduplicate by file, discard speculative findings that duplicate stronger ones, and keep ≤15 candidates total for the report.
Write a self-contained HTML report to the OS temp directory:
$TMPDIR → /tmp (Linux/macOS) → %TEMP% (Windows)arch-review-<timestamp>.htmlxdg-open (Linux), open (macOS), start (Windows)Each candidate renders as a card:
| Field | Content |
|---|---|
| Files | Which files/modules are involved (with paths) |
| Problem | Why this causes friction — use Glossary terms |
| Solution | What deepening would look like |
| Benefit | Locality gained, leverage gained, testability improvement |
| Before/After diagram | Side-by-side — Mermaid for call graphs/dependencies; hand-crafted divs for depth/mass |
| Strength badge | Strong · Worth exploring · Speculative |
End the report with a Top recommendation section: which candidate to tackle first and why.
Do NOT propose concrete interfaces or implementation details in the report.
After writing the report, present a compact list to the user (≤12 lines total):
Architecture review complete. Found N candidates:
1. [Title] — [one-line problem] (Strong)
2. [Title] — [one-line problem] (Worth exploring)
...
Report: /tmp/arch-review-<timestamp>.html
Which would you like to explore?
Once the user picks a candidate, enter a conversational grilling loop:
Side effects as decisions crystallize:
CONTEXT.md (create lazily if absent). Use project domain vocabulary, not generic terms.groundwork:coder with: the candidate description, agreed interface shape, and success criteria.These are mandatory, not advisory:
ctx_batch_execute for any file-count or structural analysis — never sequential Bash grepping.After Phase 2, invoke advisor-gate with:
advisor-gate response governs:
ctx_batch_execute covers all discoveryadvisor-gate even when findings seem obviousdiagnose — this skill finds architectural friction, not bugsGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub inizio/groundwork --plugin groundwork