do-commit
Installation
SKILL.md
Stage only in-scope files, draft a Conventional Commits message, confirm with user, commit.
Workflow
- Inspect — run
git statusandgit diff --statto see dirty files. - Scope files — determine committable files in this order:
- User-specified files (highest priority)
- Files clearly attributable to the current task/session
- Best-guess selection from dirty files — include the proposed list in the confirmation step
- Draft message —
<type>[optional scope][!]: <description>(imperative, specific, ≤72 chars). For non-trivial or multi-file changes, add a concise body (1–3 bullets) explaining why, key constraints, and impact. Do not restate the diff. - Confirm — display the proposed commit message as a fenced code block and list staged file paths. Ask one concise question (e.g., "Commit these changes?"). Never commit without explicit user approval.
- Commit — stage only confirmed paths and commit. If committed paths differ from staged (e.g., hooks modified content), report the deltas.
- Report — show commit hash and summary.