SkillAtlasSkill 详情

pdca

A Claude Code plugin that verifies AI-generated code against its own design specs.

审核状态:已审核Quality 80Security 62

复制安装命令

用 Codex 或 Claude 安装复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它先审查 Skill 页面再帮你安装。

复制前请先查看来源、License 和安全提示。

项目 README

来源文件:README.md

抓取于 2026年9月3日

bkit — AI Native Development OS

A Claude Code plugin that verifies AI-generated code against its own design specs.

Three commands. Anyone — even someone vibe-coding for the first time — can ship robust, production-quality software. bkit turns Claude Code into a Context Engineering system: 44 skills, 34 specialist agents, 11 quality gates, and a memory that survives across sessions deliver the right context to the AI at the right moment, so you don't have to know prompts, commands, or PDCA to get high-quality results.

License Claude Code Version Author

Requirement: bkit requires Claude Code v2.1.143 or later (the strict plugin-manifest path recognizes the official displayName field only from v2.1.143). On older Claude Code you will see Validation errors: Unrecognized key: "displayName" during claude plugin install. Run npm install -g @anthropic-ai/claude-code@latest to upgrade, or see docs/06-guide/cc-compatibility.guide.md.


Who bkit is for

You are…bkit gives you
🌱 First-time vibe coder — you describe what you want and AI codes for you, but you don't yet know how to tell if the result is correctA safety net. AI proposes, bkit measures the result against its own design spec, and auto-repairs the gap when it drifts. You can ship without becoming a senior engineer first.
👤 Solo developer / indie builderA team-in-a-box. /pdca team spawns 4–6 specialist agents in parallel — frontend, backend, QA, security — orchestrated by an AI tech lead.
👥 Team lead planning a releaseSprint Management. /sprint master-plan splits your release into context-budgeted sprints so a single Claude Code session can finish each one without running out of memory, and resumes after any session interruption.
🌐 Non-English speaker8-language auto-detection. Type "로그인 기능 만들어줘" or "作成新功能" and bkit picks the right command for you.

What you'll achieve with bkit

The promise: anyone — including non-developers — can build robust, production-quality software by using bkit. bkit replaces the senior engineer's intuition with a workflow.

Without bkitWith bkit
AI gives you plausible code; you have no way to know if it really matches what you asked forgap-detector measures match rate between your design spec and the generated code. Below 90 % → bkit auto-repairs (up to 5 cycles).
You only spot drift at PR review — by then the cleanup is expensive11 Quality Gates halt the workflow before drift compounds (match rate, critical issues, convention, test coverage, security, dataFlow integrity, …)
Long projects exceed Claude Code's session window and you lose contextbkit splits the project into context-budgeted Sprints (≤ 75 K tokens each); memory + Task Management lets any session resume where the last one stopped
You don't know which command, agent, or skill to use8-language auto-trigger + intent-router pick the right skill / agent automatically. You just describe what you want.
AI ships code, you ship hope; nobody documents what changedDocs = Code philosophy: every feature produces a PRD + plan + design + analysis + completion report. The history is the audit trail.

The 4-step experience

This is the canonical workflow when you use bkit. You describe a release; bkit handles the rest.

flowchart TB
    You(["You: describe the release"])
    You --> S1["Step 1<br/>/sprint master-plan my-release<br/>--features auth, billing, reports"]
    S1 --> Auto1["bkit auto-action<br/>• sprint-master-planner agent investigates code + web in depth<br/>• Splits features into context-budgeted Sprints (&le; 75K tokens each)<br/>• Writes the master plan with Context Anchor"]
    Auto1 --> S2["Step 2<br/>You approve the plan"]
    S2 --> Auto2["bkit auto-action<br/>• Every sprint registered in Task Management<br/>• Memory saved — survives session clear"]
    Auto2 --> S3["Step 3<br/>/sprint start sprint-1"]
    S3 --> Auto3["bkit auto-action — full PDCA per feature:<br/>PRD/Plan → Design → Do → Iterate (target 100%, gated) →<br/>QA (gated) → Report. /pdca pm, /pdca team, /pdca qa as needed."]
    Auto3 --> Gate{"All quality<br/>gates pass?"}
    Gate -- "no, auto-fix" --> Repair["pdca-iterator self-repair<br/>(max 5 cycles)"]
    Repair --> Gate
    Gate -- "yes" --> Done(["Release-ready code + docs"])
    Ctrl["Step 4<br/>/control level 0..4"] -.->|"set how much<br/>runs unattended"| Auto1
    Ctrl -.->|"applies"| Auto3

    style You fill:#e3f2fd
    style S1 fill:#fff3e0
    style S2 fill:#fff8e1
    style S3 fill:#fff3e0
    style Auto3 fill:#fce4ec
    style Repair fill:#ffe0b2
    style Done fill:#c8e6c9
    style Ctrl fill:#f3e5f5

Step 1 — Plan the release in depth

You type: /sprint master-plan my-release --features auth, billing, reports.

bkit's sprint-master-planner agent investigates carefully — not quickly. Depending on what you're building, it reads your existing code base in depth or researches the web, then writes a master plan. Critically, it splits your features into context-budgeted Sprints: each sprint is sized so a single Claude Code session can finish it without overflowing the context window (the default is ≤ 75 K tokens per sprint, dependency-aware via Kahn topological sort + greedy bin-packing).

You can also call specialist agents directly when you want more depth: /pdca pm runs 4 product-management agents in parallel with 43 frameworks; /pdca team spawns a multi-specialist implementation team; /pdca qa runs a 5-agent QA team.

Step 2 — Approve, register, remember

You read the master plan. When you approve, bkit registers every sprint in its Task Management System with the right dependency order (Kahn-topologically sorted). It also writes to memory.

This means: if your laptop crashes, your session clears, or you start a new Claude Code session next week — bkit picks up exactly where you stopped. The plan and progress are durable.

Step 3 — Auto-run each sprint through PDCA

You type: /sprint start sprint-1.

bkit runs the 8-phase Sprint lifecycle (prd → plan → design → do → iterate → qa → report → archived). Inside the do phase, bkit runs the full PDCA loop once per feature:

PhaseWhat runsOutput
PRD / Planpm-lead orchestrates 4 PM agents (discovery, strategy, research, prd) with 43 frameworksComprehensive PRD + plan with Context Anchor
Designcto-lead proposes 3 architecture options; you pick one (the only required user input)Detailed design doc
Do/pdca team spawns 4–6 specialist agents in parallel (developer, qa, frontend, backend, security, architect)Working code
IterateTarget 100 % match between design and code. gap-detector measures; pdca-iterator self-repairs until quality gate M1 (matchRate ≥ 90 %) passes. Max 5 cycles.Repaired code + iteration report
QAqa-lead runs 4 QA agents through L1–L5 tests + dataFlow integrity (S1 gate, 7-layer hop check)QA report
Reportreport-generator writes the completion reportFinal report with KPI + lessons learned

