PR 描述与提交信息撰写
pr-description
起草 Nacelle 的 PR 标题、拉取请求描述、提交标题、提交描述以及 squash 提交信息。当被要求提供 PR 或提交的措辞、分支摘要,或可用于提交的 PR 描述时使用。提交正文中省略验证部分,并删除冗余内容。
- License 许可
- MIT
- 最近更新
- 2026-11-13
- Stars
- ★ 7
- Forks
- 3
01 前言 Front Matter
- name
- pr-description
- description
- Draft Nacelle PR titles, pull request descriptions, commit titles, commit descriptions, and squash commit messages. Use when asked for PR or commit wording, a branch summary, or a PR description that can be used in a commit. Omit validation sections from commit bodies and remove filler.
02 资源文件 2
- 参考文档tests/fixtures.json13.7 KB
- 脚本tests/test_guidance.py73.8 KB
03 SKILL.md 正文
Drafting PR and Commit Text
Produce copyable text grounded in the requested change. Drafting does not authorize creating a PR, committing, pushing, or modifying source files.
Follow the repository instructions and general communication and documentation styles.
Establish the Scope
- Use the user's requested branch, commit range, staged changes, or PR. For a whole-branch description, inspect the diff against the target branch and the commits in that range, not just the latest commit or conversation.
- Check the working-tree state. Distinguish committed changes from staged or unstaged changes; do not imply uncommitted work is already in a PR.
- Use an existing local target ref, normally
origin/main, unless the user specifies another. Do not fetch or change branches just to draft text. - Read enough of the affected implementation and documentation to establish behavior, rationale, compatibility consequences, and migration requirements. Treat commit messages and previous summaries as claims to verify.
- If the target ref or necessary evidence is unavailable, state that limitation outside the draft. Do not invent changes, motivations, or successful checks.
Titles
- Use a concise Conventional Commit title:
<type>(<optional-scope>): <concrete result>. - Choose the type from the main outcome:
fix,feat,refactor,perf,docs,test, orchore. Name an owning crate or subsystem when a scope improves clarity; omit it for cross-cutting changes. - Use an imperative verb and no trailing period. Avoid vague titles such as "update code" or "address feedback."
- Use
!for an intentional breaking change, and explain the required caller migration in the description or aBREAKING CHANGE:footer. - A PR and its squash commit can share a title. Use different titles only when their scopes differ.
PR Description
- Lead with the change and its reason. Summarize the resulting behavior rather than the order in which files were edited.
- Use a short paragraph or a few parallel bullets. Include compatibility, configuration, operational consequences, and migration instructions when relevant. Omit empty headings and unrelated follow-up work.
- Include validation evidence only when useful, requested, or required by an existing PR template. Distinguish checks run from checks not run and disclose relevant failures; never infer that CI passed.
- If the user wants the PR description reused as a commit body, apply the commit-description rules instead. Put any necessary check results or remaining validation failures in a separate note, not in the copyable body.
Commit Description
- Explain the concrete change and why it is needed. Retain consequential design choices, compatibility details, and migration instructions.
- Omit the entire validation section. Do not replace it with a
Testing,Checks, orVerificationsection, test counts, command transcripts, CI status, or a paragraph saying checks passed. - Describing added or changed tests is allowed when those tests are part of the change; reporting their execution results is not part of the commit body.
- Keep necessary validation evidence and known gate failures in the PR description or a separate handoff note. Omitting them from a commit body does not authorize hiding failures or claiming readiness.
- Include a
BREAKING CHANGE:footer when needed. Preserve required issue references and trailers when preparing a complete commit message.
Remove Filler
- Do not write "this is a real issue" or similar assurances. Name the triggering condition, incorrect behavior, and consequence instead.
- Remove introductory ceremony, self-praise, repeated summaries, unsupported certainty, and modifiers that add no technical distinction.
- Describe observable behavior instead of calling a change "robust," "comprehensive," "proper," or "actual" without explaining what those words distinguish. Preserve identifiers, quotations, and terms with a technical meaning.
- Do not make performance, security, or production-readiness claims without evidence. Prefer an accurate description of the change to a sales claim.
Output
Return only the requested fields. When both PR and commit text are requested, default to a shared PR / commit title, a PR description, and a separate Commit description. Put each in its own fenced block with labels outside the blocks. For a complete commit message, combine the title, a blank line, the body, and any required footers in one block.
For "a PR description that can be used in a commit," return a shared title and one commit-ready description without a validation section. Keep any necessary evidence or limitation note outside those blocks. Do not run builds or tests solely to draft text, and do not add process narration around the deliverables.
04 同仓库更多 Skills
Nacelle 复杂任务规划
planning
规划范围广或风险较高的 Nacelle 工作。适用于架构变更、迁移、发布或生产就绪度评估、安全加固、性能基线、文档重构、验证策略或多会话任务。
Nacelle Rust 代码审查
nacelle-review
审查 Nacelle 的 Rust 与 Cargo 变更,重点关注解码器进度、响应字节归因、缓冲区所有权、传输与 Handler 契约、取消机制、背压、TLS 隔离、特性(features)以及行为验证。
技术文档审查
docs-review
审查 Nacelle 的 README、rustdoc、Markdown、mdBook 导航、命令、链接、API 契约以及就绪度措辞,并对照实现和验证证据进行核对。
Nacelle 代码审查
code-review
审查 Nacelle 的拉取请求(PR)、整个分支、差异(diff)和本地改动,检查经过验证的正确性、兼容性、资源使用、性能和文档方面的问题。对于规模较大、可独立进行的分支审查范围,协调多个审查者共同参与。