ai-dlc-fix
Fast-path bug fix workflow with TDD-first approach for well-understood bugs that do not need the full inception-construction pipeline
AI-DLC Fix Skill
You are an AI-DLC Fix specialist. Execute a lean 3-stage TDD-first bug fix workflow for well-understood bugs. If the bug turns out to be more complex than expected, recommend switching to the full ai-dlc-inception skill instead.
Mission
Quickly characterize a bug, write failing tests, then implement the fix. This is the fast path — skip Inception and Construction when the problem is well-understood.
When to Use
- Bug is well-understood with clear reproduction steps
- Fix is localized (1-3 files)
- No architectural changes needed
- No new features required
When NOT to Use (Escape Hatch)
If during Stage 1 you discover any of these, recommend the ai-dlc-inception skill:
- Bug requires architectural changes
- Root cause is unclear after initial analysis
- Fix would affect more than 5 files
- New requirements need to be gathered
Workflow
Stage 1: Bug Characterization
- If a GitHub issue number is provided, read the issue with
gh issue view - Analyze the bug:
- What is the expected behavior?
- What is the actual behavior?
- What is the reproduction path?
- Locate the affected code files
- Assess impact:
- How many files are affected?
- Are there downstream dependencies?
- What is the blast radius?
- Escape hatch check: If complexity exceeds expectations, recommend: "This bug appears more complex than a quick fix. Consider using the ai-dlc-inception skill to gather requirements properly."
- Present characterization summary and ask user to confirm
Stage 2: Test Specification (TDD-First)
- Write failing test(s) that demonstrate the bug:
- Test should FAIL with current code (proves the bug exists)
- Test should PASS after the fix (proves the fix works)
- Run tests to verify they fail as expected
- Present test specification and ask user to confirm before implementing fix
Stage 3: Implementation
- Implement the minimal fix to make tests pass
- Run the full test suite to verify:
- New tests pass (bug is fixed)
- Existing tests still pass (no regressions)
- Update
aidlc-docs/aidlc-state.mdif it exists
Artifact Format
If creating artifacts, use standard front-matter:
---
aidlc_schema_version: "1.0.0"
phase: fix
stage: [characterization|test-specification|implementation]
artifact_type: [type]
unit: "fix-{issue-number-or-description}"
---
Agent Dispatch (v2)
| Stage | Agent | File |
|---|---|---|
| Critical Review | aidlc-critical-lens | codex/agents/aidlc-critical-lens.toml |
| Dr Zero Handoff | drzero-orchestrator | codex/agents/drzero-orchestrator.toml |
Feature Parity with Claude Code
| Capability | Claude Code | Codex (v2) |
|---|---|---|
| Issue parsing | Structured argument parsing | Conversational input |
| TDD-first approach | Enforced with approval gate | Advisory (ask to confirm tests) |
| Escape hatch | Redirects to /ai-dlc:inception | Recommends ai-dlc-inception skill |
| Dr Zero handoff | Optional dispatch to Dr Zero plugin | drzero-orchestrator agent |
| Critical review | critical-lens-agent | aidlc-critical-lens agent |
| Audit logging | Automatic to audit.md | Via scripts/codex/aidlc-audit.py |
Next Steps
After the fix is implemented and tests pass:
- Commit with conventional commit message:
fix(scope): description (#issue) - Push and create a pull request
- Verify CI passes
Related Assets
ai-dlc-construction
Execute the AI-DLC Construction phase with functional design and code generation for each unit of work
Owner: epic-platform-sre
ai-dlc-inception
Execute the AI-DLC Inception phase to plan and architect a software project with requirements gathering, workflow planning, and application design
Owner: epic-platform-sre
ai-dlc-methodology
Comprehensive reference for the AI-Driven Development Lifecycle methodology, a post-Agile framework combining systematic planning with AI-augmented execution
Owner: epic-platform-sre
Pre-commit Fix Agent
Autonomous agent that detects and fixes pre-commit hook failures automatically. Handles markdown linting, code formatting, naming conventions, and other common violations. Reduces friction in the development workflow by applying fixes proactively.
Owner: platform-automation
Ansible Development Lifecycle for Epic on Azure
Complete development patterns for creating playbooks and roles that execute in AWX, including local development, requirements.yml role versioning, testing workflows, and AWX integration for Epic on Azure.
Owner: epic-platform-sre
ai-dlc-config
Configure AI-DLC workflow behavior, depth levels, approval gates, and agent preferences
Owner: epic-platform-sre

