name: pdca description: | Unified skill for managing the entire PDCA cycle. Auto-triggered by keywords: "plan", "design", "analyze", "report", "status". Replaces legacy /pdca-* commands.
Use proactively when user mentions PDCA cycle, planning, design documents, gap analysis, iteration, or completion reports.
Triggers: pdca, 계획, 설계, 분석, 검증, 보고서, 반복, 개선, plan, design, analyze, check, report, status, next, iterate, gap, 計画, 設計, 分析, 検証, 報告, 计划, 设计, 分析, 验证, 报告, planificar, diseño, analizar, verificar, planifier, conception, analyser, vérifier, rapport, planen, Entwurf, analysieren, überprüfen, Bericht, pianificare, progettazione, analizzare, verificare, rapporto
Do NOT use for: simple queries without PDCA context, code-only tasks. argument-hint: "[action] [feature]" user-invocable: true agents: analyze: bkit:gap-detector iterate: bkit:pdca-iterator report: bkit:report-generator default: null allowed-tools:
- Read
- Write
- Edit
- Glob
- Grep
- Bash
- Task
- TaskCreate
- TaskUpdate
- TaskList
- AskUserQuestion imports:
- ${PLUGIN_ROOT}/templates/plan.template.md
- ${PLUGIN_ROOT}/templates/design.template.md
- ${PLUGIN_ROOT}/templates/do.template.md
- ${PLUGIN_ROOT}/templates/analysis.template.md
- ${PLUGIN_ROOT}/templates/report.template.md
- ${PLUGIN_ROOT}/templates/iteration-report.template.md next-skill: null pdca-phase: null task-template: "[PDCA] {feature}"
hooks: Managed by hooks/hooks.json (unified-stop.js) - GitHub #9354 workaround
PDCA Skill
Unified Skill for managing PDCA cycle. Supports the entire Plan → Design → Do → Check → Act flow.
Arguments
| Argument | Description | Example |
|---|---|---|
plan [feature] |
Create Plan document | /pdca plan user-auth |
design [feature] |
Create Design document | /pdca design user-auth |
do [feature] |
Do phase guide (start implementation) | /pdca do user-auth |
analyze [feature] |
Run Gap analysis (Check phase) | /pdca analyze user-auth |
iterate [feature] |
Auto improvement iteration (Act phase) | /pdca iterate user-auth |
report [feature] |
Generate completion report | /pdca report user-auth |
archive [feature] |
Archive completed PDCA documents | /pdca archive user-auth |
status |
Show current PDCA status | /pdca status |
next |
Guide to next phase | /pdca next |
Action Details
plan (Plan Phase)
- Check if
docs/01-plan/features/{feature}.plan.mdexists - If not, create based on
plan.template.md - If exists, display content and suggest modifications
- Create Task:
[Plan] {feature} - Update .bkit-memory.json: phase = "plan"
Output Path: docs/01-plan/features/{feature}.plan.md
design (Design Phase)
- Verify Plan document exists (required - suggest running plan first if missing)
- Create
docs/02-design/features/{feature}.design.md - Use
design.template.mdstructure + reference Plan content - Create Task:
[Design] {feature}(blockedBy: Plan task) - Update .bkit-memory.json: phase = "design"
Output Path: docs/02-design/features/{feature}.design.md
do (Do Phase)
- Verify Design document exists (required)
- Provide implementation guide based on
do.template.md - Reference implementation order from Design document
- Create Task:
[Do] {feature}(blockedBy: Design task) - Update .bkit-memory.json: phase = "do"
Guide Provided:
- Implementation order checklist
- Key files/components list
- Dependency installation commands
analyze (Check Phase)
- Verify Do completion status (implementation code exists)
- Call gap-detector Agent
- Compare Design document vs implementation code
- Calculate Match Rate and generate Gap list
- Create Task:
[Check] {feature}(blockedBy: Do task) - Update .bkit-memory.json: phase = "check", matchRate
Output Path: docs/03-analysis/{feature}.analysis.md
iterate (Act Phase)
- Check results (when matchRate < 90%)
- Call pdca-iterator Agent
- Auto-fix code based on Gap list
- Auto re-run Check after fixes
- Create Task:
[Act-N] {feature}(N = iteration count) - Stop when >= 90% reached or max iterations (5) hit
Iteration Rules:
- Max iterations: 5 (adjustable via bkit.config.json)
- Stop conditions: matchRate >= 90% or maxIterations reached
report (Completion Report)
- Verify Check >= 90% (warn if below)
- Call report-generator Agent
- Integrated report of Plan, Design, Implementation, Analysis
- Create Task:
[Report] {feature} - Update .bkit-memory.json: phase = "completed"
Output Path: docs/04-report/{feature}.report.md
archive (Archive Phase)
- Verify Report completion status (phase = "completed" or matchRate >= 90%)
- Verify PDCA documents exist (plan, design, analysis, report)
- Create
docs/archive/YYYY-MM/{feature}/folder - Move documents (delete from original location)
- Update Archive Index (
docs/archive/YYYY-MM/_INDEX.md) - Update .pdca-status.json: phase = "archived", record archivedTo path
- Remove feature from activeFeatures
Output Path: docs/archive/YYYY-MM/{feature}/
Documents to Archive:
docs/01-plan/features/{feature}.plan.mddocs/02-design/features/{feature}.design.mddocs/03-analysis/{feature}.analysis.mddocs/04-report/features/{feature}.report.md
Important Notes:
- Cannot archive before Report completion
- Documents are deleted from original location after move (irreversible)
- Feature name must match exactly
status (Status Check)
- Read
.bkit-memory.json - Display current feature, PDCA phase, Task status
- Visualize progress
Output Example:
📊 PDCA Status
─────────────────────────────
Feature: user-authentication
Phase: Check (Gap Analysis)
Match Rate: 85%
Iteration: 2/5
─────────────────────────────
[Plan] ✅ → [Design] ✅ → [Do] ✅ → [Check] 🔄 → [Act] ⏳
next (Next Phase)
- Check current PDCA phase
- Suggest next phase guide and commands
- Confirm with user via AskUserQuestion
Phase Guide:
| Current | Next | Suggestion |
|---|---|---|
| None | plan | /pdca plan [feature] |
| plan | design | /pdca design [feature] |
| design | do | Implementation start guide |
| do | check | /pdca analyze [feature] |
| check (<90%) | act | /pdca iterate [feature] |
| check (>=90%) | report | /pdca report [feature] |
| report | archive | /pdca archive [feature] |
Template References
Templates loaded from imports are used when executing each action:
| Action | Template | Purpose |
|---|---|---|
| plan | plan.template.md |
Plan document structure |
| design | design.template.md |
Design document structure |
| do | do.template.md |
Implementation guide structure |
| analyze | analysis.template.md |
Analysis report structure |
| report | report.template.md |
Completion report structure |
Task Integration
Each PDCA phase automatically integrates with Task System:
Task Creation Pattern:
┌────────────────────────────────────────┐
│ [Plan] {feature} │
│ ↓ (blockedBy) │
│ [Design] {feature} │
│ ↓ (blockedBy) │
│ [Do] {feature} │
│ ↓ (blockedBy) │
│ [Check] {feature} │
│ ↓ (blockedBy, Check < 90%) │
│ [Act-1] {feature} │
│ ↓ (on iteration) │
│ [Act-N] {feature} │
│ ↓ (Check >= 90%) │
│ [Report] {feature} │
│ ↓ (after Report completion) │
│ [Archive] {feature} │
└────────────────────────────────────────┘
Agent Integration
| Action | Agent | Role |
|---|---|---|
| analyze | gap-detector | Compare Design vs Implementation |
| iterate | pdca-iterator | Auto code fix and re-verification |
| report | report-generator | Generate completion report |
Usage Examples
# Start new feature
/pdca plan user-authentication
# Create design document
/pdca design user-authentication
# Implementation guide
/pdca do user-authentication
# Gap analysis after implementation
/pdca analyze user-authentication
# Auto improvement (if needed)
/pdca iterate user-authentication
# Completion report
/pdca report user-authentication
# Check current status
/pdca status
# Guide to next phase
/pdca next
Legacy Commands Mapping
| Legacy Command | PDCA Skill |
|---|---|
/pdca-plan |
/pdca plan |
/pdca-design |
/pdca design |
/pdca-analyze |
/pdca analyze |
/pdca-iterate |
/pdca iterate |
/pdca-report |
/pdca report |
/pdca-status |
/pdca status |
/pdca-next |
/pdca next |
/archive |
/pdca archive |
Auto Triggers
Auto-suggest related action when detecting these keywords:
| Keyword | Suggested Action |
|---|---|
| "plan", "planning", "roadmap" | plan |
| "design", "architecture", "spec" | design |
| "implement", "develop", "build" | do |
| "verify", "analyze", "check" | analyze |
| "improve", "iterate", "fix" | iterate |
| "complete", "report", "summary" | report |
| "archive", "cleanup", "store" | archive |