Every phase is gated by quality thresholds. If anything fails — match rate too low, critical issue found, dataFlow broken — bkit pauses and tells you why. You don't have to remember to verify; verification is automatic.

Step 4 — Govern with one dial

/control level N is the single autonomy knob. It decides how far the orchestrator runs before stopping. The same dial controls both Sprint and PDCA — no second knob to manage.

LevelWhat it means
L0 ManualAsk me at every phase. Best for your first sprint — inspect each output.
L2 Semi-Auto (default)Plan/Design/Do auto; ask me on QA and Report.
L4 Full-AutoWake me when the sprint is done. Pauses only on a quality gate failure or one of 4 auto-pause triggers.

L1 (Guided) and L3 (Auto) sit between. bkit also computes a Trust Score (0–100) from your track record and can recommend a level — but you stay in charge.

How the bkit author actually uses bkit

The 4-step experience above is the canonical flow. Here's the concrete recipe the person who built bkit uses every day — two steps — so you can copy it without needing to understand the full machinery underneath.

Step A — Use Claude Code as a thinking amplifier before the master plan

The master plan is the single most important artifact in a sprint. Garbage in, garbage out. So don't write it alone, and don't let bkit write it cold either.

  1. Open a fresh Claude Code session.
  2. Talk through the release in plain language — what's the goal, who is it for, what could go wrong, what depends on what, what's still unknown? Let Claude Code push back.
  3. Have it investigate — read your repo, search the web, surface edge cases you hadn't considered.
  4. Then run /sprint master-plan my-release --features .... By the time you do, your context is already saturated; the master plan reflects what you really meant, not a generic template.

This is what Context Engineering looks like in practice: you don't tune the perfect prompt — you saturate the context first, then let bkit synthesise.

Step B — Hand the rest to Trust Level 4

Once you approve the master plan, the keyboard goes quiet until the final report lands. The bkit author picks one of two patterns based on release size:

Release sizeWhat you typeWhat happens
Small–medium — a few related features, single context budget/control level 4, then /sprint start <project> oncebkit runs every sprint and every PDCA phase straight through to archived. You read the final report.
Large — many sprints, large total token budget, or cross-sprint dependencies/control level 4, then /sprint start <sprint-id> per sprint in dependency orderEach sprint runs full-auto. You skim the sprint report before launching the next sprint — a natural checkpoint between context windows.

Trust Level 4 is not "no safety". The 11 quality gates and 4 auto-pause triggers still fire. bkit halts and asks for you only when a measurable rule fails. The dial removes the unnecessary pauses, not the necessary ones.

The outcome, repeatable: AI plans, designs, codes, self-verifies, self-repairs, tests, and writes the completion report. You provide intent — and the final ship/no-ship decision. Nothing else.

The three commands

CommandWhen to useWhat it spawnsOutput
/sprintMulti-feature release (quarter, milestone, multiple linked features)sprint-master-planner, sprint-orchestrator, sprint-qa-flow, sprint-report-writerMaster plan + 8-phase per sprint + cumulative report
/pdcaA single feature (or runs inside a sprint per feature)pm-lead, cto-lead, gap-detector, pdca-iterator, qa-lead, report-generator (any of 34 agents)PRD + plan + design + code + analysis + report
/controlAnytime — set autonomy—Updates Trust Level scope; affects both /sprint and /pdca

How bkit closes the AI-coding gap — Context Engineering

bkit is more than commands. It is a Context Engineering system that solves the root cause of AI-coding failures: the AI doesn't have the right context.

The AI coding problembkit's Context Engineering answer
AI hallucinates because it doesn't know your conventions44 skills (PDCA, Sprint, PM frameworks, …) auto-injected based on intent
AI loses focus as the session growsMemory + Task Management resumes across sessions; Sprints are context-budgeted
AI ships code that drifts from the spec11 Quality Gates + gap-detector measurement + pdca-iterator auto-repair
You only catch bugs at PR reviewPhase-by-phase gating: drift is caught at every transition, not at the end
You need to remember the right command8-language auto-trigger + intent-router; type "login 만들어줘" or "build login" and bkit picks the path
AI sessions are ephemeral; no audit trailAudit log + Token Ledger + Docs = Code philosophy: every decision is on disk

bkit's three philosophies (from bkit-system/philosophy/core-mission.md)

PrincipleWhat it means for you
Automation FirstYou don't need to know PDCA, Sprint, or any command. Type what you want; bkit picks the right workflow. The state machine + workflow engine drive the rest.
No GuessingIf bkit isn't sure, it checks the docs. If still unsure, it asks you. It never makes up an answer. gap-detector, design-validator, and 11 quality gates enforce this.
Docs = CodeEvery feature produces docs (PRD + plan + design + analysis + report). The docs are the contract; bkit verifies that the code matches. scripts/docs-code-sync.js enforces 0 drift in CI.

Quick start

# 1. Install (one time)
claude plugin install bkit

# 2. Enable parallel team execution (optional, recommended)
export CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1

# 3. Your very first run — single feature
/pdca pm my-feature        # Describes what you want; bkit handles the rest

# 4. When you're ready for a multi-feature release
/sprint master-plan my-release --name "Q2 Launch" --features auth, billing, reports
# (You approve the plan)
/sprint start my-release-s1

Recommended Claude Code runtime: v2.1.220 (bkit explicitly handles v2.1.218's context: fork background-by-default change and v2.1.219's nested-subagent depth-3 default; Claude 5 alias resolution — sonnet → Sonnet 5 needs ≥ v2.1.197). Model floor: v2.1.170+ required by the 6 Fable-pinned agents (below it they fail to spawn; bkit shows a SessionStart advisory with a workaround). Install minimum v2.1.143; runtime minimum v2.1.78.

On Claude Code v2.1.232 and later, fork mode is on by default in interactive sessions: a subagent's result arrives as a notification on a later turn, and the Agent tool no longer accepts run_in_background. bkit's skills are unaffected. Sprint gates that measure through a subagent will report "not measured" rather than a score, and name the cause — a missing number, never a wrong one. Set CLAUDE_CODE_FORK_SUBAGENT=0 to get in-turn results back. bkit shows this once at SessionStart and does not block. Verified against v2.1.232; Breaking changes 0 across v2.1.228–v2.1.232 (171 consecutive compatible releases).

Quality gates — the safety net explained

A "quality gate" is a hard stop that won't let the workflow advance until a measurable condition is true. bkit ships 11 of them. The ones that matter most for new users:

