用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/getsentry/sentry-rust --skill commit命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | commit |
| description | Use this skill when asked to create or amend a commit. |
Use this skill whenever creating or amending a commit.
Run:
scripts/fetch-commit-guidelines.sh
Use that output as the source of truth for commit format/rules.
Exception: Do not manually wrap lines or enforce maximum line length, ignore any instructions to the contrary.
Commit messages are reused as PR descriptions. Therefore, write commit messages keeping in mind that the primary audiences are human code reviewers and future maintainers. Optimize for skimmability while retaining sufficient context around changes, but do not repeat context that is easily inferred from the changes themselves, linked issues, or background information that mainters with at least a basic familiarity of the codebase would possess.
Some tips:
Commit messages use Markdown formatting. For example, use backticks for technical literals, inline links for URLs, and lists where useful.
When committing, you should use heredoc format to preserve newlines and other formatting.
If a commit is related to a GitHub issue, this must be noted in a footer.
These footers must be placed on their own lines. The footer looks like the following:
[keyword] #[issue-id]
When the issue is in a different repo, use [keyword] [repo]#[issue-id] or, if the repo belongs to a different owner, [keyword] [owner]/[repo]#[issue-id].
The keywords "Closes", "Fixes" and "Resolves" indicate that the commit fully addresses the issue. Merging a pull request containing such a commit will close the referenced issue.
The keywords "References", "Related to", and "Contributes to" may be used to indicate a relation to the issue, when the issue is not fully addressed by the commit. The issue will not be auto-closed upon merge.
One commit may contain zero or more footers; make sure all related issues you are aware of have a corresponding footer.
A pre-commit hook will take care of linking Linear issues, where applicable. Do not manually add these links, or use any format other than what is described here. You need to follow this precise format so that the pre-commit hook can work properly.