commit

GitHub

用于生成符合 Sentry 规范的 Git 提交信息,包括分支检查、消息格式约束及创建命令。

skills/commit/SKILL.md getsentry/skills

Trigger Scenarios

用户请求提交代码变更 用户请求撰写或格式化提交信息

Install

npx skills add getsentry/skills --skill commit -g -y
More Options

Use without installing

npx skills use getsentry/skills@commit

指定 Agent (Claude Code)

npx skills add getsentry/skills --skill commit -a claude-code -g -y

安装 repo 全部 skill

npx skills add getsentry/skills --all -g -y

预览 repo 内 skill

npx skills add getsentry/skills --list

SKILL.md

Frontmatter
{
    "name": "commit",
    "description": "Use for every request to commit changes or draft a commit message. Creates Sentry-style conventional commits with issue references."
}

Sentry Commit Messages

Before Committing

git branch --show-current

If the branch is main or master, create a feature branch unless the user explicitly requested a direct commit. Re-check the branch and stop if it is still main or master.

Commit one coherent, independently reviewable change at a time.

Message Rules

Use:

<type>(<scope>): <subject>

<optional body>

<optional footer>
  • Scope is optional. Add ! before : for a breaking change.
  • Write the subject in imperative, present tense; capitalize it, omit the trailing period, and keep it at 70 characters or fewer.
  • Keep every line under 100 characters.
  • Use the body only when useful. Explain what changed and why, including previous behavior or motivation when it helps.
  • Never include customer or organization names, user emails, support ticket contents, secrets, or PII. Describe the technical symptom instead.

Allowed types: feat, fix, ref, perf, docs, test, build, ci, chore, style, meta, license, and revert.

Use ref for refactoring without behavior changes, style for formatting without logic changes, and meta for repository metadata.

Footers

  • Fixes <issue> closes an issue when merged.
  • Refs <issue> links an issue without closing it.
  • For breaking changes, add BREAKING CHANGE: <impact>.

Creating the Commit

Use separate -m arguments for paragraphs and footers. Never put literal \n sequences in a commit message or open an interactive editor.

git commit -m "fix(api): Handle null response in user endpoint" \
  -m "Return 404 when the user API finds a deleted account." \
  -m "Fixes SENTRY-5678"

Version History

  • 9a85b59 Current 2026-07-24 21:13

Same Skill Collection

skills/agents-md/SKILL.md
skills/brand-guidelines/SKILL.md
skills/claude-settings-audit/SKILL.md
skills/code-review/SKILL.md
skills/code-simplifier/SKILL.md
skills/create-branch/SKILL.md
skills/django-access-review/SKILL.md
skills/django-perf-review/SKILL.md
skills/doc-coauthoring/SKILL.md
skills/find-bugs/SKILL.md
skills/gh-review-requests/SKILL.md
skills/gha-security-review/SKILL.md
skills/iterate-pr/SKILL.md
skills/pr-link-issue/SKILL.md
skills/pr-writer/SKILL.md
skills/presentation-creator/SKILL.md
skills/prompt-optimizer/SKILL.md
skills/replay-ux-research/SKILL.md
skills/security-review/SKILL.md
skills/skill-scanner/SKILL.md
skills/skill-writer/SKILL.md
skills/sred-project-organizer/SKILL.md
skills/sred-work-summary/SKILL.md
skills/triage-frontend-issues/SKILL.md
skills/typing-exclusion-worker/SKILL.md
skills/blog-writing-guide/SKILL.md
skills/document-api-endpoint/SKILL.md

Metadata

Files
0
Version
24fdb83
Hash
0307d3ec
Indexed
2026-07-24 21:13

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-20 22:07
浙ICP备14020137号-1 $방문자$