skills/dbx-work-commit-pr/SKILL.md
用中文生成或评审工作场景的 commit message 与 PR 描述。适用于用户请求根据最终 diff、 staged changes、working tree changes 或指定 commit 生成 `M-xxx(type): title` commit, 以及中文合同式 PR 四块结构。只以最终变更集为事实边界,忽略聊天过程、失败尝试、 被否决方案和临时调试。不要用于公开开源英文 PR、普通代码 review、实现任务或泛泛解释 commit 概念。
npx skillsauth add dbvc/skills dbx-work-commit-prInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
生成中文工作场景的 commit message 与 PR 描述。
核心分工:
不要把聊天记录写成工程事实。最终变更集才是事实边界。
使用本 skill:
M-xxx(type): title 格式;不要使用本 skill:
dbx-open-source-commit-pr;按这个优先级收集事实:
默认排除:
除非用户明确要求,并且这些内容确实属于最终公开记录的一部分。
优先从最终变更获取信息。缺失时只问会影响输出正确性的最少问题:
M-xxx;未知时可保留 M-xxx,不要臆造;feat|fix|inf|chore|test|docs;不确定时基于 diff 推断或询问;不要为了追求模板完整而盘问一长串问题。
scripts/check_commit_pr_output.py 做质量门检查。格式:
M-xxx(type): {title}
{optional body}
规则:
M-xxx。feat|fix|inf|chore|test|docs 中选。Why/Context: 最终变更或用户明确最终事实能支撑的动机;What: 关键实现或行为变化;Proof: 具体证据或明确未验证;Risk: 长期有效风险与缓解;Notes: 兼容性、迁移、行为差异。Proof 要具体:
Proof:
- 自动:pnpm lint && pnpm test
- 手动:创建订单并确认状态流转为 paid
- 未验证:未跑端到端用例
不要写:
Proof: 已测试
Proof: 测试通过
Proof: 本地测过
使用四块结构:
## 做了什么/为什么
- ...
## 证明它可行
- 自动验证:...
- 手动验证:...
- 未验证:...
## 风险与 AI 参与
- 风险:...
- AI 参与:有/无,作用范围:...
## 评审关注点
- ...
规则:
未验证:...。从最终变更中找这些信号:
只写最重要的,不要把清单机械搬进 PR。
多主题改动时先提示:
这个变更集包含多个主题,建议拆成多个 commit,原因是:...
建议拆分:
- M-xxx(type): ...
- M-xxx(type): ...
如果用户明确要求合并,再生成单个 commit,但要让 PR body 说明主要影响面。
commit only:只输出 commit title + optional body。
PR only:只输出四块 PR 描述。
both:先 commit,再 PR。
review existing text:输出问题列表 + 改写版本,不要重讲全部规则。
scripts/check_commit_pr_output.py 可检查保存后的工作 PR 文案:
python3 scripts/check_commit_pr_output.py --artifact both --file /path/to/output.md
它只检查常见文字质量门,不替代最终 diff 阅读。
testing
Manual trigger only. Use only when the user explicitly names `dbx-software-plan-first-showhand`, `$dbx-software-plan-first-showhand`, or asks to manually trigger this exact DBX Software Plan-First safe automatic execution phase. Do not auto-trigger for ordinary automatic execution, do-it-all, showhand, or plan-first requests.
testing
Manual trigger only. Use only when the user explicitly names `dbx-software-plan-first-plan-issue`, `$dbx-software-plan-first-plan-issue`, or asks to manually trigger this exact DBX Software Plan-First plan convergence phase. Do not auto-trigger for ordinary planning, Plan mode, repository exploration, or implementation requests.
testing
Manual trigger only. Use only when the user explicitly names `dbx-software-plan-first-implement-feature`, `$dbx-software-plan-first-implement-feature`, or asks to manually trigger this exact DBX Software Plan-First review-gated single-task implementation phase. Do not auto-trigger for ordinary implementation, tasks.md, next-task, or plan-first requests.
testing
Manual trigger only. Use only when the user explicitly names `dbx-software-plan-first-ground-plan`, `$dbx-software-plan-first-ground-plan`, or asks to manually trigger this exact DBX Software Plan-First read-only grounding phase. Do not auto-trigger for ordinary repo reading, fact checking, plan writing, or implementation requests.