hakkadaikon/hymme/micro-commit
Claude Code and agent skill by hakkadaikon/hymme
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Automatically create conventional commit-style micro-commits by splitting changes into logical units of ~30-50 lines each. Use this skill whenever the user asks to commit, says "コミットして", "commit this", or when a feature, fix, or refactoring task is completed and changes need to be committed. Also trigger when the user mentions "マイクロコミット", "micro commit", "conventional commit", or asks to split changes into smaller commits. If you detect that a coding task has just been completed and there are u…
Install
npx vskill@latest install hakkadaikon/hymme/micro-commitSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as hakkadaikon/hymme/micro-commit.
Micro Commit
Create clean, conventional commit-style micro-commits by automatically splitting staged and unstaged changes into logical units.
Why micro-commits matter
Small, focused commits make git history readable and bisectable. Each commit should represent one coherent thought — a single function added, a bug fixed, a test written. When commits are too large, git bisect becomes useless and code review becomes painful. The goal is ~30-50 changed lines per commit, though this is a guideline, not a hard rule — don't split a single coherent change just to hit a line count.
Plan execution (executing-plans and SDD implementers)
When executing a plan inline (superpowers:executing-plans), run each task's Commit step through this skill yourself. When dispatched by superpowers:subagent-driven-development, the task brief's Commit step(s) are the plan: execute them through this skill. Split a step's diff into ~30-50 line logical units when it is larger, keep the brief's message verbatim when one commit suffices, and never merge two independent changes the brief listed separately. Commit before reporting — the implementer contract requires committed work — without waiting for a separate "commit this" instruction. Never push.
Checks before a commit
Never put a check (lint, tests) and git commit in tool calls sent at the same time: the commit runs even when the check fails. Run the check, read its exit code, then commit in the next call.
Workflow
1. Analyze all changes
Run git status and git diff (both staged and unstaged) to understand the full picture. Read the changed files to understand what each change does semantically.
2. Group changes into logical units
Split changes by semantic meaning, not by file. One logical unit might be:
- A new function and its corresponding test
- A bug fix (even if it touches multiple files)
- A refactoring that renames a variable across files
- Documentation updates for a feature
Guidelines for splitting:
- Each commit should be independently meaningful — the codebase should compile/work after each commit
- Related changes go together (e.g., a new function + its test = one commit, not two)
- Unrelated changes in the same file should be split into separate commits using
git add -por by staging specific files - If a change is naturally 60 lines but splitting it would break coherence, keep it as one commit
3. Determine commit type and scope
Types (conventional commit):
| Type | When to use | |
|---|---|---|
feat | New functionality for the user/system | |
fix | Bug fix | |
docs | Documentation only (comments, README, etc.) | |
refactor | Code restructuring without behavior change | |
test | Adding or modifying tests | |
chore | Build, CI, tooling, dependencies |
Scope: Derive from the module or directory the change primarily affects. Use short, recognizable names:
- Directory-based:
feat(db):,fix(websocket):,test(nostr): - Feature-based:
feat(auth):,fix(parser): - If a change spans many modules equally, scope can be omitted
4. Write the commit message
Format:
Rules:
- First line under 72 characters
- Use imperative mood: "add", "fix", "refactor" — not "added", "fixes", "refactoring"
- Focus on why/what, not how: "fix off-by-one in buffer boundary check" not "change < to <="
- Lowercase first letter after the colon
- No period at the end
- Write in the language of the codebase/project (if the project uses English commit messages, write in English; if Japanese, write in Japanese). Default to English unless you see otherwise in
git log.
Examples:
5. Stage and commit each unit
For each logical unit, in dependency order (foundational changes first):
- Stage only the files/hunks for this unit — use specific file paths, not
git add -A - Commit with the conventional commit message using a HEREDOC:
``bash git commit -m "$(cat <<'EOF' type(scope): description EOF )" ``
- Verify with
git statusthat the right things were committed
6. Report what was done
After all commits, show a summary:
Important constraints
- Never use
git add -Aorgit add .— always stage specific files - Never amend existing commits unless explicitly asked
- Never skip hooks (
--no-verify) - Never force push
- If a pre-commit hook fails, fix the issue and create a new commit
- Check
git logfirst to match the project's existing commit style if it differs from these guidelines - Do not commit files that look like secrets (
.env, credentials, keys) - Never chain a verification gate into the commit on the same shell line:
tests 2>&1 | tail && git commitcommits even when the tests are red (the pipe's exit istail's), andtests; git commitignores the failure. Run the gate first, confirm exit 0, then commit as a separate command (or guard it withif <gate>; then git commit ...; fi)
Completion criteria
Done when the workflow and constraints above are satisfied. Anything intentionally left uncommitted is reported as such.
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/micro-commit/SKILL.md
Popularity
- 7-day trend score
- 5
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/hakkadaikon/hymme/micro-commit)