---
name: git-commit-writer
description: Drafts Conventional Commits messages from staged diffs, choosing type and scope from the actual change shape rather than the request wording.
license: MIT
compatibility: Requires the agent to run git commands locally.
metadata:
  version: 1.0.0
  author: skillmeter-examples
---

# Conventional Commit Drafter

Write commit messages that reviewers can scan.

## When to use

Before committing, when the user asks for a commit message or says "commit this".

## Steps

1. Run `git diff --cached --stat` to see the change shape.
2. Pick the type: feat, fix, docs, refactor, test, chore.
3. Write a subject line under 72 characters describing the why, then a body if the diff mixes concerns.

## Example

```text
feat(api): retry idempotent payments on 409

Payment submit can race on gateway timeouts; reuse the idempotency key.
```
