CP — 01
Claude Code Setup Playbook
A step-by-step guide to configuring Claude Code for a team repository. Each step builds on the one before it, so you can stop at any step and still have something that works.
Most teams get 80% of the value from steps 1 to 4. Steps 5 to 8 pay off on larger codebases and bigger teams. Don't start there.
01 — overview
Terms
- Claude Code: Anthropic's coding agent. It runs in your terminal or IDE, reads files, runs commands and edits code.
- CLAUDE.md: a Markdown file Claude Code loads at the start of every session. Think of it as the standing briefing.
- Permissions: allow, ask and deny lists in
settings.json that decide which tool calls run without a prompt. - Hook: a script the tool runs on an event, such as before a command or when the agent tries to stop. The script decides, not the model, so a hook can't be talked out of its answer.
- Subagent: a separate Claude instance with its own prompt, tool list and context window, used for one bounded job.
- Skill: a folder with a
SKILL.md file that Claude loads on demand, either when you type /name or when the task matches its description.
02 — overview
The idea behind all of it
Prose tells the agent what you want. Machines make sure it happens. A sentence in CLAUDE.md saying "never run a production build" works most of the time. A deny rule or a hook works every time. Use prose to explain and machines to enforce, and write the enforcement in the same change as the explanation.
03 — overview
The eight steps
| Step | Adds | Fixes |
|---|
| 1 | CLAUDE.md | The agent re-discovers your commands every session |
| 2 | Permissions | Constant approval prompts, and risky commands running unchecked |
| 3 | Hooks | Rules the agent must never break, which a deny list can't express |
| 4 | Git hooks and CI | Protection that holds for humans and every other tool too |
| 5 | Rule files | CLAUDE.md getting too long |
| 6 | Subagents | Search and review work flooding the main conversation |
| 7 | Skills | The same multi-step prompt typed again and again |
| 8 | Task files | Large changes with no record of what was planned or proven |