GateWhat it measuresIf it fails
M1 matchRateHow much of your design actually appears in the code, 0–100 %Below 90 % → pdca-iterator automatically rewrites the code (up to 5 cycles)
M3 critical issuesSecurity or correctness bugs flagged by code-analyzerAny critical → workflow pauses, you decide
S1 dataFlow integrity7-layer check: UI → Client → API → Validation → DB → Response → Client → UIBelow 85 % → 7 hops re-verified one by one
qa gateQA pass rate ≥ 95 %, zero critical findings, zero runtime errors — from what qa-lead actually measuredBelow 95 % → back to act for fixes, then QA re-runs (v2.1.38: the return path and its retry ceiling both work)

Full M1–M10 + S1 catalog in README-FULL.md §5.

Architecture at a glance

44 skills · 34 agents · 21 hook events / 24 blocks across 28 handlers · 2 MCP servers (19 tools) · 200 lib modules across 22 subdirs · 63 scripts · 40 templates · 385 test files (5,355 test cases). Clean Architecture 4-Layer · Defense-in-Depth 4-Layer · Invocation Contract L1–L6, where L6 is host integration: a real claude -p --plugin-dir run whose recorded evidence CI checks against the shipped hooks.json.

Agents run on a 4-tier role-based model matrix: fable (long-horizon orchestration — leads), opus (deep reasoning, security & high-frequency PDCA verifiers), sonnet (implementers), haiku (monitors). The repeated Check/iterate verifiers (gap-detector, design-validator, pdca-iterator) run on Opus 4.8 — strong verification at half Fable's cost.

Full architecture deep-dive: README-FULL.md §9.

Documentation

PathWhat's there
README-FULL.mdFull command reference, deep workflow internals, agent teams, architecture, Skill Evals
CHANGELOG.mdRelease history (single source of truth — latest release: v2.1.38)
CUSTOMIZATION-GUIDE.mdOverride any bkit component in your .claude/ directory
AI-NATIVE-DEVELOPMENT.mdThe 6 AI-Native principles and how bkit implements them
bkit-system/philosophy/Core mission, Context Engineering, PDCA methodology, AI-Native principles
docs/06-guide/sprint-management.guide.mdSprint Management deep-dive (English)
docs/06-guide/sprint-migration.guide.mdPDCA ↔ Sprint migration mapping (English)

🌟 Real User Hall of Fame

bkit's quality is measured by how well it responds to real users running bkit in production on their own projects. This section recognizes external dogfooders whose precise bug reports + reproduction scripts have been absorbed directly into bkit's regression test suite (test/e2e/external-dogfood/).

v2.1.19 (2026-05-30 — first entry)

  • @pruge (James Kim) — dandi-village-ledger project. 10 GitHub issues over 1.5 days (#92–#107) driving bkit v2.1.17, v2.1.18 closes + the entire v2.1.19 Quality Maturation Sprint. 5 reproduction scenarios absorbed as E2E tests at test/e2e/external-dogfood/dandi-*.test.js. See docs/external-dogfooders/pruge.md for the full contribution archive. Thank you for trusting bkit with your production sprint. 🙏

v2.1.20 (2026-05-26 — second entry, first-follower effect validated)

  • @bj (정병진) — bkit v2.1.14 install incident (2026-05-26, Validation errors: : Unrecognized key: "displayName"). Precise error message + cache path + Cursor IDE environment metadata sharing drove the entire v2.1.20 Marketplace Recovery Sprint (14 features / 3 sub-sprints / 3 new ENH 321/322/323 / 1 new ADR 0011 Plugin Manifest Schema Compliance Policy). Reproduction absorbed at test/e2e/external-dogfood/cc-min-version.test.js (5 TC, Lifecycle Stage 4 Regression Lock achieved). Triggered ADR 0006 § Empirical Validation Gate recovery (~30-day wire delay closed). See docs/external-dogfooders/bj.md for the full contribution archive. Thank you for sharing the precise error message that scoped the entire sprint correctly. 🙏

v2.1.36 (2026-08-12 — third entry)

  • @Sinclair-Seo — issue #148. Three Destructive Detector rules were refusing commands that are read-only or narrowly scoped. The report came with a 12-case reproduction harness that included negative controls, and the note that makes them matter: a "0 false positives" reading proves nothing unless genuinely destructive commands are still caught in the same run — a point they made after first measuring a bogus green from a one-argument detect() call.

    It also named the real cost. A PreToolUse block asks a question, and an unattended run has nobody to answer it, so the agent stalls silently instead of failing — ~15 minutes of dead time, twice in one sprint, caught only because an idle-stall monitor was attached.

    Auditing all 16 rules on the strength of that report measured the defect class at roughly 3× what was filed, and found the same root cause producing false negatives: chmod 777 / ; ls was detected by nothing at all. The harness is absorbed at test/e2e/external-dogfood/sinclair-seo-148-guardrail-precision.test.js (Lifecycle Stage 4 Regression Lock). Thank you for the negative controls — they caught a regression we introduced while fixing this. 🙏

🚀 bkit Early Adopter Program

Running bkit on a non-trivial production project and willing to file detailed bug reports with reproductions makes you part of bkit's quality system, not just a bug reporter.

Established v2.1.19 (master plan §15.4 DA-1~DA-4, ENH-318 차별화 7/7).

Benefits:

  • 🏆 Public recognition in this README + dedicated archive
  • 🔒 Your reproduction scripts become permanent E2E regression tests
  • 📊 Your activity directly powers bkit's Trust Score (externalDogfoodFeedbackResponseRate component, weight 0.05)
  • 📝 CHANGELOG attribution on every release where your scenarios were absorbed
  • 🤝 Direct line to bkit maintainers — priority issue triage, reproduction-script-first response

How to join: file your first detailed issue at bkit-claude-code/issues with bkit version, reproduction steps, expected vs actual behavior, and file:line references. See docs/external-dogfooders/_README.md for the full 5-stage User-Feedback Lifecycle and program structure.

DA-4 acquisition goal: by v2.1.20 (30 days post-v2.1.19 GA), measure dogfooder population. DA-4 status (v2.1.20): N=2 confirmed (@pruge + @bj) — first-follower effect validated. v2.1.21+ continues active outreach (CC marketplace narrative, community engagement) to grow N≥3.

License

Apache 2.0 — see LICENSE and NOTICE. POPUP STUDIO PTE. LTD. · kay@popupstudio.ai

其他

高风险

  • 来源需自行核对维护者身份。
  • 包含脚本或命令调用,安装前请复核。
  • 未检测到明显外部权限要求。
  • 存在潜在风险命令,请谨慎安装。
  • 扫描发现:5 条。

Codex — Git Clone 安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 克隆仓库:git clone https://github.com/ww-w-ai/bkit-claude-code.git
  3. 将 "skills/pdca" 文件夹复制到 Codex 的 skills 目录中。
  4. 重启 Codex 让新的 skill 生效。

Codex — 手动复制安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 从源仓库下载 SKILL.md 及相关文件。
  3. 在 Codex 的 skills 目录中创建新文件夹。
  4. 将所有 skill 文件复制到新文件夹中。
  5. 重启 Codex 让新的 skill 生效。

Claude Code — Git Clone 安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 克隆仓库:git clone https://github.com/ww-w-ai/bkit-claude-code.git
  3. 将 "skills/pdca" 文件夹复制到 Claude Code 的 skills 目录中。
  4. 重启 Claude Code 让新的 skill 生效。

Claude Code — 手动复制安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 从源仓库下载 SKILL.md 及相关文件。
  3. 在 Claude Code 的 skills 目录中创建新文件夹。
  4. 将所有 skill 文件复制到新文件夹中。
  5. 重启 Claude Code 让新的 skill 生效。

Cursor — Git Clone 安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 克隆仓库:git clone https://github.com/ww-w-ai/bkit-claude-code.git
  3. 将 "skills/pdca" 文件夹复制到 Cursor 的 skills 目录中。
  4. 重启 Cursor 让新的 skill 生效。

Cursor — 手动复制安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 从源仓库下载 SKILL.md 及相关文件。
  3. 在 Cursor 的 skills 目录中创建新文件夹。
  4. 将所有 skill 文件复制到新文件夹中。
  5. 重启 Cursor 让新的 skill 生效。

GitHub Copilot — Git Clone 安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 克隆仓库:git clone https://github.com/ww-w-ai/bkit-claude-code.git
  3. 将 "skills/pdca" 文件夹复制到 GitHub Copilot 的 skills 目录中。
  4. 重启 GitHub Copilot 让新的 skill 生效。

GitHub Copilot — 手动复制安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 从源仓库下载 SKILL.md 及相关文件。
  3. 在 GitHub Copilot 的 skills 目录中创建新文件夹。
  4. 将所有 skill 文件复制到新文件夹中。
  5. 重启 GitHub Copilot 让新的 skill 生效。

Windsurf — Git Clone 安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 克隆仓库:git clone https://github.com/ww-w-ai/bkit-claude-code.git
  3. 将 "skills/pdca" 文件夹复制到 Windsurf 的 skills 目录中。
  4. 重启 Windsurf 让新的 skill 生效。

Windsurf — 手动复制安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 从源仓库下载 SKILL.md 及相关文件。
  3. 在 Windsurf 的 skills 目录中创建新文件夹。
  4. 将所有 skill 文件复制到新文件夹中。
  5. 重启 Windsurf 让新的 skill 生效。
查看 SKILL.md 原文
name: pdca
classification: workflow
classification-reason: PDCA process automation independent of model capability evolution
deprecation-risk: none
effort: medium
description: |
  Unified PDCA cycle management — plan, design, do, analyze, iterate, report. PDCA runs per-feature (9-phase: pm→plan→design→do→check→act→qa→report→archive); for multi-feature scope/budget grouping use /sprint (v2.1.13, 8-phase container that may host PDCA cycles inside).
  Triggers: pdca, plan, design, analyze, report, status, next, iterate
argument-hint: "[action] [feature]"
user-invocable: true
agents:
  analyze: bkit:gap-detector
  iterate: bkit:pdca-iterator
  report: bkit:report-generator
  qa: bkit:qa-lead
  team: null
  pm: null
  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/qa-report.template.md
  - ${PLUGIN_ROOT}/templates/qa-test-plan.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}"

