agentleFS
toilanguyen2910toilanguyen2910/claude-code-starter-pack/skills/commit-helper/SKILL.md

commit-helper

Skill1 starsChanged 40 days agoMITView on GitHub

Stages changes and writes a Conventional Commits message from the actual diff. Use when the user asks to commit, wants a commit message, or says "commit this".

10 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

6 rules. 0 are common, 4 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 7 edited versions we read keep these.

  • 4

    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
  • could be automatic: a setting could enforce it
  1. Distinctive:

    If nothing is staged and nothing is unstaged, tell the user there is nothing to commit and stop.

    line 18
  2. Distinctive:

    If there are unstaged changes the user hasn't mentioned staging selectively, stage everything relevant with git add.

    line 20
  3. Very specific:

    Write a commit message using Conventional Commits: <type>(<scope>): <short summary>

    line 25
  4. Distinctive:

    If the change needs more explanation, add a blank line then 1-3 bullet points describing what and why (not a line-by-line diff narration).

    line 31
  5. Very specific:

    Run git commit -m "...". Show the user the final message before or as part of the commit output.

    line 33
  6. Distinctive:

    Never use git commit --amend or force-push unless the user explicitly asks for it — this skill only creates new commits.

    line 35

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

Current state

  • Status: !git status --short
  • Staged diff: !git diff --cached
  • Unstaged diff: !git diff

Instructions

  1. If nothing is staged and nothing is unstaged, tell the user there is nothing to commit and stop.
  2. If there are unstaged changes the user hasn't mentioned staging selectively, stage everything relevant with git add. Ask first if the diff touches files that look unrelated to each other (e.g. an unrelated config file mixed in with feature code) — don't silently bundle unrelated changes into one commit.
  3. Write a commit message using Conventional Commits: <type>(<scope>): <short summary>
    • Types: feat, fix, refactor, docs, test, chore, style, perf
    • Scope is optional; use it when the change is clearly limited to one module/feature.
    • Summary is imperative mood, lowercase, no trailing period, under 72 chars.
    • If the change needs more explanation, add a blank line then 1-3 bullet points describing what and why (not a line-by-line diff narration).
  4. Run git commit -m "...". Show the user the final message before or as part of the commit output.
  5. Never use git commit --amend or force-push unless the user explicitly asks for it — this skill only creates new commits.

Example

Diff shows a new rate limiter added to an API middleware file.

feat(api): add rate limiting to public endpoints

- caps requests per IP using a sliding window
- returns 429 with a Retry-After header when exceeded

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.