korenko-git/opencode-setup/commit-message
- community
Checking that the SKILL.md file is still in the repository.
Analyze git changes and generate conventional commit messages. Supports batch commits for multiple unrelated changes. Use when: (1) Creating git commits, (2) Reviewing staged changes, (3) Splitting large changesets into logical commits.
Install
npx vskill@latest install korenko-git/opencode-setup/commit-messageSKILL.md
commit-message
Analyze git changes and generate context-aware commit messages following Conventional Commits.
Set SKILL_DIR to the absolute directory containing this file before invoking the bundled script. Do not resolve the script from the user project.
Quick Start
If the bundled commit-pattern configuration is malformed, the script exits with a concise invalid commit pattern config diagnostic instead of analyzing with partial or unsafe settings.
Commands
| Command | Description | |
|---|---|---|
--analyze | Show all changed files with status and categories | |
--batch | Suggest how to split changes into multiple commits | |
--generate [pattern] | Generate commit message for matching files | |
--staged | Only analyze staged changes (default: all changes) |
Commit Types
| Type | Description | Example | |
|---|---|---|---|
feat | New feature | feat(api): add user authentication | |
fix | Bug fix | fix(db): resolve connection timeout | |
refactor | Code restructuring | refactor(utils): simplify helper functions | |
docs | Documentation | docs: update README | |
test | Tests | test(api): add user endpoint tests | |
chore | Maintenance | chore: update dependencies | |
style | Formatting | style: fix linting errors |
Batch Commit Workflow
When you have multiple unrelated changes:
- Run
--batchto see suggested commit groups - Stage the first group with literal, argv-safe paths:
git --literal-pathspecs add -- <path-arguments...>. Pass each path as a separate argv argument; do not paste a JSON array into a shell. - Commit with suggested message
- Repeat for remaining groups
Grouping Strategy
Files are grouped by:
- Directory/Module:
src/api/,tests/,docs/ - Change Type: Added vs Modified vs Deleted
- Semantic Relationship: Related files together
Context-Aware Commit Messages
Note: Theanalyze_changes.pyscript provides file grouping and basic suggestions. Use its output as a starting point, then readgit diffto understand the actual changes and generate context-aware messages following the examples below.
When generating commit messages, analyze the actual code changes to infer business context. Don't just describe files—describe what the changes accomplish.
Scope Guidelines
The scope should reflect the business module or feature, not just the directory:
| Scope Type | Example | When to Use | |
|---|---|---|---|
| Feature/Module | companion, calendar, inbox | Changes to a specific product feature | |
| Platform | ios, android, web | Platform-specific changes | |
| Integration | outlook, gmail, slack | Third-party integration changes | |
| Component | auth, api, db | Core infrastructure changes |
Input/Output Examples
Example 1: New Feature
Example 2: Bug Fix
Example 3: Multi-platform Change
Example 4: Chore/Maintenance
Writing Good Descriptions
| Bad (Generic) | Good (Context-Aware) | |
|---|---|---|
feat: add new file | feat(payments): add Stripe webhook handler | |
fix: fix bug | fix(auth): prevent session timeout on mobile | |
chore: update code | chore(ci): reduce build time with parallel jobs | |
refactor: refactor utils | refactor(api): extract rate limiting to middleware |
Key Principles
- Read the code - Understand what the changes actually do
- Identify the feature - What user-facing or system capability is affected?
- Be specific - Include relevant details (platform, integration, component)
- Use active voice - "add", "fix", "update", not "added", "fixed", "updated"
- Keep it concise - First line under 72 characters
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/commit-message/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
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/korenko-git/opencode-setup/commit-message)