Index of every page on this site: llms.txt
All skills
getsentry avatar

/commit

@a582c51 official
by Sentrygetsentry/skills1.2k stars
71
Run it yourself

Use for every request to commit changes or draft a commit message. Creates Sentry-style conventional commits with issue references.

Use this Skill: https://skilld.dev/gh/getsentry/skills/commit

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈35 tokens for metadata: the name and description. ≈425 when used: this file.

Description uses 1.8% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈140 characters, or 1.8%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

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"

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts2mo5 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    The skill provides guidelines and safe Git commands for creating standardized Sentry-style commit messages. It includes explicit instructions to avoid committing sensitive data like PII or secrets.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

  • Runlayer8mo

    1 file scanned · No issues

  • ZeroLeaks7mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at a582c51. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 6 days ago.

Activeupdated 4 months ago
  • Git/VCS
  • conventional-commits
  • commit-messages
  • sentry
  • branch-management
  • issue-references

README badge

README badge for getsentry/skills/commit

Generates commits following Sentry's conventional commit format, with required scope notation, issue references, and AI attribution. Enforces branch protection (prevents commits to main/master), validates subject line length and imperative mood, and prevents customer PII in commit bodies.

Generated from the current SKILL.md.

Should I always use this skill when committing?
Yes. The skill description states to always use it when committing code changes and never commit directly without it.
What happens if I'm on the main or master branch?
You must create a feature branch first before committing, unless explicitly asked to commit to main. The skill will not allow commits directly to main or master.
Do I need to include a scope in the commit format?
No. The scope is optional. Only the type and subject are required; the format is `<type>(<scope>): <subject>` where scope can be omitted.
How should I reference issues in commit messages?
Use `Fixes GH-1234`, `Fixes #1234`, `Fixes SENTRY-1234` to close an issue, or `Refs LINEAR-ABC-123` to link without closing.
Should I add AI attribution to commits?
Yes. Include `Co-Authored-By: (agent name and attribution byline)` in the footer when changes were primarily generated by a coding agent. This is the only indicator of AI involvement that should appear.

Generated from the current SKILL.md. These answers refresh after source changes.