Claude Code Configuration & Workflows

20% of the CCAR-F exam. Read each answer, then drill this domain.

Drill this domainAll study notes

Where should each kind of instruction live in Claude Code?

Always-relevant project context (commands, layout, norms) goes in a short root CLAUDE.md. Area-specific conventions go in subdirectory CLAUDE.md files or path-scoped rules. Procedures go in skills, noisy side tasks in subagents, and anything that must always happen in hooks. Output styles are for big role changes.

Source: Anthropic: Steering Claude Code

How do you keep CLAUDE.md useful in a large monorepo?

Keep the root file short (under about 200 lines), give it an owner and review changes like code. Put each team's conventions in its own subdirectory CLAUDE.md, let developers exclude areas they never touch, and use a centrally managed CLAUDE.md for organisation-wide policies that can't be excluded.

Source: Anthropic: Using CLAUDE.md files

What can hooks do, and which events matter most?

Hooks run your commands deterministically on lifecycle events. PreToolUse can block or approve a tool call before it runs (exit code 2 denies), PostToolUse runs formatters and linters after edits, PermissionRequest auto-approves routine commands, SessionStart injects fresh context and PreCompact backs up transcripts.

Source: Anthropic: How to configure hooks

When should you use a subagent instead of a skill?

Use a subagent when a side task such as a deep search, log analysis or dependency audit would flood the main conversation; it runs in its own context and returns only a summary. Use a skill when you want the procedure to run in the main thread so you can see and steer each step.

Source: Anthropic: How and when to use subagents

How do you run Claude Code safely without someone watching?

Auto mode uses a classifier to block harmful or off-task actions inside the deny rules you set; switch to manual approval for sensitive production work. In CI, run Claude Code headless or through the GitHub Actions integration with tools and permissions configured in advance.

Source: Anthropic: Running auto mode in production

Drill this domain