agentleFS
mmNalakammNalaka/nm-skills/skills/commit/SKILL.md

commit

Skill1 starsChanged 6 months agoMITView on GitHub

Use when ready to commit — groups changes into atomic commits, proposes conventional commit messages, and requires explicit approval before each commit and before any push.

  • Commits and pushes

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

Show its rules and text

We split this skill into the rules it gives an agent

15 rules. 0 are common, 11 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 168 edited versions we read keep these.

  • 11

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Ask-first, small atomic commit workflow.

    line 8
  2. Distinctive:

    Run git diff --stat and git status.

    line 18
  3. Distinctive:

    Never mix unrelated changes in the same commit

    line 25
  4. Distinctive:

    After showing all proposed commits at once, start with the first and ask:

    line 38
  5. Distinctive:

    Only run git commit after:

    line 44
  6. Very specific:

    If user types n: skip this commit, move to next.

    line 48
  7. Very specific:

    If user types edit message: show current message, let them type the new one, confirm before committing.

    line 50
  8. Distinctive:

    Keep the description under 72 characters.

    line 66
  9. Distinctive:

    After all commits, show the log:

    line 70
  10. Very specific:

    Never run git push without explicit y.

    line 82
  11. Distinctive:

    If there are changes unrelated to the current task (formatting cleanup, unrelated refactors), flag them separately:

    line 86
  12. Distinctive:

    Never run git commit without user approval

    line 97
  13. Distinctive:

    Never combine unrelated changes into one commit silently

    line 99
  14. Very specific:

    Never use --no-verify to skip hooks

    line 100
  15. Distinctive:

    Never amend commits that have already been confirmed — create a new one

    line 101

“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

Ask-first, small atomic commit workflow. The user is always in control of what gets committed and when.

Recommended model: Haiku (simple git operations)


Rules

1. Show what changed

Run git diff --stat and git status. Show the summary to the user before doing anything else.

2. Group into smallest logical commits

Analyze the changes. Split into the smallest commits that are still logical and independent:

  • One concern per commit
  • A commit should do one thing: fix one bug, add one feature, or update one area
  • Never mix unrelated changes in the same commit

3. Present each proposed commit

For each proposed commit, show:

Commit [N/M]:
  Files: path/to/file.ts, path/to/other.ts
  Message: feat(users): add email validation on registration
  Why its own commit: standalone feature, no dependency on other changes

After showing all proposed commits at once, start with the first and ask:

Commit 1/N ready. Commit this? [y / n / edit message]

4. Wait for explicit approval before each commit

Only run git commit after:

  • User types y, or
  • User provides an edited message

If user types n: skip this commit, move to next. Ask at the end if they want to revisit it.

If user types edit message: show current message, let them type the new one, confirm before committing.

5. Commit message format

type(scope?): description

Types: feat, fix, refactor, test, chore, perf, docs

Examples:

  • feat(users): add email validation on registration
  • fix(auth): correct JWT expiry check to use <=
  • refactor(shared): extract response envelope helper
  • test(users): add table-driven tests for createUser

Keep the description under 72 characters. Use imperative mood ("add", "fix", "extract" — not "added", "fixes", "extracting").

6. Never push without asking

After all commits, show the log:

Committed:
  abc1234 feat(users): add email validation on registration
  def5678 test(users): add tests for email validation

Then ask:

Push to remote? [y / n]

Never run git push without explicit y.

7. Flag unrelated changes

If there are changes unrelated to the current task (formatting cleanup, unrelated refactors), flag them separately:

Unrelated changes detected:

  • path/to/file.ts (whitespace cleanup)

Include in a chore commit? [y / n / separate commit]


What NOT to do

  • Never run git commit without user approval
  • Never run git push without user approval
  • Never combine unrelated changes into one commit silently
  • Never use --no-verify to skip hooks
  • Never amend commits that have already been confirmed — create a new one

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.