agentleFS
MrCipherSmithMrCipherSmith/goodai-base/skills/commit/SKILL.md

commit

Skill0 starsChanged 5 months agoMITView on GitHub

Use when committing code changes and a well-structured conventional commit message is needed, with optional amend or selective staging.

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

13 rules. 0 are common, 11 are distinctive, and 2 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.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Create well-structured git commits from current changes.

    line 19
  2. Distinctive:

    Run git status and git diff --staged and git diff to understand all changes

    line 24
  3. Distinctive:

    Run git log --oneline -5 to match the repo's commit message style

    line 25
  4. Distinctive:

    Check for conventional commit patterns in history

    line 26
  5. Distinctive:

    If nothing is staged, intelligently stage relevant files:

    line 29
  6. Very specific:

    Prefer git add <specific files> over git add -A

    line 32
  7. Distinctive:

    Ask the user before staging untracked files that look unrelated to recent work

    line 33
  8. Distinctive:

    NEVER: add "Co-Authored-By" or any co-authorship lines

    line 40
  9. Distinctive:

    Create the commit using heredoc format:

    line 43
  10. Very specific:

    NEVER use --no-verify or skip hooks

    line 63
  11. Distinctive:

    NEVER add Co-Authored-By lines

    line 64
  12. Distinctive:

    If pre-commit hook fails: fix the issue, re-stage, create a NEW commit (don't amend)

    line 65
  13. Distinctive:

    Follow existing commit message conventions in the repository

    line 66

“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

Smart Commit

Create well-structured git commits from current changes.

Workflow

Phase 1: Analyze Changes

  1. Run git status and git diff --staged and git diff to understand all changes
  2. Run git log --oneline -5 to match the repo's commit message style
  3. Check for conventional commit patterns in history

Phase 2: Stage Files

If nothing is staged, intelligently stage relevant files:

  • Stage modified and new files that are part of the logical change
  • NEVER stage .env, credentials, secrets, or large binary files
  • Prefer git add <specific files> over git add -A
  • Ask the user before staging untracked files that look unrelated to recent work

Phase 3: Generate Commit Message

Analyze the diff and generate a concise commit message:

  • First line: <type>(<scope>): <description> (under 72 chars)
  • Types: feat:, fix:, refactor:, test:, docs:, chore:, style:, perf:
  • Optional body: explain "why" not "what" (the diff shows "what")
  • NEVER add "Co-Authored-By" or any co-authorship lines

Phase 4: Commit

Create the commit using heredoc format:

git commit -m "$(cat <<'EOF'
type(scope): description
EOF
)"

Phase 5: Verify

Show the result: git log --oneline -1 and git status

Arguments

  • /commit — auto-generate message from diff
  • /commit <message> — use provided message as-is
  • /commit --amend — amend the last commit (only when explicitly requested)
  • /commit -a — stage all modified files before committing

Rules

  • NEVER use --no-verify or skip hooks
  • NEVER add Co-Authored-By lines
  • If pre-commit hook fails: fix the issue, re-stage, create a NEW commit (don't amend)
  • Follow existing commit message conventions in the repository

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.