PDCA Skill

Unified Skill for managing PDCA cycle. Supports the entire Plan → Design → Do → Check → Act flow.

Arguments

ArgumentDescriptionExample
pm [feature]Run PM Agent Team analysis (pre-Plan)/pdca pm user-auth
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
qa [feature]Run QA phase (L1-L5 tests)/pdca qa user-auth
report [feature]Generate completion report/pdca report user-auth
archive [feature]Archive completed PDCA documents/pdca archive user-auth
cleanup [feature]Cleanup archived features from status/pdca cleanup
team [feature]Start PDCA Team Mode (requires Agent Teams)/pdca team user-auth
team statusShow Team status/pdca team status
team cleanupCleanup Team resources/pdca team cleanup
statusShow current PDCA status/pdca status
nextGuide to next phase/pdca next

Action Details

pm (PM Analysis Phase)

Run PM Agent Team for product discovery and strategy analysis before Plan phase.

  1. Call pm-lead Agent (orchestrates 4 sub-agents)
  2. pm-lead runs Phase 1: Context Collection (project info, git history)
  3. pm-lead runs Phase 2: Parallel Analysis (3 agents simultaneously)
    • pm-discovery: Opportunity Solution Tree (Teresa Torres)
    • pm-strategy: Value Proposition (JTBD 6-Part) + Lean Canvas
    • pm-research: 3 Personas + 5 Competitors + TAM/SAM/SOM
  4. pm-lead runs Phase 3: PRD Synthesis via pm-prd agent
    • Beachhead Segment (Geoffrey Moore) + GTM Strategy
    • 8-section PRD generation
  5. Output PRD to docs/00-pm/{feature}.prd.md
  6. Create Task: [PM] {feature}
  7. Update .bkit/state/pdca-status.json: phase = "pm"
  8. Guide user to next step: /pdca plan {feature}

Output Path: docs/00-pm/{feature}.prd.md

Requirements:

  • Agent Teams enabled: CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1
  • Project level: Dynamic or Enterprise (Starter not supported)

plan (Plan Phase)

  1. Template Loading: Read templates/plan.template.md to understand the required Plan document structure and sections. Use this template's sections as your document outline. This is MANDATORY — do not generate Plan documents from memory or assumptions.
  2. PRD Auto-Reference: Check if docs/00-pm/{feature}.prd.md exists
    • If found: Read PRD and use as context for Plan document (improves quality significantly)
    • If not found: Proceed normally (tip: run /pdca pm {feature} first for better results)
  3. Check if docs/01-plan/features/{feature}.plan.md exists
  4. If not, create based on plan.template.md
  5. If exists, display content and suggest modifications
  6. Checkpoint 1 — Requirements Confirmation: Present understanding of the feature (problem, scope, constraints) and use AskUserQuestion: "요구사항 이해가 맞나요? 빠진 건 없나요?" Wait for user confirmation before proceeding.
  7. Checkpoint 2 — Clarifying Questions: Identify underspecified elements (edge cases, error handling, integration points, compatibility). Present organized question list. Wait for answers before generating the document.
  8. Generate Plan document with user-confirmed requirements
  9. Complete predecessor Task first: If a [PM] {feature} Task exists and is still in_progress, use TaskList to find it and TaskUpdate it to status: "completed" before creating the Plan Task (see Phase Transition Rule). Then Create Task: [Plan] {feature}
  10. Update .bkit/state/pdca-status.json: phase = "plan"
  11. Write ## Executive Summary at document top with 4-perspective table (Problem/Solution/Function UX Effect/Core Value), each 1-2 sentences
  12. Context Anchor Generation: After generating Plan document, extract Context Anchor (WHY/WHO/RISK/SUCCESS/SCOPE) from Executive Summary, Requirements, and Risk sections. Write as ## Context Anchor table between Executive Summary and Section 1. This anchor propagates to Design/Do documents for cross-session context continuity.
  13. MANDATORY: After completing the document, also output the Executive Summary table in your response so the user sees it immediately without opening the file

