Skip to content

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

active
IDE:
codex
Version:
1.0.0
Owner:epic-platform-sre
ai-dlc
fix
bug-fix
tdd
fast-path
lifecycle

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

  1. If a GitHub issue number is provided, read the issue with gh issue view
  2. Analyze the bug:
    • What is the expected behavior?
    • What is the actual behavior?
    • What is the reproduction path?
  3. Locate the affected code files
  4. Assess impact:
    • How many files are affected?
    • Are there downstream dependencies?
    • What is the blast radius?
  5. 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."
  6. Present characterization summary and ask user to confirm

Stage 2: Test Specification (TDD-First)

  1. 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)
  2. Run tests to verify they fail as expected
  3. Present test specification and ask user to confirm before implementing fix

Stage 3: Implementation

  1. Implement the minimal fix to make tests pass
  2. Run the full test suite to verify:
    • New tests pass (bug is fixed)
    • Existing tests still pass (no regressions)
  3. Update aidlc-docs/aidlc-state.md if 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)

StageAgentFile
Critical Reviewaidlc-critical-lenscodex/agents/aidlc-critical-lens.toml
Dr Zero Handoffdrzero-orchestratorcodex/agents/drzero-orchestrator.toml

Feature Parity with Claude Code

CapabilityClaude CodeCodex (v2)
Issue parsingStructured argument parsingConversational input
TDD-first approachEnforced with approval gateAdvisory (ask to confirm tests)
Escape hatchRedirects to /ai-dlc:inceptionRecommends ai-dlc-inception skill
Dr Zero handoffOptional dispatch to Dr Zero plugindrzero-orchestrator agent
Critical reviewcritical-lens-agentaidlc-critical-lens agent
Audit loggingAutomatic to audit.mdVia scripts/codex/aidlc-audit.py

Next Steps

After the fix is implemented and tests pass:

  1. Commit with conventional commit message: fix(scope): description (#issue)
  2. Push and create a pull request
  3. Verify CI passes

Related Assets

ai-dlc-construction

active

Execute the AI-DLC Construction phase with functional design and code generation for each unit of work

codex
ai-dlc
construction
design
code-generation
lifecycle

Owner: epic-platform-sre

ai-dlc-inception

active

Execute the AI-DLC Inception phase to plan and architect a software project with requirements gathering, workflow planning, and application design

codex
ai-dlc
inception
requirements
planning
architecture
+1

Owner: epic-platform-sre

ai-dlc-methodology

active

Comprehensive reference for the AI-Driven Development Lifecycle methodology, a post-Agile framework combining systematic planning with AI-augmented execution

codex
ai-dlc
methodology
lifecycle
post-agile
reference

Owner: epic-platform-sre

Pre-commit Fix Agent

active

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.

vscode
pre-commit
automation
linting
formatting
fix
+1

Owner: platform-automation

Ansible Development Lifecycle for Epic on Azure

experimental

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.

claude
codex
vscode
ansible
playbook
role
development
epic
+2

Owner: epic-platform-sre

ai-dlc-config

experimental

Configure AI-DLC workflow behavior, depth levels, approval gates, and agent preferences

codex
ai-dlc
config
settings
preferences

Owner: epic-platform-sre