A structural, frontier-driven workflow for building large software systems with AI agents — without collapsing into linear context overload.
This toolkit provides a collection of Claude Code skills that implement a two-tier architectural model:
- Outer Tier (Rare, Structural): Architecture decisions made infrequently
- Inner Tier (Frequent, Local): Test-driven implementation of individual components
The workflow enforces strict TDD discipline and prevents context overload by keeping each iteration small, local, and bounded.
| Skill | Description |
|---|---|
| spec-create | Creates or updates project specifications (SPEC.md) |
| spec-clarify | Resolves ambiguous areas in specifications through targeted questions |
| project-init | Bootstraps new projects with tech stack selection and hello-world baseline |
| milestone-plan-all | Plans implementation milestones from specification |
| Skill | Description |
|---|---|
| arch-init | Initializes architecture documentation with root node |
| arch-decompose | Decomposes architecture nodes into child components |
| Skill | Description |
|---|---|
| milestone-init | Derives per-node feature requirements for current milestone |
| node-prep | Prepares nodes with skeleton code and failing tests |
| node-build | Implements prepared nodes following TDD workflow |
| milestone-test-add | Adds tests for modified nodes before milestone wrapup |
| milestone-integrate | Creates integration tests to verify features work together |
| milestone-wrapup | Verifies milestone completion and transitions to next milestone |
| Skill | Description |
|---|---|
| node-dispatch | DEPRECATED: Use arch-decompose directly |
| Skill | Description |
|---|---|
| issue-create | Creates feature request or bug report documents |
| issue-plan | Creates task roadmap with TDD discipline |
| issue-resolve | Executes issue resolution in batches with review checkpoints |
| quick-patch | Quick fix for trivial bugs/features (TDD shortcut) |
flowchart TB
subgraph Setup["Setup (One-time)"]
S1["/spec-create"] --> S2["/spec-clarify"]
S2 --> S3["/project-init"]
S3 --> S4["/milestone-plan-all"]
end
subgraph Architecture["Architecture (One-time)"]
A0["/arch-init"] --> A1["/arch-decompose"]
A1 --> A2{More Nodes?}
A2 -->|Yes| A1
A2 -->|No| A3[("Architecture complete")]
end
subgraph Implementation["Implementation (Per Milestone)"]
I1["/milestone-init"] --> I2["/node-prep"]
I2 --> I3["/node-build"]
I3 --> I4{More Nodes?}
I4 -->|Yes| I2
I4 -->|No| I5["/milestone-test-add"]
I5 --> I6["/milestone-integrate"]
I6 --> I7["/milestone-wrapup"]
end
subgraph Issue["Issue Management (Optional)"]
J1["/issue-create"] --> J2["/issue-plan"]
J2 --> J3["/issue-resolve"]
end
Setup --> Architecture
Architecture -->|All nodes elaborated| Implementation
I6 -->|More milestones| I1
I6 -->|All complete| Done[("Done")]
Implementation -.->|User requests| Issue
style Setup fill:#e1f5fe
style Architecture fill:#e8f5e8
style Implementation fill:#fff3e0
style Issue fill:#fce4ec
style Done fill:#e0e0e0
spec-create → spec-clarify → project-init → milestone-plan-all
- spec-create: Create SPEC.md with requirements
- spec-clarify: Resolve ambiguities
- project-init: Select tech stack and create baseline project
- milestone-plan-all: Break into manageable milestones
arch-init → arch-decompose (repeat until full tree)
- arch-init: Initialize architecture documentation with root node
- arch-decompose: Decompose nodes until architecture tree is complete
Run once after Setup to fully elaborate the architecture.
milestone-init → node-prep → node-build (repeat) → milestone-test-add → milestone-integrate → milestone-wrapup
- milestone-init: Define what each node must provide for this milestone
- node-prep: Generate skeleton + failing tests (TDD - red state)
- node-build: Implement to make tests pass (green state)
- milestone-test-add: Add tests for nodes modified during implementation (should pass)
- milestone-integrate: Create integration tests to verify features work together
- milestone-wrapup: Verify completion and transition to next milestone
When milestone is complete, run milestone-init for the next milestone.
For bug fixes or feature requests (triggered by user):
issue-create → issue-plan → issue-resolve
- issue-create: Document the issue
- issue-plan: Create task roadmap with TDD
- issue-resolve: Execute in batches with checkpoints
Architecture nodes progress through these states:
| State | Meaning |
|---|---|
pending |
Awaiting contract definition (architecture phase) |
atomic |
Leaf node in architecture (architecture phase) |
decomposed |
Non-leaf node in architecture (architecture phase) |
planned |
Node has milestone contract, awaiting preparation |
prepared |
Skeleton + failing tests created |
implemented |
Logic implemented, tests passing |
modified |
Parent implementation changed this node's behavior; needs additional tests |
The toolkit uses a stable-topology, evolving-contract approach where:
- Architecture tree is fully elaborated early (all nodes exist from start)
- Nodes start as
pending, becomeatomicordecomposedduring architecture - Entering a new milestone reverts state to
plannedfor contract expansion modifiedstate tracks nodes whose behavior changed during parent implementation
- Stable topology, evolving contract - Architecture tree is fully elaborated early and remains fixed; milestones expand what each node must provide
- One-level decomposition - Only decompose one level at a time to prevent context explosion
- TDD enforced - Tests must fail before implementation; never weaken tests to make them pass
- Bounded scope - Each iteration is small, local, and context-efficient
- Behavioral scope gating - Scope is controlled by limiting required features, not by hiding nodes
- Contract invalidation - When entering a new milestone, node status reverts to
plannedfor re-validation; code remains unchanged
Invoke skills directly using /skill-name:
/spec-create build a todo app
/project-init Python
/milestone-plan-all MVP first
/arch-init
/arch-decompose
/milestone-init
/node-prep
/node-build
/milestone-test-add
/milestone-wrapup
/issue-create add dark mode
/issue-plan 001
/issue-resolve 001
/quick-patch fix login button
scripts/security_scan_all.py- Run security scans on all skills
uv run scripts/security_scan_all.py