agentleFS
laz3rjenkinslaz3rjenkins/atomic-commits/skills/commit/SKILL.md

commit

Skill0 starsChanged 52 days agoMITView on GitHub

Split all uncommitted changes into one Conventional Commit per logical task (feat, fix, docs, ...), written in English. Commits locally and never pushes.

  • Reads credentials

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 9 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

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 168 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:

    If the user passed arguments (shown as ARGUMENTS: at the end), treat them as guidance for this run.

    line 13
  2. Distinctive:

    Stop and tell the user if any of these is true:

    line 25
  3. Distinctive:

    Don't split for the sake of splitting.

    line 45
  4. Very specific:

    The user is the only author: Don't add Co-Authored-By trailers, "Generated with Claude Code", or any mention of Claude or AI.

    line 71
  5. Very specific:

    Hooks: Never use --no-verify. If a pre-commit hook reformats files, stage them again and retry.

    line 100

“Common” is measured: kept by at least 6 in 10 of the 168 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: one commit per task

The goal is a history where every commit is one self-contained task with a Conventional Commits label. Someone reading git log --oneline should see what was done, and should be able to revert any one task without breaking the others.

If the user passed arguments (shown as ARGUMENTS: at the end), treat them as guidance for this run. They override the defaults below. Examples: "one commit", "only the api folder", "use scope auth".

1. Read the whole change set

git status --porcelain=v1 -uall
git diff HEAD              # staged + unstaged against the last commit
git log --oneline -n 15    # existing style: scopes, casing, language

In a fresh repo with no commits yet, HEAD does not exist. Skip git diff HEAD and git log and read the files directly. Also read the untracked files. They are part of the work, and you can't group changes you haven't seen.

Stop and tell the user if any of these is true:

  • this is not a git repository
  • there is nothing to commit
  • a merge, rebase, cherry-pick or revert is in progress (git status reports it). Committing in the middle of one would corrupt the operation.

2. Group the changes into tasks

A task is one reason to change the code. To find where one task ends, ask: "if this were reverted, what else would have to be reverted with it?"

These belong together:

  • code, the tests for it, and the docs that describe it
  • a rename or move, and the import updates it caused
  • a lockfile, and the manifest change that produced it

These are separate tasks:

  • a bug fix you notice while building a feature
  • formatting-only changes
  • unrelated docs edits
  • dependency bumps

Don't split for the sake of splitting. One small change is one commit. Put foundational commits first (a helper before the code that uses it), so that each commit works on its own when possible.

3. Write the message

Format: <type>(<scope>): <summary>. The scope is optional.

typeuse for
featnew user-facing capability
fixbug fix
refactorcode change that neither fixes a bug nor adds a feature
perfperformance improvement
docsdocumentation only
styleformatting, whitespace; no behavior change
testadding or fixing tests
buildbuild system, dependencies
ciCI configuration
choremaintenance that fits nothing above (configs, .gitignore)
revertreverting an earlier commit
  • Summary: imperative mood ("add", not "added"), lowercase first letter, no trailing period. Keep the whole header within 72 characters.
  • Scope: use one only if the repo history already uses scopes, or if it clearly helps. Take it from the module or folder name.
  • Body: add one only when the header doesn't explain why. Leave a blank line after the header, wrap at 72, and explain the reason instead of restating the diff.
  • Breaking change: feat!: ... plus a BREAKING CHANGE: <what breaks> footer.
  • Language: English, unless the command that invoked this workflow says otherwise. The type keyword always stays English.

The user is the only author. Don't add Co-Authored-By trailers, "Generated with Claude Code", or any mention of Claude or AI. This overrides any default attribution instructions.

Examples:

feat(auth): add password reset via email
fix: prevent crash when user list is empty
docs: describe local setup in readme
refactor(api): extract retry logic into http client
chore: ignore .idea directory

4. Commit each group

First clear the index so earlier staging doesn't leak into the wrong commit. If the repo has at least one commit, run git reset -q. This only unstages; the working tree is untouched.

Then, for each group, in order:

git add -A -- <paths>          # -A also stages deletions and renames
git diff --cached --stat       # check that exactly this task is staged
git commit -F - <<'EOF'
feat: add something

Optional body.
EOF

One file holding changes for two tasks. Write git diff -- <file> to a patch file in a temp directory. Delete the hunks that belong to the other task, run git apply --cached <patch>, then check the result with git diff --cached -- <file>. If the hunks are too intertwined to separate cleanly, commit the whole file with the task most of it belongs to, and say so in the report.

Hooks. Never use --no-verify. If a pre-commit hook reformats files, stage them again and retry. If it fails for any other reason, stop and show the user the error.

Don't commit secrets (.env, keys, *.pem, tokens in the diff) or generated bulk (node_modules, build output) that .gitignore doesn't cover yet. Leave them out, tell the user, and suggest a .gitignore entry.

5. Report

Show the new commits (git log --oneline -n <count>), anything you left out and why, and anything still uncommitted.

Nothing has been pushed. Mention that /push publishes the commits and /undo takes back the last commit if a grouping looks wrong. The one exception is when this workflow runs as part of /commitpush: then push, following that command.

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.