Output Path: docs/01-plan/features/{feature}.plan.md

Tip: For features with ambiguous requirements or multiple implementation approaches, use /plan-plus {feature} instead. Plan Plus adds brainstorming phases (intent discovery, alternatives exploration, YAGNI review) before document generation for higher-quality plans.

design (Design Phase)

  1. Template Loading: Read templates/design.template.md to understand the required Design document structure. Use this template's sections as your document outline. This is MANDATORY — do not generate Design documents from memory or assumptions.
  2. Verify Plan document exists (required - suggest running plan first if missing)
  3. Read Plan document to understand requirements and scope
  4. PRD Context Loading: Check if docs/00-pm/{feature}.prd.md exists. If found, read the Executive Summary and Beachhead/GTM sections to inform architecture decisions with market context. This prevents strategic context loss at the Plan→Design handoff.
  5. Context Anchor Embed: Copy Plan's ## Context Anchor table to Design document top (between header metadata and ## 1. Overview). If Plan has no Context Anchor (legacy), skip this step gracefully.
  6. Generate 3 Architecture Options (inspired by feature-dev Phase 4):
    • Option A — Minimal Changes: Least modification, maximum reuse of existing code. Fast but potentially coupled.
    • Option B — Clean Architecture: Best separation of concerns, most maintainable. More files, more refactoring.
    • Option C — Pragmatic Balance: Good boundaries without over-engineering. Recommended default.
  7. Present comparison table with trade-offs (complexity, maintainability, effort, risk)
  8. Checkpoint 3 — Architecture Selection: Use AskUserQuestion: "3가지 설계안 중 어떤 걸 선택하시겠습니까?" Include recommendation. Wait for user selection.
  9. Create docs/02-design/features/{feature}.design.md using selected architecture
  10. Use design.template.md structure + reference Plan content
  11. Session Guide Generation: Analyze Design's ## 11. Implementation Guide structure to generate Module Map and Recommended Session Plan. Add as ### 11.3 Session Guide within Implementation Guide section. This enables /pdca do {feature} --scope module-N for multi-session incremental implementation.
  12. Design Anchor Integration (Pencil MCP): If the feature involves UI and Pencil MCP is available:
    • Suggest: "UI 컨셉 페이지를 1-2개 먼저 만든 후 /design-anchor capture {feature} 로 디자인 토큰을 잠그세요"
    • If Design Anchor already exists (docs/02-design/styles/{feature}.design-anchor.md), embed it in the Design document as ## Design Anchor section
    • This ensures design tokens (colors, typography, spacing) are locked before implementation
  13. Complete predecessor Task first: Use TaskList to find the [Plan] {feature} Task (and any earlier phase Task for this feature still in_progress) and TaskUpdate each to status: "completed" — this resolves the blockedBy chain and prevents stale phase status from leaking into prompt context (see Phase Transition Rule). Then Create Task: [Design] {feature} (blockedBy: Plan task)
  14. Update .bkit/state/pdca-status.json: phase = "design"

Output Path: docs/02-design/features/{feature}.design.md

do (Do Phase)

  1. Verify Design document exists (required)
  2. Read Design document FULLY (read the entire document, not just a summary. This is critical — full context reload ensures each session starts with complete architectural context)
  3. Full Upstream Context Loading (Phase 2+3): Load the COMPLETE upstream document chain:
    • Read PRD (docs/00-pm/{feature}.prd.md) — extract WHY context (JTBD, value proposition, market positioning)
    • Read Plan (docs/01-plan/features/{feature}.plan.md) — extract Context Anchor, Success Criteria, Requirements
    • This ensures implementation decisions are guided by strategic intent from PRD→Plan→Design, not just the Design spec
  4. Decision Record Chain Display: Extract and display key decisions from PRD→Plan→Design as a unified chain. Format:
    📋 Decision Record Chain
    [PRD] Target: {market/user segment} — {rationale}
    [Plan] Architecture: {selected option} — {rationale}
    [Design] State Mgmt: {selected approach} — {rationale}
    
  5. Success Criteria Tracking: Extract Success Criteria from Plan document. Display as implementation checklist — each criterion must be addressed during implementation. Mark criteria that are covered by the current --scope.
  6. Parse --scope parameter: If arguments contain --scope <value>, extract module list (comma-separated scope keys). Match against Design's Session Guide Module Map. Filter implementation items to show only matching modules.
  7. Display Context Anchor: Show the Context Anchor table from Design document header. Format: "📌 Context Anchor" + WHY/WHO/RISK/SUCCESS/SCOPE table. This reminds the user WHY we're building this feature.
  8. Session Guide Display:
    • If no --scope: Show full Module Map from Design + recommend session split + proceed with full implementation guide
    • If --scope provided: Show only the selected modules' implementation items
  9. Summarize implementation scope:
    • Files to create: N
    • Files to modify: M
    • Estimated changes: ~X lines
  10. Checkpoint 4 — Implementation Approval: Present scope summary and use AskUserQuestion: "이 범위로 구현을 시작해도 되겠습니까?" DO NOT START IMPLEMENTATION WITHOUT USER APPROVAL.
  11. After approval, provide implementation guide based on do.template.md
  12. Reference implementation order from Design document (filtered by --scope if provided)
  13. Code Comment Convention (Phase 3): During implementation, add Design reference comments for key architectural decisions:
    • At module/file level: // Design Ref: §{section} — {decision rationale}
    • At critical logic: // Plan SC: {success criteria being addressed}
    • These comments create traceable links from code back to design decisions
  14. Complete predecessor Task first: Use TaskList to find the [Design] {feature} Task (and any earlier phase Task for this feature still in_progress) and TaskUpdate each to status: "completed" — this resolves the blockedBy chain and prevents stale phase status from leaking into prompt context (see Phase Transition Rule). Then Create Task: [Do] {feature} (blockedBy: Design task)
  15. Update .bkit/state/pdca-status.json: phase = "do"

