agentleFS
berekvolgyipeterberekvolgyipeter/dotclaude/skills/commit-summary/SKILL.md

commit-summary

Skill2 starsChanged 8 days agoMITView on GitHub

Summarize the uncommitted changes for the developer before they commit — a plain-language summary, a tree of the changed files, and a suggested conventional commit message. Use only when the user asks for a commit message or a summary of their uncommitted changes before committing.

3 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

5 rules. 0 are common, 2 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read ~/.claude/shared/change-set.md and follow it with the arguments.

    line 17
  2. Very specific:

    Start with the changed and untracked files from the overview, and git -C <root> diff --stat HEAD for their size.

    line 21
  3. Distinctive:

    Read each changed file's diff and each untracked file, enough to say what it does and why.

    line 22
  4. Distinctive:

    If the change spans multiple concerns, use the dominant concern's type and omit the scope

    line 60
  5. Very specific:

    Add ! after the type/scope when the change breaks an existing interface (e.g.

    line 61

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

Mode: delta. Arguments: $ARGUMENTS — may name the repo to describe.

The reader is the developer about to commit, possibly on a phone and without the repo open: they have seen neither the diff nor the session that made it.

Step 1: Find the Change Set

Read ~/.claude/shared/change-set.md and follow it with the arguments.

Step 2: Read the Changes

Start with the changed and untracked files from the overview, and git -C <root> diff --stat HEAD for their size. Read each changed file's diff and each untracked file, enough to say what it does and why. Note the change type, the area it touches, and whether it breaks an interface.

Step 3: Write the Summary

  • Summary — bullet points, one per topic the change touches: what changed there and why, in words a newcomer understands. Group related edits into one bullet; no file names.
  • Files — a tree of the changed and untracked files only, rooted at the repo, each file with a ← note of a few words on what changed in it. Mark added and untracked files (new), deleted (deleted) and renamed (from <old path>).
  • Commit message — one line per the rules below.

Commit message

Follow Conventional Commits:

<type>(<optional scope>): <imperative summary>
TypeWhen to use
featNew feature or capability
fixBug fix
refactorCode change that is neither a fix nor a feature
testAdding or updating tests
docsDocumentation only
buildBuild system or dependencies
choreTooling, config, anything that fits no other type
styleFormatting, whitespace — no logic change
perfPerformance improvement
ciCI/CD pipeline changes
revertReverts an earlier commit
  • Imperative mood — "add X", not "added X" or "adds X"
  • No period at the end
  • ≤ 72 characters total (type + scope + summary)
  • Lowercase summary after the colon
  • Scope is optional — use it when the change is clearly scoped to one area (e.g. fix(auth): ...)
  • If the change spans multiple concerns, use the dominant concern's type and omit the scope
  • Add ! after the type/scope when the change breaks an existing interface (e.g. feat!: drop v1 API)

Output

Reply with exactly these three parts, in this order, and nothing else — the two blocks are separate so each copies in one click. The one exception: if finding the change set stopped with a list or a "no changes" note, reply with that instead.

  1. The summary bullets, outside any code block.
  2. The files tree, in its own fenced code block.
  3. The commit message, in another fenced code block of its own.
<example> - **Sign-in** — users can now sign in with their Google account instead of only a password. - **Settings** — the account page shows which sign-in methods are linked.
shop-app/
└── src/
    ├── auth/
    │   ├── google.ts ← Google sign-in flow (new)
    │   └── routes.ts ← adds the Google callback route
    └── settings/
        └── account-page.tsx ← lists linked sign-in methods
feat(auth): add google sign-in
</example>

This skill only suggests a message; leave staging and committing to the user.

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.