with one click
fundamentals
// Use when understanding AI-DLC methodology fundamentals. Covers core principles, iteration patterns, hat-based workflows, and the philosophy of human-AI collaboration in software development.
// Use when understanding AI-DLC methodology fundamentals. Covers core principles, iteration patterns, hat-based workflows, and the philosophy of human-AI collaboration in software development.
| name | fundamentals |
| description | Use when understanding AI-DLC methodology fundamentals. Covers core principles, iteration patterns, hat-based workflows, and the philosophy of human-AI collaboration in software development. |
| user-invocable | false |
| allowed-tools | ["Read","Grep","Glob"] |
AI-DLC (AI-Driven Development Lifecycle) is a methodology for collaborative human-AI software development. It addresses the fundamental challenge of maintaining productive AI sessions across context window limitations.
AI coding assistants face a fundamental limitation: context windows are finite. As sessions grow longer:
Traditional approaches try to work around this by:
AI-DLC takes a different approach: embrace context resets as a feature, not a bug.
Instead of fighting context limits:
Traditional development processes prescribe steps:
These become checkbox exercises that teams learn to game.
AI-DLC uses backpressure instead:
Example backpressure:
# Stop hook that fails if tests don't pass
bun test || exit 1
The AI can't complete work until tests pass. It learns to write tests and fix failures, not because a process document says to, but because the system won't let it proceed otherwise.
For detailed backpressure guidance, see the backpressure skill.
Clear criteria unlock autonomous operation:
Vague criteria (bad):
Clear criteria (good):
With clear criteria:
For detailed criteria guidance, see the completion-criteria skill.
Context windows reset. Files persist.
AI-DLC stores state in files:
intent.md - What we're buildingcompletion-criteria.md - How we know it's donediscovery.md - Domain discovery findings from elaborationscratchpad.md - Learnings and notesblockers.md - What's blocking progressiteration.json - Current hat, iteration count, workflow stateThese files are:
dlc_state_save/dlc_state_load)/clear commandsโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ SessionStart Hook โ
โ - Load state from .ai-dlc/{slug}/state/ โ
โ - Inject context (hat, intent, criteria) โ
โ - Display previous learnings โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Work Phase โ
โ - AI operates with injected context โ
โ - Backpressure guides quality โ
โ - Progress saved to .ai-dlc/{slug}/state/ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Stop Hook โ
โ - Increment iteration count โ
โ - Prompt for /clear โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ User runs /clear โ
โ - Context window wiped โ
โ - Return to SessionStart โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Each iteration:
Different phases of work require different mindsets. AI-DLC uses "hats" to formalize this.
Terminology mapping: In the AI-DLC paper, a Bolt is the smallest iteration cycle โ one pass through the hat workflow for a unit. The plugin implements Bolts as hat sequences: each unit progresses through its workflow hats (e.g., planner โ builder โ reviewer), with reviewer rejection cycling back to the previous hat. One complete pass = one Bolt. Multiple rejections = multiple Bolts for that unit.
Elaboration (/ai-dlc:elaborate) is a separate pre-execution phase. The execution workflow starts after elaboration is complete:
planner โ builder โ reviewer
| Hat | Focus |
|---|---|
| Planner | Plan this iteration (Bolt) |
| Builder | Implement to spec |
| Reviewer | Verify quality โ approve completes the Bolt, reject starts a new one |
Hat transitions are performed by reading and executing the internal skill definitions directly:
plugin/skills/execute/subskills/advance/SKILL.md and execute itplugin/skills/execute/subskills/fail/SKILL.md and execute itThese are internal skills (user-invocable: false) โ not registered slash commands.
Teams can define custom workflows in .ai-dlc/workflows.yml and custom hats in .ai-dlc/hats/:
# .ai-dlc/workflows.yml
research-first:
description: Research before building
hats: [researcher, architect, builder, reviewer]
<!-- .ai-dlc/hats/researcher.md -->
---
name: "๐ Researcher"
description: Investigates the problem space before implementing
---
# Researcher
## Overview
Investigate the problem space before implementing.
Gather context, explore options, document findings.
Passes are typed disciplinary iterations that focus each unit through a specific lens. They allow cross-functional collaboration where design or product artifacts precede code.
| Pass | Description |
|---|---|
design | Visual and interaction design; produces mockups, tokens, component specs |
product | Behavioral specification and gap analysis; produces acceptance criteria |
dev | Working implementation; produces tested, deployable code |
Most work needs only a dev pass โ this is the default when default_passes is empty ([]). Multipass is for cross-functional collaboration where design or product artifacts should precede code. Example: [design, product, dev] runs three passes in sequence, each with its own units and workflow.
Create a pass definition at .ai-dlc/passes/{name}.md with frontmatter and body instructions:
---
name: accessibility
description: Accessibility audit and remediation
available_workflows: [default]
default_workflow: default
---
# Accessibility Pass
Audit all user-facing components for WCAG 2.1 AA compliance...
The available_workflows field constrains which execution workflows the pass supports. The default_workflow is used when the requested workflow is not in the available list.
To tailor a built-in pass to your project, create .ai-dlc/passes/{name}.md where {name} matches a built-in pass (e.g., design, product, dev). The project file's body is appended under a ## Project Augmentation heading when the pass instructions are loaded. This lets you add project-specific guidance without replacing the built-in defaults.
default_passes in .ai-dlc/settings.yml (e.g., default_passes: [design, dev])passes in the intent frontmatter or intent-level settings.yml[]) means a single implicit dev pass โ the default for most workAI-DLC uses file-based state persistence in .ai-dlc/{slug}/state/:
| Scope | Location |
|---|---|
| Intent state | .ai-dlc/{slug}/state/ โ iteration state, blockers, plans |
| Intent artifacts | .ai-dlc/{slug}/ โ intent.md, unit files, discovery.md |
| Project config | .ai-dlc/settings.yml โ project-level settings |
| Key | Purpose | Written By |
|---|---|---|
iteration.json | Hat, iteration count, status | Commands |
intent.md | What we're building | /ai-dlc:elaborate |
completion-criteria.md | How we know it's done | /ai-dlc:elaborate |
discovery.md | Domain discovery findings | /ai-dlc:elaborate |
current-plan.md | Plan for this iteration | Planner hat |
scratchpad.md | Learnings and notes | AI during work |
blockers.md | What's blocking progress | AI when stuck |
AI-DLC uses Claude Code's native hook system:
AI-DLC provides slash commands:
/ai-dlc:elaborate - Start mob elaboration/ai-dlc:execute - Run autonomous execution loopplugin/skills/execute/subskills/advance/SKILL.md and execute itplugin/skills/execute/subskills/fail/SKILL.md and execute it/ai-dlc:resume - Resume lost intent/ai-dlc:reset - Clear stateState is managed via foundation library functions:
dlc_state_save "$INTENT_DIR" "<key>" "<content>" - Persist statedlc_state_load "$INTENT_DIR" "<key>" - Retrieve statedlc_state_list "$INTENT_DIR" - List keysdlc_state_delete "$INTENT_DIR" "<key>" - Remove keyโ "Let me try to fit everything in one session" โ Embrace iterations, trust state persistence
โ "Make it better" โ "Response time < 200ms for 95th percentile"
โ "I know what to build, let's just start" โ Take time to define clear criteria upfront
โ "I'll figure it out next time" โ Document blockers explicitly so next iteration can address them
AI-DLC is a methodology that:
The result is more productive AI-assisted development with fewer repeated mistakes and clearer progress toward goals.