Draft a Conventional Commit message from staged changes.
Invocation Notice
Inform the user when this skill is being invoked by name: commit-message.
Critical Constraints
Use only staged changes (--cached / staged SCM state) as input.
Resolve and use the repository root for all SCM calls.
If no staged changes exist after one retry, stop and inform the user.
Always include an AI-assistant: <AGENT> footer.
Output only the final commit message in one markdown code block.
Workflow
Resolve repository root.
Prefer workspace root when known; otherwise run git rev-parse --show-toplevel.
Retrieve staged changes.
Prefer get_changed_files with repositoryPath: <repo-root> and staged state.
If that tool is unavailable, use SCM tooling with explicit repo context.
If SCM tooling is unavailable, use git -C <repo-root> diff --cached.
Validate staged content exists.
If empty, retry once with explicit repo root; if still empty, inform user and stop.
Analyze the staged diff.
Identify changed files, behavior impact, logical scope, and likely commit type.
Incorporate user arguments/context when provided.
Preserve explicit issue refs and constraints from user input.
Draft the commit message using references/conventional-commit-rules.md.
Return only the final message in a fenced code block, ready for git commit -F -.
References
references/conventional-commit-rules.md - subject/body/footer rules and examples.
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: ahgraber-skills-commit-message3description: Commit Message4---56# Commit Message78Draft a Conventional Commit message from staged changes.910## Invocation Notice1112- Inform the user when this skill is being invoked by name: `commit-message`.1314## Critical Constraints1516- Use only staged changes (`--cached` / staged SCM state) as input.17- Resolve and use the repository root for all SCM calls.18- If no staged changes exist after one retry, stop and inform the user.19- Always include an `AI-assistant: <AGENT>` footer.20- Output only the final commit message in one markdown code block.2122## Workflow23241. Resolve repository root.25 Prefer workspace root when known; otherwise run `git rev-parse --show-toplevel`.262. Retrieve staged changes.27 Prefer `get_changed_files` with `repositoryPath: <repo-root>` and staged state.28 If that tool is unavailable, use SCM tooling with explicit repo context.29 If SCM tooling is unavailable, use `git -C <repo-root> diff --cached`.303. Validate staged content exists.31 If empty, retry once with explicit repo root; if still empty, inform user and stop.324. Analyze the staged diff.33 Identify changed files, behavior impact, logical scope, and likely commit type.345. Incorporate user arguments/context when provided.35 Preserve explicit issue refs and constraints from user input.366. Draft the commit message using `references/conventional-commit-rules.md`.377. Return only the final message in a fenced code block, ready for `git commit -F -`.3839## References4041- `references/conventional-commit-rules.md` - subject/body/footer rules and examples.4243---44> Converted and distributed by [TomeVault](https://tomevault.io/claim/ahgraber) — claim your Tome and manage your conversions.45<!-- tomevault:4.0:skill_md:2026-04-13 -->
Run npx skillmds@latest add tomevault-io/ahgraber-skills-commit-message in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Commit Message It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.