agentleFS
dannys-code-cornerdannys-code-corner/incan/.agents/skills/write-commit-message/SKILL.md

write-commit-message

Skill73 starsChanged 5 days agoApache-2.0View on GitHub

Draft commit titles and optional commit bodies using the workspace commit naming convention. Use when the user asks for a commit message, commit text, commit title, or wants commit wording in the format `chore|bugfix|feature - <issue_id(s)> <short description>`.

5 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

11 rules. 0 are common, 9 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 9

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Write the title in exactly this format:

    line 16
  2. Distinctive:

    Keep the short description concrete:

    line 22
  3. Very specific:

    no vague filler like updates or misc fixes

    line 25
  4. Distinctive:

    If the user also wants a commit body, write:

    line 26
  5. Distinctive:

    Use numeric ids joined by commas when there are multiple issues:

    line 33
  6. Very specific:

    Do not prepend # unless the user explicitly asks for that style.

    line 39
  7. Distinctive:

    If no issue id is discoverable, say so instead of inventing one.

    line 40
  8. Distinctive:

    If the user asks for a commit message or commit text, return the commit title by itself unless they also asked for a body.

    line 44
  9. Distinctive:

    If the user asks for both, return the title first and then the body.

    line 45
  10. Distinctive:

    Do not wrap the final title in commentary.

    line 46
  11. Distinctive:

    If the requested type conflicts with the actual diff, follow the diff and say so.

    line 47

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

Write Commit Message

Workflow

  1. Identify the repository and inspect the actual change set before drafting anything.
  2. Infer the change type from the diff:
    • bugfix for correctness fixes and regressions
    • feature for new behavior or newly implemented surface area
    • chore for maintenance, docs-only changes, refactors without new behavior, or repository housekeeping
  3. Infer issue ids from the branch name first, then from explicit issue references in the current task context if needed.
  4. Write the title in exactly this format:
<type> - <short description> (<#issue_id(s)>)
  1. Keep the short description concrete:
    • specific to the actual diff
    • no trailing punctuation
    • no vague filler like updates or misc fixes
  2. If the user also wants a commit body, write:
    • one short sentence on what changed
    • one short sentence on why
    • optional flat bullets only if there are multiple distinct changes worth calling out

Issue Id Rules

  • Use numeric ids joined by commas when there are multiple issues:
bugfix - preserve method result types for locals bound from calls (#252, #255) 
  • Do not prepend # unless the user explicitly asks for that style.
  • If no issue id is discoverable, say so instead of inventing one.

Output Rules

  • If the user asks for a commit message or commit text, return the commit title by itself unless they also asked for a body.
  • If the user asks for both, return the title first and then the body.
  • Do not wrap the final title in commentary.
  • If the requested type conflicts with the actual diff, follow the diff and say so.

Examples

bugfix - preserve something important for locals bound from calls (#42)
feature - add Session builder and DataFusion backend seam (#5)
chore - tighten RFC 008 optimizer boundary wording (#18)

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.