Awesome-omni-skill commit
Create a git commit with a well-crafted message following project conventions
install
source · Clone the upstream repo
git clone https://github.com/diegosouzapw/awesome-omni-skill
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/diegosouzapw/awesome-omni-skill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/tools/commit-thuyavan00" ~/.claude/skills/diegosouzapw-awesome-omni-skill-commit-8f2a3d && rm -rf "$T"
manifest:
skills/tools/commit-thuyavan00/SKILL.mdsource content
Git Commit Skill
Create a git commit following best practices for this repository.
Process
-
Analyze the current state - Run these in parallel:
- See all untracked and modified filesgit status
- See both staged and unstaged changesgit diff
- Review recent commit message stylegit log --oneline -10
-
Draft commit message:
- Summarize the nature of changes (new feature, enhancement, bug fix, refactor, docs, etc.)
- Be concise (1-2 sentences) focusing on "why" rather than "what"
- Use imperative mood (e.g., "add", "fix", "update", not "added", "fixed")
- Follow the style of recent commits in this repo
- Match scope to actual changes:
- "add" = wholly new feature/file
- "update" = enhancement to existing feature
- "fix" = bug fix
- "refactor" = code restructuring
- "feat" = new feature (if using conventional commits)
- "chore" = maintenance tasks
-
Stage and commit - Run these sequentially:
- Stage relevant files by name (prefer specific files over
)git add -A - Create commit with message ending in:
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> - Run
after commit to verify successgit status
- Stage relevant files by name (prefer specific files over
-
Format commit messages using HEREDOC:
git commit -m "$(cat <<'EOF' Your commit message here. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> EOF )"
Safety Rules
- NEVER update git config
- NEVER run destructive commands without user confirmation:
git push --forcegit reset --hardgit checkout .git clean -fgit branch -D
- NEVER skip hooks (
,--no-verify
) unless explicitly requested--no-gpg-sign - NEVER amend commits unless explicitly requested
- CRITICAL: If pre-commit hook fails, fix the issue and create a NEW commit (don't use
)--amend - Prefer staging specific files by name rather than
orgit add -Agit add . - Don't commit if there are no changes
- Don't commit sensitive files (.env, credentials, etc.)
Arguments
- No arguments: Commit all current changes
- With file paths: Commit only specified files
Example Usage
/commit /commit src/components/Button.tsx