Skip to content
Development
Hook

Hooks

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

Install
$ npx -y skills add tody-agent/codymaster --agent claude-code

Ships with cm. Installing the plugin gets these hooks.

What fires, and when

SessionStart

Fires once when a session begins, and again after a context compaction. It is where a plugin sets up its environment, or restores state the compaction dropped.

  • Runs fi.

PreToolUse

  • Runs cm-guard-secrets.

Stop

  • Runs cm-save-continuity.
Read hooks/hooks.json
Ships withcm

"I can't write code. But in 6 months, I shipped 12 real products using AI. CodyMaster is everything I learned โ€” so you don't have to repeat my mistakes." โ€” Tody Le, Head of Product, Creator of CodyMaster 50+ skills. One install.

Get the whole plugin, auto-invoked