Skip to content
Development
Command

/commit

Generate a Conventional Commits message from the staged diff and commit after confirmation. Same flow as the natural-language `commit` skill — dispatches here so users who prefer explicit slash commands can bypass intent detection.

From plugin
nyann
641 skills41 commands3 hooks
Install
> /plugin marketplace add thettwe/nyann
> /plugin install nyann@nyann-plugins

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/commit

Context preview

What this command does when you run it.

Generate a Conventional Commits message from the staged diff and commit after confirmation. Same flow as the natural-language `commit` skill — dispatches here so users who prefer explicit slash commands can bypass intent detection.

Command definition

commit.md
name: nyann:commit
description: >
  Generate a Conventional Commits message from the staged diff and commit
  after confirmation. Same flow as the natural-language `commit` skill —
  dispatches here so users who prefer explicit slash commands can bypass
  intent detection.

**Plugin root:** This is a Claude Code plugin, NOT a CLI tool. Do NOT search via `which`, `npm list`, `pip list`, or `brew list`. This file is at `<plugin_root>/commands/`. All scripts: `<plugin_root>/bin/`. Read the matching `skills/*/SKILL.md` for the full flow.

/nyann:commit

Invokes the `commit` skill (`skills/commit/SKILL.md`) directly.

Happy path:

1. `bin/commit.sh --target <cwd>` — gather staged-diff context + detect the active commit convention. 2. Generate a message using `skills/commit/references/conventional-commits.md` as the authoritative rule set. 3. Preview to the user; they answer yes / edit / abort. 4. `bin/try-commit.sh` — run `git commit`; parse structured result. 5. On `result: rejected` for `stage: commit-msg`, regenerate with the hook's reason folded in. Cap at 2 retries.

When not to trigger

  • The user is on `main` / `master` — warn about the block-main hook and

route through `/nyann:branch` first.

  • Nothing staged — the skill will guide staging; don't call `git add -A`

for them.

See also: `/nyann:branch`, `/nyann:bootstrap`, `/nyann:doctor`.

Ships withnyann

ငြမ်း is Burmese for scaffolding. Nyann is the Claude Code plugin that picks expert git defaults for your stack — branching, working hooks (Husky / pre-commit.com / lefthook), commits, releases, CI, docs — then keeps the repo on those rails through every PR

Get the whole plugin

Other commands on nyann.