redai-studio/relax/git-commit
Claude Code and agent skill by redai-studio/relax
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Creates git commits following Conventional Commits with an optional scope and explanatory bodies for non-trivial commits. Use when user wants to commit changes, create commit, save work, or stage and commit. Verifies intended staged changes and pre-commit checks before creating local commits.
Install
npx vskill@latest install redai-studio/relax/git-commitSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as redai-studio/relax/git-commit.
Git commit
Creates git commits following Conventional Commits. Read AGENTS.md for project constraints.
Recent project commits
!git log --oneline -5 2>/dev/null
Quick start
Staging discipline
- Treat the index as the source of truth for the commit. Use
git diff --cached --statandgit diff --cached --name-statusbefore writing the message. - Do not infer commit contents from memory,
git diffalone, or previous discussion. Ifgit diff --statis empty butgit status -sbshowsM <file>, the changes are staged. - Leave unrelated untracked files and unrelated unstaged edits alone unless the user explicitly asks to include them.
- Do not use broad
git add .when unrelated untracked files exist. Stage explicit paths. - After pre-commit, re-check both staged and unstaged diffs. If hooks changed files, stage only the intended paths and rerun pre-commit until clean.
- If
git commitfails with.git/index.lock: Operation not permittedin a sandboxed environment, do not restage or modify files. Rerun onlygit commit -F /tmp/commitmsg.txtwith the required sandbox escalation, then remove the temp file after success.
Commit message structure
1. Subject line (first line)
Use a scope when it helps identify the affected area. Both fix: handle empty batches and fix(rollout): handle empty batches are valid. Prefer a concise, imperative subject; about 50 characters is a writing guideline, not a hard limit. Use the same format for PR titles, which become squash commit subjects.
Project types are feat, fix, docs, style, perf, refactor, test, ci, build, and chore.
2. Blank line
Separate the subject from an optional body or footer with a blank line.
3. Body for non-trivial commits
Include a body for non-trivial commits to explain the motivation, design choices, or validation. Plain paragraphs or bullet points are sufficient. Prefer Markdown headings when they help organize a longer body; emoji are optional formatting examples.
Choose optional emoji headings using Gitmoji meanings. The table gives examples: 🎨 for formatting, 👷 for CI, 🔧 for configuration, and 📦️ for package changes; dependency upgrades can use ⬆️.
Optional type-to-emoji examples:
| Type | Emoji | Heading Format | |
|---|---|---|---|
| feat | ✨ | ## ✨ Feature | |
| fix | 🐛 | ## 🐛 Bug Fix | |
| refactor | ♻️ | ## ♻️ Refactor | |
| perf | ⚡️ | ## ⚡️ Performance | |
| test | ✅ | ## ✅ Tests | |
| docs | 📝 | ## 📝 Documentation | |
| ci | 👷 | ## 👷 CI/CD | |
| chore | 🔧 | ## 🔧 Chore | |
| style | 🎨 | ## 🎨 Style | |
| build | 📦️ | ## 📦️ Build |
Multi-type commits: Use the primary type in the subject. A longer body can group related details by change type.
Multi-type body example:
Single-type body example:
Full example
Note: HEREDOC withgit commit -mcan fail with emoji/unicode.Preferprintf ... > /tmp/commitmsg.txt,git commit -F /tmp/commitmsg.txt, andrm /tmp/commitmsg.txtas separate commands so failures are easy to recover from.
Important rules
- ALWAYS run
pre-commit run --all-files --show-diff-on-failurebeforegit commit, thengit addagain to stage any auto-fixed changes - ALWAYS verify staged contents with
git diff --cached --statbefore committing - Prefer a kebab-case scope in parentheses when it adds useful context
- ALWAYS use present tense imperative verb for the subject
- Include a body for non-trivial commits; prefer Markdown headings when they improve readability
- ALWAYS prefer
git commit -F <tmpfile>for commits with markdown body - NEVER stage unrelated untracked files or unstaged edits while creating a commit
- NEVER end subject with a period
- Prefer a concise subject without shortening it at the expense of clarity
- NEVER use generic messages ("update code", "fix bug", "changes")
- By default, only create local commits. When the user authorizes pushing or creating a PR, follow Relax GitHub workflow for publication.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/git-commit/SKILL.md
Popularity
- Repository stars
- 655
- Repository forks
- 183
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/redai-studio/relax/git-commit)