Git Commit Writer
SkillCommunicationLets your agent draft a clean, convention-matching git commit message from your staged changes.
Then ask your AI: use the Git Commit Writer skill
Details
Instructions available. Your AI can read the instructions. Execution depends on the setup they require.
Account requirements not reviewed. Check the skill instructions before use; Ahel provides instructions and does not run this skill.
No other account needed.
Add it as a step in a pipeline you build on Ahel, or connect Ahel to Claude, ChatGPT, Cursor, Claude Code or Codex and ask your AI to use it.
About this skill
Trigger when the user asks to write a commit message, generate a commit from staged changes, review a diff before committing, or says "/commit". Reads git diff --staged and produces an opinionated, convention-matching commit message.
What this skill tells your AI
The instructions your AI receives, as published by mergisi/awesome-openclaw-agents in skills/claude/git-commit-writer/SKILL.md and read by Ahel’s review.
Generate a disciplined commit message from the currently staged changes. Opinionated about style: imperative mood, concise title, body that explains why not what.
When to use
- User says "write a commit message", "/commit", "commit this"
- User has staged changes and asks to review them before committing
- User asks "what should this commit be called"
Do NOT use this skill to actually run git commit unless the user explicitly asks — just draft the message and show it.
Instructions
- Run
git status --shortwith the Bash tool. Confirm there are staged changes. If nothing is staged, stop and tell the user. - Run
git diff --stagedto read the full staged diff. If the diff is large (>500 lines), also rungit diff --staged --statto get a file-level overview first. - Run
git log --oneline -10to learn the repo's commit convention. Look for:- Conventional Commits prefixes (
feat:,fix:,chore:) — if present, match the style. - Title case vs sentence case.
- Whether bodies are used or not.
- Any ticket / issue prefix (e.g.
[PROJ-123]).
- Conventional Commits prefixes (
- Draft a message following these rules:
- Title: imperative mood ("Add X", not "Added X" or "Adds X"), max 70 characters, no trailing period.
- Body (if needed): blank line after title, then 1-3 short paragraphs or bullets explaining why the change is necessary, what problem it solves, what trade-offs were made.
- Never use the word "refactor" alone — always say what was refactored and why ("Extract retry loop into helper to share with job runner").
- Never write "Update file.js" — describe the behavior change, not the file touched.
- Never invent a ticket number. If the repo uses them but you can't infer one, leave it out.
- Show the drafted message in a fenced code block. Ask the user if they want you to run
git commitwith it. Do not commit automatically.
Anti-patterns to reject
- "Various fixes" / "Updates" / "WIP" — reject and ask for specifics from the diff.
- "Refactor code" — must name the unit being refactored.
- Title >70 chars — shorten or move detail to body.
- Past tense or "-ing" forms — rewrite to imperative.
Example invocations
/git-commit-writer- "Write a commit message for what I have staged"
- "Review my staged diff and draft a commit"
- "/commit — but don't push"
Signals
- GitHub stars
- 4k
- Forks
- 645
- Last commit
- Sep 2026
Advanced
- Item type
- skill
- Key
git-commit-writer- Source
- github.com/mergisi/awesome-openclaw-agents
github.com/mergisi/awesome-openclaw-agents
Related picks
Skill · thedaviddias
The pick for JavaScriptmodern-javascript-patterns
Skill · sickn33
The pick for JavaScriptslack-gif-creator
Skill · anthropics
More in Communicationerror-handling
Skill · affaan-m
More in Communicationemails
Skill · coreyhaines31
More in Communicationwait-what
Skill · mattpocock
More in Communication