pdlc-skills
CLAUDE.md17 starsChanged 7 months agoMITView on GitHub
pdlc-skills is a Claude Code plugin. It exposes 38 standardized "Product Development Life Cycle" stages as slash commands (/pdlc-feature, /pdlc-prd, /pdlc-tdd, ..., /pdlc-onboard) covering PRD → Design → TDD → Implement → Review → Ship → Deploy → Retro and 24 specialized tools. The repo is both a plugin and a single-plugin marketplace (so claude plugin marketplace add github:kanfu-panda/pdlc-skills registers it directly). Claude Code is the first-class target: it loads skills/ directly as a plugin. Other tools get a build-time…
In this repository38 other files it gives its agents.
- pdlc-add-appSkill
- pdlc-add-serviceSkill
- pdlc-adoptSkill
- pdlc-api-mockSkill
- pdlc-archSkill
- pdlc-bootstrapSkill
- pdlc-changelogSkill
- pdlc-code-genSkill
- pdlc-db-designSkill
- pdlc-db-migrateSkill
- pdlc-deploySkill
- pdlc-designSkill
- pdlc-e2eSkill
- pdlc-featureSkill
- pdlc-fixSkill
- pdlc-i18nSkill
- pdlc-implementSkill
- pdlc-lintSkill
- pdlc-loop-nextSkill
- pdlc-loop-runSkill
- pdlc-onboardSkill
- pdlc-perfSkill
- pdlc-prdSkill
- pdlc-qualitySkill
- pdlc-refactorSkill
- pdlc-relateSkill
- pdlc-retroSkill
- pdlc-reviewSkill
- pdlc-securitySkill
- pdlc-settingsSkill
- pdlc-shipSkill
- pdlc-standardSkill
- pdlc-statusSkill
- pdlc-taskSkill
- pdlc-tddSkill
- pdlc-test-setupSkill
- pdlc-ui-design-proSkill
- pdlc-ui-designSkill
The file
We split this CLAUDE.md into the rules it gives an agent
5 rules. About 0 are common, 1 is distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 58
Every sub-skill at skills/pdlc-<name>/SKILL.md becomes the slash command /pdlc-<name> in Claude Code.
- Very specific: line 161
Every Layer 1/2 sub-skill that produces artifacts (i.e.
- Very specific: line 174
When the user invokes a /pdlc-* slash command in their project, the skill reads/writes these paths in that project:
- Very specific: line 197
After editing a fragment, a template or a bin/ script, run python3 adapters/sync_skills.py.
- Distinctive: line 200
Run all eleven test scripts and shellcheck before committing (see "Common commands").
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Repository purpose
pdlc-skills is a Claude Code plugin. It exposes 38 standardized "Product Development Life Cycle" stages as slash commands (/pdlc-feature, /pdlc-prd, /pdlc-tdd, ..., /pdlc-onboard) covering PRD → Design → TDD → Implement → Review → Ship → Deploy → Retro and 24 specialized tools.
The repo is both a plugin and a single-plugin marketplace (so claude plugin marketplace add github:kanfu-panda/pdlc-skills registers it directly).
Claude Code is the first-class target: it loads skills/ directly as a plugin. Other tools get a build-time projection that follows the Agent Skills open standard (adapters/build_agent_skills.py, installed with install.sh --target agents | codex); skills/ itself is not standard-conformant on purpose (it keeps Claude Code's argument-hint and our own top-level fields). See docs/decisions/0007-agent-skills-standard.md.
Repository layout
pdlc-skills/
├── .claude-plugin/
│ ├── plugin.json ← plugin manifest (name, version, author, ...)
│ └── marketplace.json ← marketplace manifest (so the repo is also a marketplace)
├── skills/ ← 38 sub-skills (each = one slash command); every folder is self-contained
│ ├── pdlc-feature/SKILL.md → /pdlc-feature
│ ├── pdlc-prd/SKILL.md → /pdlc-prd (+ assets/: synced template copies)
│ ├── pdlc-status/SKILL.md → /pdlc-status (+ scripts/: synced pdlc-state-lint.sh)
│ └── ... (38 dirs total)
├── bin/
│ ├── pdlc-statusline.sh ← optional statusline segment (scanned by /pdlc-settings)
│ ├── pdlc-state-lint.sh ← read-side contract check run by /pdlc-status · /pdlc-retro · /pdlc-relate
│ └── pdlc-loop.sh ← multi-feature convergence driver (claude | codex, --parallel via worktrees, --status)
├── adapters/
│ ├── sync_skills.py ← inlines fragments + copies templates/scripts into skills/ (rerun after editing any of them)
│ ├── build_agent_skills.py ← Agent Skills standard projection for non-Claude tools (install.sh --target agents)
│ ├── build_codex.py ← same projection, default output dist/codex (install.sh --target codex)
│ └── codex-loop-run.sh ← Codex entry point: bin/pdlc-loop.sh --platform codex
├── references/
│ └── templates/
│ ├── *-template.md ← user-facing document templates
│ └── prompts/*.md ← shared prompt fragments (iron-law / handoff / ...)
├── install.sh ← curl-based one-line installer wrapping `claude plugin install`
├── docs/
│ └── usage-guide.md ← single user manual (architecture + reference + scenarios)
├── tests/ ← 11 scripts, all of them part of the local gate
│ ├── frontmatter-check.sh ← validates skills/<name>/SKILL.md frontmatter
│ ├── install-smoke.sh ← end-to-end install layout test
│ ├── statusline-check.sh ← pdlc-statusline.sh scenario regression
│ ├── adapter-agent-skills-check.sh ← standard projection + install.sh --target agents
│ ├── adapter-codex-check.sh ← adapters/build_codex.py projection output
│ ├── adapter-codex-loop-run-check.sh ← Codex loop-run mapping + guardrails
│ ├── evals-runner-check.sh ← evals/run.sh driver (stubbed, no model spend)
│ ├── evals-scenario-check.sh ← assert_scenario verdicts (stubbed, no model spend)
│ ├── state-lint-check.sh ← bin/pdlc-state-lint.sh findings + read-only check
│ ├── skills-selfcontained-check.sh ← skills self-contained + in sync with their sources
│ └── loop-driver-check.sh ← bin/pdlc-loop.sh with stubbed claude / codex (no model spend)
└── VERSION ← canonical version (mirrored in plugin.json)Sub-skill naming
Every sub-skill at skills/pdlc-<name>/SKILL.md becomes the slash command /pdlc-<name> in Claude Code. The pdlc- prefix is part of the skill name, not a namespace separator. We chose this over the colon namespace /pdlc:<name> for two reasons:
- Visual distinctiveness — typing
/pdlc-filters cleanly to all 38 PDLC commands; suffix-only names (/feature,/fix) collide with built-in commands and other plugins. - Backwards compatibility — matches the v1 mental model of
/pdlc-feature.
The full plugin namespace is pdlc:pdlc-<name> formally, but Claude Code's autocomplete simplifies to /pdlc-<name> since the suffix is unique. Both invocations route to the same skill.
Common commands
Install / upgrade / uninstall (uses Claude Code's claude plugin CLI under the hood):
# One-line curl install
curl -fsSL https://raw.githubusercontent.com/kanfu-panda/pdlc-skills/main/install.sh \
| bash -s -- --global
# Or, equivalent native commands
claude plugin marketplace add kanfu-panda/pdlc-skills
claude plugin install pdlc@pdlc-skillsFor local development from a clone:
claude plugin marketplace add /Users/me/projects/pdlc-skills
claude plugin install pdlc@pdlc-skillsTests — run these locally; CI only fires on release tags and manual dispatch (see "CI scope" below):
bash tests/frontmatter-check.sh # skills/*/SKILL.md frontmatter + VERSION consistency
bash tests/install-smoke.sh # end-to-end install layout assertions
bash tests/statusline-check.sh # bin/pdlc-statusline.sh render scenarios
bash tests/adapter-agent-skills-check.sh # Agent Skills projection conforms to the standard; install.sh --target agents
bash tests/adapter-codex-check.sh # adapters/build_codex.py projection output
bash tests/adapter-codex-loop-run-check.sh # Codex loop-run mapping + guardrails
bash tests/evals-runner-check.sh # evals/run.sh driver (stubbed, no model spend)
bash tests/evals-scenario-check.sh # assert_scenario verdicts (stubbed, no model spend)
bash tests/state-lint-check.sh # bin/pdlc-state-lint.sh contract-check findings
bash tests/skills-selfcontained-check.sh # skills self-contained + in sync with their sources
bash tests/loop-driver-check.sh # bin/pdlc-loop.sh: scheduling, worktrees, guardrails, --status (stubbed)
# or the lot, stopping at the first red script
for f in tests/*.sh; do echo "== $f"; bash "$f" || break; done
shellcheck install.sh tests/*.sh bin/*.sh adapters/*.sh evals/run.sh \
evals/fixtures/*/scenario.sh .githooks/pre-commitAll eleven count — 616 assertions at the time of writing; run them for the current number rather
than trusting this one. The list above once named only two, which quietly documented a 221/304 gate;
if you add a script under tests/, add it here too.
statusline-check.sh additionally needs a run under macOS's stock /bin/bash (3.2.57) — the
statusline script is deliberately bash-3.2 compatible (no mapfile, no bash-4 syntax), and a
Homebrew bash 5 on PATH will happily pass code that breaks on a stock Mac. state-lint-check.sh
already invokes bin/pdlc-state-lint.sh through /bin/bash whenever it exists, for the same reason.
Enable the pre-commit secret scan once per clone (.githooks/pre-commit, uses gitleaks when present and falls back to a pattern scan with a loud warning when it isn't — "can't scan" must never read as "clean"):
git config core.hooksPath .githooksCI scope: every workflow is workflow_dispatch or release-tag triggered — nothing runs on push-to-main or on PRs. Day-to-day checks belong on your machine; CI is reserved for the moment something gets published (secret-scan re-scans the full history with fetch-depth: 0 before a release goes out). Adding a workflow, or widening an existing trigger, needs the maintainer's explicit go-ahead.
Behavioural evals (evals/, added v1.5.3) — verify contracts that only hold when a skill really runs:
./evals/run.sh --check # fixture structure only, no model, free (this is what CI runs)
./evals/run.sh --list # list scenarios
./evals/run.sh --only honest-checks # real run — costs one model turn
./evals/run.sh --platform codex --repeat 3 # pre-release: both platforms, 3 rounds eachThe tier criterion is who executes the contract: deterministic code (bash driver, jq mapping) → stub-testable, keep it in tests/; the model following SKILL.md prose → stubbing the model stubs the object under test, so it needs a real run (A-live). Evals are advisory, never a hard release gate (a rate-limit shouldn't block a release) and never run in CI. Details and cost ledger: evals/EVALS.md, ADR docs/decisions/0005-testing-and-quality-capability.md.
How sub-skills compose
Each skills/pdlc-<name>/SKILL.md has:
- YAML frontmatter (
name,description,argument-hint,allowed-tools, plus PDLC-internal fieldslayer,stage,produces,requires,next_step,terminal_state) — read by Claude Code and our tests, not shown to the model - Markdown body — the workflow Claude follows when the slash command fires
- Shared prompt fragments (IRON LAW, handoff, self-audit, state update, …) — authored once in
references/templates/prompts/<x>.md, referenced as<!-- @include templates/prompts/<x>.md -->, and inlined at build time byadapters/sync_skills.pybetween generated begin / end markers assets//scripts/next toSKILL.md— copies of the templates andbin/scripts the body references as`assets/<file>`/`scripts/<file>`, synced the same way
Why build-time: when a skill fires, the model is handed the skill's base directory and the body — nothing else. It doesn't see the frontmatter (verified), and nothing tells it where references/ or bin/ live, so a runtime "go read the fragment" convention was followed only some of the time. Everything the model needs therefore lives inside the skill folder, which is also what the Agent Skills open standard asks for. For the 12 state-writing skills, the sync step also writes the frontmatter's stage / next_step into the body as a pdlc:meta block.
Layer structure
Sub-skills are grouped by layer: in frontmatter (the 38 names below all carry the pdlc- prefix):
- Layer 1 (3):
pdlc-feature,pdlc-fix,pdlc-status— one-sentence-driven entry points - Layer 2 (11):
pdlc-prd,pdlc-design,pdlc-tdd,pdlc-implement,pdlc-review,pdlc-e2e,pdlc-refactor,pdlc-ship,pdlc-deploy,pdlc-retro,pdlc-task— single-stage fine control Layer 3 (24): specialized tools (
pdlc-ui-design,pdlc-db-design,pdlc-arch,pdlc-lint,pdlc-perf,pdlc-security,pdlc-test-setup,pdlc-quality,pdlc-code-gen,pdlc-add-service,pdlc-add-app,pdlc-api-mock,pdlc-db-migrate,pdlc-i18n,pdlc-changelog,pdlc-standard,pdlc-relate,pdlc-bootstrap,pdlc-adopt,pdlc-onboard,pdlc-ui-design-pro,pdlc-loop-next,pdlc-loop-run,pdlc-settings)pdlc-loop-next/pdlc-loop-runare loop tooling (Loop 工程 / autonomous drive):loop-nextprints the next mechanical-convergence command for an outer loop;loop-runis the convergence engine that auto-advancestdd → implement → reviewuntil reviewed and awaiting release (next_step: pdlc-ship) or blocked (release always stays human). Seedocs/decisions/0001-loop-engineering-integration.md. For several features, parallel runs or long unattended runs,bin/pdlc-loop.shis the external driver (shipped insidepdlc-loop-runandpdlc-statusasscripts/pdlc-loop.sh); its run record (read back by--status) lives in<git common dir>/pdlc-loop/. Seedocs/decisions/0006-multi-feature-loop-driver.md.pdlc-settingsis the interactive config command (Layer 3); currently it wires up the optional PDLC statusline (bin/pdlc-statusline.sh) — enable/disable/display-items. Editing global~/.claude/settings.jsonis backup+diff+confirm-gated and degrades gracefully when the security layer blocks the write. Seedocs/decisions/0002-statusline-pdlc-status.md.
Invariants enforced by the skills themselves
Every Layer 1/2 sub-skill that produces artifacts (i.e. produces: [] is empty for read-only stages like pdlc-status) @includes templates/prompts/iron-law.md, which states the IRON LAW:
- Artifacts must be persisted to disk (not just chat output)
- The state machine
docs/.pdlc-state/<feature-id>.jsonmust be updated on every stage transition - Tests must exist (and be red) before implementation
- A self-check runs before handoff
- Auto-repair runs at most once
- State must advance — a successful stage must change
current_stage; a stalled stage fails loudly instead of returning silently (so autonomous loops can't spin on stale state), except for a deliberate human-block which recordsblocked_reason(added in v1.2)
Skill bodies follow a four-phase skeleton (execute → self-check → one-shot repair → handoff), with next_step: in frontmatter declaring the next stage so multi-stage flows are command-driven, not memorized.
Target-project contract
When the user invokes a /pdlc-* slash command in their project, the skill reads/writes these paths in that project:
docs/00_standards/coding/— coding standards (read bypdlc-prd/pdlc-implement/pdlc-tdd/pdlc-code-gen/pdlc-onboard; optional)docs/00_standards/test-commands.yml— single source of the project's objectivecheckcommands (unit/coverage/lint/e2e), read bypdlc-tdd/pdlc-implement/pdlc-reviewand the loop drivers solast_phase_result.checkscome from real exit codes, not model self-audit; template atreferences/templates/test-commands-template.yml; optionaldocs/01_requirements/prd/docs/02_design/{api,database,architecture,ui-ux}/docs/03_development/— developer manuals (pdlc-onboardwrites here)docs/04_testing/{unit-tests,e2e-tests,defects,security,perf}/docs/05_deployment/— a release-level deploy doc isguides/v<version>-deploy.mddocs/06_tasks/docs/00_standards/quality-targets.yml— declared quality targets (coverage line,core_flows, lint policy) read bypdlc-quality; template atreferences/templates/quality-targets-template.yml; optionaldocs/00_standards/e2e-flow-map.yml— explicitcore_flow → E2E testmap so "all core flows covered" is a mechanical check rather than a model opinion; required oncecore_flowsis declared; template atreferences/templates/e2e-flow-map-template.ymldocs/07_reviews/{doc,code,design,retro,quality}/— thequality/subdir holds datedpdlc-qualityreports as a.md/.htmlpair. The.mdis the source of truth (git diff-able, read bypdlc-shipas a release gate); the.htmlis a self-contained view of the same data (template:references/templates/quality-report-template.html, zero external assets so it opens offline and prints for sign-off). Numbers in the HTML are copied from the.md, never recomputed.docs/.pdlc-state/<feature-id>.json— per-feature state machine, ID formatF<YYYYMMDD>-<HHMMSS>(creation-time, collision-safe under parallel work; legacy-<NN>still parses).current_stageends in_doneonly once released:pdlc-shipwritesship_done,pdlc-deploywritesdeploy_done, every other command writes its stage short name ("reviewed, awaiting release" =next_step: pdlc-ship).worktrees/pdlc-loop/<feature-id>/(branchpdlc-loop/<feature-id>) — one git worktree per feature whenbin/pdlc-loop.shruns with--parallel N>1; the path is added to.git/info/exclude, and the driver never commits or merges there<git common dir>/pdlc-loop/— the driver's run record (latest,<run-id>/run.json, one<feature-id>.json+.logper feature, alock); outside a git repo it falls back todocs/.pdlc-state/_loop/, which readers skip like every_-prefixed entry
Changing this contract requires updating both the relevant skills/pdlc-*/SKILL.md bodies AND the Target-project contract sections in README and docs/usage-guide.md.
When editing this plugin
- Edit sources under
skills/pdlc-<name>/SKILL.md(sub-skill bodies),references/templates/prompts/*.md(shared fragments),references/templates/*-template.*(user document templates) orbin/*.sh. Don't edit installed copies in~/.claude/plugins/cache/. - After editing a fragment, a template or a
bin/script, runpython3 adapters/sync_skills.py. Never hand-edit an inlined region, apdlc:metablock, or anything underskills/*/assets//skills/*/scripts/— they are regenerated, andtests/skills-selfcontained-check.shfails on drift. - In a skill body, reference templates and scripts as
`assets/<file>`/`scripts/<file>`(relative to the skill folder), never astemplates/…or../../…— the model can't resolve those. Use$ARGUMENTSexactly once, on its ownlabel: $ARGUMENTSline: Claude Code substitutes every occurrence, with an empty string when there are no arguments. - New required frontmatter fields → also update
required_fieldsintests/frontmatter-check.sh. - Run all eleven test scripts and shellcheck before committing (see "Common commands").
- New shared prompt fragments → put under
references/templates/prompts/, reference via<!-- @include templates/prompts/<name>.md -->(path is relative toreferences/), then run the sync. Inside a fragment, don't point at another fragment by file name — after inlining, only the fragments a skill itself includes are there. - New sub-skill: create
skills/pdlc-<name>/SKILL.mdwith the standard frontmatter (name: pdlc-<name>, layer/stage, produces/requires, etc.). Thepdlc-prefix in directory andname:is mandatory.
Bumping versions
VERSION and .claude-plugin/plugin.json's version field must match. tests/frontmatter-check.sh asserts this.
Notes
- Public-facing entry:
README.md(English) andREADME.zh-CN.md(Chinese). They mirror each other. - User manual:
docs/usage-guide.md— single source containing install, command catalog, contract, scenarios, FAQ. - This file (
CLAUDE.md) is contributor-facing only. It is still shipped to users, though — see below. Everything in this repo is installed, including dev-only files.
claude plugin installcopies the whole source directory (minus.git) into~/.claude/plugins/cache/, soevals/,tests/,docs/,adapters/,.github/and this file all land on the user's machine (~1.7 MB total as of this writing, of which ~0.9 MB is dev-only).The plugin manifest schema has no
exclude/files/ignorefield, and there is no.claudeignore— verified against the plugins reference. The only way to ship less is to move the user-facing parts (skills/,references/,bin/,.claude-plugin/plugin.json) into a subdirectory and point the marketplace entry'ssourceat it.We deliberately have not done that: the token cost is zero either way (
claude plugin detailsreports ~1,345 always-on tokens, all of it skill descriptions — dev files never enter the context window), so the only gain is ~0.9 MB of disk, against a restructure that touches 26 + 15 + 11 path references and risks silent breakage in the statusline symlink and adapter template paths. Revisit if the plugin grows substantially or if Claude Code adds an exclusion mechanism.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

