> ~/claude-skills/poet-commit

Commit messages as haiku.

Haiku, senryū, tanka or renga, chosen by the size of the diff and appended to a conventional subject line so git log --oneline stays useful. Entirely unserious, and the only skill here I would not defend on utility grounds.

Why it exists

It doesn’t need to. This is the only skill here I would not defend on utility grounds.

It does have one serious constraint, though: a commit message owes its readers information, and a poem alone does not provide it. So by default the poem is appended to a conventional subject line, and git log --oneline stays as useful as it was.

fix(api): clamp retry backoff to 30s ceiling

---

exponential dusk
the server, patient at last
counts to thirty, sleeps

The form follows the diff

The number of staged files picks the form.

Files Form
1 Haiku (5-7-5), or senryū when the change is a bug fix or about human error
2 to 4 Tanka (5-7-5-7-7)
5 or more Renga: one 5-7-5 stanza per logical concern, then a closing 7-7

A senryū, for an embarrassing fix:

the off-by-one bug
hiding for two release cycles
waves as it leaves

A tanka, for a three-file refactor of a cache layer:

refactor(cache): move eviction to LRU, drop TTL coupling

---

the cache, evicted
keys we promised to remember
gone with the morning
we rewrite the contract twice
hoping the readers forgive

A renga, for a migration that touches several subsystems:

chore(db): migrate sessions table to uuid pks

---

migrations advance
the old column waves once more
then disappears

new tests bloom in rows
patient as the morning sun
green from end to end

we close the branch, exhale
the river finds its new bed

What makes a poem pass

  • Syllable counts are exact, in natural English syllables. Off by one means rewrite; padding a line with “the” is the death of a haiku.
  • One concrete image per stanza, taken from the diff: a cache, a retry, a boundary, a migration. “Code” and “system” are abstractions.
  • A turn. A dash, a colon or a line break on which the poem pivots.
  • Nothing the diff does not show. A grounded poem makes no technical claim beyond the change.
  • The tone fits the change. No love poem for a security patch, and no celebration for a rollback.

The repository’s examples include poems that fail, and why.

Modes

Arguments combine: /poet-commit tanka free.

Argument What happens
(none) Form chosen by diff size, poem after a conventional subject line, preview before the commit
haiku · senryu · tanka · renga Forces that form
pure Poem only: its first line is the subject
free Written from the mood of the change instead of its content
--no-commit Prints the message without committing
--yolo Random form and mode, committed without a preview

Saying “stop poet” or “normal commits” turns it off for the rest of the session.

What it will not do

  • Stage files. The index is yours.
  • Amend, push or skip hooks, in any mode. --yolo is reckless about form, not about git.
  • Write a poem over a secret. If the staged diff touches a file like .env or contains something that looks like a key or a password, it warns you and offers a plain message instead. This applies under --yolo too.
  • Commit without showing you the message, unless you pass --yolo.
  • Work around a failing pre-commit hook. It reports the output and stops.