agentleFS
denysdovhandenysdovhan/agents/skills/commit/SKILL.md

commit

Skill21 starsChanged 10 days agoMITView on GitHub

Use this skill when an agent needs to prepare a focused commit, follow repository commit-message conventions, write a clear commit message, and create the git commit cleanly.

188 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use validate-plan, act-on-feedback 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.
  • shawn-dumasSkill

    validate-plan

    Validate an orchestration plan after pre-flight certification. Runs adversarial review, deep review (verify prompt data against codebase), and PoC gate for risky approaches. Auto-invoked by orchestrate-* skills at Step 8.

    Also in 5 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

  • decocmsSkill

    add-mcp-tools

    Guide for adding new MCP tools with consistent patterns for schemas, tool definitions, registry updates, and Better Auth integration

    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

  • mitsuhikoSkill

    oebb-scotty

    Austrian rail travel planner (ÖBB Scotty). Use when planning train journeys in Austria, checking departures/arrivals at stations, or looking for service disruptions. Covers ÖBB trains, S-Bahn, regional trains, and connections to neighboring countries.

    Also in 3 projects that use this

  • mitsuhikoSkill

    pi-share

    Load and parse session transcripts from shittycodingagent.ai/buildwithpi.ai/buildwithpi.com/pi.dev (pi-share) URLs. Fetches gists, decodes embedded session data, and extracts conversation history.

    Also in 3 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

18 rules. 0 are common, 14 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 167 edited versions we read keep these.

  • 14

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Use this skill when the work is already implemented and the next step is to create a clean git commit.

    line 8
  2. Distinctive:

    Keep the commit scoped to the intended change

    line 12
  3. Distinctive:

    Write a concise, descriptive commit message

    line 13
  4. Distinctive:

    Avoid including unrelated modified files

    line 14
  5. Distinctive:

    Write a commit message that follows the detected style and summarizes the user-visible change.

    line 22
  6. Distinctive:

    Create the commit without rewriting unrelated history.

    line 24
  7. Very specific:

    Before writing the message, check for explicit rules in repository instructions such as AGENTS.md, CONTRIBUTING.md, README.md, pull request …

    line 28
  8. Distinctive:

    If no explicit rule exists, inspect recent commits:

    line 33
  9. Distinctive:

    Use the dominant style from relevant recent history:

    line 40
  10. Very specific:

    Conventional commits: use type(scope): subject or type: subject when recent history uses prefixes such as feat:, fix:, docs:, chore:, ci:, …

    line 42
  11. Very specific:

    Simple subjects: use a concise imperative subject such as Update skill validation workflow when history uses plain sentence-style commit …

    line 45
  12. Distinctive:

    Mixed history: prefer the style used by recent commits touching the same area.

    line 52
  13. Very specific:

    If a pre-commit hook fails, fix the reported problem and retry the commit.

    line 58
  14. Distinctive:

    Do not stage unrelated files just to make the tree clean.

    line 59
  15. Distinctive:

    Prefer one focused commit over a mixed commit.

    line 60
  16. Distinctive:

    Use imperative subjects unless the repository's explicit rules or dominant history use another style.

    line 61
  17. Distinctive:

    If the tree contains unexpected changes, call them out before committing.

    line 63
  18. Distinctive:

    Do not amend existing commits unless explicitly requested.

    line 64

“Common” is measured: kept by at least 6 in 10 of the 167 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 Skill

Use this skill when the work is already implemented and the next step is to create a clean git commit.

Goals

  • Keep the commit scoped to the intended change
  • Write a concise, descriptive commit message
  • Avoid including unrelated modified files

Workflow

  1. Inspect the working tree before committing.
  2. Confirm which files belong to the requested change.
  3. Detect the repository's commit-message rules and style.
  4. Stage only the relevant files.
  5. Write a commit message that follows the detected style and summarizes the user-visible change.
  6. Create the commit without rewriting unrelated history.

Commit Message Style

Before writing the message, check for explicit rules in repository instructions such as AGENTS.md, CONTRIBUTING.md, README.md, pull request templates, package scripts, or commitlint configuration. Explicit project or user rules override history.

If no explicit rule exists, inspect recent commits:

git log --format=%s -n 20
git log --format=%B -n 5

Use the dominant style from relevant recent history:

  • Conventional commits: use type(scope): subject or type: subject when recent history uses prefixes such as feat:, fix:, docs:, chore:, ci:, refactor:, or scoped variants.
  • Simple subjects: use a concise imperative subject such as Update skill validation workflow when history uses plain sentence-style commit subjects.
  • Multiline commits: include a blank line and body when recent non-merge commits commonly include bodies, when the change needs context, or when the user asks for references/explanations. Keep the subject aligned with the detected subject style.
  • Mixed history: prefer the style used by recent commits touching the same area. Do not imitate merge commits.

Guidelines

  • Respect what the user already staged: inspect git diff --cached before staging anything, treat pre-staged content as intentional, and do not unstage it unless it clearly does not belong to the requested change — call that out instead.
  • If a pre-commit hook fails, fix the reported problem and retry the commit. If a hook rewrites files, restage only the hook-modified files and commit again. Do not bypass hooks with --no-verify unless the user explicitly asks.
  • Do not stage unrelated files just to make the tree clean.
  • Prefer one focused commit over a mixed commit.
  • Use imperative subjects unless the repository's explicit rules or dominant history use another style.
  • If the tree contains unexpected changes, call them out before committing.
  • Do not amend existing commits unless explicitly requested.

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.