agentleFS
haruharu/redmine_ai_helper/.claude/skills/commit/SKILL.md

commit

Skill107 starsChanged 9 months agoMITView on GitHub

Stage the current changes and create a git commit with a properly formatted English message. Use whenever the user asks to commit, save, or check in their work. Picks a Conventional-Commits-style prefix (fix:, feat:, refactor:, docs:, test:, chore:, style:, perf:) based on the actual diff, keeps the first line a concise summary, and adds a bullet list of details only when the change touches several things.

  • 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

17 rules. 0 are common, 12 are distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 168 edited versions we read keep these.

  • 12

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Consider any additional context from the user input (e.g.

    line 19
  2. Distinctive:

    Before committing, look at the staged file list once more:

    line 34
  3. Very specific:

    If anything looks like a secret or credential (.env, *.pem, credentials.json, API keys, etc.), unstage it and warn the user instead of …

    line 35
  4. Distinctive:

    If some staged files clearly belong to unrelated, separate work (not what the user is asking to commit right now), leave them out and …

    line 36
  5. Distinctive:

    Look at the diff and classify the change into a prefix:

    line 40
  6. Distinctive:

    If a change spans multiple categories, pick the one that reflects the primary intent.

    line 53
  7. Very specific:

    If the change touches several things: leave a blank line after line 1, then a short bullet list (- ...), one line per notable change.

    line 60
  8. Very specific:

    Do not add a Co-Authored-By line or any other reference to Claude/AI assistance — this project's convention explicitly excludes that from …

    line 76
  9. Distinctive:

    Use a heredoc so multi-line messages are formatted correctly:

    line 80
  10. Very specific:

    Always create a new commit — never --amend an existing one unless the user explicitly asks for it.

    line 92
  11. Distinctive:

    Run git status after the commit and report the resulting commit (short hash + first line) to the user.

    line 96
  12. Distinctive:

    Never push — this skill only commits locally.

    line 100
  13. Very specific:

    Never use --no-verify to skip hooks.

    line 101
  14. Distinctive:

    Write commit messages in plain English regardless of the conversation language.

    line 102
  15. Distinctive:

    If there is nothing staged and nothing to stage (clean working tree), tell the user there is nothing to commit — do not create an empty …

    line 106
  16. Distinctive:

    If a pre-commit hook fails, fix the underlying issue, re-stage, and create a new commit — do not amend the previous one (the failed commit …

    line 107
  17. Distinctive:

    If secrets or clearly unrelated files are detected among the changes, stop and confirm with the user before including them.

    line 108

“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

Stage the outstanding changes and create a single git commit with an English message that follows this project's format.

User Input

$ARGUMENTS

Consider any additional context from the user input (e.g. "only commit the tool changes", "this is a bug fix") before proceeding.

Procedure

Step 1: Survey the Changes

Run in parallel:

  • git status — see tracked and untracked files
  • git diff and git diff --staged — see the actual content changes
  • git log --oneline -10 — match the repository's existing commit message tone

Step 2: Stage the Changes

Stage the modified and new files that belong to this piece of work (git add <files>, or git add -A when everything in the working tree is part of the same change).

Before committing, look at the staged file list once more:

  • If anything looks like a secret or credential (.env, *.pem, credentials.json, API keys, etc.), unstage it and warn the user instead of committing it silently.
  • If some staged files clearly belong to unrelated, separate work (not what the user is asking to commit right now), leave them out and mention it to the user.

Step 3: Determine the Commit Type

Look at the diff and classify the change into a prefix:

PrefixWhen to use
fix:Bug fix
feat:New feature or capability
refactor:Restructuring without behavior change
docs:Documentation only (README, YARD, locale text)
test:Test-only changes
chore:Tooling, dependencies, config, housekeeping
style:Formatting/whitespace only, no logic change
perf:Performance improvement

If a change spans multiple categories, pick the one that reflects the primary intent.

Step 4: Write the Commit Message

Format:

  • Line 1: <prefix>: <concise summary of the overall change> — English, imperative mood, no trailing period.
  • If the change is small (one focused fix, a single file, a short diff): stop at line 1. No body needed.
  • If the change touches several things: leave a blank line after line 1, then a short bullet list (- ...), one line per notable change. Keep bullets brief — what changed, not how.

Example (small change):

fix: correct nil check in issue summary cache lookup

Example (larger change):

feat: add vector model profile support to settings

- add use_vector_model_profile and vector_model_profile_id columns
- update settings UI to select a dedicated vector model profile
- fall back to the default model profile when unset

Do not add a Co-Authored-By line or any other reference to Claude/AI assistance — this project's convention explicitly excludes that from commit messages.

Step 5: Commit

Use a heredoc so multi-line messages are formatted correctly:

git commit -m "$(cat <<'EOF'
<prefix>: <summary>

- <detail 1>
- <detail 2>
EOF
)"

Always create a new commit — never --amend an existing one unless the user explicitly asks for it.

Step 6: Confirm

Run git status after the commit and report the resulting commit (short hash + first line) to the user. Do not push.

Notes

  • Never push — this skill only commits locally.
  • Never use --no-verify to skip hooks.
  • Write commit messages in plain English regardless of the conversation language.

Error Handling

  • If there is nothing staged and nothing to stage (clean working tree), tell the user there is nothing to commit — do not create an empty commit.
  • If a pre-commit hook fails, fix the underlying issue, re-stage, and create a new commit — do not amend the previous one (the failed commit never happened).
  • If secrets or clearly unrelated files are detected among the changes, stop and confirm with the user before including them.

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.