Skip to content

Latest commit

 

History

68 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

arch-kit

A structural, frontier-driven workflow for building large software systems with AI agents — without collapsing into linear context overload.


Overview

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.


Skills

Specification & Planning

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

Architecture

Skill Description
arch-init Initializes architecture documentation with root node
arch-decompose Decomposes architecture nodes into child components

Milestone Implementation

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

Deprecated

Skill Description
node-dispatch DEPRECATED: Use arch-decompose directly

Issue Management

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)

Workflow

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
Loading

Setup (One-time per project)

spec-create → spec-clarify → project-init → milestone-plan-all
  1. spec-create: Create SPEC.md with requirements
  2. spec-clarify: Resolve ambiguities
  3. project-init: Select tech stack and create baseline project
  4. milestone-plan-all: Break into manageable milestones

Architecture (One-time)

arch-init → arch-decompose (repeat until full tree)
  1. arch-init: Initialize architecture documentation with root node
  2. arch-decompose: Decompose nodes until architecture tree is complete

Run once after Setup to fully elaborate the architecture.

Implementation (Per Milestone)

milestone-init → node-prep → node-build (repeat) → milestone-test-add → milestone-integrate → milestone-wrapup
  1. milestone-init: Define what each node must provide for this milestone
  2. node-prep: Generate skeleton + failing tests (TDD - red state)
  3. node-build: Implement to make tests pass (green state)
  4. milestone-test-add: Add tests for nodes modified during implementation (should pass)
  5. milestone-integrate: Create integration tests to verify features work together
  6. milestone-wrapup: Verify completion and transition to next milestone

When milestone is complete, run milestone-init for the next milestone.

Issue Management (Optional)

For bug fixes or feature requests (triggered by user):

issue-create → issue-plan → issue-resolve
  1. issue-create: Document the issue
  2. issue-plan: Create task roadmap with TDD
  3. issue-resolve: Execute in batches with checkpoints

Node State Model

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, become atomic or decomposed during architecture
  • Entering a new milestone reverts state to planned for contract expansion
  • modified state tracks nodes whose behavior changed during parent implementation

Key Principles

  • 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 planned for re-validation; code remains unchanged

Usage

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

  • scripts/security_scan_all.py - Run security scans on all skills
uv run scripts/security_scan_all.py

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages