Claude Code guide in three levels, Beginner to Advanced: hands-on lessons with checked exercises, every volatile fact cited to its source. Independent community guide.
JavaScript agent-skillsagentic-codingai-agentsanthropicanthropic-claudebest-practicesclaudeclaude-aiclaude-codeclaude-code-guideclaude-code-hooksclaude-code-pluginsclaude-code-skillsclaude-code-tutorialclaude-code-workflowsguidelearn-claude-codemcpsubagentstutorial
docs: rework Intermediate lessons around real repository work (#137)
Wesam Abousaidc040d3a2a6e6
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 8e13b8d..6ba47d5 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -23,6 +23,7 @@ Editions 2 and 3: the Intermediate and Advanced paths, with checked exercises. E### Changed- The Beginner lessons and capstone use code review, plan review, recovery and project instructions as practice tasks. The learning app's questions focus on decisions, and its checks read available evidence directly from files, git and the installed CLI.+- The Intermediate lessons and capstone use real work as practice tasks: a console error found through Chrome DevTools MCP and fixed, a commit made by a plugin, a lookup through a code intelligence plugin, and a malformed-link crash fixed in the capstone. Each lesson asks at most three graded questions, and the capstone asks none.- The animated Claude mascot is back beside README's title, and the social card shows it in place of the trail blazes. It comes from [shanraisshan/claude-code-best-practice](https://github.com/shanraisshan/claude-code-best-practice) under the MIT License.- Every stamped page is re-verified against Claude Code v2.1.292 (stable), and the social card carries the full tagline, "Learn it in three levels, with cited facts and checked exercises."- The topic pages, [Commands by level](docs/reference/commands.md) and the [Feature map](docs/reference/feature-map.md) link the Intermediate and Advanced lessons and Electives, and "When to use what" on the [Intermediate index](docs/intermediate/README.md#when-to-use-what) links the dynamic workflows lesson.diff --git a/docs/intermediate/01-first-skill.md b/docs/intermediate/01-first-skill.mdindex 8a0755c..bf7c262 100644--- a/docs/intermediate/01-first-skill.md+++ b/docs/intermediate/01-first-skill.md@@ -1,10 +1,10 @@# Turn a repeated workflow into a skill-<sub>**Intermediate** · Lesson 1 of 8 · about 20 minutes · Needs: [Intermediate index](README.md) · Verified against Claude Code v2.1.292 (stable) on 2026-10-15</sub>+<sub>**Intermediate** · Lesson 1 of 8 · about 20 minutes · Needs: [Intermediate index](README.md) · Verified against Claude Code v2.1.292 (stable) on 2026-10-20</sub>## Goal-By the end of this lesson you can turn a workflow you keep repeating into a project skill that runs when you type its name and loads on its own when a request matches it.+By the end of this lesson you can turn a workflow you keep repeating into a project skill, choose which requests should load it, and review the change it produces.## You need@@ -18,20 +18,19 @@ By the end of this lesson you can turn a workflow you keep repeating into a projA [skill](https://code.claude.com/docs/en/skills) is a folder holding a `SKILL.md` file: YAML frontmatter that says what the skill is for, then the instructions Claude follows. A project skill lives in `.claude/skills/<name>/SKILL.md`. Commit it, and everyone who works in the repository gets it.-Until a skill runs, at most its description sits in Claude's context. It runs in one of two ways, and either way Claude Code then loads the whole file:+Claude decides whether to load a skill from its description, plus any `when_to_use` text, in the skill listing, not from the skill body ([Frontmatter reference](https://code.claude.com/docs/en/skills#frontmatter-reference)). Invoking the skill loads the full instructions:```mermaidflowchart LRaccTitle: Two ways a skill runs- accDescr: You type the skill's name and a problem, which fills $ARGUMENTS, or Claude matches your request to the skill's description. Either way Claude Code loads the full SKILL.md, and Claude follows its instructions.- A["You type /five-whys and a problem, which fills $ARGUMENTS"] --> C["Claude Code loads the full SKILL.md"]- B["You ask a question that matches the skill's description"] --> C+ accDescr: You invoke a skill by name, or Claude matches a request to its listing. Either way Claude Code loads the full skill instructions.+ A["You type /five-whys and a problem"] --> C["Claude Code loads SKILL.md"]+ B["Claude matches your request to the skill listing"] --> CC --> D["Claude follows the instructions"]```-- `disable-model-invocation: true` in the frontmatter keeps a skill to the first way. Use it for workflows with side effects, such as a deploy ([Control who invokes a skill](https://code.claude.com/docs/en/skills#control-who-invokes-a-skill)).-- `$ARGUMENTS` in the body receives whatever you type after the skill's name.-- A Markdown file in `.claude/commands/` is the older format and still runs as `/name`. Prefer a skill for new work.+- `$ARGUMENTS` receives the text after the skill's name ([Pass arguments to skills](https://code.claude.com/docs/en/skills#pass-arguments-to-skills)).+- `disable-model-invocation: true` makes invocation manual. Keep it for a workflow whose timing you must control, such as deployment ([Control who invokes a skill](https://code.claude.com/docs/en/skills#control-who-invokes-a-skill)).## Worked example@@ -54,26 +53,26 @@ flowchart LRFind the root cause of this problem: $ARGUMENTS```- followed by five numbered steps and the rule "Don't change any files."-2. Start `claude` in the repository and run `/skills` ([Commands](https://code.claude.com/docs/en/commands)). The list includes `five-whys`, a project skill because it lives in `.claude/skills/` ([Choose where skills load](https://code.claude.com/docs/en/skills#where-skills-live)).-3. Run the skill by name, with a problem from your repository. In the practice template:+ followed by the investigation steps and the rule "Don't change any files."+2. Start `claude` in the repository and run `/skills` ([Commands](https://code.claude.com/docs/en/commands)). If the [workspace trust dialog](https://code.claude.com/docs/en/security#additional-safeguards) appears, trust only a repository you own or have reviewed. The list includes `five-whys`, a project skill because it lives in `.claude/skills/` ([Choose where skills load](https://code.claude.com/docs/en/skills#where-skills-live)).+3. Run the skill by name, with a problem from your repository. For example, in the practice copy:```text/five-whys npm run linkcheck -- samples exits with code 1```- Claude reproduces the problem, asks "why" from evidence until it reaches a cause the team can change, then reports the chain, the root cause and two fixes. Your wording will differ. In a second terminal, `git status` lists only new files under `.claude/`: the skill told Claude to change nothing.-4. Run `/clear`, then ask a question that matches the description without naming the skill:+ Read the reported chain, root cause and proposed fixes. Your wording will differ. In a terminal in your repository, run [`git status --short`](https://git-scm.com/docs/git-status): only the downloaded skill should be new. Investigate any code edit before proceeding; this skill tells Claude to change nothing.+4. Run `/clear`, then ask a question that matches the description without naming the skill. For example, in the practice copy:```textWhy does the test suite pass even though samples/guide.md has a broken link? I want the root cause, not a quick fix.```- Before Claude answers, the transcript should show a call to the `Skill` tool for `five-whys`, which means Claude loaded the skill on its own ([Tools reference](https://code.claude.com/docs/en/tools-reference)).+ Look for a `Skill` tool call for `five-whys` before the investigation ([Tools reference](https://code.claude.com/docs/en/tools-reference)). If it does not appear, compare the request with the description, revise the request and try in a cleared conversation.## Your turn-Finish a partial skill that builds features test-first, then use it both ways.+The team wants a test-first workflow for requested features, while explanation-only questions should stay read-only. Decide what should trigger this coding workflow, then finish and test it in your repository.1. Download the partial [`tdd` skill](../../examples/intermediate/01-first-skill/dot-claude/skills/tdd/SKILL.md):@@ -82,26 +81,33 @@ Finish a partial skill that builds features test-first, then use it both ways.curl -fsSL https://raw.githubusercontent.com/wesammustafa/Claude-Code-Everything-You-Need-to-Know/main/examples/intermediate/01-first-skill/dot-claude/skills/tdd/SKILL.md -o .claude/skills/tdd/SKILL.md```- Its frontmatter has `description: TODO` and `disable-model-invocation: true`, and its steps end like this:+ This is the same example path as `five-whys`, with `tdd` in its place. Read it: the frontmatter has `description: TODO` and `disable-model-invocation: true`, and the Green and Refactor steps are unfinished.+2. Decide which requests should load this skill before you edit it. Write the description for requested feature work; keep explanation-only questions outside its stated scope. Allow automatic loading for that boundary; keep deployment workflows manual.- ```markdown- 2. Green: TODO- 3. Refactor: TODO+ In your editor, finish it:+ - replace `TODO` in the description with what the skill does followed by "Use when" and the feature requests it fits;+ - write the Green and Refactor steps, keeping the Red step's style;+ - delete the `disable-model-invocation: true` line so this skill can load automatically as well as run by name.+3. Commit both reviewed skills with [git add](https://git-scm.com/docs/git-add) and [git commit](https://git-scm.com/docs/git-commit):++ ```bash+ git add .claude/skills/five-whys .claude/skills/tdd+ git commit -m "Add project skills"```-2. In your editor, finish it:- - replace `TODO` in the description with a sentence or two: what the skill does, and when Claude should use it;- - delete the `disable-model-invocation: true` line;- - write the Green and Refactor steps, keeping the Red step's style.-3. Commit the skill: `git add .claude/skills/tdd/SKILL.md`, then `git commit -m "Add a tdd skill"`.-4. In a session, run it by name on a small feature. In the practice template:+ Run `git status --short` and resolve any remaining lesson changes before continuing.+4. In a session, run it by name on a small feature your repository needs. For example, in the practice copy:```text/tdd a slugify(heading) function in src/slug.js that turns a Markdown heading into its link anchor: lowercase, punctuation dropped, spaces turned into hyphens```- Approve its edits and test runs, and let it commit. Then save that commit: `git rev-parse HEAD > .practice/i-1-commit.txt`.-5. Run `/clear` and ask for another small feature test-first, without naming the skill, such as `Add a countHeadings(markdown) function, test-first.` Watch for Claude to run `tdd` through the `Skill` tool on its own. Once you've seen it, you can press `Esc` to stop Claude ([Interactive mode](https://code.claude.com/docs/en/interactive-mode)) and `/rewind` to undo its edits ([Checkpointing](https://code.claude.com/docs/en/checkpointing)), as in [Beginner lesson 4](../beginner/04-keep-a-session-on-track.md).+ Keep auto mode. It can approve edits and test runs without a prompt; if Claude Code asks, review the action before approving ([Permission modes](https://code.claude.com/docs/en/permission-modes)). Read the failing test output, the final passing result and the complete change before keeping the commit.++ In a terminal in your repository, inspect the current branch with [`git branch --show-current`](https://git-scm.com/docs/git-branch) and the commit with [`git show HEAD`](https://git-scm.com/docs/git-show). Confirm it holds the intended test and code, then save that commit: [`git rev-parse HEAD > .practice/i-1-commit.txt`](https://git-scm.com/docs/git-rev-parse). Keep the branch you reviewed; later lessons use this same repository.+5. Start with a clean repository. Clear the conversation first. Run `/clear` and ask for another small feature test-first without naming the skill, such as `Add a countHeadings(markdown) function, test-first.` Press `Esc` as soon as the `Skill` tool call for `tdd` appears, before it starts editing ([Interactive mode](https://code.claude.com/docs/en/interactive-mode)). This probe checks the trigger, so let no second feature accumulate.++ If no call appears, revise the description and retry in a cleared conversation. Check `git status --short` afterward. If edits already happened, inspect them and recover only this experiment as in [Beginner lesson 4](../beginner/04-keep-a-session-on-track.md). Rewind does not track Bash edits ([Checkpointing](https://code.claude.com/docs/en/checkpointing#bash-command-changes-not-tracked)). Finish with a clean repository.## Check@@ -110,17 +116,16 @@ You are done when all of these are true:- [ ] The finished skill is committed with no TODO left: `git grep -n TODO HEAD -- .claude/skills/tdd` prints nothing.- [ ] It can run as `/tdd` and load on its own: `git show HEAD:.claude/skills/tdd/SKILL.md` shows a description of what it does and when to use it, and no `disable-model-invocation: true`.- [ ] The commit saved in `.practice/i-1-commit.txt` holds a test and the code it tests: `git show --stat $(cat .practice/i-1-commit.txt)` lists both.-- [ ] Self-check (not tested): `/tdd` ran the skill, and in a cleared conversation Claude loaded `tdd` on its own.+- [ ] Self-check (not tested): `/tdd` ran the skill, its trigger fits feature requests, and a cleared conversation loaded `tdd` on its own before you stopped the probe.Run `npm run check -- i-1 --dir <your repo>` from your practice copy, or `npm run check -- i-1` in the copy itself.-If the skill isn't committed, run `git check-ignore -v .claude/skills/tdd/SKILL.md`: an ignore rule that matches `.claude`, in a `.gitignore`, `.git/info/exclude` or your global excludes file, hides the folder from `git add`, so add the file with `git add -f`. If the second item fails, rewrite the description as what the skill does followed by "Use when" and the requests it fits, because Claude decides whether to load a skill from its description, plus any `when_to_use` text, in the skill listing, not from the skill body. If the commit item fails, run `/tdd` again on a new small feature and let it commit the test with the code.+If the skill isn't committed, run `git check-ignore -v .claude/skills/tdd/SKILL.md`: an ignore rule that matches `.claude`, in a `.gitignore`, `.git/info/exclude` or your global excludes file, hides the folder from `git add`, so add the file with `git add -f`. If the invocation item fails, rewrite the description as what the skill does followed by "Use when" and the feature requests it fits, then commit again. If the commit item fails, run `/tdd` on a new small feature and let it commit the test with the code before saving that commit.## Watch out-- A skill can pre-approve tools with `allowed-tools`, and Claude Code applies a project skill's grant even in a `claude -p` run in a folder you've never trusted ([Pre-approve tools for a skill](https://code.claude.com/docs/en/skills#pre-approve-tools-for-a-skill)). Read the skills in a repository before you run Claude Code there.-- If `.claude/skills/` didn't exist when the session started, run `/reload-skills` before the new skill shows up ([Edit a skill during a session](https://code.claude.com/docs/en/skills#live-change-detection)).-- Once a skill runs, its text stays in the conversation and Claude Code doesn't re-read the file. After you edit a skill, run it again so Claude gets the new version ([Skill content lifecycle](https://code.claude.com/docs/en/skills#skill-content-lifecycle)).+- A skill can pre-approve tools with `allowed-tools`, even in a `claude -p` run in a folder you've never trusted ([Pre-approve tools for a skill](https://code.claude.com/docs/en/skills#pre-approve-tools-for-a-skill)). Read the skills in a repository before you run Claude Code there.+- If `.claude/skills/` didn't exist at session startup, run `/reload-skills`, and repeat it after each later change there ([Edit a skill during a session](https://code.claude.com/docs/en/skills#live-change-detection)). After editing an invoked skill, invoke it again to load the changed instructions ([Skill content lifecycle](https://code.claude.com/docs/en/skills#skill-content-lifecycle)).## Go further@@ -130,6 +135,6 @@ If the skill isn't committed, run `git check-ignore -v .claude/skills/tdd/SKILL.----<sub>Sources: [Extend Claude with skills](https://code.claude.com/docs/en/skills) · [Advanced setup](https://code.claude.com/docs/en/setup) · [Commands](https://code.claude.com/docs/en/commands) · [Tools reference](https://code.claude.com/docs/en/tools-reference) · [Interactive mode](https://code.claude.com/docs/en/interactive-mode) · [Checkpointing](https://code.claude.com/docs/en/checkpointing)</sub>+<sub>Sources: [Extend Claude with skills](https://code.claude.com/docs/en/skills) · [Advanced setup](https://code.claude.com/docs/en/setup) · [Commands](https://code.claude.com/docs/en/commands) · [Security](https://code.claude.com/docs/en/security) · [Tools reference](https://code.claude.com/docs/en/tools-reference) · [Permission modes](https://code.claude.com/docs/en/permission-modes) · [Interactive mode](https://code.claude.com/docs/en/interactive-mode) · [Checkpointing](https://code.claude.com/docs/en/checkpointing) · [git-status](https://git-scm.com/docs/git-status) · [git-branch](https://git-scm.com/docs/git-branch) · [git-show](https://git-scm.com/docs/git-show) · [git-add](https://git-scm.com/docs/git-add) · [git-commit](https://git-scm.com/docs/git-commit) · [git-rev-parse](https://git-scm.com/docs/git-rev-parse)</sub><sub>← [Intermediate index](README.md) · [Organize project memory and see what loaded](02-organize-memory.md) → · Topic: [Skills](../topics/skills.md) · [Stuck on this lesson?](https://github.com/wesammustafa/Claude-Code-Everything-You-Need-to-Know/issues/new?template=lesson-feedback.yml&lesson=i-1)</sub>diff --git a/docs/intermediate/02-organize-memory.md b/docs/intermediate/02-organize-memory.mdindex c8ad787..63a856d 100644--- a/docs/intermediate/02-organize-memory.md+++ b/docs/intermediate/02-organize-memory.md@@ -24,7 +24,6 @@ A long `CLAUDE.md` is hard to maintain, and every line of it loads into every se| `CLAUDE.md` at the project root, and a rule without `paths:` | When the session starts || A file named in an `@path` import | With the file that imports it || A rule with `paths:` | When Claude reads, writes or edits a matching file with its Read, Write or Edit tool |-| Auto memory, the notes Claude keeps for itself | When the session starts: the first 200 lines or 25KB of its `MEMORY.md` index |When Claude ignores an instruction, first find out whether its file loaded. If it did, the wording is the likely problem: make it concrete, and remove any instruction that contradicts it ([Debug your configuration](https://code.claude.com/docs/en/debug-your-config#see-what-loaded-into-context)).@@ -37,7 +36,7 @@ When Claude ignores an instruction, first find out whether its file loaded. If i```An import's path runs until the first space, so don't put a period right after it.-2. Save a rule for your test files as `.claude/rules/testing.md`. Change the pattern to match where your tests live:+2. Save a rule for your test files as `.claude/rules/testing.md`. Change the pattern to match where your tests live, and the instruction to name your project's test tools:```markdown---@@ -53,23 +52,19 @@ When Claude ignores an instruction, first find out whether its file loaded. If i3. Save this load log to `.practice/i-2-hook.json`. It is an [`InstructionsLoaded` hook](https://code.claude.com/docs/en/hooks#instructionsloaded): each time a `CLAUDE.md`, a rule or an imported file loads, it appends the reason and the file's path to `.practice/i-2-loaded.txt`. It logs nothing else, and runs only in sessions you start with it:```json- {- "hooks": {- "InstructionsLoaded": [- { "hooks": [ { "type": "command", "command": "jq -r '[.load_reason, .file_path] | @tsv' >> \"$CLAUDE_PROJECT_DIR/.practice/i-2-loaded.txt\"" } ] }- ]- }- }+ {"hooks":{"InstructionsLoaded":[{"hooks":[{+ "type":"command","command":"jq -r '[.load_reason,.file_path]|@tsv' >> \"$CLAUDE_PROJECT_DIR/.practice/i-2-loaded.txt\""+ }]}]}}```-4. Start a session with the log, `claude --settings .practice/i-2-hook.json` ([CLI reference](https://code.claude.com/docs/en/cli-reference#cli-flags)), and run `/context all`: plain `/context` can collapse its list, and `all` expands it ([Commands](https://code.claude.com/docs/en/commands)). Under **Memory files** it lists the instruction files that loaded at the start, such as `CLAUDE.md` ([Set up a project CLAUDE.md](https://code.claude.com/docs/en/memory#set-up-a-project-claude-md)). The scoped rule isn't among them: nothing has read a test file yet.-5. Ask Claude to read a test file with its Read tool. Name the tool: Claude sometimes reads a file through a shell command, which doesn't load scoped rules.+4. End your current Claude session. Start a session with the log, `claude --settings .practice/i-2-hook.json` ([CLI reference](https://code.claude.com/docs/en/cli-reference#cli-flags)), and run `/context all`: plain `/context` can collapse its list, and `all` expands it ([Commands](https://code.claude.com/docs/en/commands)). Under **Memory files** it lists the instruction files that loaded at the start, such as `CLAUDE.md` ([Set up a project CLAUDE.md](https://code.claude.com/docs/en/memory#set-up-a-project-claude-md)). The scoped rule isn't among them: nothing has read a test file yet. The log also has an `include` line for your imported file.+5. Ask Claude to read a test file with its Read tool. Replace the example's file with a test file your rule covers. Name the tool: Claude sometimes reads a file through a shell command, which doesn't load scoped rules at this lesson's baseline. The [changelog places the fix in v2.1.293](https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md#21293).```textUse your Read tool to read test/config.test.js, then tell me in one sentence what it checks.```- In a second terminal, `cat .practice/i-2-loaded.txt` shows every load with its reason: `session_start` for `CLAUDE.md`, `include` for `package.json`, and now `path_glob_match` for the rule.+ In a terminal in your repository, `cat .practice/i-2-loaded.txt` shows every load with its reason: `session_start` for `CLAUDE.md`, `include` for `package.json`, and now `path_glob_match` for the rule. The hook runs asynchronously, so if a line has not appeared yet, wait briefly and read the log again.## Your turn@@ -88,9 +83,14 @@ A teammate's rule never takes effect. Find out why, and fix it.- Print errors to stderr, starting with `linkcheck:`.```-2. Start a logged session, `claude --settings .practice/i-2-hook.json`, and ask Claude to use its Read tool on `src/cli.js`, or on a file in your folder.-3. Read the log: the rule never loaded. Compare its pattern with the files that exist, `git ls-files src`.-4. Fix the pattern, start a new logged session and repeat step 2. The log now has a `path_glob_match` line for `cli.md`.+2. End the example's session. Start a logged session, `claude --settings .practice/i-2-hook.json`. Ask Claude to use its Read tool on `src/cli.js`, or on a file in your folder:++ ```text+ Use your Read tool to read src/cli.js, then tell me in one sentence what it does.+ ```++3. In a terminal in your repository, read `.practice/i-2-loaded.txt`. The log appends to earlier attempts: inspect the lines added by this session. Compare its pattern with the files that exist, `git ls-files src`. Use your own source folder in place of `src`. Decide whether to change the pattern, the instruction, or the way the file was read. Use the load log and the actual paths as your evidence.+4. Fix the mismatch you found. End the session, start a new logged session and repeat step 2. The log now has a `path_glob_match` line for `cli.md`.5. Commit `CLAUDE.md` and `.claude/rules/`. Delete `.practice/i-2-hook.json` when you no longer need the log.## Check@@ -120,6 +120,6 @@ If the import check fails, look for punctuation right after the path, or a path----<sub>Sources: [How Claude remembers your project](https://code.claude.com/docs/en/memory) · [Hooks reference](https://code.claude.com/docs/en/hooks) · [Debug your configuration](https://code.claude.com/docs/en/debug-your-config) · [How Claude Code uses prompt caching](https://code.claude.com/docs/en/prompt-caching) · [CLI reference](https://code.claude.com/docs/en/cli-reference) · [Commands](https://code.claude.com/docs/en/commands) · [gitglossary](https://git-scm.com/docs/gitglossary)</sub>+<sub>Sources: [How Claude remembers your project](https://code.claude.com/docs/en/memory) · [Hooks reference](https://code.claude.com/docs/en/hooks) · [Debug your configuration](https://code.claude.com/docs/en/debug-your-config) · [How Claude Code uses prompt caching](https://code.claude.com/docs/en/prompt-caching) · [CLI reference](https://code.claude.com/docs/en/cli-reference) · [Commands](https://code.claude.com/docs/en/commands) · [Claude Code changelog](https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md#21293) · [gitglossary](https://git-scm.com/docs/gitglossary)</sub><sub>← [Turn a repeated workflow into a skill](01-first-skill.md) · [Intermediate index](README.md) · [Pick the model and effort](03-model-and-effort.md) → · Topic: [Memory and context](../topics/memory-and-context.md) · [Stuck on this lesson?](https://github.com/wesammustafa/Claude-Code-Everything-You-Need-to-Know/issues/new?template=lesson-feedback.yml&lesson=i-2)</sub>diff --git a/docs/intermediate/03-model-and-effort.md b/docs/intermediate/03-model-and-effort.mdindex 3ceb32b..6159234 100644--- a/docs/intermediate/03-model-and-effort.md+++ b/docs/intermediate/03-model-and-effort.md@@ -1,66 +1,57 @@# Pick the model and effort-<sub>**Intermediate** · Lesson 3 of 8 · about 15 minutes · Needs: [Turn a repeated workflow into a skill](01-first-skill.md) · Verified against Claude Code v2.1.292 (stable) on 2026-10-15</sub>+<sub>**Intermediate** · Lesson 3 of 8 · about 20 minutes · Needs: [Turn a repeated workflow into a skill](01-first-skill.md) · Verified against Claude Code v2.1.292 (stable) on 2026-10-21</sub>## Goal-By the end of this lesson you can pick a model and an effort level for a task, set them for a session or for one skill, and tell from a wrong result whether to raise the effort or pick a larger model.+By the end of this lesson you can diagnose a weak result before changing models, choose model and effort settings for a real task, and give a routine skill its own settings.## You need-- The repository where you did [lesson 1](01-first-skill.md), with its skills, and your copy of the practice template with Node.js LTS: the check runs from the copy.-- Usage: light. A larger model costs more per token, and a higher effort usually produces more tokens, so either tends to use more of your plan's usage.+- The repository where you did [lesson 1](01-first-skill.md), with its committed skills, and a small change you intend to make. Use a terminal in that repository for edits and Git; use your practice copy only for the final check.+- Usage: light. You will request a short investigation and a changelog entry.## The idea-Two separate choices shape an answer ([Choosing a Claude model and effort level in Claude Code](https://claude.com/blog/claude-model-and-effort-level-in-claude-code)):+The [model aliases](https://code.claude.com/docs/en/model-config#model-aliases) include `sonnet` for daily coding and `opus` for complex reasoning. Model choice sets the capability you start with; [effort](https://code.claude.com/docs/en/model-config#choose-an-effort-level) changes how much reasoning and verification Claude applies. See the [model descriptions](https://platform.claude.com/docs/en/about-claude/models/overview).-- The **model** decides how capable the answer can be.-- The **effort** decides how much work Claude does on each request: how many files it reads, how much it verifies, and how far it goes before it checks back with you ([Model configuration](https://code.claude.com/docs/en/model-config#adjust-effort-level)).+Before escalating, inspect the evidence:-Anthropic's guidance is to start from the model's default effort for most tasks. When a result is wrong, find out why before you turn a knob:--| What happened, or what the task is | What to change |+| Evidence | Next experiment ||---|---|-| Claude lacked context: a vague prompt, a missing tool or skill | The context: the prompt, `CLAUDE.md`, a skill |-| Claude didn't try hard enough: it skipped a file or didn't run the tests | A higher effort |-| Claude had the context, tried, and was still wrong: a subtle bug, an unfamiliar domain, a design decision | A larger model, such as `opus` |-| Routine work: edits you can describe precisely, mechanical changes | A smaller model, such as `sonnet`, and a lower effort ([Choose an effort level](https://code.claude.com/docs/en/model-config#choose-an-effort-level)) |-| Deep planning, then routine work | `opusplan`: Opus in plan mode, then Sonnet to carry out the plan |+| A relevant file or failing example was missing | Supply it and retry |+| Claude skipped verification despite having the context | Try more effort |+| Context and verification were adequate, but the reasoning still failed | Try a more capable model |+| A precise, routine change will be reviewed | Try a smaller model with lower effort |-Where a choice applies decides how you set it. The [Models and effort](../reference/models.md) page lists the aliases and levels:+Change one variable, then compare against the same success criterion. Higher effort cannot supply a missing fixture.-| Scope | Model | Effort |-|---|---|---|-| This session | `/model`, then `s` on a row | `/effort`, then `s` in the slider |-| Your default | `/model <alias>` | `/effort <level>` |-| One turn | – | `ultrathink` in the prompt asks for deeper reasoning; the level stays |-| One skill or subagent | `model:` in its frontmatter | `effort:` in its frontmatter |+A skill's [`model:` and `effort:` frontmatter](https://code.claude.com/docs/en/skills#frontmatter-reference) overrides the session while it is active. It need not give every task the same settings.## Worked example-1. Start `claude` in your repository. Run `/status`: it shows the model. Run `/effort status`: it prints the effort level in force ([Commands](https://code.claude.com/docs/en/commands)).-2. Switch the model for this session only: run `/model`, move to Sonnet and press `s`. `/status` now shows Sonnet, and your default for new sessions is unchanged ([Setting your model](https://code.claude.com/docs/en/model-config#setting-your-model)).-3. Ask for deeper reasoning on one turn, without changing the effort level. In the practice template:+1. Start `claude` in your repository. Run `/status`: it shows the model. Run `/effort status`: it prints the effort level in force ([Commands](https://code.claude.com/docs/en/commands)). Notice what your session actually shows; the account and provider affect the available models.+2. Switch the model for this session only: run `/model`, move to Sonnet and press `s`. Run `/status` again to check the selected model. Your default for new sessions is unchanged ([Setting your model](https://code.claude.com/docs/en/model-config#setting-your-model)). Stay in auto mode for this lesson.+3. Investigate an error path in your own repository, without making an edit:```text- ultrathink: which links could linkcheck report as broken although their file exists?+ ultrathink: read the code and tests for one error path in this repository. Identify a case the tests might miss. Cite the files you used. Do not edit files or run network requests.```- Claude Code recognizes `ultrathink` and asks for deeper reasoning on that turn only. Phrases such as "think hard" are ordinary text ([Use ultrathink](https://code.claude.com/docs/en/model-config#use-ultrathink-for-one-off-deep-reasoning)).-4. Give one task its own effort. `five-whys`, from lesson 1, traces a cause from evidence, where verification matters. Add a line to its frontmatter in `.claude/skills/five-whys/SKILL.md`:+ `ultrathink` requests deeper reasoning for this turn without changing the session effort setting ([Use ultrathink](https://code.claude.com/docs/en/model-config#use-ultrathink-for-one-off-deep-reasoning)). Open a cited file and check whether the suspected gap is real. A plausible answer alone is not evidence.+4. Give the diagnostic skill its own effort. Add this line inside the frontmatter of `.claude/skills/five-whys/SKILL.md`:```yamleffort: high```- From now on the skill runs at `high` while it's active, over the session's level. An effort set with the `CLAUDE_CODE_EFFORT_LEVEL` variable, and any effort cap, still come first ([Set the effort level](https://code.claude.com/docs/en/model-config#set-the-effort-level)).+ `five-whys` investigates a cause from evidence, where verification matters. The skill overrides the session effort while active; an effort environment variable and any effort cap still take precedence ([Set the effort level](https://code.claude.com/docs/en/model-config#set-the-effort-level)). Review the skill diff and keep it for the final commit.## Your turn-Give a routine task the smallest model and effort that do the job.+Tune a routine writing task differently from the diagnostic task. Decide what counts as a useful entry before you run it: the entry must describe the staged change for someone using your project.-1. Save this skill as `.claude/skills/changelog/SKILL.md`:+1. Save this partial skill as `.claude/skills/changelog/SKILL.md`. Its `disable-model-invocation: true` field keeps invocation under your control ([Control who invokes a skill](https://code.claude.com/docs/en/skills#control-who-invokes-a-skill)).```markdown---@@ -74,9 +65,9 @@ Give a routine task the smallest model and effort that do the job.Read the staged changes with `git diff --staged`. Add one list item (`- `) under `## Unreleased` in CHANGELOG.md that says what changed for someone using the tool, creating the file and the heading if they don't exist. Change no other file.```-2. Replace both `TODO`s, using the first table. In auto mode, use `sonnet`: auto mode doesn't support Haiku, so a skill set to `haiku` keeps the session's model there ([Eliminate permission prompts with auto mode](https://code.claude.com/docs/en/permission-modes#eliminate-prompts-with-auto-mode)).-3. Stage a small change of your own, run `/changelog`, and approve the edit. If Claude Code says the command is unknown, run `/reload-skills` first.-4. Commit the change, `CHANGELOG.md` and the skill together.+2. Choose the settings for a short entry whose input is an exact staged diff and whose output you will review. Use `model: sonnet` for this auto-mode exercise, and choose `effort: low` or `effort: medium`. Explain why this task needs different settings from a cause investigation. At this lesson's baseline, Haiku is not supported in auto mode, and an unsupported skill model leaves the session model in use ([Auto mode](https://code.claude.com/docs/en/permission-modes#eliminate-prompts-with-auto-mode), [skill model overrides](https://code.claude.com/docs/en/skills#frontmatter-reference)).+3. Make a small intended change in your repository. Review and stage only that change, keeping unrelated work out of the staged diff. Run `/changelog`. Review any permission request if one appears; auto mode may allow the edit without one. If the skill is unknown, run `/reload-skills` and retry. Read the new entry against the staged diff. If it invents a benefit or names only an internal implementation detail, correct the entry before committing.+4. Review the complete diff. Commit it with `CHANGELOG.md` and both skills. Check that the commit includes the diagnostic skill's effort line too.## Check@@ -84,26 +75,25 @@ You are done when all of these are true:- [ ] The committed skill picks a smaller model and a low or medium effort: `git show HEAD:.claude/skills/changelog/SKILL.md | grep -E '^(model|effort):'` shows both.- [ ] A committed `CHANGELOG.md` has a `- ` entry under `## Unreleased`: `git show HEAD:CHANGELOG.md` shows it.-- [ ] Self-check (not tested): for a precise rename, a new feature with a clear scope, and a bug Claude keeps getting wrong with all the context, you can say which model and effort you'd pick, and why.+- [ ] Self-check (not tested): you checked the investigation against a cited file and the entry against the staged diff, and can explain why the tasks use different settings.Run `npm run check -- i-3 --dir <your repo>` from your practice copy, or `npm run check -- i-3` in the copy itself.-If the skill check says the model is larger than the task needs, set `model: sonnet`: a change you can describe precisely is routine work. If there's no entry, stage a change before you run `/changelog`, because the skill reads only staged changes.+If the skill check says the model is larger than the task needs, revisit the precise input and reviewed output in Your turn step 2. If there's no entry, stage a change before you run `/changelog`, because the skill reads only staged changes.## Watch out- `/model <alias>` and `/effort <level>` save your choice as the default for new sessions. To change only the current session, press `s` in the picker or the slider.-- Switching the model mid-session, and on most models changing the effort, makes the next request read the whole conversation with no cache hits; while the cache is warm, Claude Code asks you to confirm ([How Claude Code uses prompt caching](https://code.claude.com/docs/en/prompt-caching#switching-models)).-- Set with `/effort`, `max` lasts for the current session only, and it can overthink: test it before you rely on it ([Choose an effort level](https://code.claude.com/docs/en/model-config#choose-an-effort-level)).+- A model switch makes the next request read the conversation without cache hits. Claude Code may ask you to confirm while the cache is warm ([Switching models](https://code.claude.com/docs/en/prompt-caching#switching-models)).## Go further-- [Choosing a Claude model and effort level in Claude Code](https://claude.com/blog/claude-model-and-effort-level-in-claude-code): Anthropic's guide to the two settings, with the "try or know" test this lesson uses.-- [Models and effort](../reference/models.md): the model aliases, the effort levels and the ways to set them.+- [Models and effort](../reference/models.md): model aliases, effort levels and where each setting applies.- [Model configuration](https://code.claude.com/docs/en/model-config): defaults by account and provider, and organization limits.+- [Choosing a Claude model and effort level in Claude Code](https://claude.com/blog/claude-model-and-effort-level-in-claude-code): Anthropic's guidance on choosing the next experiment after a weak result.----<sub>Sources: [Model configuration](https://code.claude.com/docs/en/model-config) · [Commands](https://code.claude.com/docs/en/commands) · [Choosing a Claude model and effort level in Claude Code](https://claude.com/blog/claude-model-and-effort-level-in-claude-code) · [Extend Claude with skills](https://code.claude.com/docs/en/skills) · [Choose a permission mode](https://code.claude.com/docs/en/permission-modes) · [How Claude Code uses prompt caching](https://code.claude.com/docs/en/prompt-caching)</sub>+<sub>Sources: [Model configuration](https://code.claude.com/docs/en/model-config) · [Models overview](https://platform.claude.com/docs/en/about-claude/models/overview) · [Commands](https://code.claude.com/docs/en/commands) · [Extend Claude with skills](https://code.claude.com/docs/en/skills) · [Choose a permission mode](https://code.claude.com/docs/en/permission-modes) · [How Claude Code uses prompt caching](https://code.claude.com/docs/en/prompt-caching)</sub><sub>← [Organize project memory and see what loaded](02-organize-memory.md) · [Intermediate index](README.md) · [Permissions, settings scopes and the sandbox](04-permissions-and-sandbox.md) → · Topic: [Models, effort and cost](../topics/models-effort-and-cost.md) · [Stuck on this lesson?](https://github.com/wesammustafa/Claude-Code-Everything-You-Need-to-Know/issues/new?template=lesson-feedback.yml&lesson=i-3)</sub>diff --git a/docs/intermediate/04-permissions-and-sandbox.md b/docs/intermediate/04-permissions-and-sandbox.mdindex 5f19733..fc1f9e5 100644--- a/docs/intermediate/04-permissions-and-sandbox.md+++ b/docs/intermediate/04-permissions-and-sandbox.md@@ -4,35 +4,36 @@## Goal-By the end of this lesson you can put a permission rule in the settings file whose scope fits it, see which rules are in force, and turn on the sandbox so the shell commands Claude runs can't write outside your project, a temporary folder and any folders you've added.+By the end of this lesson you can choose a narrow permission rule, put it in the right settings scope, and verify the sandbox's boundary.## You need-- Your copy of the practice template, for the Worked example, with Node.js LTS: the check runs from it. One of your own repositories with a test command, for Your turn; or use the template copy for both.+- Your practice copy with Node.js LTS for the Worked example and the check.+- One of your own repositories with a test command for Your turn; or use the practice copy for both. Keep your home directory outside the project's writable folders for the sandbox probe.- macOS, Linux or WSL 2. On Linux and WSL 2, the sandbox needs `bubblewrap` and `socat` ([Set up Linux and WSL2](https://code.claude.com/docs/en/sandboxing#set-up-linux-and-wsl2)); a Codespace on your template copy has both.- Usage: light.## The idea-Claude Code reads settings from four files, and the file a rule goes in decides who it affects ([Settings](https://code.claude.com/docs/en/settings#settings-files-and-who-they-affect)):+The file a rule goes in decides who it affects ([Settings](https://code.claude.com/docs/en/settings#settings-files-and-who-they-affect)):| File | Affects | Put here ||---|---|---|-| `~/.claude/settings.json` | You, in every project | Your own preferences |-| `.claude/settings.json`, committed | Everyone in the project | Team rules: files Claude must never read, commands everyone runs |-| `.claude/settings.local.json`, kept out of git | You, in this project | Your own exceptions. "Yes, and don't ask again" on a Bash command saves here |-| Managed settings | Everyone your organization deploys them to | Policy your settings can't override, apart from a few security keys where the stricter value wins |+| `~/.claude/settings.json` | You, in every project | Personal defaults |+| `.claude/settings.json`, committed | Everyone in the project | Team rules |+| `.claude/settings.local.json`, kept out of git | You, in this project | Personal choices |+| Managed settings | Your organization | Organization policy |When the same key is set in more than one place, the higher level wins: managed, then the command line, then local, then shared project, then user ([Settings precedence](https://code.claude.com/docs/en/settings#settings-precedence)). Rule lists such as `permissions.allow` merge across the files instead. Among the rules, deny is checked first, then ask, then allow, and the first match decides ([Configure permissions](https://code.claude.com/docs/en/permissions#manage-permissions)).-Permission rules govern Claude's tools. The [sandbox](https://code.claude.com/docs/en/sandboxing) adds a boundary that the operating system enforces around the shell commands Claude runs: by default they can write only in the project, a per-user temporary folder and any folders you've added with `--add-dir` or `/add-dir`, and reach the network only through a proxy that checks each host against the hosts you allow. It's off until you turn it on. In its auto-allow mode, a command that runs inside it needs no permission prompt.+By default, the [sandbox](https://code.claude.com/docs/en/sandboxing) restricts shell writes to the project, a per-user temporary folder and added directories, using an operating-system boundary.## Worked exampleIn your practice copy:-1. Start `claude` and run `/status`. Its `Setting sources` line lists the settings files this session loaded.-2. Save the team's rules as `.claude/settings.json`. These are the docs' rules for keeping Claude out of `.env` files ([Exclude sensitive files](https://code.claude.com/docs/en/settings-reference#exclude-sensitive-files)), plus the test command:+1. Open a terminal in your practice copy and start a Manual session with `claude --permission-mode default`. Check that the footer says `manual mode on`. Manual is the deliberate exercise here: auto mode can approve a test run without a prompt, so the missing prompt alone would not demonstrate an allow rule ([Choose a permission mode](https://code.claude.com/docs/en/permission-modes#available-modes)). Then run `/status`. Its `Setting sources` line lists the settings files this session loaded. Open `/sandbox`; keep the sandbox off for the rule comparison, then close the panel.+2. Save the team's rules as `.claude/settings.json`. Merge this block with any settings already there, rather than replacing unrelated keys. These are the docs' rules for keeping Claude out of `.env` files ([Exclude sensitive files](https://code.claude.com/docs/en/settings-reference#exclude-sensitive-files)), plus the exact test command:```json{@@ -43,22 +44,22 @@ In your practice copy:}```- Claude Code reloads a settings file when it changes ([When edits take effect](https://code.claude.com/docs/en/settings#when-edits-take-effect)). Run `/permissions`: it lists `Bash(npm test)` among the allow rules and the two `Read` rules among the deny rules.-3. Ask Claude to `Run npm test`. It runs without a permission prompt: the allow rule covers it.-4. Turn on the sandbox. Run `/sandbox` and, on the Mode tab, select auto-allow. Claude Code saves the setting to `.claude/settings.local.json`, your personal file ([Get started](https://code.claude.com/docs/en/sandboxing#get-started)).+ Claude Code reloads permission rules when the file changes ([When edits take effect](https://code.claude.com/docs/en/settings#when-edits-take-effect)). Run `/permissions`: it lists `Bash(npm test)` among the allow rules and the two `Read` rules among the deny rules. Check their source file too.+3. Ask Claude to `Run npm test`. Read the test result. In Manual mode, with the sandbox off and no matching ask or deny rule, this exact command runs without a permission prompt because the allow rule covers it. If it asks, inspect the command and rule sources instead of approving a broader grant.+4. Turn on the sandbox. Run `/sandbox` and, on the Mode tab, select auto-allow. Claude Code saves the setting to `.claude/settings.local.json`, your personal file ([Get started](https://code.claude.com/docs/en/sandboxing#get-started)). Sandboxed commands can now run without routine permission prompts; this is separate from auto permission mode. Permission approval and that boundary answer different questions: may this command run, and what can it reach? If `/sandbox` shows only a Dependencies tab, install `bubblewrap` and `socat`, restart Claude Code and run `/sandbox` again.5. Ask Claude to try a write outside the project:```textRun this exact command and show me its output: touch ~/sandbox-probe```- It runs without a prompt and fails: `Operation not permitted` on macOS, `Read-only file system` on Linux and WSL 2 ([Confirm commands run inside the sandbox](https://code.claude.com/docs/en/sandboxing#confirm-commands-run-inside-the-sandbox)). If Claude offers to retry outside the sandbox, decline.+ Read the tool's output: `Operation not permitted` on macOS, or `Read-only file system` on Linux and WSL 2 ([Confirm commands run inside the sandbox](https://code.claude.com/docs/en/sandboxing#confirm-commands-run-inside-the-sandbox)). If Claude offers to retry outside the sandbox, decline. The rejected write is the useful evidence, not whether a permission prompt appeared.## Your turn-Set up the same split in your own repository.+Audit a proposed team setup in your own repository. A teammate suggests `Bash(npm *)` so tests run without prompts, and wants your personal sandbox choice committed too. Decide what belongs in shared settings before editing.-1. Save this partial file as `.claude/settings.json`, and replace each `TODO` with a rule. Allow only the one command that runs your tests, such as `Bash(npm test)` or `Bash(pytest)`:+1. Choose the exact command from your repository's test script. Share that narrow rule and the `.env` denies; keep your personal sandbox choice local. `Bash(npm *)` would also approve unrelated npm commands. Finish this partial block in `.claude/settings.json`, preserving existing settings. Use the Worked example's deny rules for both the base file and the `.env.*` family:```json{@@ -69,9 +70,10 @@ Set up the same split in your own repository.}```-2. Commit it: these are rules for everyone who works in the repository.-3. In a session there, turn on the sandbox with `/sandbox` in auto-allow mode, and repeat the Worked example's step 5.-4. Run `git status`. `.claude/settings.local.json` isn't listed: Claude Code keeps it out of git when it creates it ([Keep personal settings out of a repository](https://code.claude.com/docs/en/settings#keep-personal-settings-out-of-a-repository)).+ Replace every `TODO` before saving the final file. Allow only the one command that runs your tests, such as `Bash(npm test)` or `Bash(pytest)`.+2. Review and commit the team's rules. Use your repository's terminal. Check that the commit contains the narrow test rule and both deny rules, while preserving the earlier lessons' settings.+3. In a Claude Code session in your repository, turn on the sandbox with `/sandbox` in auto-allow mode. Check the Config tab: a local `"enabled": false` overrides a shared `true`. Ask Claude to `Run this exact command and show me its output: touch ~/sandbox-probe`, and inspect the actual failure. If Claude offers to retry outside the sandbox, decline.+4. Run [`git status --short`](https://git-scm.com/docs/git-status) and [`git ls-files .claude/settings.local.json`](https://git-scm.com/docs/git-ls-files) in your repository's terminal. Your personal file should appear in neither output. Claude Code keeps it out of git when it creates it; if you created it by hand, add it to `.gitignore` yourself ([Keep personal settings out of a repository](https://code.claude.com/docs/en/settings#keep-personal-settings-out-of-a-repository)). Leave Manual mode when the exercise is finished: press `Shift+Tab` until the footer shows `auto mode on`, if auto mode is available ([Switch permission modes](https://code.claude.com/docs/en/permission-modes#switch-permission-modes)).## Check@@ -79,17 +81,16 @@ You are done when all of these are true:- [ ] The committed `.claude/settings.json` denies reading `.env` and `.env.*` files and allows one test command: `git show HEAD:.claude/settings.json | jq .permissions` shows them.- [ ] The sandbox is on, and your personal file stays out of git: `jq .sandbox .claude/settings.local.json` shows `"enabled": true`, and `git ls-files .claude/settings.local.json` prints nothing.-- [ ] Self-check (not tested): Claude's `touch ~/sandbox-probe` failed without asking you first.+- [ ] Self-check (not tested): you inspected the active rules and sandbox configuration, and Claude's attempted write outside the project failed without an unsandboxed retry.Run `npm run check -- i-4 --dir <your repo>` from your practice copy, or `npm run check -- i-4` in the copy itself.-If the first item fails on a broad rule, replace it with the one command: `Bash(npm *)` would let Claude run any npm command without asking. If `/sandbox` shows only a Dependencies tab, install `bubblewrap` and `socat`, restart Claude Code and run `/sandbox` again.+If the rules item fails, review Your turn step 1, then commit the corrected settings. If the sandbox item fails, revisit Your turn step 3 in the repository the check reads; a local disable wins over a shared enable.## Watch out-- The sandbox wraps shell commands only. Claude's file and web tools run outside it and follow your permission rules; hooks and local MCP servers run outside it with your full access ([What runs outside the sandbox](https://code.claude.com/docs/en/sandboxing#what-runs-outside-the-sandbox)). If the sandbox can't start, Claude Code runs commands unsandboxed unless `sandbox.failIfUnavailable` is `true`.-- On its own, a `Read` deny rule covers Claude's file tools and the file commands Claude Code recognizes in Bash, such as `cat`, but not a script that opens files itself ([Read and Edit](https://code.claude.com/docs/en/permissions#read-and-edit)). With the sandbox on, Claude Code also adds your `Read` deny paths to the sandbox's [`filesystem.denyRead`](https://code.claude.com/docs/en/settings-reference#sandbox-filesystem-denyread), so sandboxed commands and the processes they start can't read those files either.-- In a Codespace or another container, if sandboxed commands fail with `Can't mount proc on /newroot/proc`, see [Bubblewrap fails to start inside a container](https://code.claude.com/docs/en/sandboxing#bubblewrap-fails-to-start-inside-a-container).+- The sandbox wraps shell commands only. Claude's file and web tools follow permission rules; hooks and local MCP servers run outside it with your full access ([What runs outside the sandbox](https://code.claude.com/docs/en/sandboxing#what-runs-outside-the-sandbox)). If the sandbox can't start, Claude Code runs commands unsandboxed unless `sandbox.failIfUnavailable` is `true`.+- A `Read` deny rule doesn't stop an arbitrary script from opening files itself ([Read and Edit](https://code.claude.com/docs/en/permissions#read-and-edit)). With the sandbox on, Claude Code also adds your `Read` deny paths to the sandbox's [`filesystem.denyRead`](https://code.claude.com/docs/en/settings-reference#sandbox-filesystem-denyread). If a container reports `Can't mount proc on /newroot/proc`, follow [Bubblewrap fails to start inside a container](https://code.claude.com/docs/en/sandboxing#bubblewrap-fails-to-start-inside-a-container) before treating the sandbox as working.## Go further@@ -99,6 +100,6 @@ If the first item fails on a broad rule, replace it with the one command: `Bash(----<sub>Sources: [Settings files and precedence](https://code.claude.com/docs/en/settings) · [All settings](https://code.claude.com/docs/en/settings-reference) · [Configure permissions](https://code.claude.com/docs/en/permissions) · [Configure the sandboxed Bash tool](https://code.claude.com/docs/en/sandboxing)</sub>+<sub>Sources: [Settings files and precedence](https://code.claude.com/docs/en/settings) · [All settings](https://code.claude.com/docs/en/settings-reference) · [Configure permissions](https://code.claude.com/docs/en/permissions) · [Choose a permission mode](https://code.claude.com/docs/en/permission-modes) · [Configure the sandboxed Bash tool](https://code.claude.com/docs/en/sandboxing) · [git status](https://git-scm.com/docs/git-status) · [git ls-files](https://git-scm.com/docs/git-ls-files)</sub><sub>← [Pick the model and effort](03-model-and-effort.md) · [Intermediate index](README.md) · [Enforce a rule with a hook](05-hooks.md) → · Topic: [Permissions and safety](../topics/permissions-and-safety.md) · [Stuck on this lesson?](https://github.com/wesammustafa/Claude-Code-Everything-You-Need-to-Know/issues/new?template=lesson-feedback.yml&lesson=i-4)</sub>diff --git a/docs/intermediate/05-hooks.md b/docs/intermediate/05-hooks.mdindex 690569d..c5e35d0 100644--- a/docs/intermediate/05-hooks.md+++ b/docs/intermediate/05-hooks.md@@ -4,7 +4,7 @@## Goal-By the end of this lesson you can add a hook that enforces a rule every time Claude edits a file, and show it firing.+By the end of this lesson you can add a hook that enforces a rule on Claude's Edit and Write tools, and show it firing.## You need@@ -101,10 +101,10 @@ esacexit 0```-1. Each block prints a `Blocked:` reason to stderr and exits with 2; everything else exits with 0.+1. Choose a narrower environment-file match so `src/config.envelope.ts` is allowed. Finish both TODOs. Each block prints a `Blocked:` reason to stderr and exits with 2; everything else exits with 0.2. Run the Check's test table until every row gives its expected exit code.3. In a session, ask Claude to use its Write tool to create `secrets/test.key`. Your hook blocks it.-4. Commit the script and `.claude/settings.json`. Keep the script executable: `git ls-files -s .claude/hooks/protect-files.sh` starts with `100755`.+4. Review and commit both hook scripts and `.claude/settings.json`, including the formatter you downloaded. Keep the protection script executable: `git ls-files -s .claude/hooks/protect-files.sh` starts with `100755` ([Git ls-files](https://git-scm.com/docs/git-ls-files)).## Check@@ -123,7 +123,7 @@ You are done when all of these are true:Run `npm run check -- i-5 --dir <your repo>` from your practice copy, or `npm run check -- i-5` in the copy itself.-If a row is wrong, test that path alone and print the name the script sees: `basename` of `.env.local` is `.env.local`, so a `case` pattern `.env.*` matches it. The check runs the committed script, so commit each fix before you run it. If the second item fails on the file mode, run `chmod +x .claude/hooks/protect-files.sh`, then `git add` it and commit again.+If every row gives an unexpected result, run `bash -n .claude/hooks/protect-files.sh` to check the syntax, then run one row without `2>/dev/null` to read its error ([Bash manual](https://www.gnu.org/software/bash/manual/html_node/The-Set-Builtin.html)). If a row is wrong, test that path alone and print the name the script sees: `basename` of `.env.local` is `.env.local`, so a `case` pattern `.env.*` matches it. The check runs the committed script, so commit each fix before you run it. If the second item fails on the file mode, run `chmod +x .claude/hooks/protect-files.sh`, then `git add` it and commit again.## Watch out@@ -139,6 +139,6 @@ If a row is wrong, test that path alone and print the name the script sees: `bas----<sub>Sources: [Automate actions with hooks](https://code.claude.com/docs/en/hooks-guide) · [Hooks reference](https://code.claude.com/docs/en/hooks) · [Configure permissions](https://code.claude.com/docs/en/permissions) · [Debug your configuration](https://code.claude.com/docs/en/debug-your-config)</sub>+<sub>Sources: [Automate actions with hooks](https://code.claude.com/docs/en/hooks-guide) · [Hooks reference](https://code.claude.com/docs/en/hooks) · [Configure permissions](https://code.claude.com/docs/en/permissions) · [Debug your configuration](https://code.claude.com/docs/en/debug-your-config) · [Git ls-files](https://git-scm.com/docs/git-ls-files) · [Bash manual](https://www.gnu.org/software/bash/manual/html_node/The-Set-Builtin.html)</sub><sub>← [Permissions, settings scopes and the sandbox](04-permissions-and-sandbox.md) · [Intermediate index](README.md) · [Delegate to a custom subagent](06-subagents.md) → · Topic: [Hooks](../topics/hooks.md) · [Stuck on this lesson?](https://github.com/wesammustafa/Claude-Code-Everything-You-Need-to-Know/issues/new?template=lesson-feedback.yml&lesson=i-5)</sub>diff --git a/docs/intermediate/06-subagents.md b/docs/intermediate/06-subagents.mdindex 7cc07fe..7f023be 100644--- a/docs/intermediate/06-subagents.md+++ b/docs/intermediate/06-subagents.md@@ -1,6 +1,6 @@# Delegate to a custom subagent-<sub>**Intermediate** · Lesson 6 of 8 · about 20 minutes · Needs: [Permissions, settings scopes and the sandbox](04-permissions-and-sandbox.md) · Verified against Claude Code v2.1.292 (stable) on 2026-10-15</sub>+<sub>**Intermediate** · Lesson 6 of 8 · about 25 minutes · Needs: [Permissions, settings scopes and the sandbox](04-permissions-and-sandbox.md) · Verified against Claude Code v2.1.292 (stable) on 2026-10-15</sub>## Goal@@ -9,6 +9,7 @@ By the end of this lesson you can write a subagent that has only the tools its t## You need- One of your own repositories, and your copy of the practice template with Node.js LTS: the check runs from the copy. To practice in the template copy instead, use it for both.+- A small source change and its regression test that you are ready to review and keep. If you have no pending work, add a useful behavior in your repository, such as a CLI help response, and test it first.- `jq`, for the delegation log in Your turn.- Usage: light to moderate. Each delegation starts a second context window.@@ -31,7 +32,7 @@ Delegate a task whose output you don't need in full, or that should run with res## Worked example-1. In your repository, download this guide's example [`code-reviewer`](../../examples/intermediate/06-subagents/dot-claude/agents/code-reviewer.md) and read it:+1. In your repository, download the example [`code-reviewer`](../../examples/intermediate/06-subagents/dot-claude/agents/code-reviewer.md) and read it:```bashmkdir -p .claude/agents@@ -45,20 +46,29 @@ Delegate a task whose output you don't need in full, or that should run with restools: Read, Grep, Glob```-2. Start `claude`. If a session was already running when you created `.claude/agents/`, restart it: Claude Code watches only the agent folders that existed when the session started ([Write subagent files](https://code.claude.com/docs/en/sub-agents#write-subagent-files)).-3. Make a small change in a source file, then ask:+2. Start `claude`. If a session was already running when you created `.claude/agents/`, restart it: Claude Code watches only the agent folders that existed when the session started ([Write subagent files](https://code.claude.com/docs/en/sub-agents#write-subagent-files)). Keep [auto mode](https://code.claude.com/docs/en/permission-modes#which-mode-a-session-starts-in) for this lesson. If Claude Code asks about an action, inspect its target before answering.+3. Review the source change and its regression test, run your project's tests, then commit only those files. Keep this commit at `HEAD` while both reviewers work. In a terminal in your repository, `git show --stat --oneline HEAD` lets you confirm its scope ([Git show](https://git-scm.com/docs/git-show)). Leave unrelated work out of the review.+4. Ask your main conversation to collect that commit's diff and give it to the custom reviewer:```text- Use the code-reviewer agent to review my uncommitted changes.+ Use the code-reviewer agent to review HEAD^..HEAD. First collect that diff and pass it the diff and changed filenames. Ask for a report only. Do not edit files.```- The transcript shows a row such as `code-reviewer(Review uncommitted changes)` while it works. The reviewer can't run `git diff`, so it starts from the task message your session writes for it and a git status snapshot ([What loads at startup](https://code.claude.com/docs/en/sub-agents#what-loads-at-startup)); then you get its findings as a summary, grouped by severity. Your wording will differ.+ The reviewer can't run `git diff`, so your main conversation must supply it. Wait for the completed report. Subagents normally run in the background and return their result later ([Run subagents in foreground or background](https://code.claude.com/docs/en/sub-agents#run-subagents-in-foreground-or-background)); `/tasks` lists background work ([Commands](https://code.claude.com/docs/en/commands)). A disappearing activity row does not prove the report is ready. Then you get its findings as a summary, grouped by severity. Your wording will differ.+5. Review the same commit with the bundled skill, which accepts a Git revision range ([Review locally with `/code-review`](https://code.claude.com/docs/en/code-review-local#choose-what-to-review)):++ ```text+ /code-review HEAD^..HEAD+ ```++ Without `--fix`, the bundled skill asks for a report only ([What the review reads and edits](https://code.claude.com/docs/en/code-review-local#what-the-review-reads-and-edits)). That instruction differs from the custom reviewer's tool restriction: the custom reviewer has no file-editing or shell tool. Run `git status --short` after each review to inspect what actually happened ([Git status](https://git-scm.com/docs/git-status)).+6. Compare the reports against the same diff. Pick a finding and prove or refute it with a targeted test before changing code. If neither report finds a bug, check an edge case yourself; do not invent a defect to satisfy the exercise. Review and commit any justified correction and `.claude/agents/code-reviewer.md`. Keep the useful source change, and leave unrelated work as you found it.## Your turnFinish a read-only subagent that finds code no test calls, then delegate to it.-1. Save this as `.claude/agents/test-gaps.md`, and replace both `TODO`s. Give it only read-only tools:+1. A teammate asks to find missing tests and add them. Decide which part belongs in a read-only report and which part stays in your main conversation. Save this as `.claude/agents/test-gaps.md`, and replace both `TODO`s. Give it only read-only tools:```markdown---@@ -67,27 +77,21 @@ Finish a read-only subagent that finds code no test calls, then delegate to it.tools: TODO---- You find code that no test exercises. You never change files.-- 1. List the functions each source file exports.- 2. For each one, search the test files for a call to it.- 3. Report the functions that no test calls, grouped by file, with one line on what a test for each should check. If every function has a test, say so.+ List exported functions no test calls. Never change files.+ Report each by file and suggest a test. If all are called, say so.```+ Write the description on one line, with at least eight words: what it reports and when Claude should delegate to it. Keep writing tests outside its stated task. A call in a test is a lead for investigation, not proof that the function's behavior is well tested.2. Commit it.3. Save this delegation log to `.practice/i-6-hook.json`. It is a [`SubagentStart` hook](https://code.claude.com/docs/en/hooks#subagentstart) that appends the name of each subagent Claude starts to `.practice/i-6-agents.txt`, and logs nothing else:```json- {- "hooks": {- "SubagentStart": [- { "hooks": [ { "type": "command", "command": "jq -r '.agent_type' >> \"$CLAUDE_PROJECT_DIR/.practice/i-6-agents.txt\"" } ] }- ]- }- }+ {"hooks":{"SubagentStart":[{"hooks":[{+ "type":"command","command":"jq -r '.agent_type' >> \"$CLAUDE_PROJECT_DIR/.practice/i-6-agents.txt\""+ }]}]}}```-4. Start `claude --settings .practice/i-6-hook.json` and ask `Use the test-gaps agent to list the functions no test calls.`+4. End your current session. Start `claude --settings .practice/i-6-hook.json` ([CLI reference](https://code.claude.com/docs/en/cli-reference#cli-flags)) and ask `Use the test-gaps agent to list the functions no test calls.` Wait for its completed report and compare a candidate with the actual tests. Reporting that every export is called is a valid result. Let the main conversation write any test you decide is needed; the subagent stays read-only.## Check@@ -96,7 +100,7 @@ You are done when all of these are true:- [ ] The committed subagent has its name and a description of when to use it: `git show HEAD:.claude/agents/test-gaps.md | head -5`.- [ ] Its tools are read-only: the `tools` line names tools such as `Read`, `Grep` and `Glob`, and no tool that edits files or runs commands, such as `Edit`, `Write` or `Bash`.- [ ] Claude delegated to it: `grep -x test-gaps .practice/i-6-agents.txt` prints `test-gaps`.-- [ ] Self-check (not tested): the subagent's file reads stayed out of your conversation, and only its summary came back.+- [ ] Self-check (not tested): the subagent's file reads stayed out of your conversation, and only its summary came back. You compared both reviews of the same commit with the actual diff, and checked the evidence for a finding or an edge case.Run `npm run check -- i-6 --dir <your repo>` from your practice copy, or `npm run check -- i-6` in the copy itself.@@ -106,7 +110,6 @@ If the first item fails, check the frontmatter: Claude Code skips an agent file- A subagent that lists `Bash` can still change files through shell commands, such as a `sed` edit or a [`> file` redirect](https://code.claude.com/docs/en/permissions#redirections), even without `Edit` or `Write`. Leave `Bash` out, and let your session pass it what a command would have shown.- On macOS, Linux and WSL, where Glob and Grep are absent by default, a subagent whose `tools` list names `Glob` or `Grep` and leaves out `Bash` gets the ones it names ([Glob tool behavior](https://code.claude.com/docs/en/tools-reference#glob-tool-behavior)).-- A custom subagent reads your `CLAUDE.md` as the main conversation does, but the built-in Explore and Plan subagents skip it: restate a rule in your request when Claude hands them work ([Check common causes](https://code.claude.com/docs/en/debug-your-config#check-common-causes)).## Go further@@ -116,6 +119,6 @@ If the first item fails, check the frontmatter: Claude Code skips an agent file----<sub>Sources: [Create custom subagents](https://code.claude.com/docs/en/sub-agents) · [Hooks reference](https://code.claude.com/docs/en/hooks) · [Tools reference](https://code.claude.com/docs/en/tools-reference) · [Configure permissions](https://code.claude.com/docs/en/permissions) · [Debug your configuration](https://code.claude.com/docs/en/debug-your-config)</sub>+<sub>Sources: [Create custom subagents](https://code.claude.com/docs/en/sub-agents) · [Review locally with /code-review](https://code.claude.com/docs/en/code-review-local) · [Hooks reference](https://code.claude.com/docs/en/hooks) · [Tools reference](https://code.claude.com/docs/en/tools-reference) · [Configure permissions](https://code.claude.com/docs/en/permissions) · [Choose a permission mode](https://code.claude.com/docs/en/permission-modes) · [Commands](https://code.claude.com/docs/en/commands) · [CLI reference](https://code.claude.com/docs/en/cli-reference) · [Git show](https://git-scm.com/docs/git-show) · [Git status](https://git-scm.com/docs/git-status)</sub><sub>← [Enforce a rule with a hook](05-hooks.md) · [Intermediate index](README.md) · [Connect a tool with MCP](07-mcp.md) → · Topic: [Subagents and parallel work](../topics/subagents-and-parallel-work.md) · [Stuck on this lesson?](https://github.com/wesammustafa/Claude-Code-Everything-You-Need-to-Know/issues/new?template=lesson-feedback.yml&lesson=i-6)</sub>diff --git a/docs/intermediate/07-mcp.md b/docs/intermediate/07-mcp.mdindex 19b2203..7a074ae 100644--- a/docs/intermediate/07-mcp.md+++ b/docs/intermediate/07-mcp.md@@ -1,10 +1,10 @@# Connect a tool with MCP-<sub>**Intermediate** · Lesson 7 of 8 · about 20 minutes · Needs: [Permissions, settings scopes and the sandbox](04-permissions-and-sandbox.md) · Verified against Claude Code v2.1.292 (stable) on 2026-10-15</sub>+<sub>**Intermediate** · Lesson 7 of 8 · about 25 minutes · Needs: [Permissions, settings scopes and the sandbox](04-permissions-and-sandbox.md) · Verified against Claude Code v2.1.292 (stable) on 2026-10-15</sub>## Goal-By the end of this lesson you can connect an MCP server for yourself, then share it with everyone in a project at project scope, pinned to one version.+By the end of this lesson you can connect a version-pinned MCP server at the right scope and use its browser evidence to find and fix a page error.## You need@@ -14,7 +14,7 @@ By the end of this lesson you can connect an MCP server for yourself, then share## The idea-[MCP](https://code.claude.com/docs/en/mcp) (the Model Context Protocol) lets Claude Code use tools that another program provides: an MCP server. This lesson's server is [Chrome DevTools MCP](https://github.com/ChromeDevTools/chrome-devtools-mcp) (Vendor: Google), which runs on your machine and gives Claude tools to open pages in Chrome, read the console and take screenshots:+[MCP](https://code.claude.com/docs/en/mcp) (the Model Context Protocol) lets Claude Code use tools that another program provides: an MCP server. This lesson uses [Chrome DevTools MCP](https://github.com/ChromeDevTools/chrome-devtools-mcp) (Vendor: Google) to inspect a local page's console, diagnose its error and capture the repair ([tool reference](https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/chrome-devtools-mcp-v1.10.1/docs/tool-reference.md)).```mermaidflowchart LR@@ -33,79 +33,81 @@ Where you add a server decides who gets it ([MCP installation scopes](https://co| Project | Everyone who works in the project | `.mcp.json` at the project root, committed || User | You, in every project | `~/.claude.json` |-In an interactive session, Claude Code asks you to approve a project's servers before it uses them.+In an interactive session, Claude Code asks you to approve a project's servers before it uses them. Approving a server and approving an individual tool call are separate decisions.> [!WARNING]-> Data that leaves your machine. By default, Chrome DevTools MCP sends usage statistics to Google, may send the URLs of performance traces to Google's CrUX API, and checks npm for updates ([upstream README](https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/chrome-devtools-mcp-v1.10.1/README.md)). This lesson always runs it with all three turned off. The pages Claude opens still load from the web, and the server shows Claude everything in that browser.+> Data that leaves your machine. By default, Chrome DevTools MCP sends usage statistics to Google, may send the URLs of performance traces to Google's CrUX API, and checks npm for updates ([upstream README](https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/chrome-devtools-mcp-v1.10.1/README.md)). This lesson always runs it with all three turned off. The pages Claude opens still load from the web, and the server shows Claude everything in that browser. Use the isolated browser only for this local demo, with no personal accounts or sensitive pages.## Worked example-1. Save a page to look at, in your repository:+1. Save this page as `.practice/demo.html` in your repository. It has a planted browser bug; leave it unfixed. Its element lookup uses a [DOM selector](https://dom.spec.whatwg.org/#dom-parentnode-queryselector):- ```bash- cat > .practice/demo.html <<'EOF'+ ```html<!doctype html><title>Linkcheck demo</title>- <h1>Linkcheck demo</h1>- <script>console.warn('demo warning from the page');</script>- EOF+ <a href="#guide">Guide</a> <a href="#reference">Reference</a>+ <p id="link-count">Counting links...</p>+ <script>+ const links = document.querySelectorAll('a');+ document.querySelector('#link-total').textContent = `${links.length} links ready`;+ </script>```-2. Add the server at local scope, for yourself. The version is pinned, `--isolated` gives the browser a temporary profile, and the other two flags and the variable turn the data flows off ([configuration](https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/chrome-devtools-mcp-v1.10.1/docs/configuration.md)). Everything after `--` is the server's own command:+2. Add the server at local scope, for yourself. Run this in your repository's terminal. The version is pinned, `--isolated` gives the browser a temporary profile, and the other two flags and the variable turn the data flows off ([configuration](https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/chrome-devtools-mcp-v1.10.1/docs/configuration.md)). Everything after `--` is the server's own command:```bashclaude mcp add --env CHROME_DEVTOOLS_MCP_NO_UPDATE_CHECKS=1 --transport stdio chrome-devtools -- npx -y [email protected] --isolated --no-usage-statistics --no-performance-crux```-3. Run `claude mcp get chrome-devtools`. It shows which scope holds the server, local here, and the server's status ([Find your configuration on disk](https://code.claude.com/docs/en/mcp-quickstart#find-your-configuration-on-disk)).-4. Start `claude` and run `/mcp`: `chrome-devtools` is listed with its tools. Then ask:+3. Run `claude mcp get chrome-devtools` in the same repository. It shows which scope holds the server, local here, and the server's status ([Find your configuration on disk](https://code.claude.com/docs/en/mcp-quickstart#find-your-configuration-on-disk)).+4. Start a Manual session with `claude --permission-mode default` for this first MCP tool use ([Choose a permission mode](https://code.claude.com/docs/en/permission-modes#available-modes)). Run `/mcp` and select `chrome-devtools` to inspect its status and tools. The list shows a tool count; select the server to see the tool list ([Tool availability](https://code.claude.com/docs/en/mcp#tool-availability)). Then ask:```text- Use the chrome-devtools tools to open .practice/demo.html as a file: URL, and tell me its title and console messages.+ Use the chrome-devtools tools to open .practice/demo.html as a file: URL. Read the title, visible count and console error. Report the error and its source location, without editing any files.```- A Chrome window opens, and Claude reports the title, `Linkcheck demo`, and the console warning. In Manual mode, Claude Code asks for permission the first time Claude uses each tool ([Configure permissions](https://code.claude.com/docs/en/permissions#permission-modes)).+ If Claude Code asks about a tool call, inspect the tool name and inputs, then approve only that call ([Configure permissions](https://code.claude.com/docs/en/permissions#manage-permissions)). Do not grant a standing approval for this exercise. Read the actual tool output: the count stays at `Counting links...`, and the script fails when it tries to update an element that wasn't found. Your browser's error wording may differ. After reviewing the first call, return to auto mode with `Shift+Tab`, if available, so later calls can proceed under its checks ([Switch permission modes](https://code.claude.com/docs/en/permission-modes#switch-permission-modes)).## Your turn-Share the server with your team at project scope.+Share the reviewed server with your team, then use the project's tools to repair the page rather than merely capture its broken state.-1. Remove your local copy, which would otherwise take precedence over a project server of the same name ([Scope hierarchy and precedence](https://code.claude.com/docs/en/mcp#scope-hierarchy-and-precedence)): `claude mcp remove chrome-devtools -s local`.-2. Save this partial file as `.mcp.json` at the repository root, and replace each `TODO` with the values from the Worked example's command:+1. In the same repository's terminal, remove your local copy, which would otherwise take precedence over a project server of the same name ([Scope hierarchy and precedence](https://code.claude.com/docs/en/mcp#scope-hierarchy-and-precedence)): `claude mcp remove chrome-devtools -s local`. If it reports no local server, confirm you are in the repository where you added it; local scope belongs to that project.+2. Save this partial file as `.mcp.json` at the repository root, and replace each `TODO` with the values from the Worked example's command. Preserve any unrelated servers already in the file:```json- {- "mcpServers": {- "chrome-devtools": {- "type": "stdio",- "command": "npx",- "args": ["-y", "TODO: the package at an exact version", "--isolated", "TODO: no usage statistics", "TODO: no CrUX lookups"],- "env": { "TODO: the variable that turns off update checks": "1" }- }+ {"mcpServers": {+ "chrome-devtools": {+ "type": "stdio",+ "command": "npx",+ "args": ["-y", "TODO: the package at an exact version", "--isolated",+ "TODO: no usage statistics", "TODO: no CrUX lookups"],+ "env": { "TODO: the variable that turns off update checks": "1" }}- }+ }}```-3. Commit `.mcp.json`.-4. Start `claude`. When it asks about the new MCP server found in this project, choose to use it. `/mcp` now shows it as connected ([Edit .mcp.json directly](https://code.claude.com/docs/en/mcp-quickstart#edit-mcp-json-directly)).-5. Ask Claude to use the chrome-devtools tools to open `.practice/demo.html` and save a screenshot of it to `.practice/i-7-page.png`.+3. Review and commit `.mcp.json`.+4. Exit the session from the Worked example, then start `claude` again in your repository. When it asks about the project's new server, approve it only if you have reviewed the server's command and arguments in `.mcp.json`. If `.mcp.json` names a server you haven't reviewed, decline and investigate. Avoid a standing approval for future servers you haven't reviewed. Inspect the selected option before pressing Enter. Run `/mcp`, select the server and check that it connected ([Edit .mcp.json directly](https://code.claude.com/docs/en/mcp-quickstart#edit-mcp-json-directly)). Keep auto mode for the repair; review any request Claude Code still asks you about.+5. Use the project's browser tools to reload `.practice/demo.html` and read its console before editing. Decide whether the element lookup or the count calculation is at fault: compare the reported source line with the page's existing result element. Fix the mismatched lookup while keeping the calculation; hiding the exception would leave the page broken. Ask Claude to make that focused repair, then use the MCP tools to reload and verify the visible count and console. The result should read `2 links ready` with no script error. Have the server save the repaired page as a PNG to `.practice/i-7-page.png` ([Screenshot tool](https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/chrome-devtools-mcp-v1.10.1/docs/tool-reference.md#take_screenshot)).## CheckYou are done when all of these are true:- [ ] The committed `.mcp.json` pins the package to an exact version and turns off usage statistics, CrUX lookups and update checks: `git show HEAD:.mcp.json | jq '.mcpServers["chrome-devtools"]'` shows them.-- [ ] The server saved a screenshot: `file .practice/i-7-page.png` reports PNG image data.-- [ ] Self-check (not tested): after you approved it, `/mcp` showed `chrome-devtools` as connected.+- [ ] `.practice/i-7-page.png` holds a PNG image of the repaired page.+- [ ] The demo script displays `2 links ready` without a script error. The local check runs this demo's inline script with its link collection and an extra-link probe in a bounded Node process; a static or hardcoded count doesn't pass. Its small document adapter does not replace the Chrome verification.+- [ ] Self-check (not tested): you reviewed the first MCP tool call, used the project's server to read the real console error, and verified the repaired count and clean console after reloading.Run `npm run check -- i-7 --dir <your repo>` from your practice copy, or `npm run check -- i-7` in the copy itself.-If the first item fails, compare each argument with the Worked example's command: `@latest` isn't pinned. If there's no screenshot, run `/mcp` to see whether the server connected. If you missed the approval prompt, approve the server there; if you declined it, run `claude mcp reset-project-choices` and start `claude` again ([Project scope](https://code.claude.com/docs/en/mcp#project-scope)).+If the server item fails, compare each argument with the Worked example's command: `@latest` isn't pinned. If the capture is missing, confirm the server connected before asking it to save the PNG. If the demo item fails, revisit Your turn step 5: removing the script or swallowing its error doesn't repair the count.## Watch out-- A `claude -p` run loads a project's servers without asking ([Project scope](https://code.claude.com/docs/en/mcp#project-scope)). Read a repository's `.mcp.json` before you script Claude Code in it.-- To be asked about a project's servers again, run `claude mcp reset-project-choices`.+- A `claude -p` run loads a project's servers without asking ([Project scope](https://code.claude.com/docs/en/mcp#project-scope)). Read a repository's `.mcp.json` before you script Claude Code in it. A quiet tool call in auto mode doesn't prove that you granted a permanent permission.+- To be asked about a project's servers again, run `claude mcp reset-project-choices`, then restart Claude Code. If you missed the approval prompt, open `/mcp` to approve the server there.Third-party: it can run code on your machine or give Claude new tools. Review it before installing; this guide does not audit it.@@ -119,6 +121,6 @@ Listings checked against the listing bar on 2026-10-06.----<sub>Sources: [Connect Claude Code to tools via MCP](https://code.claude.com/docs/en/mcp) · [Connect to MCP servers](https://code.claude.com/docs/en/mcp-quickstart) · [Configure permissions](https://code.claude.com/docs/en/permissions) · [Chrome DevTools MCP README](https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/chrome-devtools-mcp-v1.10.1/README.md) · [Chrome DevTools MCP configuration](https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/chrome-devtools-mcp-v1.10.1/docs/configuration.md) · [The MCP Registry](https://modelcontextprotocol.io/registry/about)</sub>+<sub>Sources: [Connect Claude Code to tools via MCP](https://code.claude.com/docs/en/mcp) · [Connect to MCP servers](https://code.claude.com/docs/en/mcp-quickstart) · [Configure permissions](https://code.claude.com/docs/en/permissions) · [Choose a permission mode](https://code.claude.com/docs/en/permission-modes) · [Chrome DevTools MCP README](https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/chrome-devtools-mcp-v1.10.1/README.md) · [Chrome DevTools MCP configuration](https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/chrome-devtools-mcp-v1.10.1/docs/configuration.md) · [Chrome DevTools MCP tools](https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/chrome-devtools-mcp-v1.10.1/docs/tool-reference.md) · [The MCP Registry](https://modelcontextprotocol.io/registry/about) · [DOM selectors](https://dom.spec.whatwg.org/#dom-parentnode-queryselector)</sub><sub>← [Delegate to a custom subagent](06-subagents.md) · [Intermediate index](README.md) · [Install and manage plugins](08-plugins.md) → · Topic: [MCP](../topics/mcp.md) · [Stuck on this lesson?](https://github.com/wesammustafa/Claude-Code-Everything-You-Need-to-Know/issues/new?template=lesson-feedback.yml&lesson=i-7)</sub>diff --git a/docs/intermediate/08-plugins.md b/docs/intermediate/08-plugins.mdindex 435fb8e..dd04a06 100644--- a/docs/intermediate/08-plugins.md+++ b/docs/intermediate/08-plugins.md@@ -1,60 +1,81 @@# Install and manage plugins-<sub>**Intermediate** · Lesson 8 of 8 · about 20 minutes · Needs: [Turn a repeated workflow into a skill](01-first-skill.md), [Enforce a rule with a hook](05-hooks.md), [Delegate to a custom subagent](06-subagents.md), [Connect a tool with MCP](07-mcp.md) · Verified against Claude Code v2.1.292 (stable) on 2026-10-15</sub>+<sub>**Intermediate** · Lesson 8 of 8 · about 25 minutes · Needs: [Turn a repeated workflow into a skill](01-first-skill.md), [Enforce a rule with a hook](05-hooks.md), [Delegate to a custom subagent](06-subagents.md), [Connect a tool with MCP](07-mcp.md) · Verified against Claude Code v2.1.292 (stable) on 2026-10-21</sub>## Goal-By the end of this lesson you can install a plugin from one of Anthropic's marketplaces at the scope that fits, see what it adds, and turn it off, update it or remove it.+By the end of this lesson you can choose a plugin's scope, use a plugin workflow and code intelligence on your code, and disable or remove a plugin you no longer need.## You need-- The repository from [lesson 4](04-permissions-and-sandbox.md), with its `.claude/settings.json`, and your copy of the practice template with Node.js LTS: the check runs from the copy.-- Usage: light.+- Your repository from [lesson 4](04-permissions-and-sandbox.md), with its `.claude/settings.json`, a working test command and no uncommitted changes. Choose a small code change you can verify. Run plugin and Git commands in a terminal in this repository; run the final check from your practice copy.+- A terminal session on your machine and a language with a [code intelligence plugin](https://code.claude.com/docs/en/plugins/code-intelligence). The JavaScript and TypeScript commands below also work for the practice repository; for another supported language, use its plugin and server from that page.+- Usage: light, plus downloading a plugin and its language server if you do not have them.## The idea-A [plugin](https://code.claude.com/docs/en/plugins/overview) packages the pieces of the last lessons, skills, subagents, hooks and MCP servers, so they install as one unit from a marketplace. Anthropic publishes three general-purpose marketplaces ([Anthropic's marketplaces](https://code.claude.com/docs/en/plugins/anthropic-marketplaces)):+A [plugin](https://code.claude.com/docs/en/plugins/overview) packages skills, agents, hooks, MCP servers or language servers. A marketplace is its catalog; `claude-plugins-official` is [Anthropic's official marketplace](https://code.claude.com/docs/en/plugins/anthropic-marketplaces). Review the components before installing.-- `claude-plugins-official`, which Claude Code adds for you the first time you start an interactive session;-- `claude-community`, third-party plugins their authors submitted to Anthropic;-- `claude-code-plugins`, a demo set.+The [install scope](https://code.claude.com/docs/en/plugins/install#choose-an-install-scope) decides who gets the enabled setting:-You install a plugin as `<plugin>@<marketplace>`, at a scope that decides which settings file turns it on ([Choose an install scope](https://code.claude.com/docs/en/plugins/install#choose-an-install-scope)):--| Scope | Who gets it | `enabledPlugins` entry in |+| Scope | Who gets it | Settings file ||---|---|---|-| User | You, in every project | `~/.claude/settings.json` |-| Project | Everyone who works in the repository | `.claude/settings.json`, committed |+| User | You, across projects | `~/.claude/settings.json` |+| Project | Your collaborators | `.claude/settings.json`, committed || Local | You, in this repository | `.claude/settings.local.json` |-Committing a project-scope entry turns the plugin on for your collaborators, but it may not be installed on their machines yet, so each of them runs `claude plugin install <plugin>@<marketplace> --scope project` once. An enabled plugin is part of every session: its skill descriptions sit in Claude's context, and its hooks and MCP servers run, as you.+A shared setting does not download the plugin to a teammate's machine. They install it too. A local trial lets you evaluate the result before proposing a team dependency.++[Code intelligence](https://code.claude.com/docs/en/plugins/code-intelligence#see-what-claude-gains) adds diagnostics and symbol navigation through a language server. Installing the plugin alone does not install that server. Confirm a real lookup, rather than treating an installed label as proof it works.## Worked example-1. In a session in your repository, open the official marketplace's `commit-commands` plugin (Anthropic):+1. Start `claude` in your repository and stay in auto mode. Open the `commit-commands` plugin (Anthropic):```text/plugin install commit-commands@claude-plugins-official```- Nothing installs yet. The panel shows the plugin's description and, under **Will install**, the commands it adds. Read it before you choose.-2. Choose **Install for you, in this repo only (local scope)**. The install summary ends with `Plugin is now active.`-3. Type `/commit-commands:`. The plugin's commands are listed under its name, such as `/commit-commands:commit`.-4. Manage it from your shell ([Manage plugins from your shell](https://code.claude.com/docs/en/plugins/install#manage-plugins-from-your-shell)):+ Nothing installs until you review the details and choose a scope ([Install a plugin](https://code.claude.com/docs/en/plugins/install#install-a-plugin)). Read **Will install**, then choose **Install for you, in this repo only (local scope)**. Plugin commands have the plugin's prefix, such as `/commit-commands:commit`.+2. Add code intelligence for your language. For JavaScript or TypeScript, use `typescript-lsp` (Anthropic). Its [README](https://github.com/anthropics/claude-plugins-official/tree/main/plugins/typescript-lsp) names the required language server. On 2026-10-21, that server's [own installation instructions](https://github.com/typescript-language-server/typescript-language-server#installing) use the following command (`typescript-language-server`, Community):++ ```bash+ npm install -g typescript-language-server typescript@6+ command -v typescript-language-server+ claude plugin install typescript-lsp@claude-plugins-official --scope local+ ```++ For another supported language, use the matching plugin and binary from the [official table](https://code.claude.com/docs/en/plugins/code-intelligence#install-a-code-intelligence-plugin). Exit the old Claude Code session with `/exit`, then start `claude` again from this repository. Shell-installed plugins load in a new session; `/reload-plugins` can apply them to an existing session ([Plugin commands](https://code.claude.com/docs/en/plugins/cli-reference)).++ Choose a function your planned change could affect. Replace the placeholders and ask:++ ```text+ Use the LSP tool to find the definition and references of <symbol> in <file>. Explain which caller my planned change could affect. Do not edit files yet.+ ```++ Inspect the `LSP` tool result and open a returned location. A text search alone does not demonstrate language-server navigation ([LSP tool behavior](https://code.claude.com/docs/en/tools-reference#lsp-tool-behavior)). If the server cannot start, open `/plugin` and check **Errors**, then verify the server binary is on the launching shell's `PATH`. Make the small intended change and run your tests. After a matching-file edit, the server can report diagnostics; inspect any reported issue rather than assuming the build is correct.+3. Review the complete diff, including unstaged files, and keep only the intended change in this commit. Run the plugin's commit workflow ([its command](https://github.com/anthropics/claude-plugins-official/blob/main/plugins/commit-commands/commands/commit.md)):++ ```text+ /commit-commands:commit Commit only the reviewed change. Do not push. Do not add AI attribution or co-author trailers.+ ```++ Read `git show --stat HEAD` and the commit diff. Confirm it contains the tested change and no unrelated files. The plugin has now done repository work, rather than merely appearing in a list.+4. Manage the trial from a terminal in this repository ([Plugin commands](https://code.claude.com/docs/en/plugins/cli-reference)):```bashclaude plugin list- claude plugin disable commit-commands@claude-plugins-official+ claude plugin disable commit-commands@claude-plugins-official --scope localclaude plugin uninstall commit-commands@claude-plugins-official --scope local```- `claude plugin list` shows the plugin's version, `Scope: local` and its status. `disable` turns it off and keeps it installed; `uninstall` removes it.+ `disable` turns the plugin off and keeps it installed; `uninstall` removes the installation. Leave the language plugin enabled for the rest of the lesson.## Your turn-Turn on the `claude-code-setup` plugin (Anthropic) for everyone who works in your repository, then install it the way a teammate would.+Choose what the team should share, rather than sharing every plugin from your trial. Use `claude-code-setup` (Anthropic) to identify and implement a useful improvement to this repository.-1. Add this block to `.claude/settings.json`, beside the keys from earlier lessons, and replace the `TODO` with the plugin's full name, `<plugin>@<marketplace>`:+1. Merge this block into `.claude/settings.json`, preserving the earlier settings, and replace the `TODO` with the plugin's full name, `<plugin>@<marketplace>` ([Project plugin settings](https://code.claude.com/docs/en/plugins/loading#enabled-in-project-settings-but-not-installed)):```json"enabledPlugins": {@@ -62,16 +83,23 @@ Turn on the `claude-code-setup` plugin (Anthropic) for everyone who works in you}```-2. Commit `.claude/settings.json`.-3. Install it as a teammate would after pulling your commit:+2. Review and commit `.claude/settings.json`. Keep your personal language-plugin trial out of the shared settings until the team chooses it.+3. Install the project plugin as a teammate would after pulling that commit:```bashclaude plugin install claude-code-setup@claude-plugins-official --scope project```- It prints `Successfully installed plugin: claude-code-setup@claude-plugins-official (scope: project)`. Run `git status`: if the install changed `.claude/settings.json`, commit that change too.-4. Start `claude` and ask `Recommend Claude Code automations for this project.` Claude uses the plugin's read-only skill ([its README](https://github.com/anthropics/claude-plugins-official/blob/main/plugins/claude-code-setup/README.md)) and suggests hooks, skills, subagents and MCP servers. Your wording will differ.-5. Save the plugin list for the check, in the repository's root: `claude plugin list --json > .practice/i-8-plugins.json`.+ Review `git status`: if installation reformatted `.claude/settings.json`, review and commit that change too.+4. Exit the existing session with `/exit`, start `claude` in this repository, and request `Recommend Claude Code automations for this project.` The plugin's [read-only skill](https://github.com/anthropics/claude-plugins-official/blob/main/plugins/claude-code-setup/README.md) recommends automations; it does not implement them. Look for its Skill tool call. If it did not load, invoke `/claude-code-setup:claude-automation-recommender` directly. Choose a recommendation that addresses a real gap rather than duplicating an existing skill or hook. Ask Claude to implement one small improvement using your existing tools, without adding another plugin or server. Test it, review the diff and commit it. Ask for a smaller proposal if the recommendations are too broad.+5. Save a machine-readable install list from this repository's root ([JSON list output](https://code.claude.com/docs/en/plugins/cli-reference#plugin-list)):++ ```bash+ mkdir -p .practice+ claude plugin list --json > .practice/i-8-plugins.json+ ```++ The `--json` flag matters: the human-readable list is not JSON.## Check@@ -79,30 +107,29 @@ You are done when all of these are true:- [ ] The committed settings turn the plugin on for the project: `git show HEAD:.claude/settings.json | jq .enabledPlugins` shows `"claude-code-setup@claude-plugins-official": true`.- [ ] It's installed at project scope and enabled: `jq '.[] | select(.id == "claude-code-setup@claude-plugins-official") | {scope, enabled, projectEnabled}' .practice/i-8-plugins.json` shows `"project"`, `true` and `true`.-- [ ] Self-check (not tested): you can say what `disable` keeps that `uninstall` removes, and why a teammate may still need `claude plugin install` after pulling the settings.+- [ ] Self-check (not tested): you verified an LSP definition or reference, inspected the plugin-created commit, and tested the improvement you chose from the recommendations.Run `npm run check -- i-8 --dir <your repo>` from your practice copy, or `npm run check -- i-8` in the copy itself.-If the first item fails, check the name after `@`: it's the marketplace's name, `claude-plugins-official`, not its repository. If the second fails, run the install command in the repository itself, then save the list again from there.+If the first item fails, check the name after `@`: it's the marketplace's name, `claude-plugins-official`, not its repository. If the second fails, install the project plugin in this repository and save the list again with `--json`.## Watch out-- A plugin's hooks and MCP servers run with your user's rights, and Anthropic doesn't review third-party marketplaces. Read the **Will install** list first ([Plugin security and trust](https://code.claude.com/docs/en/plugins/security)).-- The official marketplace also lists a `chrome-devtools-mcp` plugin (Vendor: Google), pinned to a commit of the server's repository ([its catalog](https://github.com/anthropics/claude-plugins-official/blob/main/.claude-plugin/marketplace.json)). On 2026-10-06, [its manifest](https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/1cec9cd1a3bbf1895c98fa4b4e0e2da5a36e4075/.claude-plugin/plugin.json) started the server from [lesson 7](07-mcp.md), at an earlier version and without that lesson's flags, so its usage statistics, CrUX lookups and update checks keep their defaults, which are on ([upstream README](https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/chrome-devtools-mcp-v1.10.1/README.md)). Keep lesson 7's `.mcp.json` instead.-- Plugins from `claude-plugins-official` update on their own; a running session keeps the version it loaded until `/reload-plugins` or the next session. Plugins from the community marketplace don't, unless you turn auto-update on for it ([Keep plugins updated](https://code.claude.com/docs/en/plugins/install#keep-plugins-updated)).+- A plugin's hooks and servers can run with your user's rights. Read **Will install**, and keep the MCP configuration you reviewed in lesson 7 ([Plugin security and trust](https://code.claude.com/docs/en/plugins/security)).+- An installed language plugin can still lack a working server. Confirm the binary and an actual lookup before relying on its diagnostics.Third-party: it can run code on your machine or give Claude new tools. Review it before installing; this guide does not audit it.-Listings checked against the listing bar on 2026-10-06.+Listings checked against the listing bar on 2026-10-21.## Go further-- [Anthropic's marketplaces](https://code.claude.com/docs/en/plugins/anthropic-marketplaces): the three marketplaces, and where to browse the official one. This is where to look for more plugins.-- [Plugins overview](https://code.claude.com/docs/en/plugins/overview): what a plugin can hold, and what an enabled one costs each session.+- [Anthropic's marketplaces](https://code.claude.com/docs/en/plugins/anthropic-marketplaces): where to browse the official catalog.+- [Code intelligence plugins](https://code.claude.com/docs/en/plugins/code-intelligence): language choices, server setup and troubleshooting.- [Create a Claude Code plugin](https://code.claude.com/docs/en/plugins/create): package your own skills, hooks and subagents.----<sub>Sources: [Plugins overview](https://code.claude.com/docs/en/plugins/overview) · [Install and manage plugins](https://code.claude.com/docs/en/plugins/install) · [Anthropic's marketplaces](https://code.claude.com/docs/en/plugins/anthropic-marketplaces) · [Plugin security and trust](https://code.claude.com/docs/en/plugins/security) · [claude-code-setup README](https://github.com/anthropics/claude-plugins-official/blob/main/plugins/claude-code-setup/README.md) · [Official marketplace catalog](https://github.com/anthropics/claude-plugins-official/blob/main/.claude-plugin/marketplace.json) · [chrome-devtools-mcp plugin manifest](https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/1cec9cd1a3bbf1895c98fa4b4e0e2da5a36e4075/.claude-plugin/plugin.json) · [Chrome DevTools MCP README](https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/chrome-devtools-mcp-v1.10.1/README.md)</sub>+<sub>Sources: [Plugins overview](https://code.claude.com/docs/en/plugins/overview) · [Install and manage plugins](https://code.claude.com/docs/en/plugins/install) · [Anthropic's marketplaces](https://code.claude.com/docs/en/plugins/anthropic-marketplaces) · [Plugin loading reference](https://code.claude.com/docs/en/plugins/loading) · [Plugin commands reference](https://code.claude.com/docs/en/plugins/cli-reference) · [Code intelligence plugins](https://code.claude.com/docs/en/plugins/code-intelligence) · [LSP tool behavior](https://code.claude.com/docs/en/tools-reference) · [Plugin security and trust](https://code.claude.com/docs/en/plugins/security) · [Commit workflow](https://github.com/anthropics/claude-plugins-official/blob/main/plugins/commit-commands/commands/commit.md) · [TypeScript plugin README](https://github.com/anthropics/claude-plugins-official/tree/main/plugins/typescript-lsp) · [Language server installation](https://github.com/typescript-language-server/typescript-language-server#installing) · [claude-code-setup README](https://github.com/anthropics/claude-plugins-official/blob/main/plugins/claude-code-setup/README.md)</sub><sub>← [Connect a tool with MCP](07-mcp.md) · [Intermediate index](README.md) · [Intermediate capstone](capstone.md) → · Topic: [Plugins](../topics/plugins.md) · [Stuck on this lesson?](https://github.com/wesammustafa/Claude-Code-Everything-You-Need-to-Know/issues/new?template=lesson-feedback.yml&lesson=i-8)</sub>diff --git a/docs/intermediate/capstone.md b/docs/intermediate/capstone.mdindex 8f995d1..55e3ae6 100644--- a/docs/intermediate/capstone.md+++ b/docs/intermediate/capstone.md@@ -25,7 +25,9 @@ Build each part the way its lesson taught:6. **Chrome DevTools MCP** at project scope, pinned, with its usage statistics, CrUX lookups and update checks off ([lesson 7](07-mcp.md)).7. **The `claude-code-setup` plugin**, turned on for everyone at project scope, and installed ([lesson 8](08-plugins.md)).-Then, in a session, try each part: run the skill by name, ask Claude to edit a file in `samples/` with its Edit tool, delegate a review, approve the MCP server and use one of its tools. Pick the model and effort for each job as [lesson 3](03-model-and-effort.md) showed. Commit everything, and make sure `npm test` still passes.+8. **A bug fix.** Reproduce the malformed-percent bug in `capstone/intermediate-bug.md`. A link such as `[broken](bad%.md)` crashes the checker instead of producing its normal broken-link report. Use your setup to diagnose and repair it. Malformed percent escapes are broken links; valid percent-encoded paths must still resolve. Add a regression test that fails before the repair and passes after it, and keep `samples/` unchanged. Commit the source fix and its regression test together.++Then, in a session in auto mode ([Permission modes](https://code.claude.com/docs/en/permission-modes)), try each part: run the skill by name, ask Claude to edit a file in `samples/` with its Edit tool, delegate a review, approve the MCP server and use one of its tools. Pick the model and effort for each job as [lesson 3](03-model-and-effort.md) showed. Commit everything, and make sure `npm test` still passes.## Check@@ -40,6 +42,7 @@ You are done when all of these are true:- [ ] The committed `.claude/settings.json` turns the sandbox on, and `.claude/settings.local.json` stays out of git.- [ ] A committed `CLAUDE.md` imports a file with `@path`, and the file exists.- [ ] A committed rule in `.claude/rules/` is scoped with `paths:`, and every scoped rule matches a file in the repository.+- [ ] The committed CLI reports malformed percent escapes as broken links, continues checking later links and still resolves valid encoded paths.- [ ] `npm test` passes, and `git status --porcelain` prints nothing.Run `npm run check -- i-capstone` in your practice copy. Each item that fails prints what to fix.@@ -62,6 +65,6 @@ If this level helped, a star helps other developers find the guide.----<sub>Sources: [Advanced setup](https://code.claude.com/docs/en/setup) · the [Intermediate lessons](README.md), which cite the official pages for each step.</sub>+<sub>Sources: [Advanced setup](https://code.claude.com/docs/en/setup) · [Permission modes](https://code.claude.com/docs/en/permission-modes) · the [Intermediate lessons](README.md), which cite the official pages for each step.</sub><sub>← [Install and manage plugins](08-plugins.md) · [Intermediate index](README.md) · [Advanced index](../advanced/README.md) → · [Stuck on this capstone?](https://github.com/wesammustafa/Claude-Code-Everything-You-Need-to-Know/issues/new?template=lesson-feedback.yml&lesson=i-capstone)</sub>diff --git a/examples/intermediate/01-first-skill/dot-claude/skills/tdd/SKILL.md b/examples/intermediate/01-first-skill/dot-claude/skills/tdd/SKILL.mdindex 4add926..06e918e 100644--- a/examples/intermediate/01-first-skill/dot-claude/skills/tdd/SKILL.md+++ b/examples/intermediate/01-first-skill/dot-claude/skills/tdd/SKILL.md@@ -1,7 +1,7 @@---# What: a project skill that builds a feature test-first. Unfinished on purpose: lesson 1's Your turn has you finish it.# Runs: when you type /tdd <feature>. Once finished, also when Claude matches your request to the description.-# Side effects: Claude edits code and tests and runs your test command, with your usual permission prompts.+# Side effects: Claude edits code and tests and runs your test command, under your session's permission settings.# Requires: Claude Code and a project with a test command. Platforms: any.# Remove: delete .claude/skills/tdd/.# Tested in Claude Code v2.1.285 (stable) on macOS, 2026-10-06