claude@cli:~/docs$ cat claude-code.md

Claude Code: How Do Skills Work?

# Skills represent a fundamentally different approach to extending Claude Code.

author: words: 8088 read_time: 40m updated: 2026-12-01 00:00

Part 3 of New to Claude Code

Skills represent a fundamentally different approach to extending Claude Code.

Last updated: 2026-12-01 · 40 min read · 8K+ words

$ less claude-code.md

Skills represent a fundamentally different approach to extending Claude Code. Claude loads a skill on its own when the conversation calls for it, and you can run the same skill yourself by typing /skill-name.336 You embed domain expertise into a skill, and Claude draws on that expertise whenever the situation calls for it, without you needing to remember to ask.

Custom commands have been merged into skills: a file at .claude/commands/deploy.md and a skill at .claude/skills/deploy/SKILL.md both create /deploy and work the same way. Existing command files keep working. Skills add a directory for supporting files and frontmatter that controls whether you, Claude, or both can invoke them.336

Why skills change everything: Consider domain expertise: the payment processing rules, the compliance requirements, the architectural patterns your team has refined over years. Without skills, you either re-explain this context every session or hope Claude infers it from code comments. With skills, you encode it once. Claude reads the skill definition and applies that expertise automatically whenever relevant. Your junior developers get senior-level guidance without asking. Your security patterns get applied without remembering to invoke them.

What matters is who starts it. A skill that only you can invoke is a shortcut you have to remember to use. A skill Claude can load is knowledge Claude always has available. When you create a security review skill with your team’s specific vulnerability patterns and compliance requirements, Claude applies that expertise whenever it encounters relevant code, whether during PR reviews, refactoring, or any task where security matters. You don’t have to type /security-review, though you still can; Claude recognizes the context and applies the skill automatically.

Skills vs Commands vs Subagents

Understanding when to use each extension mechanism prevents duplication and maximizes effectiveness:

Aspect Command files (.claude/commands/) Skills Subagents
Invocation You (/name) or Claude, same as a skill You (/name) or Claude, set by frontmatter Explicit or auto-delegated
Trigger You type the name, or Claude recognizes context Claude recognizes context, or you type the name Task requires delegation
Structure Single markdown file Directory with resources Markdown with frontmatter
Context Main conversation Main conversation Separate context window
Complexity Simple prompts Multi-file capabilities Full agent personality
Best for Explicit actions Domain expertise Complex task delegation

Set disable-model-invocation: true when only you should start the skill: /deploy, /commit, anything with side effects whose timing you want to control. Claude will not load it on its own.

Set user-invocable: false when the skill is background knowledge only Claude should load: Claude Code hides it from the / menu and does not run it when you type the name. Leave both fields unset for a skill either of you may start, such as security patterns, code style rules, or domain knowledge.336

Use subagents when tasks need isolation: background exploration, parallel analysis, specialized reasoning that shouldn’t pollute your main conversation.

Skill Structure and Location

Skills live in dedicated directories containing a required SKILL.md file plus optional supporting resources:

Personal skills (available across all your projects):

~/.claude/skills/
├── code-reviewer/
│   ├── SKILL.md
│   ├── SECURITY_PATTERNS.md
│   └── PERFORMANCE_CHECKLIST.md
├── sql-analyst/
│   ├── SKILL.md
│   └── QUERY_PATTERNS.md
└── api-designer/
    └── SKILL.md

Project skills (shared with team via git):

.claude/skills/
├── domain-expert/
│   ├── SKILL.md
│   ├── BUSINESS_RULES.md
│   └── DATA_MODELS.md
└── deployment/
    ├── SKILL.md
    └── RUNBOOKS.md

Project skills commit to version control. When teammates pull, they get your skills automatically, with no installation, no configuration. Automatic distribution standardizes expertise across a team.

A third source arrived in v2.1.275: the skills enabled on your claude.ai account sync into terminal sessions signed in with that account, and so do your claude.ai plugins. Opt out with syncClaudeAiSkills: false (plugins: syncClaudeAiPlugins: false). Synced skills stay account-owned – editing a file in the synced account-skills folder changes the local copy only, and the Write/Edit result says the change is not saved to your account and how to save it.215

A fourth source is in public beta: an MCP server can provide skills, which appear in the / menu as server:skill (release notes: v2.1.332; MCP docs: v2.1.331 or later). See Skills from MCP servers in the MCP section for approvals, scanning, and where they work.527533

The anthropic-skills name is reserved (v2.1.282). Synced skills live in the anthropic-skills namespace, so outside a plugin a skill folder, command file, or saved workflow named anthropic-skills or anthropic-skills:<name> does not load, and a startup notice names the first item to rename. A plugin with that name still loads, but a synced skill wins a name tie under /anthropic-skills:<name>. An MCP server with that name keeps its tools but lists no skills or prompts until you rename it. Skill(anthropic-skills:*) allow rules cover only skills synced from claude.ai. To approve one synced skill without a prompt, the skills docs give Skill(anthropic-skills:pdf), and Skill(anthropic-skills *) for every synced skill.433 The name claude-ai is not reserved: items with that name load (v2.1.283+).222223224

SKILL.md Format

A skill is a SKILL.md file. YAML frontmatter is optional, and description is the one field worth always writing:336

---
name: code-reviewer
description: Review code for security vulnerabilities, performance issues, and best practice violations. Use when examining code changes, reviewing PRs, analyzing code quality, or when asked to review or audit code.
allowed-tools: Bash(git diff *) Bash(git log *)
---

# Code Review Expertise

## Security Analysis

When reviewing code, check for:

### Input Validation

- All user input sanitized before use
- Parameterized queries for database operations
- Output encoding for rendered content

### Authentication & Authorization

- Session tokens properly validated
- Permission checks before sensitive operations
- No hardcoded credentials or API keys

### Data Exposure

- Sensitive data not logged
- PII properly masked in error messages
- API responses don't leak internal details

## Performance Patterns

### Database

- N+1 query detection
- Missing indexes on filtered columns
- Unbounded result sets

### Memory

- Large object lifecycle management
- Stream processing for big files
- Connection pool exhaustion risks

## Review Output Format

For each finding:

- **File**: path/to/file.ts:123
- **Severity**: Critical | High | Medium | Low
- **Category**: Security | Performance | Maintainability
- **Issue**: Clear description of the problem
- **Recommendation**: Specific fix with code example
- **Rationale**: Why this matters

See [SECURITY_PATTERNS.md](SECURITY_PATTERNS.md) for detailed vulnerability patterns.
See [PERFORMANCE_CHECKLIST.md](PERFORMANCE_CHECKLIST.md) for optimization guidelines.

Frontmatter Reference

Field Required Constraints Purpose
name No Defaults to the directory name The command name shown in the / menu336
description Recommended The skill listing shows the first 1,536 characters of description plus when_to_use Discovery trigger: Claude uses this to decide when to apply the skill. If omitted, the first non-empty line of the body is used336
when_to_use No Counts toward the 1,536-character cap Extra trigger phrases or example requests, appended to description in the skill listing
argument-hint No Free text, such as [issue-number] Hint shown during autocomplete for the arguments the skill expects
arguments No Space-separated string or YAML list Named positional arguments for $name substitution in the skill body
disable-model-invocation No true / false (default false) true stops Claude loading the skill on its own; you start it with /name
user-invocable No true / false (default true) false hides the skill from the / menu so that only Claude invokes it
allowed-tools No Space- or comma-separated string, or YAML list Tools Claude can use without asking during the turn that invokes the skill. It does not restrict other tools336
disallowed-tools No Space- or comma-separated string, or YAML list Tools removed from Claude’s available pool while the skill is active; the restriction clears at your next message336
context No fork Run the skill in a forked subagent context (v2.1.0+).434 As of v2.1.218, context: fork skills run in the background by default; in claude -p and the Agent SDK, Claude Code waits for the result instead.192503
agent No A subagent type Which subagent type runs the skill when context: fork is set
background No true / false Opt a context: fork skill out of background execution: background: false keeps it running in the foreground. Only meaningful with context: fork, where background is the default (v2.1.218+).192
model No Model alias or ID, or inherit Model for the turn when you run the skill yourself with /name; inherit keeps the active model. When Claude runs the skill, the session keeps its model, and the same happens when your organization blocks the value, a plan-mode upgrade is active, or auto mode’s classifier is on and does not support it. With context: fork, the value is the forked subagent’s model. Honored in interactive sessions (v2.1.259+)208548
effort No low / medium / high / xhigh / max Run the skill’s turn at a specific effort level (v2.1.80+). It is honored on models whose default effort is pinned (Opus 4.7, Opus 4.8, Fable 5), in custom commands and subagents too (v2.1.267+)213
hooks No Hooks configuration Hooks that Claude Code registers when the skill is invoked and keeps for the rest of the session
paths No Comma-separated string or YAML list of glob patterns Claude loads the skill automatically only when working with files that match
shell No bash (default) or powershell Shell that runs the skill’s inline shell commands

Every field is optional, and Claude Code ignores a field it does not recognize without reporting an error. It also accepts metadata, license, and compatibility without acting on them. Skills uploaded to claude.ai or sent through the Skills API accept only name, description, license, compatibility, metadata, and allowed-tools; any other field fails the upload with an unexpected-key error.336

String Substitutions (v2.1.9+): Skills can access session context using ${CLAUDE_SESSION_ID} substitution. Useful for logging, tracking, or generating session-specific outputs.43

The description field is critical. Claude discovers skills by matching your requests against skill descriptions. A vague description means Claude won’t recognize when to use the skill. A specific description with clear trigger conditions means reliable activation.

Poor description:

description: Helps with code

Effective description:

description: Review code for security vulnerabilities, performance issues, and best practice violations. Use when examining code changes, reviewing PRs, analyzing code quality, or when asked to review, audit, or check code.

The effective description includes:

  • What the skill does (review code for specific issues)
  • When to use it (examining changes, PRs, quality analysis)
  • Trigger phrases (review, audit, check)

Pre-approving and Removing Tools

allowed-tools pre-approves the listed tools for the turn that invokes the skill, so Claude can use them without asking. The grant clears when you send your next message. It does not restrict anything: every other tool stays callable, and your permission settings still govern the tools you did not list. Workspace trust does not gate the field, so review the allowed-tools of skills checked into a repository before you run Claude Code there.336

To take tools away while a skill is active, list them in disallowed-tools:

---
name: security-auditor
description: Audit code for security vulnerabilities without making changes
disallowed-tools: Edit, Write, NotebookEdit, Bash
---

With this configuration, Claude cannot call the file-editing tools or Bash while the skill is active. Tools you did not list stay available, and the restriction clears when you send your next message, so it guards one skill’s turn and not the whole session. To block a tool across every skill and prompt, add a deny rule to your permission settings.336

Intent Where to set it Example
Run these without asking allowed-tools Bash(git log *) Bash(git diff *)
Never use these while the skill is active disallowed-tools Edit, Write, NotebookEdit, Bash
Remove a tool in every skill and prompt A deny rule in your permission settings that names the tool WebFetch
Refuse a command as written, in every skill and prompt A deny rule in your permission settings with a Bash pattern Bash(git push *)

A deny rule that names a tool removes that tool from Claude’s context. A Bash pattern matches the command text instead: Bash(git push *) refuses commands that begin with git push and does not match a push written another way, such as git -C <dir> push, so it is not a security boundary around git.504

Supporting Files

Skills can include multiple files. Claude reads the main SKILL.md on activation, then accesses supporting files as needed, providing progressive disclosure that manages context efficiently.

Structure pattern:

my-skill/
├── SKILL.md           # Required: overview + quick reference
├── DETAILED_GUIDE.md  # Deep documentation
├── EXAMPLES.md        # Concrete examples
├── PATTERNS.md        # Reference patterns
├── templates/         # Reusable templates
│   └── component.tsx
└── scripts/           # Helper utilities
    └── validate.py

Reference supporting files from SKILL.md:

For detailed security patterns, see [SECURITY_PATTERNS.md](SECURITY_PATTERNS.md).

Use this template for new components:
[templates/component.tsx](templates/component.tsx)

Validate configurations with:
```bash
python ${CLAUDE_SKILL_DIR}/scripts/validate.py config.json
```

A command from a skill runs in the session’s working directory, not in the skill folder. ${CLAUDE_SKILL_DIR} expands to the directory that holds SKILL.md, so the bundled script resolves wherever the skill is installed.503

Expert tip: Put essential information in SKILL.md directly. Reserve supporting files for deep reference material. Claude reads SKILL.md immediately but only accesses supporting files when needed. If critical information is buried in a supporting file, Claude might not find it.

Complete Example: Domain Expert Skill

Here’s a production-quality skill for a fintech application:

Directory structure:

.claude/skills/payments-domain/
├── SKILL.md
├── BUSINESS_RULES.md
├── COMPLIANCE.md
└── DATA_MODELS.md

SKILL.md:

---
name: payments-domain
description: Expert knowledge of payment processing domain including transaction flows, compliance requirements, and business rules. Use when working with payment code, transaction handling, refunds, disputes, or financial calculations.
---

# Payments Domain Expertise

## Core Concepts

### Transaction States
```
PENDING → AUTHORIZED → CAPTURED → SETTLED
                    ↘ VOIDED
         AUTHORIZED → DECLINED
CAPTURED → REFUNDED (partial or full)
SETTLED → CHARGEBACK → REPRESENTED
```

### Money Handling Rules

- ALL monetary values stored as integers (cents, not dollars)
- Currency always explicitly tracked (never assume USD)
- Rounding: HALF_EVEN for calculations, HALF_UP for display
- Never use floating point for money

### Idempotency Requirements
Every payment operation MUST be idempotent:
```typescript
// Required pattern
async function processPayment(idempotencyKey: string, amount: number) {
  const existing = await findByIdempotencyKey(idempotencyKey);
  if (existing) return existing; // Return cached result

  const result = await executePayment(amount);
  await storeWithIdempotencyKey(idempotencyKey, result);
  return result;
}
```

## Quick Reference

### Fee Calculations

- Interchange: 1.5% + $0.10 (debit), 2.1% + $0.10 (credit)
- Platform fee: 2.9% + $0.30 (standard), 2.2% + $0.30 (enterprise)
- International: +1% cross-border fee
- Currency conversion: mid-market rate + 1%

### Compliance Thresholds

- $3,000: Enhanced due diligence trigger
- $10,000: CTR filing required
- $25,000: Additional verification required

### Refund Windows

- Full refund: 120 days from capture
- Partial refund: 180 days from capture
- Chargeback window: 120 days (Visa), 180 days (Mastercard)

## Key Files

- `src/payments/processor.ts` - Core payment logic
- `src/payments/refunds.ts` - Refund handling
- `src/compliance/aml.ts` - AML checks
- `src/models/transaction.ts` - Transaction model

See `BUSINESS_RULES.md` for detailed business logic.
See `COMPLIANCE.md` for regulatory requirements.
See `DATA_MODELS.md` for schema documentation.

With this skill in place, Claude automatically applies payments domain expertise when you work on transaction code, ask about refund logic, or debug payment flows. You don’t invoke anything; the expertise is just there.

Creating Effective Skills

Start with the description. Write the description first, then build the skill content to match. The description determines when Claude uses the skill, so get it right:

  1. State what the skill provides
  2. List specific trigger conditions
  3. Include relevant keywords and phrases

Keep skills focused. One skill covers one domain or capability:

Good (focused) Bad (too broad)
security-auditor code-helper
react-patterns frontend-stuff
postgres-optimization database-expert
api-documentation docs-generator

If a skill tries to cover too much, its description becomes vague, and Claude won’t reliably recognize when to use it.

Use progressive disclosure. Put the most important information in SKILL.md directly. Reference supporting files for depth:

## Quick Reference
[Essential patterns here - Claude sees this immediately]

## Deep Dive
For full coverage, see [DETAILED_GUIDE.md](DETAILED_GUIDE.md).

Include concrete examples. Abstract descriptions are less useful than concrete patterns:

## Input Validation

### Pattern
```typescript
// Good: Explicit validation with typed errors
const validated = PaymentSchema.safeParse(input);
if (!validated.success) {
  throw new ValidationError(validated.error.issues);
}

// Bad: Implicit coercion
const amount = Number(input.amount); // Silent NaN on invalid input
```

Test with realistic requests. After creating a skill, test whether Claude activates it:

> Review this payment processing code for issues
# Should activate payments-domain skill

> How should I handle refunds?
# Should activate payments-domain skill

> What's the weather like?
# Should NOT activate payments-domain skill

If Claude doesn’t activate the skill when expected, revise the description to include the trigger phrases you’re using.

Team Sharing Strategies

Git-based sharing (recommended for project skills):

# Add skill to project
mkdir -p .claude/skills/team-standard
# Create SKILL.md and supporting files

# Commit
git add .claude/skills/
git commit -m "Add team coding standards skill"
git push

# Teammates get it automatically
git pull
claude  # Skill now available

Cross-project sharing via symlinks:

# Create canonical skill location
mkdir -p ~/shared-skills/security-reviewer
# Create SKILL.md

# Symlink into projects
ln -s ~/shared-skills/security-reviewer ~/.claude/skills/security-reviewer
# Now available in all your projects

Plugin distribution: For broader distribution, package skills into plugins:

my-plugin/
├── .claude-plugin/
│   └── plugin.json
└── skills/
    └── my-skill/
        └── SKILL.md

Skills bundled in plugins become available when users install the plugin.

Skills housekeeping (v2.1.304-309). Compaction sends Claude the skill list again afterwards, and /reload-skills sends only new or changed skills. The skills of one source, a repository, your own folder, or a plugin, can register at most 1,024 hooks and 16,384 matcher characters per session, and a skill’s once hook no longer removes another skill’s identical hook. Under a policy that allows hooks from plugins only, a skill used in the main conversation whose hooks are kept out no longer gets its allowed-tools (all v2.1.304). A skill in an --add-dir folder whose name another skill already holds is offered as <folder>:<name> (v2.1.309).275276

Skills changes (v2.1.323 to v2.1.332). Scheduled tasks and /loop ask before running a skill that declares allowed-tools or hooks; add Skill(name) to permissions.allow to run it unattended (v2.1.325). A skill’s inline git commands stop in bare-repository worktrees and similar folders until you allow them, outside auto mode and bypass (v2.1.323). .claude/skills folders in --plugin-dir plugins no longer load from a session started above them, so start Claude Code in the plugin folder (v2.1.325). A skill Claude runs with a model setting, other than a context: fork skill, leaves subagents, forks, compaction, and /recap on the session’s model (v2.1.330). On Macs with computer use on, computer-use is a reserved skill name: your own skill or command of that name stops loading, and a start-up notice says to rename it (v2.1.332). To log or refuse the shell commands a skill runs while it loads, use the PreSkillShellCommand hook event (v2.1.332; see Hook Input/Output Protocol).527529

Debugging Skills

Skill not activating:

1. Check the description matches your request:

# If you're saying "check this code" but description says "review"
description: Review OR check code for issues...

2. Verify file location:

# Personal
ls ~/.claude/skills/my-skill/SKILL.md

# Project
ls .claude/skills/my-skill/SKILL.md

3. Validate YAML frontmatter:

  • First line must be exactly ---
  • Closing --- before markdown content
  • No tabs in YAML (use spaces)
  • Field names match the reference exactly; Claude Code ignores a field it does not recognize without reporting an error

4. Run in debug mode and read the log. --debug prints nothing to the terminal; when a skill’s frontmatter is malformed, the parse error is in the log file:433

claude --debug
# Then read ~/.claude/debug/<session-id>.txt

5. Validate the skills folder (v2.1.233+), which finds SKILL.md files whose frontmatter does not parse:433

claude plugin validate .claude/skills      # project skills
claude plugin validate ~/.claude/skills    # personal skills

Skill activating unexpectedly:

Narrow the description. If your skill activates when it shouldn’t, the description is too broad:

# Too broad - activates on any "code" mention
description: Help with code

# Specific - activates only for security contexts
description: Audit code for security vulnerabilities including injection attacks, authentication flaws, and data exposure. Use when specifically asked about security, vulnerabilities, or when reviewing code for security issues.

Supporting files not found:

  • Link a supporting file by its path from the skill folder, as in [reference.md](reference.md); in a command, reach a bundled script through ${CLAUDE_SKILL_DIR}, because commands run in the session’s working directory503
  • Forward slashes only (even on Windows)435
  • Check file actually exists: ls .claude/skills/my-skill/REFERENCED.md

When to Create a Skill

Create a skill when:

  • Claude should pick up domain expertise on its own when a task calls for it
  • Multiple team members need the same knowledge
  • You’re repeatedly explaining the same patterns or rules
  • The context should load without you typing a command
  • Knowledge spans multiple files and needs organization

Don’t create a skill when:

  • The task needs separate context (use subagent)
  • It’s a one-off prompt (just type it)

Wanting explicit control over invocation is not a reason to avoid a skill: keep it a skill and set disable-model-invocation: true. A single template works as a skill too, and an existing file in .claude/commands/ keeps working.336

