Guide
What to put in CLAUDE.md
Write the commands, conventions, and checks you would otherwise re-explain every session.
Topics
Skills, hooks, subagents, MCP, plugins, and AGENTS.md — ways to extend Claude Code for work you repeat.
Guide
Write the commands, conventions, and checks you would otherwise re-explain every session.
Guide
Each skill is its own directory with SKILL.md. This walkthrough builds a review-only skill that reports on the current git diff.
Guide
A Claude Code hook runs a shell command at a fixed moment: a desktop notification when Claude is waiting, Prettier after an Edit or Write, or a PreToolUse check before a tool call. Exit code 2 blocks events that can block, including PreToolUse. On PostToolUse it only shows stderr after the tool has already run, and PermissionRequest and Notification ignore it. Exit 0 with JSON is structured control for that event — allow, deny, ask, or block — and exit 0 alone leaves a PreToolUse call in the normal permission flow.