analyze-claude-codelisted
Install: claude install-skill kaichen/agent-skillset
# Analyze Claude Code
Deep dive into Claude Code CLI source code to understand its architecture and implementation.
## Setup: Download and Format Source
```bash
# One-liner: download, extract, and format
curl -sL "$(curl -s https://registry.npmjs.org/@anthropic-ai/claude-code/latest | jq -r '.dist.tarball')" -o claude-code.tgz && tar -xzf claude-code.tgz && npx js-beautify --replace package/cli.js
```
## Official Documentation
**Access official docs via WebFetch tool:**
Use the WebFetch tool to query Claude Code's official documentation when you need authoritative information about features, API, or best practices.
**Documentation entry point:**
- URL: `https://code.claude.com/docs/llms.txt`
- Contains: Quickstart, CLI Reference, Settings, Hooks, MCP, Skills, Plugins, Security, and more
**Example queries:**
```bash
# Get documentation overview
Use WebFetch tool with:
url: https://code.claude.com/docs/llms.txt
prompt: "Show me the table of contents and main sections"
# Query specific topics
Use WebFetch tool with:
url: https://code.claude.com/docs/llms.txt
prompt: "How do hooks work? Explain with examples"
Use WebFetch tool with:
url: https://code.claude.com/docs/llms.txt
prompt: "What are the available MCP transport types and their differences?"
```
**When to use:**
- Verify implementation details not clear from source code
- Understand intended behavior and design philosophy
- Check for recent updates or documentation changes
- Find usage examples and