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.

44 stars 4 forksHooks Plugin marketplace Source

Install

Inside Claude Code
/plugin marketplace add smartwhale8/claude-playbook

Found in the project README. Check it for setup steps after installing.

From source
git clone https://github.com/smartwhale8/claude-playbook.git

From 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…
Read the full README on GitHub

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.
Claude Code docs

Details

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

Browse the most popular Claude Code mods, all hooks, or the skills and MCP server directories.