pdlc-standard
管理 00_standards 规范型 surface 产物(add/edit/archive/index)
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
管理 00_standards 规范型 surface 产物(add/edit/archive/index)
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
全自动 PDLC 新功能开发(串联 PRD→设计→TDD→实现→评审→发布)
全自动 Bug 修复(定位→复现→修复→测试→文档)
按设计文档和已有测试用例实现代码(带前置守卫、自检、handoff)
创建 PRD 文档(自动化生成 + 自检 + handoff)
质量闸门——跑真实 check、对照质量目标、出可核对报告,由人签字放行
代码评审 + 文档评审
| name | pdlc-standard |
| description | 管理 00_standards 规范型 surface 产物(add/edit/archive/index) |
| argument-hint | <add|edit|archive|index> [args] |
| allowed-tools | Read, Write, Edit, Glob, Grep, Bash |
| layer | 3 |
| stage | engineering |
| artifact_type | surface |
| produces | ["docs/00_standards/**"] |
| requires | [] |
| next_step | null |
| terminal_state | null |
管理 docs/00_standards/ 下的团队规范(编码约定 / API 约定 / 命名规则等)。这类产物是 surface 型——描述"当前规范是什么"的状态快照,就地编辑而非 ledger 累积。
coding-style-v2.md / coding-style-2026-Q1.md 这类 ledger 绕路。一个主题永远一个文件,就地改。_changelog.md:每次修改在同目录 _changelog.md 追加一条(日期 / 命令 / 变更摘要)。git log <file> 看,不靠多份文件。archive 子命令移到 docs/.archive/standards/(与 /pdlc-arch 共用统一 archive 根 docs/.archive/),留 stub 指向新位置。从 $ARGUMENTS 解析:
add <category>/<name>新建规范。category 如 coding / api / naming。
docs/00_standards/<category>/<name>.md 创建(确认不存在同名 v2 变体)<!-- artifact_type: surface --> 标记_changelog.md 追加创建记录docs/00_standards/_index.mdedit <path> <change>就地编辑已有规范。改完在 _changelog.md 追加变更摘要。禁止另存为新版本文件。
archive <path>移到 docs/.archive/standards/,原位置留 stub(一行指向新位置 + 废弃原因)。
index扫描 docs/00_standards/**,重新生成 _index.md(按 category 分组列出所有规范 + 一句话摘要)。
*-v[0-9] / *-20[0-9][0-9]* 模式不存在)_changelog.md 已追加记录artifact_type: surface 头标记_index.md 与实际文件一致(无遗漏 / 无悬空条目)_changelog.md / _index.md 不一致)→ 直接补状态机豁免:本命令非 feature-scoped,不更新
<feature-id>.json。同/pdlc-changelog。
本命令的 handoff 输出:
✅ 规范操作完成:<子命令> <参数>
📦 已更新:docs/00_standards/<...> + _changelog.md + _index.md
👉 下一步:本次流程结束
规范操作: $ARGUMENTS