Skip to content
Development
Hook

Hooks

What frontend-craft 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 bovinphang/frontend-craft --agent claude-code

Ships with frontend-craft. Installing the plugin gets these hooks.

What fires, and when

PreToolUse

  • Runs fec-security-check.js".

PostToolUse

  • Runs fec-format-changed-file.js".

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 fec-cleanup-claude-cache.js".

Stop

  • Runs fec-run-tests.js".

Notification

  • Runs fec-notify.js".
Read hooks/hooks.json
Ships withfrontend-craft

frontend-craft is a universal frontend plugin that brings the same opinionated engineering standards to all 15 AI coding assistants.

Get the whole plugin, auto-invoked