agentleFS
theoklitosBam7theoklitosBam7/skills/git-commit-generator/SKILL.md

git-commit-generator

Skill1 starsChanged 5 months agoMITView on GitHub

Generate Conventional Commit messages from staged git changes. Analyzes diffs and produces properly formatted commit messages following the Conventional Commits specification. USE FOR: writing commit messages, generating conventional commits, crafting git commit messages, formatting commits with type(scope): subject pattern. DO NOT USE FOR: general git operations, branching, merging, or rebasing.

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. opoojkk/skills★ 2same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository8 other files it gives its agents.

The file

Show its rules and text

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈11

    Distinctive · estimate

    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:

    Run git diff --cached --name-status to identify changed files and their status

    line 18
  2. Distinctive:

    Run git diff --cached to review the actual staged changes

    line 19
  3. Very specific:

    Always use bullet points (prefixed with - ) when a body is included

    line 47
  4. Distinctive:

    Use domain-specific terms.

    line 52
  5. Distinctive:

    Never mention "staged", "diff", or counts of files/lines

    line 53
  6. Distinctive:

    If the user provides a scope, use it as-is

    line 57
  7. Distinctive:

    Prefer a broad scope when many files are affected across areas

    line 59
  8. Distinctive:

    If the user provides a commit type, use it as-is.

    line 78
  9. Very specific:

    Add a BREAKING CHANGE: <description> footer when changes remove or rename public APIs, alter expected behavior, or require migration steps …

    line 82
  10. Distinctive:

    Do NOT wrap the output in markdown code fences

    line 115
  11. Distinctive:

    Do NOT include any preamble or postamble (e.g.

    line 116
  12. Distinctive:

    Do NOT invent changes not visible in the diff

    line 117
  13. Distinctive:

    Do NOT use past tense — always imperative mood

    line 118

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “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

Git Commit Generator

Generate Conventional Commit messages from staged git changes.

Workflow

  1. Run git diff --cached --name-status to identify changed files and their status
  2. Run git diff --cached to review the actual staged changes
  3. Analyze the changes and generate a commit message following the rules below
  4. Output ONLY the commit message — no markdown, no code fences, no commentary
  5. Present 2-3 options to the user

Output Format

type(scope): subject

- Body sentence one
- Body sentence two

BREAKING CHANGE: description (if applicable)
  • Blank line between subject and body
  • Blank line between body and footers

Subject Rules

  • Imperative mood (e.g. "add feature", not "added feature" or "adds feature")
  • Start lowercase
  • No trailing period
  • <= 50 characters

Body Rules

  • Always use bullet points (prefixed with - ) when a body is included
  • Each bullet line <= 72 characters
  • Imperative mood (e.g. "Update", "Add", "Fix")
  • Explain WHAT and WHY, not HOW
  • Omit body entirely if the subject is self-explanatory
  • Use domain-specific terms; avoid generic phrases like "update files" or "make changes"
  • Never mention "staged", "diff", or counts of files/lines

Scope

  • If the user provides a scope, use it as-is
  • Otherwise, infer a concise scope from the top-level directories or module changed
  • Prefer a broad scope when many files are affected across areas
  • Omit scope if unclear or when changes are global

Commit Types

TypeUse When
featNew feature or significant enhancement
fixBug fix
docsDocumentation changes only
styleFormatting, whitespace, semicolons — no logic change
refactorCode restructuring without behavior change
perfPerformance improvement
buildBuild system or dependency changes
ciCI/CD configuration changes
testAdding or updating tests
choreMaintenance tasks, tooling, non-src changes
revertReverting a previous commit

If the user provides a commit type, use it as-is. Otherwise, infer the most appropriate type.

BREAKING CHANGE Footer

Add a BREAKING CHANGE: <description> footer when changes remove or rename public APIs, alter expected behavior, or require migration steps from consumers.

Examples

Simple change (no body needed)

fix(auth): handle expired token redirect

Change with body

feat(api): add pagination to user listings

- Accept `page` and `per_page` query parameters
- Return total count in response header
- Default to 20 items per page

Breaking change

refactor(client): replace callback API with promises

- Migrate all client methods from callback pattern to async/await
- Remove deprecated callback-based public methods

BREAKING CHANGE: all client methods now return Promises instead of accepting callbacks

Common Pitfalls

  • Do NOT wrap the output in markdown code fences
  • Do NOT include any preamble or postamble (e.g. "Here is your commit message:")
  • Do NOT invent changes not visible in the diff
  • Do NOT use past tense — always imperative mood

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.