Agent skill
cursor-git-commit
Provide a pre-commit checklist and staging hygiene (review diffs, stage specific files, avoid common noise like dist/ or .env, and fix mistakes with reset/rm --cached/amend). Use when the user is about to commit, asks for a commit workflow, or needs help cleaning up staged files.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/development/cursor-git-commit-go-go-golems-docmgr
SKILL.md
Cursor Git Commit
Overview
Use a consistent commit workflow: inspect changes, stage intentionally, and avoid committing noise.
Checklist (run before committing)
- Inspect status:
git status --porcelain - Review diffs:
- unstaged:
git diff --stat - staged:
git diff --cached --stat
- unstaged:
- Stage intentionally:
git add path/to/file ... - Verify staged set:
git diff --cached --name-only - Commit and record hash:
git commit -m "..."thengit rev-parse HEAD
Fix common mistakes
- Unstage one file:
git reset HEAD path/to/file - Unstage everything:
git reset HEAD - Remove noise already committed (keep on disk):
git rm --cached path/to/noisethen add to.gitignoreandgit commit --amend --no-edit
Reference
- Full checklist + ignore guidance:
references/git-commit-instructions.md.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?