---
name: write-commit
description: Create a conventional git commit from staged changes. Use when the user wants to commit, /commit, or write a commit message.
---

# Write Commit

Create one clear conventional commit from the current staged diff.

## Steps

1. Run `git status` and `git diff --staged`. If nothing is staged, stop and say so.
2. Summarize what changed and why, in one sentence.
3. Write a message: `type(scope): summary` — types are feat, fix, docs, refactor, test, chore.
4. Keep the subject under 72 characters. No trailing period.
5. Commit with that message. Do not push unless asked.
