Skip to content

The minimal setup

Start here, 5 min read

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.

Claude Code, installed and signed in. On macOS, Linux and WSL:

Terminal window
curl -fsSL https://claude.ai/install.sh | bash

On 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.

Claude Code
/effort high

A 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.

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.

Claude Code
/plugin install mattpocock-skills@claude-plugins-official

The 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:

Claude Code
/setup-matt-pocock-skills

It 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/.

“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:

Claude Code
/plugin marketplace add pbakaus/impeccable
Claude Code
/plugin install impeccable@impeccable

Choose 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.

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:

.claude/settings.json
{
"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:

.claude/hooks/run-checks.sh
#!/bin/sh
cd "$(dirname "$0")/../.." || exit 2
failed=0
for 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
fi
done
[ "$failed" -eq 0 ] || exit 2

Exit 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).

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):

Claude Code
/impeccable init

Its 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).

/plugin, Installed tab: the two plugins. /hooks: the Stop hook. Then a first job:

Prompt

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.

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.

  1. Anthropic: Claude Code quickstart code.claude.com
  2. Anthropic: Model configuration code.claude.com
  3. Anthropic: Install and manage plugins code.claude.com
  4. Matt Pocock: setup-matt-pocock-skills github.com
  5. Impeccable on GitHub github.com
  6. Impeccable: Hooks impeccable.style
  7. McMillan 2026, arXiv 2605.10039 arxiv.org
  8. Anthropic: Best practices for Claude Code code.claude.com
  9. Anthropic: Hooks guide code.claude.com
  10. Anthropic: Memory code.claude.com
  11. Impeccable: Document impeccable.style
  12. Impeccable: Context impeccable.style
  13. Matt Pocock: grill-with-docs aihero.dev
  14. Anthropic: Plugins code.claude.com