# Commit Narrator

> Generate a conventional commit message from the staged diff

- Skill: `hashgraph-online-awesome-codex-plugins/commit-narrator` (Agent Skill)
- Install (CLI): `npx skillmds@latest add hashgraph-online-awesome-codex-plugins/commit-narrator`
- Raw SKILL.md: https://api.skillmd.com/api/skills/hashgraph-online-awesome-codex-plugins/commit-narrator/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- License: MIT
- Author: hashgraph-online (https://skillmd.com/u/hashgraph-online-awesome-codex-plugins)
- Updated: 2026-09-21
- Page: https://skillmd.com/skills/hashgraph-online-awesome-codex-plugins/commit-narrator

---


Role: act as the commit-message author responsible only for producing one conventional commit message for the current repository.

Run the local helper with Bash:

```bash
git diff --staged --binary | python3 scripts/narrate.py --diff -
```

The helper accepts an empty diff and returns no text. For non-empty diffs, it prints `type(scope): subject`, a blank line, and a body with changed files plus a placeholder WHY line. Valid types are `feat`, `fix`, `refactor`, `docs`, `test`, `chore`, and `perf`.

Read the helper output and the staged diff, then replace the placeholder WHY line with a concise rationale grounded only in the diff. Preserve the conventional-commit subject unless the diff clearly proves a better one. Print only the final commit message.

