AI-DLC commands and agents
AI-DLC commands and agents
Complete reference for the AI-DLC plugin's slash commands, specialized agents, artifact structure, state management, and depth levels.
Commands
AI-DLC provides five slash commands that drive the lifecycle.
| Command | Purpose | Phase |
|---|---|---|
/ai-dlc:inception | Execute Inception phase (planning and architecture) | Inception |
/ai-dlc:construction | Execute Construction phase (design and implementation) | Construction |
/ai-dlc:fix | Fast-path TDD-first bug fix workflow with optional Dr Zero handoff | Fast-path |
/ai-dlc:status | Check workflow state and progress | Any |
/ai-dlc:config | View or modify AI-DLC configuration | Pre-workflow |
/ai-dlc:inception
Execute the Inception phase to determine WHAT to build and WHY.
Arguments:
| Argument | Description |
|---|---|
--skip-approval | Skip approval gates (testing and automation only) |
--audit-file=FILE | Custom audit log location (default: aidlc-docs/audit.md) |
Always executes:
- Workspace detection
- Requirements analysis (interactive questionnaire)
- Workflow planning
Conditionally executes (based on complexity assessment):
- Reverse engineering (brownfield projects with no existing artifacts)
- Feasibility analysis (product features, not internal tooling)
- Value case (projects requiring ROI justification)
- User stories (user-facing features with multiple personas)
- Application design (new components or services needed)
- Units generation (system decomposition for multi-component work)
Output: Inception artifacts in aidlc-docs/inception/
/ai-dlc:construction
Execute the Construction phase to determine HOW to build it and generate the implementation.
Arguments:
| Argument | Description |
|---|---|
--unit=NAME | Execute a specific unit only (skips other units) |
--skip-approval | Skip approval gates (testing and automation only) |
Per-unit stages (conditionally executed based on workflow plan):
- Functional design (new data models or complex business logic)
- NFR requirements (performance, security, scalability concerns)
- NFR design (patterns for implementing NFRs)
- Infrastructure design (cloud resources, deployment architecture)
- Code generation (always executes, two-phase plan-then-execute)
After all units:
- Build and test (always executes, generates comprehensive instructions)
Output: Construction artifacts in aidlc-docs/construction/
/ai-dlc:fix
Fast-path TDD-first bug-fix workflow for well-understood bugs that do not need the full
Inception→Construction pipeline. Runs three stages inline (no sub-agent dispatch except the
optional builder handoff) and includes an escape hatch that redirects to /ai-dlc:inception
when requirements gaps are detected mid-flow.
Arguments:
| Argument | Description |
|---|---|
[issue-number] | Optional issue / ticket to anchor the fix workflow |
--skip-tests | Skip the test-specification gate (use only when tests cannot be added) |
--no-drzero | Skip the optional Dr Zero handoff in Stage 3 |
Stages:
- Bug Characterization — analyse the bug, locate affected code, assess impact
- Test Specification — write failing tests first; present an approval gate before code changes
- Builder Handoff — dispatch to Dr Zero or
code-generatorto make the tests pass
Output: Fix artifacts in aidlc-docs/fix/<issue-id>/
/ai-dlc:status
Check the current workflow state and progress at any time.
Arguments:
| Argument | Description |
|---|---|
--verbose | Show complete audit trail and full file list |
Displays:
- Current phase and stage
- Completed stages with approval status
- Skipped stages with rationale
- Pending stages
- Recent audit entries (last 10)
- Generated artifacts list
- Next recommended action
/ai-dlc:config
View or modify AI-DLC configuration.
View current configuration:
/ai-dlc:config
Set a configuration value:
/ai-dlc:config --set auto_approval=false
/ai-dlc:config --set verbose_logging=true
Configuration options:
| Option | Type | Default | Description |
|---|---|---|---|
rules_directory | String | ~/.claude/aidlc-rules/aws-aidlc-rules | Path to AI-DLC rules |
output_directory | String | aidlc-docs | Where to write artifacts |
auto_approval | Boolean | false | Skip approval gates (not recommended for production) |
verbose_logging | Boolean | true | Detailed audit logs |
skip_phases | Array | [] | Comma-separated stages to skip |
depth_preference | String | standard | Preferred depth: minimal, standard, or comprehensive |
You can also configure these values in a .ai-dlc.json file at the project root:
{
"rules_directory": "~/.claude/aidlc-rules/aws-aidlc-rules",
"output_directory": "aidlc-docs",
"auto_approval": false,
"verbose_logging": true,
"skip_phases": [],
"depth_preference": "standard"
}
Agents
AI-DLC delegates specialized work to purpose-built agents. Each agent operates within a specific phase and produces artifacts in a defined domain.
| Agent | Purpose | Phase |
|---|---|---|
requirements-analyst | Agentic requirements gathering via interactive Q&A | Inception |
workflow-planner | Adaptive workflow planning and complexity assessment | Inception |
feasibility-agent | Competitive landscape analysis and go/no-go scoring | Inception |
value-case-agent | ROI analysis with cost estimation and scenario modeling | Inception |
application-design-agent | Component catalog, service boundaries, dependency mapping | Inception |
functional-design-agent | Business logic models, business rules, domain entities | Construction |
nfr-analyst | Non-functional requirements assessment (performance, security, scalability) | Construction |
nfr-design-agent | NFR implementation patterns and logical components | Construction |
infrastructure-design-agent | Cloud resource mapping and deployment architecture | Construction |
code-generator | Two-phase code generation (plan then execute) with tests | Construction |
critical-lens-agent | Adversarial review using 5 risk categories with gate enforcement | Both |
requirements-analyst
The key innovation of AI-DLC. Uses the Claude Agent SDK's AskUserQuestion tool to
gather requirements through interactive questionnaires instead of manual markdown editing.
Inputs:
- Workspace detection results
- Reverse engineering artifacts (brownfield projects)
- AI-DLC rules from
~/.claude/aidlc-rules/
Outputs:
aidlc-docs/inception/requirements/requirements.md
Process:
- Loads workspace context
- Analyzes intent to determine depth level
- Generates adaptive question set (5--30 questions based on depth)
- Presents questions one at a time with multiple-choice options
- Uses branching logic to skip irrelevant questions
- Generates requirements document with traceability matrix
- Requests user approval
workflow-planner
Analyzes request complexity and determines which stages to execute at what depth.
Assessment factors:
- Request clarity (well-defined vs. ambiguous)
- Scope (single file vs. multi-component)
- Complexity (simple logic vs. complex system)
- Risk (low impact vs. security-critical)
- Codebase state (greenfield vs. brownfield)
Outputs:
aidlc-docs/inception/plans/workflow-planning.md(execution plan with rationale)- Mermaid workflow visualization with color-coded stages
Color coding in workflow diagrams:
- Green (ALWAYS) -- will execute regardless
- Blue (CONDITIONAL-YES) -- will execute based on assessment
- Pink (CONDITIONAL-NO) -- skipped based on assessment
feasibility-agent
Performs competitive landscape analysis and feasibility assessment before committing to full requirements gathering.
Capabilities:
- Web search for competitive landscape scanning (max 5 queries)
- Go/no-go decision matrix with weighted scoring (Market Viability 40%, Technical Feasibility 35%, Differentiation 25%)
- Anti-hallucination safeguards:
[Inferred -- needs validation]markers, source citations, confidence levels
Skips automatically for: internal tooling, bug fixes, simple enhancements, infrastructure work.
Outputs:
aidlc-docs/inception/feasibility/feasibility-assessment.md
value-case-agent
Produces ROI analysis with cost estimation, benefit quantification, and scenario modeling.
Capabilities:
- Development, infrastructure, maintenance, and opportunity cost estimation
- Revenue, cost savings, and risk reduction benefit analysis
- Conservative (30% adoption) and optimistic (80% adoption) scenarios
- Break-even timeline and 3-year projections
Outputs:
aidlc-docs/inception/value-case/value-case.md
application-design-agent
Designs application components, services, and their dependencies during the Inception phase.
Outputs (in aidlc-docs/inception/application-design/):
components.md-- component catalog with responsibilitiescomponent-methods.md-- method signatures and business logicservices.md-- service layer design and boundariescomponent-dependency.md-- dependency mapping diagrams
functional-design-agent
Designs business logic models, rules, and domain entities during the Construction phase (per-unit).
Outputs (in aidlc-docs/construction/{unit}/functional-design/):
business-logic-model.md-- business rules and state machinesbusiness-rules.md-- structured rule catalogdomain-entities.md-- data structures and relationships
nfr-analyst
Assesses and documents non-functional requirements during the Construction phase.
Analyzes: performance (latency, throughput), security (auth, encryption), scalability (load, concurrency), and tech stack selection.
Outputs (in aidlc-docs/construction/{unit}/nfr-requirements/):
nfr-requirements.md-- categorized NFR specificationstech-stack-decisions.md-- technology selection with rationale
nfr-design-agent
Designs patterns for implementing non-functional requirements.
Outputs (in aidlc-docs/construction/{unit}/nfr-design/):
nfr-design-patterns.md-- patterns for each NFR category (caching, rate limiting, etc.)logical-components.md-- NFR-specific components
infrastructure-design-agent
Maps services to cloud resources and designs deployment architecture.
Outputs (in aidlc-docs/construction/{unit}/infrastructure-design/):
infrastructure-design.md-- service-to-infrastructure mappingdeployment-architecture.md-- topology and resource specifications
code-generator
Generates implementation code with comprehensive tests using a two-phase approach.
Phase 1 (planning): Creates a detailed plan listing every file to generate, with checkboxes for tracking. Includes implementation steps, testing strategy, quality standards checklist, and dependency list.
Phase 2 (execution): After plan approval, generates source code, unit tests, integration tests, and documentation. Updates plan checkboxes as each file completes.
Quality targets:
- 80%+ statement coverage
- 75%+ branch coverage
- 90%+ function coverage
- No hardcoded secrets
- Input validation on all user inputs
- Comprehensive error handling
Outputs (in aidlc-docs/construction/{unit}/code/):
- Source code files
- Test files (unit, integration, fixtures, mocks)
- Documentation files
- Configuration files
critical-lens-agent
Performs adversarial review at stage boundaries. Challenges assumptions, identifies risks, and enforces quality gates.
Five challenge categories:
- Assumption risk -- unstated assumptions, default values treated as facts
- Scope discipline -- scope creep, gold-plating, unnecessary complexity
- Feasibility risk -- technical feasibility, unproven technology, integration concerns
- Security/compliance risk -- data handling, auth boundaries, trust boundary crossings
- Operational risk -- deployment risks, monitoring gaps, error handling deficiencies
Severity levels: blocker, high, medium, low (with confidence scoring 0.0--1.0)
Gate enforcement:
- FAIL -- unresolved blocker or high findings (must resolve before proceeding)
- PASS-WITH-WARNINGS -- unresolved medium findings (workflow continues with notice)
- PASS -- no unresolved findings above low
Dispositions: accept (with justification), mitigate (with action plan), defer (with target milestone), reject (with evidence-based rationale)
Artifact directory structure
aidlc-docs/
inception/
plans/
workspace-detection.md # Codebase analysis results
workflow-planning.md # Approved execution plan
story-generation-plan.md # User stories plan (if executed)
unit-of-work-plan.md # Units breakdown (if executed)
reverse-engineering/ # Brownfield only
architecture.md # Existing architecture analysis
component-inventory.md # Component catalog
api-documentation.md # API surface documentation
dependencies.md # Dependency graph
technology-stack.md # Tech stack inventory
feasibility/ # Product features only
feasibility-assessment.md # Competitive analysis and scoring
value-case/ # When ROI justification needed
value-case.md # Cost/benefit analysis
requirements/
requirements.md # Generated from Q&A (key artifact)
requirement-verification-questions.md
user-stories/ # When user-facing features
stories.md # User stories with acceptance criteria
personas.md # User personas
application-design/ # When new components needed
components.md # Component catalog
component-methods.md # Method signatures
services.md # Service layer design
component-dependency.md # Dependency diagrams
reviews/ # Critical lens findings
CLR-inception-{stage}-{ts}.md # Review artifacts
construction/
plans/
{unit}-functional-design-plan.md
{unit}-nfr-requirements-plan.md
{unit}-code-generation-plan.md # File checklist with completion status
{unit-name}/ # One directory per unit of work
functional-design/
business-logic-model.md
business-rules.md
domain-entities.md
nfr-requirements/
nfr-requirements.md
tech-stack-decisions.md
nfr-design/
nfr-design-patterns.md
logical-components.md
infrastructure-design/
infrastructure-design.md
deployment-architecture.md
code/
[generated source code, tests, docs]
reviews/
CLR-construction-{stage}-{ts}.md
build-and-test/
build-instructions.md
unit-test-instructions.md
integration-test-instructions.md
build-and-test-summary.md
operations/ # Placeholder for future
[deployment artifacts]
aidlc-state.md # Workflow state tracking
audit.md # Complete audit trail
State file reference
The file aidlc-state.md tracks workflow progress and enables session resumption.
Key fields:
| Field | Description |
|---|---|
current_phase | Active phase: inception, construction, or operations |
current_stage | Active stage within the current phase |
depth_level | Selected depth: minimal, standard, or comprehensive |
executed_stages | List of completed stages with timestamps and approval status |
skipped_stages | List of skipped stages with rationale |
pending_stages | Ordered list of stages still to execute |
units | List of work units with per-unit progress (construction phase) |
started_at | Workflow start timestamp (ISO 8601) |
last_updated | Last state change timestamp (ISO 8601) |
When you resume an interrupted session, run /ai-dlc:status to see the current state.
The workflow picks up at the last pending stage.
Audit trail reference
The file audit.md provides a complete, append-only log of every interaction.
Entry format:
Each entry includes:
- Timestamp -- ISO 8601 format
- Phase and stage -- where in the lifecycle this occurred
- Actor -- user or agent name
- Action type -- input, response, approval, stage-transition, or finding
- Content -- the raw content (user input is never summarized)
Example entry:
## Stage Transition
**Timestamp**: 2026-04-01T14:30:00Z
**Phase**: inception
**Stage**: requirements-analysis -> workflow-planning
**Actor**: system
**Action**: stage-transition
**Details**: Requirements analysis completed and approved.
Proceeding to workflow planning.
---
The audit trail serves as the compliance record for the entire workflow. It is append-only -- entries are never modified or deleted.
Depth levels
| Aspect | Minimal | Standard | Comprehensive |
|---|---|---|---|
| Use case | Bug fixes, typos, config tweaks | Normal features, moderate complexity | Complex systems, high-risk changes |
| Requirements questions | 5--7 | 12--15 | 20--30 |
| Inception stages | 3 (core only) | 5--6 | All available |
| Construction stages per unit | Code generation only | Some design + code gen | All design + code gen |
| Question categories | Core functionality, tech stack, constraints | + NFRs, acceptance criteria | + detailed data models, edge cases, compliance |
| Typical files affected | 1--2 | 3--10 | 10+ |
| Risk tolerance | Low risk only | Standard risk | High risk acceptable |
The workflow planner recommends a depth level based on its complexity assessment. You can override the recommendation at the approval gate by saying something like "Use minimal depth for faster execution" or "Use comprehensive depth -- this is security-critical."