Version: 1.0.0 Time Required: 5 minutes
This tutorial walks you through creating your first automated feature with AD-SDLC.
- Prerequisites
- Step 1: Setup (1 minute)
- Step 2: Initialize Project (1 minute)
- Step 3: Describe Your Feature (30 seconds)
- Step 4: Watch the Pipeline (2+ minutes)
- Step 5: Review Results (30 seconds)
- What's Next
Before starting, ensure you have:
- ✅ AD-SDLC CLI installed (see below)
- ✅ API key configured (
export ANTHROPIC_API_KEY="...") - ✅ GitHub CLI authenticated (
gh auth login) - optional; not required for local mode
git clone https://github.com/kcenon/claude_code_agent.git
cd claude_code_agent
npm install
npm run build
npm link # makes 'ad-sdlc' available globallyNeed more options? See the Installation Guide.
Verify your environment is ready:
# Check AD-SDLC is installed
ad-sdlc --version
# Check API key is set
echo $ANTHROPIC_API_KEY | head -c 10
# Should show: sk-ant-api
# Check GitHub CLI (optional)
gh auth statusAll checks passed? Let's continue!
Create a new project with the quick setup:
# Create and initialize a new project
ad-sdlc init my-first-project --quick
# Navigate to the project
cd my-first-projectThis creates the following structure:
my-first-project/
├── .claude/agents/ # Agent definitions
├── .ad-sdlc/
│ ├── config/ # Configuration
│ ├── templates/ # Document templates
│ └── scratchpad/ # Agent state
└── docs/ # Generated documents
Tell Claude what you want to build:
claude "Implement a REST API endpoint for user registration with email and password"This starts the automated pipeline. Claude will:
- Detect project mode (Greenfield, Enhancement, or Import)
- Collect and clarify requirements
- Generate documentation (PRD, SRS, SDP, SDS, DBS, TM, SVP, TD, UI Specs)
- Create GitHub issues from design components
- Implement the code in parallel
- Validate and review the results
The Greenfield pipeline runs through 19 stages, grouped into logical phases. Here is a simplified view of the key phases:
Phase Status
──────────────────────────────────────────
[Setup]
Initialization Done
Mode Detection Done
[Requirements]
Collection Done
PRD Generation Done
SRS Generation Done
[Design]
SDP Generation Done
SDS + DBS Generation Done
Parallel Analysis (TM/TD/UI) Done
[Planning]
Issue Generation Done
SVP Generation Done
[Execution]
Implementation In Progress (3/5 issues)
Validation Pending
Review Pending
Doc Indexing Pending
The pipeline coordinates specialized agents across each phase:
Setup -- The Project Initializer creates the project structure, then the Mode Detector identifies whether this is a Greenfield, Enhancement, or Import project.
Requirements -- The Collector gathers requirements from text, files, and URLs. The PRD Writer produces a Product Requirements Document, and the SRS Writer produces a Software Requirements Specification.
Design -- The SDP Writer generates a Software Development Plan. The SDS Writer generates a Software Design Specification along with a Database Specification (DBS). Then the TM Writer, TD Writer, and UI Writer run in parallel to produce a Threat Model, Tech Decisions document, and UI Specs.
Planning -- The Issue Generator creates GitHub Issues from the SDS components. The SVP Writer creates a Software Verification Plan.
Execution -- The Controller distributes work to Worker agents that implement code in parallel. The Validation Agent checks the implementation against requirements. The PR Reviewer performs automated code review. Finally, the Doc Index Generator creates a searchable documentation index.
When the pipeline completes, review what was created:
# View generated documents
ls docs/
# PRD-001.md SRS-001.md SDP-001.md SDS-001.md DBS-001.md
# TM-001.md SVP-001.md TD-001.md UI-001.md
# View the PRD
cat docs/PRD-001.md
# Check GitHub issues (if using gh)
gh issue list
# View merged PRs
gh pr list --state merged
# See what code was generated
ls src/Documents Generated (up to 9 types):
docs/PRD-001.md- Product Requirements Documentdocs/SRS-001.md- Software Requirements Specificationdocs/SDP-001.md- Software Development Plandocs/SDS-001.md- Software Design Specificationdocs/DBS-001.md- Database Specificationdocs/TM-001.md- Threat Modeldocs/SVP-001.md- Software Verification Plandocs/TD-001.md- Tech Decisionsdocs/UI-001.md- UI Specs
Issues Created:
- #1: Setup project structure
- #2: Implement user model
- #3: Create registration endpoint
- #4: Add input validation
- #5: Write unit tests
Code Implemented:
src/models/user.tssrc/routes/auth.tssrc/validators/user.tstests/auth.test.ts
Run the pipeline without GitHub integration using the --local flag:
ad-sdlc run "Your requirements" --localIn local mode, the pipeline skips GitHub issue creation and PR operations. Documents and code are generated locally.
You can also enable local mode via environment variable:
export AD_SDLC_LOCAL=1
ad-sdlc run "Your requirements"For configuration customization, see the example files in examples/config/.
Congratulations! You've completed your first AD-SDLC project. Here's what to explore next:
# Multi-component feature
claude "Implement a user dashboard with profile management and activity logs"
# Integration with external services
claude "Add OAuth2 authentication with Google and GitHub providers"- Modify agent prompts in
.claude/agents/ - Adjust workflow settings in
.ad-sdlc/config/workflow.yaml - Create custom document templates in
.ad-sdlc/templates/
- Use Cases - Common scenarios and patterns
- Headless Execution - CI/CD and automation guide
- FAQ - Frequently asked questions
- Configuration - Advanced configuration
- System Architecture - How it all works
# Check current status
ad-sdlc status
# View logs
cat .ad-sdlc/logs/pipeline.log# View agent-specific logs
cat .ad-sdlc/logs/agent-logs/collector.log# Resume from last checkpoint
ad-sdlc resume
# Or reset and start over
ad-sdlc resetSee FAQ for more troubleshooting tips.
| Command | Description |
|---|---|
ad-sdlc init |
Initialize new project |
ad-sdlc status |
Check pipeline status |
ad-sdlc validate |
Validate configuration |
ad-sdlc resume |
Resume from checkpoint |
ad-sdlc reset |
Reset pipeline state |
| Stage | Agent | What it Does |
|---|---|---|
| Initialization | Project Initializer | Sets up project structure |
| Mode Detection | Mode Detector | Detects Greenfield/Enhancement/Import |
| Collection | Collector | Gathers requirements from text, files, URLs |
| PRD Generation | PRD Writer | Generates Product Requirements Document |
| SRS Generation | SRS Writer | Generates Software Requirements Specification |
| SDP Generation | SDP Writer | Generates Software Development Plan |
| SDS Generation | SDS Writer | Generates Software Design Specification + DBS |
| Parallel Analysis | TM/TD/UI Writers | Threat Model, Tech Decisions, UI Specs (parallel) |
| Issue Generation | Issue Generator | Creates GitHub Issues from SDS components |
| SVP Generation | SVP Writer | Creates Software Verification Plan |
| Implementation | Controller + Workers | Distributes and implements work in parallel |
| Validation | Validation Agent | Validates implementation against requirements |
| Review | PR Reviewer | Automated code review and quality gates |
| Doc Indexing | Doc Index Generator | Creates searchable documentation index |
Part of AD-SDLC Documentation