Claude Code hook
Claude Playbook
Production-ready .claude/ scaffolding for enforcing professional software engineering standards with Claude Code. Rules, skills, agents, and hooks — ready to use as a GitHub template.
Install
/plugin marketplace add smartwhale8/claude-playbookFound in the project README. Check it for setup steps after installing.
git clone https://github.com/smartwhale8/claude-playbook.gitFrom the README
Claude Playbook A working .claude/ directory for Claude Code, and the reasoning behind every file in it. Rules that load only when they apply, skills for review and verification, subagents that keep exploration out of your context, and hooks that enforce what instructions can only request. Independent community project. "Claude" and "Claude Code" are products of Anthropic. Not affiliated with, endorsed by, or sponsored by Anthropic. Contents - Why this exists - Before you install - Install - Your first fifteen minutes - What you get - How the pieces fit together - The components, one at a time - 1. CLAUDE.md - 2. Rules - 3. Skills - 4. Subagents - 5. Hooks - 6. Workflows - 7. Settings and permissions - 8. MCP servers - 9. CI and automation - 10. Evals - Make it yours - Check your setup - Guides - Compatibility - Contributing Why this exists Claude Code writes good code and still drifts, because nothing in your repository tells it what "good" means here. Left alone it will patch symptoms rather than causes, build a component that already exists three directories over, leave dead code behind, and report that tests pass without running them. None of that is a model failure. It is missing context, in the specific places Claude Code gives you to put context. This repository fills those places, and explains each choice, so you can keep what fits your project and delete the rest. New in 2.0 (September 2026): the hook registration format, the memory precedence model, and half the frontmatter documented here changed since the first release. Rules are now path-scoped, which cut the always-loaded context by 82%. See what's new and the changelog. Before you install Two things, both quick. 1. Install jq. Every hook needs it to read its…
How hooks work
- Hooks are shell commands Claude Code runs at fixed points: before or after a tool call, when you submit a prompt, when Claude stops, on notifications and at session start.
- They are set in the hooks section of ~/.claude/settings.json (or .claude/settings.json for a project), or come bundled in a plugin.
- A hook can block a tool call, add context, or run a formatter or test. Read the scripts before you install them: they run on your machine with your permissions.
Details
- Repository
- smartwhale8/claude-playbook
- Type
- Hooks
- Language
- Shell
- License
- MIT
- Last updated
- 20 September 2026
- Topics
- ai-codingbest-practicesclaude-codecode-qualitydeveloper-toolssoftware-engineeringtemplate-repository
FAQ
What is Claude Playbook?
Production-ready .claude/ scaffolding for enforcing professional software engineering standards with Claude Code. Rules, skills, agents, and hooks — ready to use as a GitHub template. It is a hook for Claude Code, from smartwhale8/claude-playbook on GitHub.
How do I install Claude Playbook?
Run /plugin marketplace add smartwhale8/claude-playbook inside Claude Code, then follow the setup in the README.
Is Claude Playbook popular?
smartwhale8/claude-playbook has 44 GitHub stars and 4 forks. It was last updated on 20 September 2026.
More hooks
Claude Moodle Dev
42SaadRahman01/claude-moodle-dev
Moodle development toolkit for AI coding assistants. Skills for XMLDB, Hooks API, PHPUnit, Behat, AMD, privacy/GDPR, security, accessibility. Native Claude Code plugin + adapters.
Tool Gate Hook
41kornysietsma/tool-gate-hook
A PreToolUse hook for Claude Code for more granular permission controls
Claude Code Plugins
44FlorianBruniaux/claude-code-plugins
Production-ready Claude Code plugins: skills, hooks, agents, slash commands, and MCP templates.
Founder OS
24cloudrepo-io/founder-os
Run your company with an AI team. No complex tooling—just markdown files and Claude.
armorClaude
47armoriq/armorClaude
Intent-based security plugin for Claude Code - registers a plan per prompt and enforces policy on every tool call via hooks.
CC Thingz
39alexei-led/cc-thingz
Portable skills, agents, hooks, and Pi extensions for Claude Code, Codex CLI, Copilot, Cursor, Grok, and Pi.
Browse the most popular Claude Code mods, all hooks, or the skills and MCP server directories.