--scope Parameter:

/pdca do feature                      # Full scope (backward compatible) + session guide
/pdca do feature --scope module-1     # Only module-1
/pdca do feature --scope module-1,module-2  # Multiple modules

Guide Provided:

  • Context Anchor (WHY/WHO/RISK/SUCCESS/SCOPE)
  • Session scope (filtered or full)
  • Implementation order checklist
  • Key files/components list
  • Dependency installation commands

analyze (Check Phase)

  1. Verify Do completion status (implementation code exists)

  2. Full Upstream Context Loading (Phase 2+3): Load the COMPLETE upstream document chain for comprehensive evaluation:

    • Read PRD (docs/00-pm/{feature}.prd.md) — verify strategic alignment (was the right problem solved?)
    • Read Plan (docs/01-plan/features/{feature}.plan.md) — verify Requirements fulfillment + Success Criteria
    • Read Design (docs/02-design/features/{feature}.design.md) — verify structural implementation match
    • This 3-layer verification catches gaps that single-document comparison misses
  3. Context Anchor Embed: Copy Context Anchor from Design to Analysis document header.

  4. Strategic Alignment Check (Phase 3): Before structural gap analysis, verify:

    • Does the implementation address the PRD's core problem (WHY)?
    • Are Plan Success Criteria met or on track?
    • Were key Design decisions (architecture, data model, API) followed?
    • Flag strategic misalignments as Critical regardless of structural match rate
  5. Plan Success Criteria Reference: Evaluate each Success Criteria from Plan:

    • Mark as ✅ Met / ⚠️ Partial / ❌ Not Met
    • Include evidence (file:line or test result)
    • Criteria violations are automatically Critical severity
  6. Call gap-detector Agent (v2.3.0: Static Analysis + Runtime Verification Plan)

    • gap-detector performs static analysis (Structural + Functional + Contract)
    • gap-detector outputs a Runtime Verification Plan (L1/L2/L3 test specs)
  7. Compare Design document vs implementation code on 3 static axes:

    • Structural Match: File existence, route coverage, component list
    • Functional Depth: Placeholder detection, Page UI Checklist verification, actual logic completeness
    • API Contract: 3-way verification (Design §4 ↔ Server route.ts ↔ Client fetch calls)
  8. Runtime Verification (v2.3.0): After gap-detector completes, execute runtime tests.

    • Preferred: Run existing tests from tests/e2e/{feature}.spec.ts (written during Do phase)
    • Fallback: If no test file exists, generate from gap-detector's Runtime Verification Plan
    • Test scenarios are defined in Design §8 Test Plan, implemented during Do phase, executed here

    L1 — API Endpoint Tests (always run if server is available):

    • Execute each curl command from gap-detector's L1 plan
    • Check: HTTP status code matches expected
    • Check: Response JSON shape matches expected (has .data, .error, .pagination)
    • Check: Auth guard returns 401 for protected endpoints
    • Check: Zod validation returns 400 with fieldErrors for invalid input
    • Check: Rate limiting returns 429 after threshold
    • Detect server: curl -s -o /dev/null -w "%{http_code}" http://localhost:3000/
    • If no server running: skip L1, warn user, use static-only formula

    L2 — UI Action Tests (run if Playwright is installed):

    • Generate Playwright test file from gap-detector's L2 plan
    • Write to tests/e2e/{feature}-actions.spec.ts
    • Run: npx playwright test tests/e2e/{feature}-actions.spec.ts
    • Each test: navigate to page → perform action → assert result
    • Check: API calls triggered by UI match expected endpoints
    • If Playwright not installed: skip L2, suggest pnpm add -D @playwright/test

    L3 — E2E Scenario Tests (run if Playwright is installed):

    • Generate Playwright test file from gap-detector's L3 plan
    • Write to tests/e2e/{feature}-e2e.spec.ts
    • Run: npx playwright test tests/e2e/{feature}-e2e.spec.ts
    • Full user journey: multi-page flows with state persistence
    • Check: complete flow from start to end without errors

    Match Rate Formula (v2.3.0):

    If runtime executed:
      Overall = (Structural × 0.15) + (Functional × 0.25)
              + (Contract × 0.25) + (Runtime × 0.35)
    If static only (no server):
      Overall = (Structural × 0.2) + (Functional × 0.4) + (Contract × 0.4)
    
  9. Calculate Match Rate and generate Gap list. Report all rates separately.

  10. Decision Record Verification (Phase 3): Check if key decisions from Decision Record Chain were followed in implementation. Flag deviations.

  11. Checkpoint 5 — Review Decision: Present issues by severity (Critical/Important only, confidence ≥80%). Use AskUserQuestion with options:

    • "지금 모두 수정" — proceed to iterate
    • "Critical만 수정" — iterate critical only
    • "그대로 진행" — accept current state Wait for user decision before proceeding.
  12. Complete predecessor Task first: Use TaskList to find the [Do] {feature} Task (and any earlier phase Task for this feature still in_progress) and TaskUpdate each to status: "completed" — this resolves the blockedBy chain and prevents stale phase status from leaking into prompt context (see Phase Transition Rule). Then Create Task: [Check] {feature} (blockedBy: Do task)

  13. Update .bkit/state/pdca-status.json: phase = "check", matchRate

Output Path: docs/03-analysis/{feature}.analysis.md

qa (QA Phase)

  1. Verify Iterate completion (Match Rate ≥ target or max iterations reached)
  2. Delegate to qa-phase skill: Invoke the standalone /qa-phase {feature} skill, which owns L1-L5 test planning, generation, execution, and reporting.
  3. The qa-phase skill:
    • Reads Design doc §8 Test Plan
    • Calls qa-test-planner to refine L1-L5 test specs
    • Calls qa-test-generator to emit runnable test files
    • Executes L1 (API) / L2 (UI actions) / L3 (E2E) tests via Chrome MCP
    • Optional L4 (perf) / L5 (security) for Enterprise level
  4. Emit one of:
    • QA_PASS → auto-advance to report phase
    • QA_FAIL → fall back to iterate phase
    • QA_SKIP → mark qa as skipped, proceed to report
  5. Complete predecessor Task first: Use TaskList to find the [Check] {feature} Task and the latest [Act-N] {feature} Task (and any earlier phase Task for this feature still in_progress) and TaskUpdate each to status: "completed" (see Phase Transition Rule). Then Create Task: [QA] {feature}
  6. Update .bkit/state/pdca-status.json: phase = "qa", qaStatus = <PASS|FAIL|SKIP>

Output Path: docs/05-qa/{feature}.qa-report.md

