agentleFS
SentryKnown publishergetsentry/sentry-rust/.agents/skills/commit/SKILL.md

commit

Skill753 starsChanged 6 months agoMITView on GitHub

Use this skill when asked to create or amend a commit.

193 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use create-branch, review-r and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • SentrySkill

    create-branch

    Create a git branch following Sentry naming conventions. Use when asked to "create a branch", "new branch", "start a branch", "make a branch", "switch to a new branch", or when starting new work on the default branch.

    Also in 4 projects that use this

  • luischanciSkill

    review-r

    Run the R code review protocol on R scripts. Checks code quality, reproducibility, domain correctness, and professional standards. Produces a report without editing files.

    Also in 3 projects that use this

  • MicrosoftSkill

    act-on-feedback

    Act on user feedback attached to the current session. Use when the user submits feedback on the session's changes via the Submit Feedback button.

    Also in 3 projects that use this

  • MicrosoftSkill

    generate-run-commands

    Generate or modify run commands for the current session. Use when the user wants to set up or update run commands that appear in the session's Run button.

    Also in 3 projects that use this

  • AWSSkill

    issue

    Implement a GitHub issue end-to-end — branch, code, test, docs, and commit.

    Also in 9 projects that use this

  • luischanciSkill

    validate-bib

    Validate bibliography entries against citations in all manuscript files. Find missing entries and unused references.

    Also in 3 projects that use this

  • +2 more from luischanci

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 6 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 174 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill whenever creating or amending a commit.

    line 8
  2. Distinctive:

    Use that output as the source of truth for commit format/rules.

    line 18
  3. Distinctive:

    Exception: Do not manually wrap lines or enforce maximum line length, ignore any instructions to the contrary.

    line 20
  4. Distinctive:

    Commit messages use Markdown formatting.

    line 33
  5. Distinctive:

    When committing, you should use heredoc format to preserve newlines and other formatting.

    line 35
  6. Distinctive:

    If a commit is related to a GitHub issue, this must be noted in a footer.

    line 39
  7. Very specific:

    When the issue is in a different repo, use [keyword] [repo]#[issue-id] or, if the repo belongs to a different owner, [keyword] …

    line 47

“Common” is measured: kept by at least 6 in 10 of the 174 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Commit

Use this skill whenever creating or amending a commit.

1) Fetch and follow official commit guidelines

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.

2) Write the commit body for maintainers

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:

  • include brief context for why the change is needed
  • include why this approach was chosen (when relevant)
  • include links to relevant sources/issues/docs when useful
  • be concise, human, and specific
  • assume reviewers will skim the linked issue; do not restate it in depth

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.

3) Append Commit Footer

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.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.