/pdlc:pdlc-settings [statusline | status | hooks [on|off|status]]from pdlc
交互式配置 PDLC 状态栏(statusline)的启用/停用/展示项,以及项目级护栏 hooks 的开关。通过菜单引导,自动读写全局 settings.json。
Ships in pdlc. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
以交互菜单方式配置 PDLC,让用户少敲命令行。包含两节:
⚠️ 安全底线:本命令会读写用户全局
~/.claude/settings.json(高影响)。任何写入前必须: 先备份 → 展示 diff → 用户确认。写全局配置可能被 Claude Code 安全层拦截——届时不谎报成功, 优雅降级为「已算好这一行,请你确认后手动粘贴」。重复运行幂等,绝不覆盖用户其它配置。
根据本命令的参数分派;参数为空则显示主菜单:
⚙️ PDLC 设置
1) 状态栏 · 启用 在状态栏独占一行显示 PDLC 状态
2) 状态栏 · 停用 从状态栏移除本段(不动你其它配置)
3) 状态栏 · 展示项 勾选显示哪些内容(进度条/检查/停留时长…)
4) 状态栏 · 状态 查看当前是否已接线 + 生效配置 + 预览
5) 护栏 · 开关 在当前项目开启 / 关闭 PDLC hooks
6) 护栏 · 状态 查看当前项目的护栏开关
请选择(1-6):
hooks 开头 → hooks on / hooks off 直接走「护栏 · 开关」,hooks status 或只有 hooks 走「护栏 · 状态」status → 直接走「状态栏 · 状态」statusline → 进入状态栏子菜单接线依赖状态栏脚本 bin/pdlc-statusline.sh。按以下顺序找第一个存在的副本作为符号链接源,
优先稳定源(升级不改路径):
~/.claude/plugins/marketplaces/pdlc-skills/bin/pdlc-statusline.sh (marketplace 克隆,最稳)${CLAUDE_PLUGIN_ROOT}/bin/pdlc-statusline.sh (当前插件根,若该环境变量存在)ls -d ~/.claude/plugins/cache/pdlc-skills/pdlc/*/bin/pdlc-statusline.sh | sort -V | tail -1(按版本号取最大,不按修改时间:升级时旧版本目录的修改时间可能反而更新)用 Bash 依次探测,记下命中的路径记为 $SL。都找不到 → 提示用户先 claude plugin install pdlc@pdlc-skills 再来。
bash "$SL" --install
~/.claude/pdlc-statusline 建符号链接指向 $SL(升级后重跑本命令即重指,用户侧命令不变)。~/.claude/settings.json(不存在则视为 {})。取 .statusLine.command(可能为空)。pdlc-statusline(任意形式)→ 告知「已接线,无需重复」,转去「展示项」或结束。<现有命令>; ~/.claude/pdlc-statusline(现有为空则新命令就是 ~/.claude/pdlc-statusline)。.statusLine 不存在,需同时补 "statusLine": { "type": "command", "command": "<新命令>" }。~/.claude/settings.json 复制为 ~/.claude/settings.json.pdlc-bak(已存在则加时间戳后缀)。
向用户展示将要变更的那一行 diff(旧 command → 新 command)。settings.json(保持其余字段与格式不变)。<bak>。
请把 ~/.claude/settings.json 的 statusLine.command 手动改为:」,并给出完整新命令原文一行,供用户复制粘贴。printf '{"workspace":{"current_dir":"%s"}}' "$PWD" | bash "$SL"
(当前项目非 PDLC / 无状态文件则为空,属正常。).statusLine.command。若不含 pdlc-statusline → 告知「未接线,无需停用」。; ~/.claude/pdlc-statusline(及等价的仅本段情形;若本段是唯一内容则清空 command 或移除 statusLine——按用户意愿)。绝不动用户其它命令片段。<旧命令去掉本段后的值>」。
4.(可选)询问是否一并 bash "$SL" --uninstall 移除稳定链接。交互勾选,写入配置文件(不碰 settings.json,无 gate 风险):
逐项询问(回车用默认):
| 项 | 键 | 默认 |
|---|---|---|
| 迷你进度条 | show_progress_bar | on |
| 下一步 | show_next | on |
| 运行态图标 | show_run_icon | on |
| 检查结果(auto=仅 autonomous 显) | show_checks | auto |
| 停留时长(auto=blocked/autonomous 显) | show_elapsed | auto |
| 显示完整 ID(否则仅功能名) | show_full_id | off |
| 多 feature 选谁(auto/latest/具体 ID) | pick_feature | auto |
| 颜色 | color | on |
询问写全局还是项目级:
~/.claude/pdlc-statusline.json<当前项目>/docs/.pdlc-state/statusline.json用 Write 写入选定 JSON(参考 references/templates/pdlc-statusline.example.json 的键)。这两个文件不受安全层 gate(非 settings.json)。
当场预览:同上用脚本渲染一行给用户确认效果。
只读、不改任何东西:
.statusLine.command,报告是否含 pdlc-statusline。~/.claude/pdlc-statusline 是否存在、指向哪。~/.claude/pdlc-statusline.json 与项目级 docs/.pdlc-state/statusline.json(后者覆盖),列出各项当前值(缺省即默认)。开关写在当前项目的 docs/00_standards/pdlc-hooks.yml(随仓库提交、团队共享),不碰 settings.json:
插件的 hooks 随插件启用就已注册,脚本 bin/pdlc-guard.sh 每次先读这个文件,没有它或对应项不是 on 就直接放行。
docs/);不是就说明并结束,不替用户建目录assets/pdlc-hooks-template.yml 为模板写入(两项默认都是 on);用户只想开一项时把另一项改成 offoff(保留文件,方便以后再开);用户明确要求时才删除文件scripts/pdlc-advance.sh只读:读 docs/00_standards/pdlc-hooks.yml,列出 state_write_guard、lint_on_stop 的当前值(文件不存在 = 两项都关)。
项目是 git 仓库时顺带说明:收尾体检只看 git status 里有改动的状态文件;不是 git 仓库时这一项不起作用。
🌐 Output language for generated artifacts
All generated artifacts (PRDs, design docs, code comments, review reports, test plans, deployment manuals, changelog entries, etc.) follow this policy:
Default — match the conversation language exactly:
Explicit override always wins: when the user specifies a language for an artifact (e.g. "write the PRD in English", "用英文写 API 设计文档", "output the deploy doc in Japanese"), use that language for that artifact, regardless of conversation language.
Mixed-language requirements: if the user wants some artifacts in one language and others in a different language (common: Chinese PRD + English API docs for partners), honour each per-artifact instruction.
Uncertain: if you cannot reliably detect the conversation language, ask once before producing the first artifact.
This policy applies to content (prose, comments, headings). It does not override technical conventions like English variable names, English git commit subjects, or English error codes when the project's conventions require them.
docs/.pdlc-state/<id>.json 的业务字段,只读它们用于预览。护栏开关只写 docs/00_standards/pdlc-hooks.yml。settings.json 必须备份 + diff + 确认;被 gate 时降级为「算好 + 用户粘贴」,严禁假装已写成功。参数:$ARGUMENTS
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
38 skills in this plugin
/pdlc-add-app在已有项目里加一个前端应用(先探测布局,跟随现有目录与技术栈);新项目一次性初始化用 /pdlc-bootstrap/pdlc-add-service在已有项目里加一个后端服务(先探测布局,跟随现有目录与技术栈);新项目一次性初始化用 /pdlc-bootstrap/pdlc-adopt已有代码、还没有 PDLC 文档的老项目接入——只读扫描后逆向生成基线文档并做健康检查,不改代码;空目录新项目用 /pdlc-bootstrap/pdlc-api-mock按 API 设计文档生成 Mock 数据与 Mock 服务配置,供前端联调/pdlc-arch架构分析(生成/更新 docs/ARCHITECTURE.md 系统架构总览 · surface 型)/pdlc-bootstrap空目录从一句话描述初始化新项目(服务 / 应用拆分、技术栈、目录骨架与 PDLC 文档目录);已有代码的项目用 /pdlc-adoptnpx claudepluginhub kanfu-panda/pdlc-skills --plugin pdlcOther plugins' skills for the same job