commit-pr-contract
Installation
SKILL.md
Commit/PR Contract
目标
- 生成中文的 commit title/body 与 PR 描述
- 强调 commit 是长期证据,PR 是 reviewer 视角的说明
- 尽量从改动描述/代码差异自行推断风险与 review focus
- 保持简洁、可复用、可追溯
工作流
- 判断输出范围:只 commit、只 PR、或两者都要
- 收集/补齐最小信息(见下方清单)
- 优先根据改动描述/代码差异推断风险、验证方式、review focus
- 识别是否为多主题改动;如是,提示建议拆分 commit(不强制)
- 生成 commit message(按规则与模板)
- 生成 PR 描述(按合同式四块结构)
- 仅在无法推断或影响关键结论时再提问
Related skills
More from dbvc/skills
linus-tech-review
Linus Torvalds 风格的技术方案评估与代码评审。仅在用户明确要求 Linus 式 review 或明确要求严苛评估代码改动/技术方案时使用(如"review 改动/代码""评估方案是否合适""检查提交标准""linus-tech-review")。
30dbx-linus-review
Strict, pragmatic, evidence-driven technical review for code changes, architecture plans, and implementation proposals. Use when the user explicitly requests Linus-style review, harsh/strict review, pragmatic technical critique, or asks whether a code change or technical plan is good enough. Do not use for ordinary explanation, implementation, generic encouragement, or interpersonal judgment.
1