Write well-structured git commit messages following the Conventional Commits standard. Use when a user asks to commit changes, write a commit message, stage and commit, improve a commit message, or follow commit conventions. Analyzes diffs to produce accurate, meaningful commit messages.
Generate well-structured git commit messages by analyzing staged changes. Follows Conventional Commits format and produces messages that explain what changed and why.
When a user asks you to commit, write a commit message, or improve an existing commit message, follow these steps:
# See what is staged
git diff --cached --stat
# See full staged diff
git diff --cached
# See unstaged changes (in case user wants to stage first)
git status
If nothing is staged, help the user stage the right files first. Never use git add . unless the user explicitly asks -- prefer adding specific files.
Categorize what changed:
Look at the actual code changes, not just file names. Understand the intent behind the changes.
Use Conventional Commits format:
type(scope): short description
Longer explanation of what changed and why. Wrap at 72 characters.
Reference any issues or tickets.
Co-Authored-By: if applicable
Types:
feat: New feature or capabilityfix: Bug fixdocs: Documentation onlystyle: Formatting, semicolons, whitespace (no logic change)refactor: Code restructuring without behavior changeperf: Performance improvementtest: Adding or updating testsbuild: Build system or dependency changesci: CI/CD configuration changeschore: Maintenance tasks, tooling updatesRules for the subject line:
feat(auth):, fix(api):)Rules for the body:
Fixes #123, Closes #456git commit -m "$(cat <<'EOF'
type(scope): subject line here
Body paragraph explaining the change.
EOF
)"
git log --oneline -1
git status
Confirm the commit was created and the working tree is in the expected state.
Staged changes: New auth/ directory with login, register, and middleware files.
Commit message:
feat(auth): add user authentication with JWT
Implement login and registration endpoints with JWT-based session
management. Includes:
- POST /auth/login with email/password
- POST /auth/register with validation
- Auth middleware for protected routes
- Token refresh endpoint
Closes #42
Staged changes: Modified src/utils/date.ts -- changed timezone handling in formatDate().
Commit message:
fix(utils): correct timezone offset in date formatting
formatDate() was applying the UTC offset in the wrong direction,
causing dates to display one day behind for users in negative UTC
timezones (Americas). The offset is now subtracted instead of added.
Fixes #187
Staged changes: Updated README, added a .env.example, fixed a typo in a config file.
Commit message:
chore: update project setup documentation
- Add .env.example with required environment variables
- Update README with new setup instructions
- Fix typo in webpack.config.js comment
git log), match that style instead of Conventional Commits.npx skills add TerminalSkills/git-commit-pro下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer