Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsBlogPro
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges
  • Chrome Extension
  • Skill Manager

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Claude Code

ASecurity

Claude Code (the CLI) reference. Use for .claude/settings.json / settings.local.json, hooks (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, etc.), slash commands, agents, MCP servers in .mcp.json, plugins and marketplaces, ANTHROPIC_* / CLAUDE_* env vars, permission modes, the ~/.claude/ layout, or "what does <feature> in Claude Code do". Skip: Messages API (use anthropic-api), Agent SDK (use claude-agent-sdk), MCP spec (use mcp-spec), general shell/git/programming.

17 stars
0 votes
0 copies
0 views
Added 9/30/2026
ai-agentsgoshellbashdebugginggitapi

Works with

claude codecliapimcp

Security Analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned 9/30/2026

$npx -y skills add xiaolai/anthropic-docs --skill claude-code --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Claude Code?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Claude Code
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/xiaolai-claude-code/badge)](https://www.skillsdirectory.com/skills/xiaolai-claude-code)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
Files
SKILL.md
---
name: claude-code
description: |
  Claude Code (the CLI) reference. Use for .claude/settings.json /
  settings.local.json, hooks (PreToolUse, PostToolUse, Stop, SubagentStop,
  SessionStart, etc.), slash commands, agents, MCP servers in .mcp.json,
  plugins and marketplaces, ANTHROPIC_* / CLAUDE_* env vars, permission
  modes, the ~/.claude/ layout, or "what does <feature> in Claude Code
  do". Skip: Messages API (use anthropic-api), Agent SDK (use
  claude-agent-sdk), MCP spec (use mcp-spec), general
  shell/git/programming.
user-invocable: true
---

# Claude Code Reference — Router

