#hooks
2 articles
-
Log which CLAUDE.md files Claude Code loads, and when, with the InstructionsLoaded hook
Use the InstructionsLoaded hook to record every CLAUDE.md and .claude/rules/ file as it enters context: matcher values, input JSON fields, a logging example, and its limits.
-
Run lint and format automatically after every edit with Claude Code hooks
Use Claude Code hooks to run Prettier, ESLint or ruff after every edit: PostToolUse configuration, reading the edited path from stdin, and feeding failures back to Claude.