skills/commit-elegant/SKILL.md
Creates elegant git commits using emoji conventional commit format. Handles pre-commit verification, auto-staging, analyzes diffs for logical grouping, suggests splitting large changes into focused commits, and writes clear imperative commit messages. Use this skill when the user wants to commit changes, stage files, or craft a commit message. Supports --no-verify to skip pre-commit checks.
npx skillsauth add rockykusuma/agent-skills commit-elegantInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
A structured workflow for crafting clean, expressive git commits using emoji conventional commit format.
--no-verify is passed):
package.json scripts, Makefile, etc.).git status.
git add -A to add all modified and new files.git diff --staged to understand what is being committed.git commit -m "<message>".<emoji> <type>[(<scope>)][!]: <short imperative description>
(<scope>) is optional — use when the change is clearly scoped to a module, package, or domain. Scope must be a noun (e.g., auth, parser, ui).! is optional — append immediately before : to flag a breaking change (e.g., feat(api)!: remove v1 endpoints).Co-Authored-By line.Add a body when the "why" is not obvious from the subject alone:
<emoji> <type>: <subject>
<body explaining why, not what>
[optional footer(s)]
Footers go after the body, separated by a blank line. Common footers:
BREAKING CHANGE: <explanation> — signals a breaking API change (correlates with SemVer MAJOR).Refs: #<issue> — links to an issue or ticket.Reviewed-by: <name> — credits a reviewer.- instead of spaces (e.g., Acked-by), except BREAKING CHANGE.! is used in the subject, BREAKING CHANGE: footer may be omitted.fix → PATCH releasefeat → MINOR releaseBREAKING CHANGE (any type) → MAJOR release| Emoji | Type | Use for | |-------|------|---------| | ✨ | feat | New feature | | 🐛 | fix | Bug fix | | 🚑️ | fix | Critical hotfix | | 🔒️ | fix | Security fix | | 🚨 | fix | Fix compiler/linter warnings | | 🩹 | fix | Simple non-critical fix | | ✏️ | fix | Fix typos | | 🔇 | fix | Remove logs | | 🔥 | fix | Remove code or files | | 📝 | docs | Documentation changes | | 💡 | docs | Add or update source comments | | 💄 | style | Formatting/style (no logic change) | | 🎨 | style | Improve code structure/format | | ♻️ | refactor | Refactor (no feature, no fix) | | 🚚 | refactor | Move or rename resources | | ⚰️ | refactor | Remove dead code | | ⚡️ | perf | Performance improvement | | ✅ | test | Add or update tests | | 🧪 | test | Add a failing test | | 📸 | test | Add or update snapshots | | 🔧 | chore | Tooling, configuration | | 🙈 | chore | Add or update .gitignore | | 📦️ | chore | Add or update compiled files/packages | | ➕ | chore | Add a dependency | | ➖ | chore | Remove a dependency | | 🔖 | chore | Release/version tag | | 📌 | chore | Pin dependencies to specific versions | | 👥 | chore | Add or update contributors | | 🔀 | chore | Merge branches | | 👷 | ci | Add or update CI build system | | 🚀 | ci | CI/CD improvements | | 💚 | fix | Fix CI build | | ⏪️ | revert | Revert changes | | 🗑️ | revert | Remove (deprecated/dead things) | | 💥 | feat | Introduce breaking changes | | 🏷️ | feat | Add or update types | | 🦺 | feat | Add or update validation logic | | 👔 | feat | Add or update business logic | | 🌐 | feat | Internationalization/localization | | 📱 | feat | Responsive design | | 🚸 | feat | Improve UX/usability | | ♿️ | feat | Improve accessibility | | 🔊 | feat | Add or update logs | | 📈 | feat | Add or update analytics/tracking | | 🧵 | feat | Multithreading/concurrency | | 🚩 | feat | Feature flags | | 🔍️ | feat | Improve SEO | | 💬 | feat | Add or update text and literals | | 🥅 | fix | Catch errors | | 👽️ | fix | Update code due to external API changes | | 🗃️ | db | Perform database related changes | | 🏗️ | refactor | Architectural changes | | 🧑💻 | chore | Improve developer experience | | 🌱 | chore | Add or update seed files | | 🎉 | chore | Begin a project | | 📄 | chore | Add or update license | | 🤡 | test | Mock things | | ⚗️ | experiment | Perform experiments | | 🚧 | wip | Work in progress | | 💫 | ui | Animations and transitions | | 🍱 | assets | Add or update assets | | 🥚 | feat | Add or update easter egg | | ✈️ | feat | Improve offline support |
Split when changes span:
When splitting, present the proposed list of commits to the user before executing them.
git reset HEADgit add <file1> <file2> for whole filesgit add -p <file> for partial hunks within a filegit commit --amend and rewrite the message to reflect the combined change.git commit --allow-empty).git commit --fixup=HEAD for later interactive rebase, or amend if the user prefers.git rebase -i to reword it before pushing. After push, note that cleanup depends on the team's workflow.Good single commit messages:
✨ feat: add user authentication system
🐛 fix: resolve memory leak in rendering process
📝 docs: update API documentation with new endpoints
♻️ refactor: simplify error handling logic in parser
🚨 fix: resolve linter warnings in component files
🧑💻 chore: improve developer tooling setup process
👔 feat: implement business logic for transaction validation
🩹 fix: address minor styling inconsistency in header
🚑️ fix: patch critical security vulnerability in auth flow
🎨 style: reorganize component structure for better readability
🔥 fix: remove deprecated legacy code
🦺 feat: add input validation for user registration form
💚 fix: resolve failing CI pipeline tests
📈 feat: implement analytics tracking for user engagement
🔒️ fix: strengthen authentication password requirements
♿️ feat: improve form accessibility for screen readers
Good with scope:
✨ feat(auth): add JWT-based user authentication
🐛 fix(api): resolve null pointer in user endpoint
♻️ refactor(db): simplify query builder interface
Good with ! breaking change:
💥 feat(api)!: remove deprecated v1 endpoints
🔧 chore!: drop support for Node 14
Good with body and footer:
⚡️ perf: lazy-load dashboard widgets
Reduces initial bundle size by 40%. Widgets now load on scroll
into viewport instead of all at mount time.
Refs: #452
Good with breaking change footer:
✨ feat: allow config object to extend other configs
BREAKING CHANGE: `extends` key in config file is now used
for extending other config files.
Good split sequence:
✨ feat: add new solc version type definitions
📝 docs: update documentation for new solc versions
🔧 chore: update package.json dependencies
🏷️ feat: add type definitions for new API endpoints
🧵 feat: improve concurrency handling in worker threads
🚨 fix: resolve linting issues in new code
✅ test: add unit tests for new solc version features
🔒️ fix: update dependencies with security vulnerabilities
Avoid these:
# Too vague
🔧 chore: update stuff
🐛 fix: fix bug
✨ feat: changes
# Past tense
🐛 fix: fixed the login issue
# Too long
✨ feat: add user authentication system with JWT tokens and refresh token rotation and session management
# Mixing concerns in one commit
✨ feat: add auth system and fix header styling and update docs
# Meaningless scope
🐛 fix(code): resolve bug
development
Maintainer-only workflow for handling GitHub Secret Scanning alerts on OpenClaw. Use when Codex needs to triage, redact, clean up, and resolve secret leakage found in issue comments, issue bodies, PR comments, or other GitHub content.
development
Maintainer workflow for OpenClaw releases, prereleases, changelog release notes, and publish validation. Use when Codex needs to prepare or verify stable or beta release steps, align version naming, assemble release notes, check release auth requirements, or validate publish-time commands and artifacts.
development
Run, watch, debug, and extend OpenClaw QA testing with qa-lab and qa-channel. Use when Codex needs to execute the repo-backed QA suite, inspect live QA artifacts, debug failing scenarios, add new QA scenarios, or explain the OpenClaw QA workflow. Prefer the live OpenAI lane with regular openai/gpt-5.4 in fast mode; do not use gpt-5.4-pro or gpt-5.4-mini unless the user explicitly overrides that policy.
development
End-to-end Parallels smoke, upgrade, and rerun workflow for OpenClaw across macOS, Windows, and Linux guests. Use when Codex needs to run, rerun, debug, or interpret VM-based install, onboarding, gateway smoke tests, latest-release-to-main upgrade checks, fresh snapshot retests, or optional Discord roundtrip verification under Parallels.