Use when you need the official Claude Code docs: CLI flags, settings.json, hooks reference, MCP config, skills, subagents, slash commands, plugin and marketplace reference, permissions, or the weekly changelog. Not for building a plugin step by step (developing-claude-code-plugins) or editing CLAUDE.md (agent-instructions).
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Working With Claude Code?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/joeblackwaslike-working-with-claude-code)
---
name: working-with-claude-code
description: >-
Use when you need the official Claude Code docs: CLI flags, settings.json, hooks reference, MCP
config, skills, subagents, slash commands, plugin and marketplace reference, permissions, or the
weekly changelog. Not for building a plugin step by step (developing-claude-code-plugins) or
editing CLAUDE.md (agent-instructions).
metadata:
last_updated: "2026-08-12"
---
# Working with Claude Code
## Overview
This skill provides complete, authoritative documentation for Claude Code directly from code.claude.com. Instead of guessing about configuration paths, API structures, or feature capabilities, read the official docs stored in this skill's references directory.
## When to Use
Use this skill when:
- Creating or configuring Claude Code plugins
- Setting up MCP servers
- Working with hooks (pre-commit, session-start, etc.)
- Writing or testing skills
- Configuring Claude Code settings
- Troubleshooting Claude Code issues
- Understanding CLI commands
- Setting up integrations (VS Code, JetBrains, etc.)
- Configuring networking, security, or enterprise features
## Quick Reference
| Task | Read This File |
|------|---------------|
| Create a plugin | `plugins.md` then `plugins-reference.md` |
| Set up MCP server | `mcp.md` |
| Configure hooks | `hooks.md` then `hooks-guide.md` |
| Write a skill | `skills.md` |
| CLI commands | `cli-reference.md` |
| Troubleshoot issues | `troubleshooting.md` |
| General setup | `setup.md` or `quickstart.md` |
| Configuration options | `settings.md` |
| Web-based Claude Code | `claude-code-on-the-web.md` |
| Desktop app | `desktop.md` |
| Chrome extension | `chrome.md` |
| Sandboxing/security | `sandboxing.md` |
| Slack integration | `slack.md` |
| **CLI stream-json control protocol** (live model/effort/mode switching, context-usage breakdown — undocumented, verified empirically) | `howto/stream-json-control-protocol.md` |
| **Agent SDK `billing_error`** (two distinct causes, how to tell them apart) | `howto/agent-sdk-billing-errors.md` |
## Documentation Organization
All documentation is stored as individual markdown files in `references/`. Use the Read tool to access specific documentation:
```
references/
├── overview.md # Claude Code introduction
├── quickstart.md # Getting started guide
├── setup.md # Installation and setup
├── common-workflows.md # Common usage patterns
├── claude-code-on-the-web.md # Web-based Claude Code
├── desktop.md # Desktop application
├── chrome.md # Chrome extension
├── plugins.md # Plugin development
├── plugins-reference.md # Plugin API reference
├── plugin-marketplaces.md # Plugin marketplaces
├── discover-plugins.md # Plugin discovery
├── skills.md # Skill creation
├── mcp.md # MCP server integration
├── hooks.md # Hooks overview
├── hooks-guide.md # Hooks implementation guide
├── slash-commands.md # Slash command reference
├── sub-agents.md # Subagent usage
├── settings.md # Configuration reference
├── cli-reference.md # CLI command reference
├── interactive-mode.md # Interactive mode guide
├── headless.md # Headless mode guide
├── output-styles.md # Output customization
├── statusline.md # Status line configuration
├── memory.md # Memory and context management
├── checkpointing.md # Checkpointing feature
├── sandboxing.md # Sandboxing and security isolation
├── analytics.md # Usage analytics
├── costs.md # Cost tracking
├── monitoring-usage.md # Usage monitoring
├── data-usage.md # Data usage policies
├── security.md # Security features
├── iam.md # IAM integration
├── network-config.md # Network configuration
├── terminal-config.md # Terminal configuration
├── model-config.md # Model configuration
├── llm-gateway.md # LLM gateway setup
├── amazon-bedrock.md # AWS Bedrock integration
├── google-vertex-ai.md # Google Vertex AI integration
├── microsoft-foundry.md # Microsoft Azure AI Foundry
├── vs-code.md # VS Code integration
├── jetbrains.md # JetBrains integration
├── devcontainer.md # Dev container support
├── github-actions.md # GitHub Actions integration
├── gitlab-ci-cd.md # GitLab CI/CD integration
├── slack.md # Slack integration
├── third-party-integrations.md # Other integrations
├── legal-and-compliance.md # Legal information
├── troubleshooting.md # Troubleshooting guide
└── claude-setting-sources-isolation.md # Side-effect-free claude -p from hooks (PM-005)
```
## Workflow
### For Specific Questions
1. Identify the relevant documentation file from the list above
2. Use Read tool to load: `@references/filename.md`
3. Find the answer in the official documentation
4. Apply the solution
**Example:**
```
User: "How do I create a Claude Code plugin?"
→ Read @references/plugins.md
→ Follow the official plugin creation steps
```
### For Broad Topics
When exploring a topic, start with the overview document, then drill into specific files:
- **Extending Claude Code**: Start with `plugins.md`, `skills.md`, or `mcp.md`
- **Configuration**: Start with `settings.md` or `setup.md`
- **Integrations**: Check relevant integration file (vs-code.md, github-actions.md, etc.)
- **Troubleshooting**: Start with `troubleshooting.md`
### For Uncertain Topics
Use Grep tool to search across all documentation:
```bash
pattern: "search term"
path: ~/.claude/skills/working-with-claude-code/references/
```
## Updating Documentation
The skill includes `scripts/update_docs.js` to fetch the latest documentation from code.claude.com.
Run when:
- Documentation seems outdated
- New Claude Code features are released
- Official docs have been updated
```bash
node ~/.claude/skills/working-with-claude-code/scripts/update_docs.js
```
The script:
1. Fetches llms.txt from code.claude.com/docs/
2. Extracts all Claude Code documentation URLs
3. Downloads each page to `references/`
4. Reports success/failures
## Common Patterns
### Plugin Development
Read `plugins.md` for overview, then `plugins-reference.md` for API details.
### MCP Server Setup
Read `mcp.md` for configuration format and examples.
### Hook Configuration
Read `hooks.md` for overview, then `hooks-guide.md` for implementation details.
### Skill Creation
Read `skills.md` for the complete skill authoring guide.
## Manual notes (`references/howto/`)
`references/` (flat files) is entirely auto-fetched from code.claude.com by
`scripts/update_docs.js` and gets overwritten on every run — never hand-edit those files.
`references/howto/` is the exception: hand-written, never touched by the update script, for
empirically-verified or undocumented behavior that has no home in the official docs (mirrors the
same pattern used in the `working-with-github` skill). Add a new `howto/*.md` file there instead
of patching an auto-fetched file, and link it from the Quick Reference table above.
## What This Skill Does NOT Do
- The auto-fetched `references/*.md` files are **documentation access**, not procedural guidance
- For workflows on **how to build** plugins/skills, use the `extending-claude-code` skill (when available)
- Most of this skill is a **reference library**, not a tutorial — `references/howto/` is the
deliberate, curated exception
## Red Flags
If you find yourself:
- Guessing about configuration file locations → Read `settings.md`
- Speculating about API structures → Read relevant reference doc
- Unsure about hook names → Read `hooks.md`
- Making assumptions about features → Search the docs first
**Always consult the official documentation before guessing.**