Agent: bkit:qa-lead (mapped via frontmatter agents.qa)

iterate (Act Phase)

  1. Check results (when matchRate < 90%)
  2. Call pdca-iterator Agent
  3. Auto-fix code based on Gap list
  4. Auto re-run Check after fixes
  5. Complete predecessor Task first: Use TaskList to find the [Check] {feature} Task and any prior [Act-*] {feature} Task for this feature still in_progress and TaskUpdate each to status: "completed" (see Phase Transition Rule). Then Create Task: [Act-N] {feature} (N = iteration count)
  6. 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)

  1. Template Loading: Read templates/report.template.md to understand the required Report document structure. Use this template's sections as your document outline. This is MANDATORY — do not generate Report documents from memory or assumptions.
  2. Verify Check >= 90% (warn if below)
  3. Full Upstream Context Loading (Phase 2+3): Load ALL upstream documents for comprehensive reporting:
    • Read PRD — compare original value proposition vs delivered value
    • Read Plan — compare planned Requirements/Success Criteria vs actual results
    • Read Design — note architecture decisions and deviations
    • Read Analysis — include final Match Rate and resolved gaps
    • This ensures the report reflects the FULL journey from PRD→Code
  4. Call report-generator Agent
  5. Integrated report of PRD, Plan, Design, Implementation, Analysis
  6. Decision Record Summary (Phase 3): Include section "Key Decisions & Outcomes":
    • List decisions from PRD→Plan→Design chain
    • For each: was it followed? what was the outcome?
    • This creates a learnable record for future PDCA cycles
  7. Success Criteria Final Status: Include Plan Success Criteria with final status:
    • Each criterion: ✅ Met (with evidence) / ❌ Not Met (with reason)
    • Overall Success Rate: X/Y criteria met
  8. Include ## Executive Summary with ### 1.3 Value Delivered reflecting actual results (4 perspectives with metrics)
  9. MANDATORY: After completing the report, also output the Executive Summary table in your response
  10. Complete predecessor Task first: Use TaskList to find the [QA] {feature} Task (or the [Check] {feature} / latest [Act-N] {feature} Task if QA was skipped) and any earlier phase Task for this feature still in_progress, and TaskUpdate each to status: "completed" (see Phase Transition Rule). Then Create Task: [Report] {feature}
  11. Update .bkit/state/pdca-status.json: phase = "completed"

Output Path: docs/04-report/{feature}.report.md

team (Team Mode) - v1.5.1

Start PDCA Team Mode using Claude Code Agent Teams (requires CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1).

team [feature] - Start Team Mode

  1. Check if Agent Teams is available: call isTeamModeAvailable() from lib/team/coordinator.js
  2. If not available, display: "Agent Teams is not enabled. Set CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 to enable."
  3. Detect project level via detectLevel() - Starter projects cannot use Team Mode
  4. Generate team strategy via generateTeamStrategy(level):
    • Dynamic: 3 teammates (developer, frontend, qa) — CTO Lead orchestrates
    • Enterprise: 5 teammates (architect, developer, qa, reviewer, security) — CTO Lead orchestrates
  5. CTO Lead (cto-lead agent, fable) automatically:
    • Sets technical direction and selects orchestration pattern
    • Distributes tasks to teammates based on PDCA phase
    • Enforces quality gates (90% Match Rate threshold)
  6. Show strategy and confirm with AskUserQuestion before starting
  7. Assign PDCA tasks to teammates via assignNextTeammateWork()

team status - Show Team Status

  1. Call formatTeamStatus() from lib/team/coordinator.js
  2. Display: Team availability, enabled state, display mode, teammate count
  3. Show current PDCA feature progress per teammate if active

Output Example:

📊 PDCA Team Status
─────────────────────────────
Agent Teams: Available ✅
Display Mode: in-process
Teammates: 4 / 4 (Enterprise)
─────────────────────────────
Feature: user-auth
  architect: [Design] in progress
  developer: [Do] waiting
  qa: idle
  reviewer: idle

team cleanup - Cleanup Team Resources

  1. Stop all active teammates
  2. Record team_session_ended in PDCA history via addPdcaHistory()
  3. Return to single-session PDCA mode
  4. Display: "Returning to single-session mode"

Required Environment: CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1

Level Requirements:

LevelAvailableTeammatesCTO Lead
StarterNo--
DynamicYes3cto-lead (fable)
EnterpriseYes6cto-lead (fable)

archive (Archive Phase)

  1. Verify Report completion status (phase = "completed" or matchRate >= 90%)
  2. Complete the terminal Task: Use TaskList to find the [Report] {feature} Task and any other [Phase] {feature} Task for this feature still in_progress, and TaskUpdate each to status: "completed" — the feature is terminal, so no phase Task should remain open (see Phase Transition Rule).
  3. Verify PDCA documents exist (plan, design, analysis, report)
  4. Create docs/archive/YYYY-MM/{feature}/ folder
  5. Move documents (delete from original location)
  6. Update Archive Index (docs/archive/YYYY-MM/_INDEX.md)
  7. Update .bkit/state/pdca-status.json: phase = "archived", record archivedTo path
  8. Remove feature from status (or preserve summary with --summary option)

Arguments:

ArgumentDescriptionExample
archive {feature}Archive with complete cleanup (default)/pdca archive user-auth
archive {feature} --summaryArchive with summary preservation (FR-04)/pdca archive user-auth --summary

Output Path: docs/archive/YYYY-MM/{feature}/

Documents to Archive:

  • docs/01-plan/features/{feature}.plan.md
  • docs/02-design/features/{feature}.design.md
  • docs/03-analysis/{feature}.analysis.md
  • docs/04-report/features/{feature}.report.md

FR-04: Summary Preservation Option (v1.4.8):

When using --summary (or --preserve-summary, -s), the feature data in .bkit/state/pdca-status.json is converted to a lightweight summary instead of being deleted:

// Summary format (70% size reduction)
{
  "my-feature": {
    "phase": "archived",
    "matchRate": 100,
    "iterationCount": 2,
    "startedAt": "2026-01-15T10:00:00Z",
    "archivedAt": "2026-01-20T15:30:00Z",
    "archivedTo": "docs/archive/2026-01/my-feature/"
  }
}

Use --summary when you need:

  • Historical statistics and metrics
  • Project duration tracking
  • PDCA efficiency analysis

Important Notes:

  • Cannot archive before Report completion
  • Documents are deleted from original location after move (irreversible)
  • Feature name must match exactly
  • Default behavior: complete deletion from status
  • Use --summary to preserve metrics for future reference

cleanup (Cleanup Phase) - v1.4.8

