Commit: One ยท diff
git:20260812.7bfe919 to git:20260813.a09c995
3 added, 1 removed. Audit A to A.
---
name: "Commit: One"
description: "{{ ๐ซ๐ซ๐ซ }} Generate a commit message. If nothing staged, stage all changes."
when_to_use: "When the working tree holds one logical change ready to commit and you just need a well-formed conventional-commit message written."
model: haiku
effort: low
disable-model-invocation: true
allowed-tools: ["Bash(git:*)"]
+ arguments: ["hint"]
+ argument-hint: "[message emphasis (optional), e.g. a type, scope or the why]"
---
## Current state
```!
git status --short
git diff --cached --stat
```
## Steps
1. Per the state above: if no changes staged, stage all. If files are already staged, *do not* stage more files.
- 2. Generate commit message per conventional commits format.
+ 2. Generate commit message per conventional commits format, honouring `$hint` (a type, scope or emphasis nudge) when given.
3. Show message and await approval:
- If approved, push to upstream
- If changes requested, revise and repeat
<template format-reference="https://www.conventionalcommits.org/en/v1.0.0/">
`type(scope?): description\n\nbody (optional)\n\nBREAKING CHANGE: footer (if applicable)`
</template>
<conventions>
- Subject line: imperative mood, lowercase, no period, max 50 chars (`add feature` not `added feature` or `adds feature`)
- Body: explain *what* and *why*, not *how*; wrap at 72 chars
</conventions>