agentleFS
CodeWithBehnamCodeWithBehnam/cc-docs/skills/commit/SKILL.md

commit

Skill2 starsChanged 9 months agoMITView on GitHub

Smart git commit. Runs tests, stages all changes, generates a conventional commit message, and commits. Use when committing work, saving progress, or when the user says "commit this", "save my work", or "make a commit".

187 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use act-on-feedback, generate-run-commands 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.
  • 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 4 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 4 projects that use this

  • 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

  • MindgamesSkill

    branch

    Use when a user asks to create a new local git branch and start issue work (for example, "create branch" or "start working on issue XYZ"). Use this for issue-based branch naming in the `type/scope-short-description` pattern and for always syncing local `main` from `origin/main` before creating the new branch, creating the local tracking `main` branch first when needed.

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

  • 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

The file

We split this skill into the rules it gives an agent

10 rules. 0 are common, 9 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 167 edited versions we read keep these.

  • 9

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Create a smart git commit for the current working tree:

    line 11
  2. Distinctive:

    Check for unstaged changes with git status and git diff --stat

    line 13
  3. Distinctive:

    Run the project test suite to verify nothing is broken:

    line 14
  4. Very specific:

    Look for package.json (run npm test or yarn test), Makefile (run make test), pytest.ini / pyproject.toml (run pytest), or go.mod (run go …

    line 15
  5. Distinctive:

    If tests fail, stop and report the failures.

    line 16
  6. Distinctive:

    Must be run inside a git repository

    line 29
  7. Distinctive:

    If no changes are staged or unstaged: report "Nothing to commit" and stop

    line 35
  8. Distinctive:

    If tests fail: report the failures and stop without committing

    line 36
  9. Distinctive:

    If git commit fails: show the error and suggest fixes

    line 37
  10. Distinctive:

    If no test runner is found: skip tests, note the omission, and proceed

    line 38

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

Create a smart git commit for the current working tree:

  1. Check for unstaged changes with git status and git diff --stat
  2. Run the project test suite to verify nothing is broken:
    • Look for package.json (run npm test or yarn test), Makefile (run make test), pytest.ini / pyproject.toml (run pytest), or go.mod (run go test ./...)
    • If tests fail, stop and report the failures. Do NOT commit broken code.
  3. Stage all changes: git add -A
  4. Analyze the diff with git diff --cached to understand what changed
  5. Generate a conventional commit message following this format:
    • type(scope): short summary on the first line (max 72 chars)
    • Blank line, then a short body explaining WHY (not what)
    • Types: feat, fix, refactor, test, docs, chore, perf, ci
    • Scope: the module or area affected (e.g., auth, api, db)
  6. Commit with git commit -m "<message>"
  7. Print the commit hash and summary

Requirements

  • Must be run inside a git repository
  • Working tree must have at least one change to commit
  • Tests must pass before committing

Error Handling

  • If no changes are staged or unstaged: report "Nothing to commit" and stop
  • If tests fail: report the failures and stop without committing
  • If git commit fails: show the error and suggest fixes
  • If no test runner is found: skip tests, note the omission, and proceed

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.