Git Commit Generator - Generate standardized commit messages following Conventional Commits specification
Generate standardized git commit messages following the project's Conventional Commits specification.
<type>(<scope>): <subject>
<body>
<footer>
Based on project history analysis, use the following types:
| Type | Description | Example |
|------|-------------|---------|
| feat | New feature | feat: add user authentication |
| fix | Bug fix | fix: resolve login timeout issue |
| docs | Documentation only | docs: update API documentation |
| style | Code style (formatting, semicolons, etc.) | style: fix indentation |
| refactor | Code refactoring (no feature change) | refactor: extract validation logic |
| perf | Performance improvement | perf: optimize database queries |
| test | Add or modify tests | test: add unit tests for auth module |
| chore | Build process or auxiliary tools | chore: update dependencies |
| ci | CI/CD configuration | ci: add GitHub Actions workflow |
| build | Build system changes | build: upgrade webpack to v5 |
Scope indicates the affected module or area, enclosed in parentheses:
feat(agentloop): add verification skill
fix(auth): resolve token refresh issue
Common scopes in this project:
agentloop, blocklet, arcblock-contextblocklet-dev-setup, blocklet-prGood examples:
feat: add blocklet-branch skill for branch managementfix: resolve gh command order issuedocs: update installation guideBad examples:
feat: Added new feature. (wrong tense, has period)Fix bug (missing type prefix)feat: This commit adds a new feature that... (too verbose)Closes #123BREAKING CHANGE: descriptionWhen user requests to create a commit:
git status
git diff --staged
git diff
IMPORTANT: If there are unstaged changes, use AskUserQuestion to confirm how to proceed.
Check for unstaged changes:
Changes not staged for commit)Untracked files)If unstaged changes exist:
{
"questions": [{
"question": "There are unstaged changes. How would you like to proceed?",
"header": "Unstaged",
"options": [
{"label": "Stage all", "description": "Run `git add .` to stage all changes"},
{"label": "Abort", "description": "Cancel the commit and handle changes manually"}
],
"multiSelect": false
}]
}
git add . then continue to Step 3Only proceed if all changes are properly staged:
Generate the commit message following the format, then use AskUserQuestion tool to confirm:
Proposed commit message:
<type>(<scope>): <subject>
<body if needed>
Co-Authored-By: Claude <noreply@anthropic.com>
Use AskUserQuestion tool with options:
Approve - Proceed to commitEdit message - User wants to modify the messageCancel - Abort the commitExample AskUserQuestion usage:
{
"questions": [{
"question": "Proceed with this commit message?",
"header": "Commit",
"options": [
{"label": "Approve", "description": "Create the commit with this message"},
{"label": "Edit message", "description": "Modify the commit message"},
{"label": "Cancel", "description": "Abort the commit"}
],
"multiSelect": false
}]
}
git commit -m "$(cat <<'EOF'
<type>(<scope>): <subject>
<body if needed>
Co-Authored-By: Claude <noreply@anthropic.com>
EOF
)"
git log -1 --oneline
feat: parse blocklet urls from dev output instead of constructing from did
feat: add blocklet-branch skill for branch management
feat: enhance blocklet-server-dev-setup skill with GitHub CLI authentication guidance
feat(agentloop): add verification skill (#1)
fix: gh move top
docs: prefer git URL format for marketplace installation
chore: initial commit
chore: cleanup hello world plugin
(#123)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