PDCA Agentic Coding Framework
A Claude skill for human-supervised AI-assisted software development using Plan-Do-Check-Act methodology. Enforces explicit human-AI role separation, mandatory STOP gates, TDD discipline, and continuous improvement.
The tools make us faster. The business outcomes aren't keeping up.
DX's Q2 2026 report, tracking 500+ organizations for a year, found median weekly code throughput up 37% and deployment frequency up double digits. Developers' own sense of how fast they're delivering hasn't moved: perceived rate of delivery has held flat for a full year, and the Developer Experience Index slipped from 67 to 65. DORA's 2025 survey found the same split industry-wide: individual developers reporting real productivity and quality gains, team-level delivery stability barely moving. PR size nearly doubled over the same stretch, and change confidence fell 6.1% while code maintainability rose only 3.8%. Code is easier to read. It's harder to trust.
Heavier code review doesn't fix that; review lands at the end, after the batch size has already exploded. Waiting for a smarter model doesn't either. What fixes it is structure, applied earlier and distributed through the work instead of stacked at the end.
Anthropic's own recommended loop for working with Claude Code is explore, plan, implement, commit. What's missing is the retrospective. PDCA is that loop, closed: Plan, Do, Check, Act, lean's learning cycle, pointed now at agent collaboration.
More on the evidence and the mechanism: SOSA 2025 Notes, a presentation prepared for XP 2026.
Looking to build a custom AI workflow for any domain? See human-directed-ai-workflow-builder. It generates a tailored PDCA skill for any complex repeatable task, with a built-in learning loop that sharpens it each cycle.
Already know the framework and just need a reference? See CHEATSHEET.md — a one-page guide to running a PDCA session: what to say at each phase, and what only the human operator can catch.
PDCA Framework Overview
The PDCA workflow consists of four phases:
- Plan - Analysis and detailed planning. Forces architecture discovery before any code exists, so the agent reuses what's already there instead of inventing new abstractions.
- Do - Test-driven implementation. All new code is written to address a specific expectation for behavior the current code does not address. Nothing ships that wasn't proven necessary.
- Check - Completeness verification. An explicit, auditable definition of done, not the agent's own say-so.
- Act - Retrospection for continuous improvement. The agent gathers the data and asks probing questions. I arrive at the insights and take action.
The PDCA cycle helps me own the code, even when I haven't typed a line of it.
pdca-framework — Three Ways to Use This Framework
Option 1: Claude Skill - Standard (Recommended for Most Users)
Install once, auto-triggers when coding
- Best for: Consistent PDCA workflow across all coding sessions
- Setup: One-click installation in Claude.ai or Claude Code
- Experience: Automatic prompt loading, progressive disclosure
- Token efficiency: Loads only what's needed in background
- Maintenance: Update once, improves everywhere
- Platforms: macOS, Linux, Windows
- Also included: optional ponytail interop. If you already run ponytail, PDCA reconciles its minimalism guidance with TDD discipline automatically. Also tested with caveman. Combined, this reduces generated tokens in both code and session transcripts.
📦 Get started with Standard Skill →
Option 2: Claude Skill - with Beads (For Long-Running Work)
Standard skill + persistent task tracking across sessions
- Best for: Complex features spanning multiple days/weeks
- Additional features: Git-backed memory, cross-session continuity, searchable retrospectives
- Requirements: Install beads CLI and MCP server (Go 1.23+, ICU headers)
- Works like: Standard skill with optional beads commands in each phase
- Backward compatible: All beads commands are optional, skip them if beads not installed
🎯 Get started with Beads Skill →
Option 3: Manual Prompts (Best for Customization)
Copy/paste prompts as needed for each session