agentsclimarketplace

Commit

Skill huzaifa525/claude-code-optimizer/templates/.claude/skills/commit

Use when the user wants to commit changes, save work, or create a git commit message.From its SKILL.md

Install
npx -y skills add huzaifa525/claude-code-optimizer --skill commit

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • 9 stars9 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
  • runs commandsInstructs the agent to run 6 commands, including `git diff --cached --stat` and 5 more.

SKILL.md

1.8 KB, 450 tokens by cl100k_base, as published. Nobody here has run it

Generate a commit message and commit staged changes.

Steps

  1. Check staged changes

    git diff --cached --stat
    git diff --cached
    
  2. Check recent commit style

    git log --oneline -10
    
  3. Generate commit message following Conventional Commits:

    PrefixWhen to Use
    feat:New feature
    fix:Bug fix
    refactor:Code restructure, no behavior change
    docs:Documentation only
    test:Adding or fixing tests
    chore:Build, deps, config changes
    perf:Performance improvement
    style:Formatting, whitespace
    ci:CI/CD changes
  4. Format rules

    • Subject line: max 72 characters, imperative mood ("Add" not "Added")
    • Body: wrap at 80 characters, explain WHY not WHAT
    • If multiple changes: use bullet points in body
  5. Commit

    git commit -m "type: short description
    
    - Detail 1
    - Detail 2"
    
  6. Show result

    git log --oneline -1
    

Pre-Delivery Checklist

Before committing, verify:

  • git diff --cached was read (not just --stat)
  • Commit prefix matches the change type (feat/fix/refactor/etc.)
  • Subject line is under 72 characters
  • Subject uses imperative mood ("Add" not "Added")
  • No sensitive files staged (.env, credentials, keys)
  • No unrelated changes bundled in the same commit
  • Body explains WHY if the change is non-obvious

If nothing is staged

Run git status and tell the user what files are available to stage.

<!-- Skill by Huzefa Nalkheda Wala | github.com/huzaifa525 | claude-code-optimizer -->

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.