Appearance
ADW Pipeline Scripts
Complete reference for all ADW orchestrator and phase scripts.
Orchestrator Scripts
adw_plan_build.py
Combines planning and implementation phases.
bash
uv run adw_plan_build.py <issue-number> [adw-id]
# Example
uv run adw_plan_build.py 42Phases:
- Planning — classify → spec → branch → PR
- Building — implement from spec → commit → update PR
Equivalent to:
bash
uv run adw_plan.py 42 | uv run adw_build.pyadw_plan_build_test.py
Plan + build + automated testing.
bash
uv run adw_plan_build_test.py <issue-number> [adw-id]Phases:
- Planning
- Building
- Testing — run test suite → auto-fix failures (up to 3 attempts) → report
adw_plan_build_review.py
Plan + build + spec compliance review (no tests).
bash
uv run adw_plan_build_review.py <issue-number> [adw-id]Phases:
- Planning
- Building
- Review — spec compliance check + Playwright screenshots + auto-patch blockers
When to use
Best for non-critical changes or when testing is handled separately. Review validates what was built against what was asked, without running the test suite.
adw_plan_build_test_review.py
Complete pipeline with both testing and review.
bash
uv run adw_plan_build_test_review.py <issue-number> [adw-id]Phases:
- Planning
- Building
- Testing
- Review
adw_sdlc.py
Full Software Development Life Cycle automation.
bash
uv run adw_sdlc.py <issue-number> [adw-id]
# Flags
uv run adw_sdlc.py <issue> --skip-e2e # skip browser tests (faster)
uv run adw_sdlc.py <issue> --skip-resolution # review only, no auto-patch loopPhases:
- Plan — detailed implementation spec
- Build — implement the solution
- Test — comprehensive test suite with auto-fix
- Review — spec compliance + screenshots + auto-patch
- Document — generate
app_docs/from review artifacts
Output:
- Feature implementation on a PR-ready branch
- Passing tests
- Review report with screenshots
- Complete documentation in
app_docs/
adw_plan_build_document.py
Fast documentation pipeline, skipping tests and review.
bash
uv run adw_plan_build_document.py <issue-number> [adw-id]WARNING
Documentation quality may be limited without review artifacts (no screenshots). Use adw_sdlc.py for comprehensive documentation.
Individual Phase Scripts
adw_plan.py
Planning phase only.
bash
uv run adw_plan.py <issue-number> [adw-id]What it does:
- Fetches issue details from GitHub
- Classifies issue type
- Creates feature branch
- Generates implementation plan
- Commits plan as
{adw_id}_plan_spec.md - Creates/updates pull request
- Outputs state JSON to stdout
adw_build.py
Implementation phase. Reads from existing plan.
bash
# Standalone (finds plan automatically)
uv run adw_build.py
# With piped state from adw_plan.py
uv run adw_plan.py 42 | uv run adw_build.py
# With explicit arguments
uv run adw_build.py <issue-number> <adw-id>adw_test.py
Test phase with auto-fix loop.
bash
uv run adw_test.py <issue-number> [adw-id] [--skip-e2e]What it does:
- Runs application test suite
- Optionally runs E2E tests (browser automation)
- Auto-resolves test failures (up to 3 attempts)
- Reports results to GitHub issue
- Commits test results
adw_review.py
Review phase — spec compliance check.
bash
uv run adw_review.py <issue-number> <adw-id> [--skip-resolution]What it does:
- Locates specification file
- Reviews implementation for spec compliance
- Captures Playwright screenshots
- Identifies issues (blockers, tech debt, skippable)
- Auto-resolves blockers (unless
--skip-resolution) - Uploads screenshots to Cloudflare R2 (if configured)
- Posts detailed review report to GitHub
adw_document.py
Documentation generation phase.
bash
uv run adw_document.py <issue-number> <adw-id>Requirements: Completed review phase (needs review artifacts and screenshots).
What it does:
- Analyzes implementation and review results
- Generates technical documentation
- Creates user-facing guides
- Includes screenshots from review
- Commits to
app_docs/directory
adw_patch.py
Quick patch workflow for targeted changes.
bash
uv run adw_patch.py <issue-number> [adw-id]Triggered by issues or comments containing the adw_patch keyword. Creates a targeted patch plan and implements specific changes without the full planning phase.
Primitive ADWs (No GitHub Required)
adw_prompt.py
Run any Claude Code prompt directly from the command line.
bash
uv run adws/adw_prompt.py "Add logging to the main module"
uv run adws/adw_prompt.py "Refactor this function" --model opus
uv run adws/adw_prompt.py "List files here" --working-dir /path/to/projectadw_slash_command.py
Execute any .claude/commands/*.md template directly.
bash
uv run adws/adw_slash_command.py /chore "Add error handling to all endpoints"
uv run adws/adw_slash_command.py /implement specs/my-plan.md --model opusadw_chore_implement.py
Chains /chore (planning) → /implement (execution) without a GitHub issue.
bash
uv run adws/adw_chore_implement.py "Add a health check endpoint to apps/server.py"
uv run adws/adw_chore_implement.py "Refactor the auth module" --model opusadw_sdk_prompt.py
SDK-based interactive CLI. Supports one-shot queries and multi-turn sessions with session resumption.
bash
# One-shot query
uv run adws/adw_sdk_prompt.py "Explain this codebase"
# Interactive session (multi-turn)
uv run adws/adw_sdk_prompt.py --interactive
# Resume a previous session
uv run adws/adw_sdk_prompt.py --interactive --session-id abc12345
# With specific tools enabled
uv run adws/adw_sdk_prompt.py "Create hello.py" --tools Write,Read,Bash
# Set initial context
uv run adws/adw_sdk_prompt.py --interactive --context "Debugging the auth middleware"