Clean up archived features from .bkit/state/pdca-status.json to reduce file size.

  1. Read archived features from .bkit/state/pdca-status.json
  2. Display list with timestamps and archive paths
  3. Ask user for confirmation via AskUserQuestion (FR-06)
  4. Delete selected features from status using cleanupArchivedFeatures()
  5. Report cleanup results

Arguments:

ArgumentDescriptionExample
cleanupInteractive cleanup (shows list)/pdca cleanup
cleanup allDelete all archived features/pdca cleanup all
cleanup {feature}Delete specific feature/pdca cleanup old-feature

Output Example:

🧹 PDCA Cleanup
─────────────────────────────
Archived features found: 3

1. feature-a (archived: 2026-01-15)
2. feature-b (archived: 2026-01-20)
3. feature-c (archived: 2026-01-25)

Select features to cleanup:
[ ] All archived features
[ ] Select specific features
[ ] Cancel

Related Functions (lib/pdca/status.js):

  • getArchivedFeatures() - Get list of archived features
  • cleanupArchivedFeatures(features?) - Cleanup specific or all archived
  • deleteFeatureFromStatus(feature) - Delete single feature
  • enforceFeatureLimit(max=50) - Auto cleanup when limit exceeded

Notes:

  • Only archived/completed features can be deleted
  • Active features are protected from deletion
  • Archive documents remain in docs/archive/ (only status is cleaned)

status (Status Check)

  1. Read .bkit/state/pdca-status.json (the live state-of-truth; via the lib/pdca/status-core.js API). Note: .bkit-memory.json is a deprecated v1.6.0 legacy path that no lib module reads or writes.
  2. Display current feature, PDCA phase, Task status
  3. 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)

  1. Check current PDCA phase
  2. Suggest next phase guide and commands
  3. Confirm with user via AskUserQuestion

Phase Guide:

CurrentNextSuggestion
Nonepm/pdca pm [feature] (recommended) or /pdca plan [feature]
pmplan/pdca plan [feature] (PRD auto-referenced)
plandesign/pdca design [feature]
designdoImplementation start guide
docheck/pdca analyze [feature]
check (<90%)act/pdca iterate [feature]
check (>=90%)report/pdca report [feature]
reportarchive/pdca archive [feature]

Template References

Templates loaded from imports are used when executing each action:

ActionTemplatePurpose
planplan.template.mdPlan document structure
designdesign.template.mdDesign document structure
dodo.template.mdImplementation guide structure
analyzeanalysis.template.mdAnalysis report structure
reportreport.template.mdCompletion report structure

Task Integration

Each PDCA phase automatically integrates with Task System:

Task Creation Pattern:
┌────────────────────────────────────────┐
│ [PM] {feature}                         │
│   ↓ (optional, pre-Plan)               │
│ [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}                    │
└────────────────────────────────────────┘

Phase Transition Rule (task completion)

The diagram above shows task creation. Advancing a phase also requires task completion:

Before creating a new phase's Task, mark every prior [Phase] {feature} Task for this feature that is still in_progress as completed — use TaskList to find them and TaskUpdate {status: "completed"} on each. The archive action likewise completes the terminal [Report] Task.

Why this matters: a blockedBy chain is only semantically correct when the predecessor is completed by the time the successor is created. More importantly, Claude Code surfaces the native Task list into ambient prompt context every turn. If a predecessor Task is left in_progress, that stale phase (e.g. "design" during a "do" phase) keeps leaking back to the user — disagreeing with .bkit/state/pdca-status.json's phase field, which is the phase source of truth. Completing predecessors keeps the two in sync. Each phase action above embeds this step immediately before its Create-Task step.

Agent Integration

ActionAgentRole
pmpm-leadOrchestrate PM Agent Team (4 sub-agents)
analyzegap-detectorCompare Design vs Implementation
iteratepdca-iteratorAuto code fix and re-verification
reportreport-generatorGenerate completion report

Usage Examples

# Run PM analysis (recommended before planning)
/pdca pm user-authentication

# 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 CommandPDCA 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

Output Style Integration (v1.5.1)

PDCA workflows benefit from the bkit-pdca-guide output style:

/output-style bkit-pdca-guide

This provides PDCA-specific response formatting:

  • Phase status badges: [Plan] -> [Design] -> [Do] -> [Check] -> [Act]
  • Gap analysis suggestions after code changes
  • Next-phase guidance with checklists
  • Feature usage report integration

When running PDCA commands, suggest this style if not already active.

Agent Teams Integration (v1.5.1)

For Dynamic/Enterprise projects, PDCA phases can run in parallel using Agent Teams:

/pdca team {feature}        Start parallel PDCA
/pdca team status            Monitor teammate progress
/pdca team cleanup           End team session

Suggest Agent Teams when:

  • Feature is classified as Major Feature (>= 1000 chars)
  • Match Rate < 70% (parallel iteration can speed up fixes)
  • Project level is Dynamic or Enterprise

CTO-Led Team Orchestration Patterns:

LevelPlanDesignDoCheckAct
Dynamicleaderleaderswarmcouncilleader
Enterpriseleadercouncilswarmcouncilwatchdog

Auto Triggers

Auto-suggest related action when detecting these keywords:

KeywordSuggested Action
"pm", "product discovery", "PRD", "market analysis"pm
"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", "store"archive
"cleanup", "clean", "remove old"cleanup

Slash Invoke Pattern (CC 2.1.0+)

Skills 2.0 enables direct slash invocation for all PDCA commands:

  • /pdca plan [feature] — Create Plan document
  • /pdca design [feature] — Create Design document
  • /pdca do [feature] — Implementation guide
  • /pdca analyze [feature] — Gap analysis (Check phase)
  • /pdca iterate [feature] — Auto-improvement (Act phase)
  • /pdca qa [feature] — Run QA phase (L1-L5 tests)
  • /pdca report [feature] — Completion report
  • /pdca status — Current PDCA status
  • /pdca next — Next phase guide
  • /plan-plus [feature] — Brainstorming-enhanced planning

Hot reload: SKILL.md changes reflect without session restart (CC 2.1.0+).

PDCA Auto-Monitoring (CC v2.1.71+)

CC v2.1.71 introduces /loop command and Cron tools for automated monitoring.

Usage Examples

  • /loop 5m /pdca status - Check PDCA status every 5 minutes
  • /loop 10m /pdca analyze [feature] - Run Gap analysis every 10 minutes
  • Use Cron tools for session-level scheduled checks

CTO Team Integration

  • Long CTO Team sessions benefit from /loop for progress monitoring
  • stdin freeze fixed in v2.1.71 ensures reliable long sessions
  • Background agent recovery (v2.1.71) makes background: true agents reliable

发现问题?提交给管理员复核

评分:

评论 (0)

暂无评论,成为第一个评论者吧!