The minimal setup
The first version of the harness these docs use: Claude Code with its effort set, two plugins, one Stop hook and the first files in your repository. Give it about fifteen minutes, inside a Claude Code session; each block has a copy button.
Before you start
Section titled “Before you start”Claude Code, installed and signed in. On macOS, Linux and WSL:
curl -fsSL https://claude.ai/install.sh | bashOn Windows, follow the quickstart (source: Anthropic: Claude Code quickstart). Claude Code asks you to log in the first time; start it in the repository you work on.
Set the effort per model
Section titled “Set the effort per model”/effort highA level typed after /effort becomes your default in every later session, and Claude Code “saves the level per model” (source: Anthropic: Model configuration), so each model keeps its own: switch models with /model and set it again. Why high: the docs recommend it for “work where verification matters or edge cases are likely, such as fixing a bug in an existing codebase” (source: Anthropic: Model configuration), and the default is lower on some models (source: Anthropic: Model configuration). Sessions and effort covers when I go higher.
Install Matt Pocock’s skills
Section titled “Install Matt Pocock’s skills”Engineering procedures you call by name: a grill before you build, a spec, tickets, test-first work, mattpocock-skills:code-review on two axes. They sit in the official marketplace, so there is nothing to add first.
/plugin install mattpocock-skills@claude-plugins-officialThe command opens the plugin’s details, where you “choose a scope” (source: Anthropic: Install and manage plugins): Install for you (user scope) follows you into every project. If the install ends with Run /reload-plugins to apply, “Claude Code runs that reload for you” (source: Anthropic: Install and manage plugins).
Then, once per repository:
/setup-matt-pocock-skillsIt asks which issue tracker you use and whether to keep the default triage labels (source: Matt Pocock: setup-matt-pocock-skills), then records the answers in your CLAUDE.md or AGENTS.md and under docs/agents/.
Install Impeccable
Section titled “Install Impeccable”“Design guidance for AI coding agents” (source: Impeccable on GitHub): it shapes a UI before any code, then critiques, audits and polishes it, and its detector needs no model: “the CLI and browser extension run the deterministic rules with no LLM and no API key” (source: Impeccable on GitHub). It lives in its own marketplace, added first:
/plugin marketplace add pbakaus/impeccable/plugin install impeccable@impeccableChoose the user scope again. The plugin brings two hooks: a scan after each edit to a UI file, and a deeper pass when the agent stops (source: Impeccable: Hooks). Allow them through workspace trust and /hooks.
Add the Stop hook
Section titled “Add the Stop hook”A line in CLAUDE.md is advice, and advice fades as a session grows (source: McMillan 2026, arXiv 2605.10039). A hook does not: “a Stop hook runs your check as a script and blocks the turn from ending until it passes” (source: Anthropic: Best practices for Claude Code). Mine runs the type check and the unit tests; the browser tests stay in CI.
Declare it in your project settings:
{ "hooks": { "Stop": [ { "hooks": [ { "type": "command", "command": "sh", "args": ["${CLAUDE_PROJECT_DIR}/.claude/hooks/run-checks.sh"], "statusMessage": "Running the type check and the unit tests" } ] } ] }}Then the script, with the checks your repository already has:
#!/bin/shcd "$(dirname "$0")/../.." || exit 2
failed=0for script in check test:unit; do if ! output=$(npm run --silent "$script" 2>&1); then printf 'npm run %s failed:\n%s\n\n' "$script" "$output" >&2 failed=1 fidone[ "$failed" -eq 0 ] || exit 2Exit code 2 blocks the action and sends the script’s error output to Claude (source: Anthropic: Hooks guide). The guide’s guard against a loop, “your hook script needs to check whether it already triggered a continuation” (source: Anthropic: Hooks guide), is left out here on purpose: a failing check keeps sending the agent back until it passes, and Claude Code “overrides a Stop hook after it blocks eight times in a row with no tool call from Claude in between” (source: Anthropic: Hooks guide).
Write the first repo files
Section titled “Write the first repo files”Claude reads CLAUDE.md “at the start of every session” (source: Anthropic: Memory); the others are read when a phase needs them. Write the first by hand; commands write the rest.
CLAUDE.md. What the project is, the hard rules, and a map of where things live. It is “context, not enforced configuration” (source: Anthropic: Memory): keep it to facts, “under 200 lines” (source: Anthropic: Memory), and for a multi-step procedure, “move it to a skill or a path-scoped rule instead” (source: Anthropic: Memory).
PRODUCT.md and DESIGN.md. Impeccable’s init “records durable product truth in PRODUCT.md” (source: Impeccable on GitHub):
/impeccable initIts document command “reads the existing interface and records its colors, typography, layout, and component rules in DESIGN.md” (source: Impeccable: Document), or seeds one when there is no design system yet. “Keep PRODUCT.md and DESIGN.md together in the project root” (source: Impeccable: Context).
GLOSSARY.md and docs/adr/. These arrive with your first grill: /grill-with-docs writes each agreed term to the glossary at once, and a decision record only when a decision qualifies (source: Matt Pocock: grill-with-docs).
Check that it works
Section titled “Check that it works”/plugin, Installed tab: the two plugins. /hooks: the Stop hook. Then a first job:
Read CLAUDE.md. In five lines: what this repository is, which checks block a change, what you would need before taking an issue. Then stop.
When the agent stops, the hook runs both checks under its status message: a failure sends the agent back with the output, and the turn ends when both pass.
Why only these
Section titled “Why only these”Two plugins, one job each, and a hook that runs what you already check. Every plugin costs context: “an enabled plugin is part of every session, not only the sessions where you use it” (source: Anthropic: Plugins), and “plugins in Anthropic’s official marketplace show a context cost estimate” (source: Anthropic: Plugins) before you install. That is rule 7: measure before adding.
Sources
Section titled “Sources”- Anthropic: Claude Code quickstart code.claude.com
- Anthropic: Model configuration code.claude.com
- Anthropic: Install and manage plugins code.claude.com
- Matt Pocock: setup-matt-pocock-skills github.com
- Impeccable on GitHub github.com
- Impeccable: Hooks impeccable.style
- McMillan 2026, arXiv 2605.10039 arxiv.org
- Anthropic: Best practices for Claude Code code.claude.com
- Anthropic: Hooks guide code.claude.com
- Anthropic: Memory code.claude.com
- Impeccable: Document impeccable.style
- Impeccable: Context impeccable.style
- Matt Pocock: grill-with-docs aihero.dev
- Anthropic: Plugins code.claude.com