Expert tip: If you find yourself repeatedly typing /security-review before working on auth code, let Claude load it: write a description that names the auth work it applies to and leave disable-model-invocation unset. Make the expertise ambient, not explicitly invoked.

References


  1. Claude Code CHANGELOG, section 2.1.9, fetched November 11, 2026: “Added support for PreToolUse hooks to return additionalContext to the model”; “Added ${CLAUDE_SESSION_ID} string substitution for skills to access the current session ID”; “Added auto:N syntax for configuring the MCP tool search auto-enable threshold, where N is the context window percentage (0-100)”; “Added plansDirectory setting to customize where plan files are stored”. ↩

  2. Claude Code CHANGELOG, v2.1.218 entry. July 2026. v2.1.218: /code-review runs as a background subagent so review work no longer fills the conversation, with stacked slash commands remaining its review target; skills with context: fork run in the background by default, with per-skill opt-out via the new background: false frontmatter key; the dangerous-rm, background-&, and suspicious-Windows-path checks no longer open permission dialogs (the auto-mode classifier adjudicates them), and plan mode with auto no longer prompts for Bash commands the static analyzer can’t prove read-only; agent frontmatter hooks require the agent file’s own folder to have accepted workspace trust before running; /deep-research starts only when invoked manually. Plus: left-arrow discard confirmation and Esc-returns-from-agent-view; benign server-managed feature/cost toggles skip the settings-approval prompt; agent names with : rejected; yes/no/on/off/1/0 accepted for skill and plugin frontmatter booleans; trust dialogs name the repository root; improved sandbox restrictions for IDE interactions; Ctrl+B background-shell caps; Bedrock ARN spend metering; fork-session lineage after compaction in headless/SDK sessions; Windows \u-path corruption fix; remote-session zombie-heartbeat fix. Fetched July 24, 2026, when v2.1.218 (published 2026-07-22T21:24Z) was npm latest. (Attribution correction, July 25, 2026: the claude mcp list//mcp HTTP-status-and-error-text item and the MCP hidden-whitespace warning were originally listed here under v2.1.218; the raw changelog places both in the v2.1.219 entry. Moved to 193.) ↩↩

  3. Claude Code CHANGELOG, v2.1.219 and v2.1.220 entries. July 2026. v2.1.219 (July 24): adds Claude Opus 5 (claude-opus-5) as the new default Opus model, with 1M context, fast mode at $10/$50 per MTok; adds the sandbox.network.strictAllowlist setting to deny non-allowlisted hosts for sandboxed commands without prompting; adds the DirectoryAdded hook, which fires after /add-dir or the SDK register_repo_root control request registers a new working directory mid-session; adds mcp_server_errors to the headless stream-json init event, listing --mcp-config entries skipped by config validation (terminal runs print a startup warning); adds the workflowSizeGuideline settings key so the advisory Dynamic workflow size guideline can be set from any settings file, with the /config row hidden while one does; adds nested subagent forwarding in stream-json, so subagents spawned at depth-2+ appear when --forward-subagent-text is set, keyed by their spawning Agent tool_use id; changes dynamic workflows to default to a medium size guideline (aim for fewer than 15 agents); removes Opus 4.7 from fast mode: /fast now applies to Opus 5 and Opus 4.8; subagents can now spawn nested subagents up to depth 3 by default (was 1); set CLAUDE_CODE_MAX_SUBAGENT_SPAWN_DEPTH=1 to disable nesting; updates the claude-api skill to default to Claude Opus 5 with a migration path from Opus 4.8; adds HTTP status and error text to claude mcp list and /mcp when a server fails to connect, plus a warning for MCP config values with hidden leading or trailing whitespace;

    changes managed MCP allowlist/denylist ${VAR} entries to resolve from the startup environment and managed-settings env instead of settings-file env; adds the current default workflow size to the running-workflow status line; fixes claude -p text output dropping the answer already produced when a turn dies on a mid-stream API error, the Fable row showing a stale “Requires usage credits” label, the /model picker showing the merged Opus row as plain “Opus” instead of “Opus (1M context)”, the new-release highlight covering more than the newest model’s name, GNU screen copy-on-select printing base64, Remote Control clients keeping a stale fast-mode status after a model switch/reconnect/failed org check, CLAUDE_CODE_GIT_BASH_PATH on Windows exiting or being used as bash when the path isn’t a bash/sh binary (now ignored with a warning), Vim mode ← on an empty prompt not returning to the agent view from NORMAL mode, and screen-reader mode rewriting the entire input line on every keystroke; improves the “Remote Control is only available via api.anthropic.com” error to name the setting that caused it and claude --teleport to show which repo the current checkout points at on a mismatch. v2.1.220 (July 25): bug fixes and reliability improvements only, with no user-facing feature, setting, command, or pricing changes. Fetched July 25, 2026. 

  4. Claude Code release notes v2.1.257 and v2.1.258 (both September 1, 2026) and v2.1.259 (September 2, 2026), and the canonical CHANGELOG on September 3, 2026. npm dist-tags that day: latest and next both 2.1.259, stable 2.1.236; npm’s published versions jump from 2.1.252 to 2.1.257 – 2.1.253 through 2.1.256 were never published and have no CHANGELOG sections (the 2.1.244/2.1.249 pattern) – so the 2.1.258 note’s “regression introduced in 2.1.255” refers to an unpublished internal build and v2.1.257 is the first installable release carrying Fable 5.1 support. Source for the v2.1.257 items: Fable 5.1 support with the gateway caveat (in Claude apps gateway sessions the fable and best aliases keep resolving to Fable 5 for now, since a gateway not yet configured for Fable 5.1 rejects it – select it in /model instead); timeFormat/timeZone; the auto-mode “Containment Escape” rule (cloud metadata-credential fetches, egress evasion, and cross-tenant reach not auto-approved unless the environment marks them expected); CLAUDE_CODE_SUBAGENT_MODEL_FORCE; the one-time prompt before the first file read outside the working directories plus permissions.blockReadsOutsideWorkingDirectories; /effort s and the session-scoped --effort; project/local defaultMode: "bypassPermissions" ignored; the managedSourcesBehavior: "merge" refinement (sandbox.credentials.awsPairs and sandbox.ripgrep read whole from the highest source that sets them); Bash Read()/Edit() deny-rule coverage of < file input redirects and reader commands such as tac and egrep; and the network-path refusal (UNC shares, /net/<host> automounts) on --add-dir, /add-dir, and additionalDirectories.

    Source for the v2.1.258 fixes: a macOS 12 launch regression introduced in unpublished 2.1.255, and remote/scheduled sessions failing on requests requiring non-empty content. Source for the v2.1.259 items: managedMcpServers; the allowedMcpServers scope change to user-added servers only; --permission-prompts none (anything that would prompt is denied automatically while the active permission mode keeps deciding); managed settings that fail to parse refusing startup and naming the source; frontmatter model: on custom commands and skills honored in interactive sessions, with auto mode keeping the session model instead of running a turn on an unsupported frontmatter model; claude plugin validate --json; and the option-value/operand extension of Bash Read() deny coverage (--ignore-revs-file=.env, -f.env, @file arguments, git diff/git grep operands, cd DIR && cat FILE compounds, and grep -r/cp -r over a directory holding a denied file now asking). The settings docs do not yet document timeFormat/timeZone or managedMcpServers, and the CLI reference does not yet list --permission-prompts – the CHANGELOG is the source for those as of September 3, 2026. ↩

  5. Claude Code release notes v2.1.266 (September 8, 2026), v2.1.267 (September 9), v2.1.268 (September 10), v2.1.269 (September 11), v2.1.270 (September 12), v2.1.271 (September 14), and v2.1.272 (npm September 14, GitHub release September 15 at 00:42 UTC), and the canonical CHANGELOG on September 15, 2026 – all seven release bodies and their CHANGELOG sections are identical. npm dist-tags on September 15 (~13:15 PT): latest 2.1.272, next 2.1.273, stable 2.1.236; 2.1.273 (published September 15 at 18:06 UTC) has no GitHub release and no CHANGELOG section, so its content is not documented here; and 2.1.263 still carries only “Bug fixes and reliability improvements” – no backfill ever landed. Source for, verbatim where quoted: the /output-style revival (“Added /output-style [name] to list and switch output styles, including over Remote Control and in cloud and other headless sessions”, v2.1.269); claude plugin eval (“run a plugin’s eval suite against Claude Code and get scored, reproducible results (JSON + HTML report)”, v2.1.269); fast mode in Claude Code Remote sessions (“cloud and self-hosted runners: the host’s fast-mode setting or /fast typed in the session applies where your organization allows it”, v2.1.271) and the /fast off fix;

    the maxEffortLevel setting (“top-level or per model under modelSettings: caps the effort level on every provider, including Bedrock, Vertex and Foundry; users can still pick a lower level”, v2.1.267); --system-prompt-snapshot off (v2.1.267); the v2.1.267 prompt-cache stability batch (resumed-session tool-list, tool-description, and MCP-announcement rewrites; /model switches re-sending every tool definition, with attribution text now a conversation note; --system-prompt/--append-system-prompt sessions recording the prompt and tool definitions once; mid-session MCP and plugin tools as deferred definitions); the effort: frontmatter fix on pinned-default-effort models (Opus 4.7, Opus 4.8, Fable 5; v2.1.267); the marketplace backslash containment fix (v2.1.267); the task-tracking allowlist (“Changed the task-tracking tools (TaskCreate/Get/Update/List, TodoWrite) to be offered only on” Claude 3.x, Opus 4.0 to 4.7, Sonnet 4.0 to 4.6 and Haiku 4.5, with “set CLAUDE_CODE_ENABLE_TODO_TOOLS=1 elsewhere”, v2.1.268); the symlinked-directory and env -C/eval deny-rule fixes (v2.1.268); the WebFetch/Artifact rule split (“Changed plain WebFetch deny and ask rules to no longer apply to Artifact tool reads and updates; use an Artifact rule (or WebFetch(domain:claude.ai)) to block or gate them”, v2.1.268); /plugin changes applying on menu close (v2.1.268); the WebFetch 300-second deadline and CLAUDE_CODE_WEBFETCH_DEADLINE_MS (v2.1.268); gatewayInternalNetworks, the empty-allow_cidrs warnings, and the gateway pricing: rate sync (v2.1.268) plus the multiplier above 1 up to 10 (v2.1.271);

    the ${VAR} and git-URL secret-hygiene fixes (v2.1.268); configDirectory in claude auth status --json (v2.1.268); the third-party ANTHROPIC_BASE_URL HTTP-400 regression fix (v2.1.268); bashEditDiffEnabled (v2.1.269); the attribution-reminder fix (“Fixed the attribution reminder overriding a CLAUDE.md or memory rule against commit and pull request attribution; lines set by managed settings still apply”, v2.1.269); the env vars OTEL_METRICS_INCLUDE_REPOSITORY, CLAUDE_CODE_WORKFLOW_MAX_CONCURRENT_AGENTS (1-256), CLAUDE_CODE_GATEWAY_MODEL_DISCOVERY_TIMEOUT_MS (default 3s), and CLAUDE_CODE_BG_TASKS_REPORT_RUNNING (v2.1.269); the v2.1.247 keyboard-regression fix and the kitty-query keyboard support over SSH (v2.1.269); the Edit()/tee, Bash(tee:*), and leading-! scoping fixes (v2.1.269); per-command allowed_domains on Bash, PowerShell, and Monitor in auto mode with sandboxing (v2.1.271); omitClaudeMd agent frontmatter and --agents JSON (v2.1.271); the auto-mode inline-! and subagent hand-back mechanics changes (v2.1.271); claude plugin install/update --accept-command <sha256> (v2.1.271); --resume keeping [1m] across model families (v2.1.271); the fail-closed unreadable managed-mcp.json (v2.1.271); the fmt/column, wildcard-expansion, variable-declaration-flag, and blockReadsOutsideWorkingDirectories checker fixes (v2.1.271); and Markdown artifacts rendering as styled document pages with artifact watches rising to 10 (v2.1.271). v2.1.266 carries one line (the CLAUDE_CODE_USE_GATEWAY regression fix), v2.1.270 one line (the v2.1.269 git-prompting regression fix), and v2.1.272 only “Bug fixes and reliability improvements”. ↩

  6. Claude Code release notes v2.1.274 (published September 17, 2026 at 00:12 UTC, 108 bullets), v2.1.275 (September 17 at 22:33 UTC, 96 bullets), and v2.1.276 (September 18 at 02:12 UTC, one line), and the canonical CHANGELOG on September 17, 2026 – all three release bodies and their CHANGELOG sections are byte-identical. npm dist-tags on September 17 (~22:08 PT): latest and next both 2.1.276, stable 2.1.267. Source for, verbatim where quoted: the claude.ai sync (“Added syncing of the skills and plugins enabled on your claude.ai account to terminal sessions signed in with it; opt out with syncClaudeAiSkills: false or syncClaudeAiPlugins: false”, v2.1.275); the send-now key (“Added a send-now key (ctrl+enter, or ctrl+x ctrl+s) that interrupts the current turn and sends all queued messages at once; sent and queued messages show in gray until the model receives them”, v2.1.275); /plugin install <plugin> --marketplace <source> (“which offers to add the marketplace before installing the plugin”, v2.1.275); the npm plugin-source hardening (“Changed plugins installed from an npm source to be fetched with npm pack --ignore-scripts and integrity-verified, so a package’s install scripts no longer run”, v2.1.275); the synced account-skills Write/Edit results (“they now say the change is not saved to your account and how to save it”, v2.1.275); the tab-icon change (“Changed the Artifact tool to ask for a one-word tab icon on a first publish instead of an emoji favicon”, v2.1.275);

    CLAUDE_CODE_MCP_STARTUP_WAIT_MS (“to bound how long the first non-interactive turn waits for connecting MCP servers (0 = don’t wait)”, v2.1.274); the MCP client default (“Changed Bedrock, Vertex, Foundry and telemetry-disabled installs to use the v2 MCP client and MCP 2026-07-28 negotiation with direct HTTP servers by default, as other installs already do (opt out: MCP_SDK_GENERATION=v1 or MCP_PROTOCOL_NEGOTIATION=legacy)”, v2.1.274); the legacy HTTP+SSE 4xx fix (“Fixed MCP servers configured as http that only speak legacy HTTP+SSE failing to connect when they answer the first request with 422 or another 4xx error”, v2.1.274); the "type": "sdk" skip (“Changed "type": "sdk" MCP entries in .mcp.json, settings, plugins and agent files to be skipped with a warning: only an SDK host application can register in-process servers”, v2.1.274); the naming change (“Changed the /status GitHub line to read "Cloud sessions", and /web-setup, /ultrareview, and teleport messages to say "cloud session" instead of "Claude Code on the web"“, v2.1.274); artifact watching (“Changed artifact watching in local sessions: a new version published elsewhere no longer starts a turn; Claude learns of it from a later Artifact tool result”, v2.1.274); and the v2.1.276 regression fix (“Fixed every request failing with 400 … Input tag 'advisor_20260301' when ANTHROPIC_BASE_URL points at a proxy or gateway (2.1.275 regression)”). ↩

  7. Claude Code v2.1.282 release notes (npm published September 24, 2026 at 15:56 UTC; GitHub release 18:38 UTC; 86 bullets, identical to the 2.1.282 section of the canonical CHANGELOG, fetched September 26, 2026). Source for every v2.1.282 item in this guide. Key quotes: “Changed auto mode to use the server-side classifier by default on a direct Anthropic API connection when telemetry is off (CLAUDE_CODE_AUTO_MODE_SERVER=0 opts out)”; “Changed project and local settings to ignore OpenTelemetry variables that turn on export, set its endpoint, or capture content, like CLAUDE_CODE_ENABLE_TELEMETRY and OTEL_LOG_*”; “Added a maxProseWidth setting that caps the width of Claude’s prose in wide terminals”; “Added the allowClaudeInChromeWithManagedMcp managed setting to let claude --chrome run alongside an exclusive managed-mcp.json”; “Changed sandbox.excludedCommands to ignore project and local settings entries when managed settings or --settings set allowUnsandboxedCommands: false, or managed allowManagedDomainsOnly: true”; “Changed skill folders, command files and workflow commands in the anthropic-skills or claude-ai namespace to no longer load”. ↩

  8. Claude Code v2.1.283 release notes (npm published September 25, 2026 at 18:46 UTC; GitHub release 21:50 UTC; 94 bullets, identical to the 2.1.283 section of the canonical CHANGELOG, fetched September 26, 2026, which runs 2.1.281 to 2.1.283 with no gap). Source for every v2.1.283 item in this guide. npm dist-tags on September 26: latest and next 2.1.283, stable 2.1.274. Key quotes: “Changed interactive sessions on third-party providers or with telemetry off to start in auto mode when no permission mode is configured; permissions.defaultMode still overrides it”; “Added deniedModels managed setting to block specific models, even when availableModels allows them”; “Added /doctor prompt-audit (also /checkup prompt-audit) to audit your CLAUDE.md files, skills, agents and commands for prompting patterns written for older models”; “Added x-claude-code-prompt-id to the gateway hint headers”; “Changed the /model picker’s Opus row and the Default model’s name to drop ‘(1M context)’ where Opus already has a 1M context window”; “Reverted the 2.1.282 reservation of the claude-ai name”. ↩

  9. Claude Code documentation, fetched September 26, 2026. Permission modes: “With Claude Code v2.1.283 or later, auto mode is the built-in starting permission mode for interactive terminal and VS Code sessions on every plan and provider”; claude -p and the Agent SDK start in default; “From v2.1.282, a session that doesn’t fetch feature flags, for example because you turned telemetry off, asks the server by default in any kind of session.” Auto mode classifier billing: “On a direct connection to the Anthropic API, the variable requires Claude Code v2.1.281 or later.” Settings reference: attribution “or false to hide all attribution. The false value requires Claude Code v2.1.281 or later”; maxProseWidth, deniedModels, and availableModelsMatch entries; the OpenTelemetry group under “Variables Claude Code ignores in env”. LLM gateway protocol: “Direct connection to the Anthropic API: sent by default”. Skills: the reserved anthropic-skills name. The settings reference also now documents spinnerTipsOverride’s tipsFile and tip objects (“Tip objects, tipsFile, label, and the Scope line’s rule … require Claude Code v2.1.247 or later”) and the timeFormat and timeZone keys. ↩

  10. Claude Code canonical CHANGELOG, sections 2.1.303 through 2.1.310, fetched October 23, 2026 (17:20 PT), and npm registry metadata for @anthropic-ai/claude-code read at the same time: 2.1.303 published October 18 at 21:15 UTC, 2.1.304 October 19 at 19:47 UTC, 2.1.305 October 20 at 19:29 UTC, 2.1.306 October 21 at 02:28 UTC, 2.1.307 October 21 at 20:47 UTC, 2.1.308 October 22 at 04:19 UTC, 2.1.309 October 22 at 20:34 UTC, 2.1.310 October 23 at 21:20 UTC; dist-tags latest 2.1.310, next 2.1.310, stable 2.1.308. The GitHub releases carry 1, 76, 38, 2, 43, 1, 79, and 26 bullets, identical to the CHANGELOG. Source for every v2.1.303 to v2.1.310 item in this guide.

    Key quotes, 2.1.304: “Added /auto-mode-setup: a guided setup that reads your project and recent sessions to teach auto mode about your environment, now also available on Bedrock, Vertex, Foundry, Claude apps gateway and telemetry-disabled sessions”; “Added decider: "person" to a mod’s tool.check answer: only the permission dialog or a host’s callback can approve the ask, and it is refused with the mod’s reason where nobody can be asked”; “Added a warning on Pro and Max plans when resuming an inactive conversation would use a noticeable share of your 5-hour usage limit”; “Changed tool search to be on by default behind a custom ANTHROPIC_BASE_URL; a 400 or 422 from the gateway is retried without it”; “Changed mods’ settings.read hooks to receive each settings layer and rewrite the merged settings, so a managed mod can make an organization’s setting a ceiling”; “Changed skill hooks: the skills of one source (a repo, your own folder, or a plugin) can register at most 1,024 hooks and 16,384 matcher characters per session”.

    2.1.305: “Added sandbox.allowNestedUserNamespaces so sandboxed commands on Linux can create user namespaces (Chromium, rootless podman); this lets them get around the sandbox’s file protections”; “Added CLAUDE_CODE_RETRY_WATCHDOG_USAGE_LIMIT_RECHECK_MS so unattended retry mode (CLAUDE_CODE_RETRY_WATCHDOG) notices a usage limit that was lifted before its reset”; “Fixed every request failing on Vertex, Bedrock and other providers when the endpoint or a gateway rejects tool search, and behind gateways with ToolSearch disallowed or left out of --tools (a 2.1.304 regression): Claude Code now retries without it”; “Improved /usage: each warning is now a one-line fix that names its source, and f applies the fixes; the same fixes appear in VS Code and /doctor”; “Changed allowedMcpServers to stop filtering managed-mcp.json stdio servers that use ${VAR} only in env: one your allowlist left out now loads on upgrade; use deniedMcpServers to keep it off”.

    2.1.307: “Added /claude-api api-version to move Claude API code to API version 2026-10-21”; “Added the claude_code.safety_event OpenTelemetry event for each tool call a permission rule, auto mode, a safety check, a hook or the sandbox stopped, prompted or sent back”; “Improved fork subagents launched together: each is now told which launch is its own, so forks are much less likely to try to start each other’s work”; “[Code Review] Added @claude review stop (also off and pause) to Code Review, ending an @claude review always subscription on a pull request without starting a new review”. 2.1.309: “Fixed sandboxed Bash commands on macOS and Linux running the shell’s startup files outside the sandbox before each command”; “Changed sed -i to get the standard Bash prompt and run as written, not a simulated file-edit preview; like other Bash edits, it is no longer restored by /rewind”; “Changed claude ultrareview to require workspace trust: it asks on a terminal, else refuses; scripts pass --trust-workspace, which takes no value (put a PR number or base branch before it), or set CLAUDE_CODE_DISABLE_ULTRAREVIEW_TRUST_CHECK=1”; “Fixed sessions compacting repeatedly after reading files under a very large nested CLAUDE.md; a nested CLAUDE.md over the size limit now loads only its start”; “Changed worktree creation and reuse so git no longer fetches objects on demand, in ordinary clones and in partial clones with a Bash sandbox configured; such a partial clone fetches them first”.

    2.1.310: “Added the Monitor tool and plugin monitors on Bedrock, Vertex, and Foundry, and when telemetry or nonessential traffic is disabled; long foreground sleeps are now blocked there too”; “Fixed requests failing behind some gateways and compatible servers that reject the effort-2025-11-24 beta value or mid-conversation system messages; Claude Code now retries without them”; “Linux: Improved /sandbox and the sandbox startup warning to name Ubuntu’s AppArmor restriction on user namespaces, and how to lift it, when it keeps bubblewrap from starting the sandbox”. ↩

  11. Claude Code documentation, fetched October 23, 2026. Now documented: environment variables lists CLAUDE_CODE_RETRY_WATCHDOG_USAGE_LIMIT_RECHECK_MS, CLAUDE_CODE_DISABLE_ULTRAREVIEW_TRUST_CHECK (“Set it in the environment that launches Claude Code, not a settings env”), CLAUDE_CODE_AUTO_COMPACT_WINDOW (“Suffixed values such as 200k require v2.1.304 or later”), and CLAUDE_CODE_AUTO_MODE_MODEL (“Use a full model ID”), and now says CLAUDE_CODE_FORK_SUBAGENT “Controls fork mode, which is on by default”; the settings reference lists sandbox.allowNestedUserNamespaces (“User or managed”); the auto mode configuration page has “Generate environment entries with /auto-mode-setup”; the costs page: “When the /usage footer shows a hint such as f to fix 2 of 3, press f to have Claude Code act on the recommendations it can. The f shortcut requires Claude Code v2.1.305 or later”; slash commands lists /claude-api api-version (“v2.1.307 or later”) and managed-agents-secure [<agent-id>]; monitoring lists safety_event and classifier_verdict (“Requires Claude Code v2.1.301 or later”);

    the ultrareview page documents --trust-workspace (“Takes no value: put a PR number or base branch before it”) and the Error: Workspace not trusted exit; the code review page lists the Quick, Standard, and Deep levels; hooks carries the 1,024-hook and 16,384-character caps; the mods reference stamps e.isReadOnly “v2.1.304 or later”; the sandboxing page carries the Ubuntu AppArmor profile; and the permission modes table now reads “claude -p or the Agent SDK | default”, matching v2.1.302. Still release-notes only: decider: "person", settings.read layers, @claude review stop, the sed -i change, the tool-search default behind a custom base URL, the Pro and Max resume warning, --checkout-hook-timeout-min, multiagent_20261001, CLAUDE_CODE_RETRY_WATCHDOG_MAX_USAGE_LIMIT_WAIT_MS, the Claude Design closing date, and the mod additions $.env.set, virtualText, $.ui.view, and prompt.change; the advisor page still says the tool “is not available on Amazon Bedrock, Claude Platform on AWS, Google Cloud’s Agent Platform, or Microsoft Foundry”. ↩

  12. Extend Claude with skills, Claude Code documentation, fetched November 10, 2026: “Claude uses skills when relevant, or you can invoke one directly with /skill-name”; “Custom commands have been merged into skills. Your existing .claude/commands/ files keep working.” and, in the Glossary, “A file at .claude/commands/deploy.md and one at .claude/skills/deploy/SKILL.md both create /deploy and work the same way; existing command files continue to work.”; “All fields are optional. Only description is recommended”; “the combined description and when_to_use text is truncated at 1,536 characters in the skill listing”; “The allowed-tools field grants permission for the listed tools during the turn that invokes the skill, so Claude can use them without prompting you for approval”; “It does not restrict which tools are available: every tool remains callable, and your permission settings still govern tools that are not listed”; “To remove tools from Claude’s available pool while a skill is active, list them in disallowed-tools in the skill’s frontmatter”; the frontmatter reference table (20 fields, none required) and the “Using skill frontmatter outside Claude Code” table, which limits claude.ai uploads and the Skills API to name, description, license, compatibility, metadata, and allowed-tools. Re-read November 25, 2026; the quotations that had drifted are given in that day’s wording. ↩↩↩↩↩↩↩↩↩↩↩↩

  13. Extend Claude with skills, Claude Code documentation, fetched November 11, 2026: “Skill(anthropic-skills:pdf) approves the synced pdf skill”; “Skill(anthropic-skills *) approves every synced skill”; “Run with --debug to see the parse error”; “claude plugin validate .claude/skills for project skills or claude plugin validate ~/.claude/skills for personal skills. Requires Claude Code v2.1.233 or later.” Hooks reference, same date: “run claude --debug and read the log at ~/.claude/debug/<session-id>.txt. The --debug flag doesn’t print to the terminal.” ↩↩↩

  14. Claude Code CHANGELOG, section 2.1.0, fetched November 11, 2026: “Added support for running skills and slash commands in a forked sub-agent context using context: fork in skill frontmatter”. Extend Claude with skills, Claude Code documentation, same date, frontmatter reference: “Set to fork to run in a forked subagent context.” ↩

  15. Skill authoring best practices, Claude API documentation, fetched November 11, 2026: “Always use forward slashes in file paths, even on Windows”. ↩

  16. Extend Claude with skills, Claude Code documentation, fetched November 11, 2026. On ${CLAUDE_SKILL_DIR}: “The directory containing the skill’s SKILL.md file”; “Use this in bash injection commands to reference scripts or files bundled with the skill, regardless of the current working directory”; “The script path uses ${CLAUDE_SKILL_DIR} so it resolves correctly whether the skill is installed at the personal, project, or plugin level”, in an example that runs python3 ${CLAUDE_SKILL_DIR}/scripts/visualize.py .. On commands: “Claude Code runs each command in the session shell’s current working directory”. On supporting files: “Reference supporting files from SKILL.md so Claude knows what each file contains and when to load it”, with links written as [reference.md](reference.md). On context: fork: “Claude Code also waits for the result, even when the skill doesn’t set background: false, in cases like these”, the first of which is “In non-interactive mode, with the -p flag or the Agent SDK”. ↩↩↩

  17. Configure permissions, Claude Code documentation, fetched November 11, 2026: “A bare tool name like Bash removes the tool from Claude’s context entirely, so Claude never sees it”; “A scoped rule like Bash(rm *) leaves the tool available and blocks matching calls when Claude attempts them”; of a bare WebFetch deny rule, “Claude Code removes the WebFetch tool, so Claude can’t fetch at all”; “refuses commands that begin with git push. A push written another way, such as git -C . push, isn’t matched”; “It doesn’t match the same program invoked in a different form, so a deny or ask rule covers the invocation Claude usually produces and isn’t a security boundary around the program.” Configure auto mode, same date: “A push Claude writes another way, such as git -C <dir> push or git -c <key>=<value> push, doesn’t match the rule”. Extend Claude with skills, same date: “To block tools across all skills and prompts, add deny rules in your permission settings.” ↩

  18. Claude Code CHANGELOG, v2.1.323 through v2.1.332, fetched November 25, 2026 (294, 139, 367, 173, 144, 130, 142, 135, and 150 top-level bullets for 2.1.323, 2.1.325, 2.1.326, 2.1.327, 2.1.328, 2.1.329, 2.1.330, 2.1.331, and 2.1.332; no 2.1.324 section), and the GitHub releases v2.1.323 (2026-11-12T22:12:13Z), v2.1.325 (11-13T20:40:01Z), v2.1.326 (11-16T22:11:05Z), v2.1.327 (11-17T23:17:45Z), v2.1.328 (11-19T01:14:04Z), v2.1.329 (11-19T22:14:41Z), v2.1.330 (11-20T22:32:56Z), v2.1.331 (11-23T21:34:41Z), and v2.1.332 (11-25T01:32:14Z); no v2.1.324 release exists. npm publish times from npm view @anthropic-ai/claude-code time: 2.1.323 2026-11-12T20:29:28Z, 2.1.324 11-13T18:42:36Z, 2.1.325 11-13T20:07:25Z, 2.1.326 11-16T18:43:39Z, 2.1.327 11-17T20:33:19Z, 2.1.328 11-18T23:09:39Z, 2.1.329 11-19T18:40:25Z, 2.1.330 11-20T19:16:01Z, 2.1.331 11-23T18:36:26Z, 2.1.332 11-24T22:06:38Z; dist-tags on 2026-11-25: latest 2.1.332, next 2.1.332, stable 2.1.326. Verbatim, 2.1.332: “Changed the default model on Microsoft Foundry to Sonnet 5.5: deploy claude-sonnet-5-5, or set ANTHROPIC_DEFAULT_SONNET_MODEL to a model you have deployed”; “Changed the sonnet model alias on Google Cloud’s Agent Platform and Microsoft Foundry to Sonnet 5.5, and Foundry’s opus alias to Opus 5.5; sonnet on Amazon Bedrock stays at Sonnet 4.5”; “Added a PreSkillShellCommand hook event that can refuse a skill or command’s inline shell commands as it loads; on 2.1.331 and older, a settings file naming it opens a dialog at start”; “Added skills from MCP servers (beta). They show as server:skill in the / menu; other skills keep their names”; “Changed /schedule, permission prompts and /loop’s cloud offer to say “cloud scheduled task” instead of “routine” or “cloud schedule”; /routines still works”. 2.1.330: “Changed recurring scheduled tasks and /loop to run up to 30 days instead of 7 while their session keeps running, and say when they end; tasks made before this release still end at 7 days”. 2.1.328: “Added auto mode for Claude Opus 4.6 and Sonnet 4.6 on Amazon Bedrock, Google Cloud’s Agent Platform, Microsoft Foundry and Claude apps gateway; interactive sessions with no permission mode start in it”. 2.1.325: “Changed sandboxed Bash commands to follow the normal permission flow by default; set sandbox.autoAllowBashIfSandboxed: true to keep running them without prompts”. 2.1.323: “Added Code Mode, an experimental opt-in in which Claude writes JavaScript to call its tools”; “Removed the subagentStatusLine setting: subagent rows always use the default look, and settings files that still hold the key load as before”; “Changed the context window assumed for a model ID that Claude Code doesn’t recognize from 200K to 1M; use /autocompact to compact earlier, or CLAUDE_CODE_DISABLE_1M_CONTEXT=1 to keep 200K”; “Changed MCP_SDK_GENERATION=v1 to run the v2 MCP client in a compatibility mode (earlier handshake, relaxed OAuth sign-in checks), because the v1 MCP client is removed”. ↩↩

  19. Hooks reference, Claude Code documentation, fetched November 25, 2026 (34 rows in the event table). PreSkillShellCommand: “Runs before an injected command, a shell command that runs while a skill or a command such as /security-review loads. PreToolUse hooks don’t fire for injected commands.”; “Requires Claude Code v2.1.332 or later, including in the desktop app and VS Code extension.”; “an earlier version such as v2.1.331 opens each interactive terminal session with a warning dialog: Unknown hook event "PreSkillShellCommand" was ignored”; “If you configure a prompt or agent hook on this event, Claude Code can’t run it and blocks each command the hook matches.”; “Your script runs after the permission check on injected commands, so it gets the commands that passed. It also runs in bypassPermissions mode.”; “You can block a command from this hook, but you can’t approve or change one.” On failures: “set "onFailure": "block" on a command, http, or mcp_tool hook. Requires Claude Code v2.1.295 or later. On mcp_tool hooks, onFailure requires v2.1.328 or later.” Reusing the script: “You can reuse the blocking script from How a hook resolves.”; “To use one script on both events, leave hookEventName as PreToolUse.”; the script printed under “How a hook resolves” is saved as .claude/hooks/block-rm.sh, and the page adds “install jq and make sure it is on your PATH”. ↩

  20. Connect Claude Code to tools via MCP and Environment variables, Claude Code documentation, fetched November 25, 2026. MCP skills: “MCP skills are in public beta and require Claude Code v2.1.331 or later.”; “A skill’s name is <server>:<skill>.”; “When Claude loads an MCP skill in auto mode, the default, you don’t see a prompt. The classifier decides whether the skill loads, without reading it.”; “When you sign in with /login on a Pro, Max, or Ultra plan, MCP skills are on. With /login on a Team or Enterprise plan, they’re off until your organization turns them on.”; “Anthropic doesn’t scan skills from other connectors or servers, including Directory servers added with claude mcp add.”; “Skills can direct Claude to run code. Servers can change skills at any time. Add only servers you trust.” On add-json: “To pipe the JSON in, pass - in its place: cat server.json | claude mcp add-json <name> -. Run the command outside a Claude Code session. Requires Claude Code v2.1.327 or later.” Environment variables, MCP_SDK_GENERATION: “Pin which MCP client runtime this process connects to MCP servers with: v1, built on MCP TypeScript SDK 1.x, or v2”. ↩

  21. Extend Claude with skills, Claude Code documentation, fetched November 25, 2026, frontmatter reference, model: “Accepts /model values, or inherit for the active model. When Claude runs the skill, the session keeps its model.”; “With context: fork, the value is the forked subagent’s per-invocation model.” ↩