pdlc-skills
English · 中文

Author: kanfu-panda
Repo: github.com/kanfu-panda/pdlc-skills
License: MIT
pdlc-skills is built on one rule: an AI saying "done" doesn't count — exit codes do. It's a set of skills — a plugin in Claude Code, and a one-command install in Codex, GitHub Copilot, Cursor, Gemini CLI and any other tool that loads the Agent Skills standard — shipping a staged PDLC (Product Development Life Cycle) workflow — PRD → design → TDD → implement → review → ship → deploy → retro — on top of an auditable, on-disk state machine: every stage persists its artifacts to docs/, updates a per-feature state file, demands red tests before code, self-checks before handing off, and auto-repairs at most once.
Four things fall out of that:
- Verified — the test / lint / coverage results in the state machine are produced by a script from real command exit codes, never typed in by the model; every state write is followed by a contract check; and behavioural evals run the skills against real models to catch the model quietly ignoring the rules. See How it's verified.
- Auditable — every artifact lands on disk; you
git diff exactly what the AI did.
- Autonomous — because the checks are objective, a loop can drive
tdd → implement → review to convergence unattended, each step in a fresh process, with fail-stop, stuck-stop, and budget guards.
- Portable — the state machine lives in your repo, so it's tool-agnostic. Claude Code has the richest integration (38 slash commands + statusline + in-plugin loop engine); other tools install 36 skills with
npx skills add kanfu-panda/pdlc-skills and drive the same methodology. See Multi-platform.
Why PDLC
Without this plugin, an AI assistant working on a feature typically:
- Says it built the feature, but the PRD lives only in the chat transcript.
- Writes code without writing tests first.
- Skips the design step, which means architectural drift accumulates silently.
- Has no memory between sessions of which stage a feature is in.
PDLC turns those soft conventions into hard contracts:
| Hard contract | What it gives you |
|---|
Every artifact lands on disk under docs/ | You can git diff what the AI did |
| Every stage updates a per-feature state machine | /pdlc-status always knows where you are |
| Tests must exist (and fail) before implementation | Real TDD red-light gate, not a suggestion |
| Each stage runs a self-check before handing off | Catch drift at stage boundary, not in review |
| Auto-repair runs at most once | No infinite "fix → check → fix" loops |
Each stage declares its next_step | Multi-stage flows are command-driven, not memorized |
How it's verified
A typical AI workflow kit is prompts plus templates: it asks the model to write tests first and report honestly, then trusts that it did. pdlc-skills assumes the model will sometimes not comply, and checks at three layers: