Skip to content
Development
Hook

Hooks

What nyann runs automatically, and when. A hook is a command Claude Code fires at a fixed moment, without you asking for it.

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

Ships with nyann. Installing the plugin gets these hooks.

What fires, and when

PreToolUse

  • MatchesBash${CLAUDE_PLUGIN_ROOT}/bin/claude-hook-block-main.sh

PostToolUse

  • MatchesRead${CLAUDE_PLUGIN_ROOT}/bin/track-claudemd-usage.sh
  • MatchesBash${CLAUDE_PLUGIN_ROOT}/bin/track-claudemd-usage.sh

UserPromptSubmit

Fires before Claude sees each prompt you send. A plugin can use it to inject context, so the same instruction reaches the model every turn instead of only at session start.

  • ${CLAUDE_PLUGIN_ROOT}/bin/session-triage.sh
Read hooks/hooks.json
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