| Field | Value |
|---|---|
| **Claude Code version** | v2.1.160 _(pinned in CI; updated by pipeline)_ |
| **Source docs** | [code.claude.com/docs](https://code.claude.com/docs/en/overview.md) |
| **GitHub** | [anthropics/claude-code](https://github.com/anthropics/claude-code) |
| **npm** | [`@anthropic-ai/claude-code`](https://www.npmjs.com/package/@anthropic-ai/claude-code) |

> **This skill is auto-updated daily.** A matrix pipeline reads
> the upstream docs and rewrites the per-surface files below. Section
> structure is stable; content drifts to track upstream.

## When to use

Router skill for Claude Code (the CLI tool itself). Contains intent
hints and a dispatch table that maps a user's question to the
surface-specific deep-reference file Claude should Read next.

Use when the user asks about Claude Code internals: editing
.claude/settings.json or settings.local.json, authoring or debugging
hooks (PreToolUse, PostToolUse, Stop, SubagentStop, Notification,
UserPromptSubmit, PreCompact, SessionStart, SessionEnd, etc.),
writing slash commands or agents, configuring MCP servers in
.mcp.json, building plugins or marketplaces, setting ANTHROPIC_* /
CLAUDE_* env vars, troubleshooting permission modes, understanding
the ~/.claude/ directory layout, or asking "what does <feature> in
Claude Code do".

Skip: questions about the Anthropic Messages API (use anthropic-api),
the Claude Agent SDK (use claude-agent-sdk), the MCP protocol spec
(use mcp-spec), or general shell / git / programming topics not
specific to Claude Code internals.

## Dispatch table

Read the surface file(s) matching the user's question. Each surface
file holds its complete reference for that one topic and cross-links
(via markdown links) to siblings when a fact spans surfaces — so you
only need to Read the matching file(s), not all of them.

| Surface file | Read when the user asks about… |
|---|---|
| [`SKILL-settings.md`](SKILL-settings.md) | `settings.json`, `settings.local.json`, project vs user vs local scope, settings keys / defaults / types |
| [`SKILL-hooks.md`](SKILL-hooks.md) | hook events (PreToolUse, PostToolUse, Stop, SubagentStop, Notification, UserPromptSubmit, PreCompact, SessionStart, SessionEnd), hook input/output JSON shapes, matchers, blocking vs non-blocking |
| [`SKILL-slash-commands.md`](SKILL-slash-commands.md) | slash command authoring, frontmatter schema, argument syntax, `$ARGUMENTS`, command discovery paths |
| [`SKILL-mcp.md`](SKILL-mcp.md) | `.mcp.json` schema, MCP transports (stdio / http / sse), server config, MCP tool naming, `mcp__` prefix |
| [`SKILL-plugins.md`](SKILL-plugins.md) | plugin manifest (`.claude-plugin/plugin.json`), marketplaces (`marketplace.json`), plugin install / scope, plugin commands / agents / skills / hooks, CLI hint protocol (`<claude-code-hint />`) for recommending plugins from third-party CLIs |
| [`SKILL-cli.md`](SKILL-cli.md) | CLI flags, subcommands, env vars (ANTHROPIC_* / CLAUDE_*), permission modes (`default` / `acceptEdits` / `plan` / `bypassPermissions`), `~/.claude/` directory layout, IDE integrations, session management (resume, naming, branching, picker, transcript storage), sandbox environments and isolation approaches (sandboxed Bash tool, sandbox runtime, dev containers, VMs) |
| [`SKILL-known-issues.md`](SKILL-known-issues.md) | a user reports a bug, asks about a workaround, mentions an error message, or asks "why does X not work" |

## When unsure which file to read

1. If the user mentions a specific file path (e.g., `.mcp.json`, `settings.json`, `plugin.json`), read the matching surface file.
2. If the user mentions an error message or unexpected behavior, read `SKILL-known-issues.md` first.
3. If the question spans multiple surfaces (e.g., "how do hooks and plugins interact"), read both surface files.
4. If still unclear, prefer reading `SKILL-cli.md` — it's the broadest catch-all surface.

## Auto-correction rules

Path-scoped correction rules live in `rules/`:

| Rule file | Triggers on edits to |
|---|---|
| `rules/settings.md` | `**/.claude/settings.json`, `**/.claude/settings.local.json` |
| `rules/mcp.md` | `**/.mcp.json` |
| `rules/plugins.md` | `**/.claude-plugin/plugin.json`, `**/marketplace.json` |
| `rules/hooks.md` | `**/.claude/hooks/**` |
| `rules/skills-agents-commands.md` | `**/.claude/skills/**/SKILL.md`, `**/.claude/agents/**`, `**/.claude/commands/**` |

## Examples

<example>
Context: A developer is writing a hook.
user: "What JSON does a PreToolUse hook receive, and how does it deny a tool call?"
assistant: Uses claude-code and reads the hooks surface for the input schema and the deny decision.
</example>

<example>
Context: A developer is writing an MCP server from scratch.
user: "How does the initialize handshake negotiate capabilities?"
assistant: Routes to mcp-spec instead; the protocol itself is outside Claude Code.
</example>

---

*This skill is auto-updated daily by a maintainer-run pipeline. If you
spot a bug in this content, file an issue at
[xiaolai/anthropic-docs](https://github.com/xiaolai/anthropic-docs) —
SKILL.md fixes flow back through the next research run, not via PRs.*

Attribution

xiaolaixiaolai
View sourceSee grades on GitHubMore from xiaolai →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Terse caveman voice: answer first, fluff gone, every technical fact kept. Use for /caveman, "caveman mode", "talk like caveman", "be brief", "less tokens". Stays on until "stop caveman" or "normal mode".

1100021 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

698621 votes

Writing Skills

Create and manage Claude Code skills in HASH repository following Anthropic best practices. Use when creating new skills, modifying skill-rules.json, understanding trigger patterns, working with hooks, debugging skill activation, or implementing progressive disclosure. Covers skill structure, YAML frontmatter, trigger types (keywords, intent patterns), UserPromptSubmit hook, and the 500-line rule. Includes validation and debugging with SKILL_DEBUG. Examples include rust-error-stack, cargo-dep...

3931 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3421 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Amp, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Grok Build, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

741 votes
View all in ai-agents →