Skip to content

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.

docs: restructure README and add docs/ reference + CONTRIBUTING

Wesam Abousaid4709d38a3df9
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
new file mode 100644
index 0000000..ded55b6
--- /dev/null
+++ b/CONTRIBUTING.md
@@ -0,0 +1,81 @@
+# Contributing
+
+Thanks for your interest in improving this guide. This is a learning resource — clear, practical, and beginner-friendly explanations beat thorough-but-overwhelming ones.
+
+## Ways to contribute
+
+- **Spot something stale or wrong?** Open an issue with the section name and the problem.
+- **Have a useful skill, hook pattern, or MCP server walkthrough?** PRs welcome — see the file layout below.
+- **Want to expand a thin section?** SDLC walkthroughs, new workflow recipes, and real-world `.claude/` examples are all high-value.
+
+## Doc style guide
+
+**Do:**
+
+- **Mental model first.** Open every concept with a one-line analogy or "think of it as…" before any bullets.
+- **Practical example next.** A code block, command, or config snippet the reader can act on within 60 seconds.
+- **Tables over walls of bullets** when content is comparable across rows.
+- **Read-time markers** on long pages (e.g., `*~5 min read*`).
+- **Semantic emojis only.** Keep a small set as visual markers (🚀 ⚡ 🧠 for navigation; ⚠️ for warnings; 💡 for tips). Don't sprinkle decorative emojis across headings — they break GitHub anchor slugs.
+
+**Don't:**
+
+- "In this section we will explore…", "as we mentioned earlier…", "it's worth noting that…" — cut filler phrases.
+- Marketing language. "The ultimate guide to mastering…" reads as hype; lead with what the reader actually gets.
+- Multi-paragraph docstrings. One short line max in code samples.
+
+## File layout
+
+```
+README.md # Tutorial / landing page (~400 lines)
+docs/
+ skills.md # Full Skills guide
+ reference/
+ commands.md # Slash command cheatsheet
+ models.md # Model specs and pricing
+ faq.md # Consolidated Q&A
+ changelog.md # Updates & deprecations
+ further-reading.md # External links
+mcp-servers/ # Per-server walkthroughs
+specialized-agents/ # Role descriptions + system prompts + canvas flowcharts
+.claude/ # Working example of a project-level Claude Code setup
+Images/ # Diagrams and screenshots
+```
+
+When adding a topic that grows past ~400 lines, lift it into its own `docs/*.md` and replace the README section with a topic card + link.
+
+## Anchor compatibility
+
+The README has a stable URL fragment per section (e.g., `#claude-skills`, `#hooks`). When you rename or remove a heading:
+
+1. Add an invisible HTML anchor that preserves the old slug:
+ ```html
+ <a id="old-slug-here"></a>
+ ### New Heading
+ ```
+2. Run the diff before merging:
+ ```bash
+ diff <(git show main:README.md | grep -oE '^#{1,4} ' | sort -u) \
+ <(grep -oE '^#{1,4} ' README.md | sort -u)
+ ```
+
+This keeps inbound links from social posts working even after restructures.
+
+## Adding a skill
+
+Skills live in [`.claude/commands/`](.claude/commands). To add one:
+
+1. Create `.claude/commands/your-skill.md` with the [skill file format](docs/skills.md#skill-file-requirements).
+2. Test it locally: `claude` → `/your-skill`.
+3. Document it in [`docs/skills.md` → Available skills reference](docs/skills.md#available-skills-reference).
+4. Open a PR with the skill file, the doc update, and a one-line entry in the README's [Skills section](README.md#claude-skills) if the skill is a marquee addition.
+
+## Adding an MCP server walkthrough
+
+1. Create `mcp-servers/<server-name>.md` mirroring the structure of [`mcp-servers/serena.md`](mcp-servers/serena.md): overview, prerequisites, install, examples, troubleshooting.
+2. Add a row to the "Featured MCP servers" table in [README → MCP](README.md#model-context-protocol-mcp).
+3. Update [`mcp-servers/README.md`](mcp-servers/README.md)'s comparison matrix.
+
+## License
+
+By contributing, you agree your contributions are licensed under the MIT license (see [`LICENSE`](LICENSE)).
diff --git a/Images/Agents/agent-1.png b/Images/Agents/agent-1.png
deleted file mode 100644
index 03a4a89..0000000
Binary files a/Images/Agents/agent-1.png and /dev/null differ
diff --git a/Images/Agents/agent-10.png b/Images/Agents/agent-10.png
deleted file mode 100644
index 7597cc1..0000000
Binary files a/Images/Agents/agent-10.png and /dev/null differ
diff --git a/Images/Agents/agent-11.png b/Images/Agents/agent-11.png
deleted file mode 100644
index 53b6294..0000000
Binary files a/Images/Agents/agent-11.png and /dev/null differ
diff --git a/Images/Agents/agent-12.png b/Images/Agents/agent-12.png
deleted file mode 100644
index 88ff43c..0000000
Binary files a/Images/Agents/agent-12.png and /dev/null differ
diff --git a/Images/Agents/agent-13.png b/Images/Agents/agent-13.png
deleted file mode 100644
index b481be1..0000000
Binary files a/Images/Agents/agent-13.png and /dev/null differ
diff --git a/Images/Agents/agent-14.png b/Images/Agents/agent-14.png
deleted file mode 100644
index 3d76173..0000000
Binary files a/Images/Agents/agent-14.png and /dev/null differ
diff --git a/Images/Agents/agent-15.png b/Images/Agents/agent-15.png
deleted file mode 100644
index 1d0d950..0000000
Binary files a/Images/Agents/agent-15.png and /dev/null differ
diff --git a/Images/Agents/agent-16.png b/Images/Agents/agent-16.png
deleted file mode 100644
index f150333..0000000
Binary files a/Images/Agents/agent-16.png and /dev/null differ
diff --git a/Images/Agents/agent-17.png b/Images/Agents/agent-17.png
deleted file mode 100644
index 3523e01..0000000
Binary files a/Images/Agents/agent-17.png and /dev/null differ
diff --git a/Images/Agents/agent-2.png b/Images/Agents/agent-2.png
deleted file mode 100644
index c971468..0000000
Binary files a/Images/Agents/agent-2.png and /dev/null differ
diff --git a/Images/Agents/agent-3.png b/Images/Agents/agent-3.png
deleted file mode 100644
index 9bd0521..0000000
Binary files a/Images/Agents/agent-3.png and /dev/null differ
diff --git a/Images/Agents/agent-4.png b/Images/Agents/agent-4.png
deleted file mode 100644
index 169f651..0000000
Binary files a/Images/Agents/agent-4.png and /dev/null differ
diff --git a/Images/Agents/agent-5.png b/Images/Agents/agent-5.png
deleted file mode 100644
index 885de3d..0000000
Binary files a/Images/Agents/agent-5.png and /dev/null differ
diff --git a/Images/Agents/agent-8.png b/Images/Agents/agent-8.png
deleted file mode 100644
index 5a5ea02..0000000
Binary files a/Images/Agents/agent-8.png and /dev/null differ
diff --git a/Images/Agents/agent-9.png b/Images/Agents/agent-9.png
deleted file mode 100644
index 5981f98..0000000
Binary files a/Images/Agents/agent-9.png and /dev/null differ
diff --git a/Images/Icons/Icon-1.png b/Images/Icons/Icon-1.png
deleted file mode 100644
index f611040..0000000
Binary files a/Images/Icons/Icon-1.png and /dev/null differ
diff --git a/Images/Icons/Icon-3.png b/Images/Icons/Icon-3.png
deleted file mode 100644
index 49a675c..0000000
Binary files a/Images/Icons/Icon-3.png and /dev/null differ
diff --git a/Images/Icons/Icon-4.png b/Images/Icons/Icon-4.png
deleted file mode 100644
index 21930d7..0000000
Binary files a/Images/Icons/Icon-4.png and /dev/null differ
diff --git a/Images/Icons/Icon-5.png b/Images/Icons/Icon-5.png
deleted file mode 100644
index e33a827..0000000
Binary files a/Images/Icons/Icon-5.png and /dev/null differ
diff --git a/Images/Icons/Icon-6.png b/Images/Icons/Icon-6.png
deleted file mode 100644
index 104599c..0000000
Binary files a/Images/Icons/Icon-6.png and /dev/null differ
diff --git a/Images/Icons/Icon-7.png b/Images/Icons/Icon-7.png
deleted file mode 100644
index 8db3a96..0000000
Binary files a/Images/Icons/Icon-7.png and /dev/null differ
diff --git a/Images/Icons/Icon-8.png b/Images/Icons/Icon-8.png
deleted file mode 100644
index b4d2d1d..0000000
Binary files a/Images/Icons/Icon-8.png and /dev/null differ
diff --git a/Images/Icons/Icon-9.png b/Images/Icons/Icon-9.png
deleted file mode 100644
index 48e10bc..0000000
Binary files a/Images/Icons/Icon-9.png and /dev/null differ
diff --git a/Images/Icons/icon-2.png b/Images/Icons/icon-2.png
deleted file mode 100644
index a8d9723..0000000
Binary files a/Images/Icons/icon-2.png and /dev/null differ
diff --git a/Images/claude-installation.png b/Images/claude-installation.png
deleted file mode 100644
index d65bfd3..0000000
Binary files a/Images/claude-installation.png and /dev/null differ
diff --git a/Images/sdlc.png b/Images/sdlc.png
deleted file mode 100644
index 239c331..0000000
Binary files a/Images/sdlc.png and /dev/null differ
diff --git a/Images/subagents-prompt.png b/Images/subagents-prompt.png
deleted file mode 100644
index 146da71..0000000
Binary files a/Images/subagents-prompt.png and /dev/null differ
diff --git a/Images/what-is-sdlc.png b/Images/what-is-sdlc.png
deleted file mode 100644
index 98d955b..0000000
Binary files a/Images/what-is-sdlc.png and /dev/null differ
diff --git a/README.md b/README.md
index 2934a5b..98a7fe6 100644
--- a/README.md
+++ b/README.md
@@ -1,165 +1,149 @@
-# Claude-Code-Everything-You-Need-to-Know <img src="Images/claude-jumping.svg" width="80" height="72" alt="Animated Claude" />
-
-The ultimate all-in-one guide to mastering Claude Code. From setup, prompt engineering, commands, hooks, workflows, automation, and integrations, to MCP servers, tools, and the BMAD method—packed with step-by-step tutorials, real-world examples, and expert strategies to make this the global go-to repo for Claude mastery.
-
-> **📖 Recommended Tool**
-> For the best reading experience with these documents, we recommend installing [Obsidian](https://obsidian.md/). It provides excellent visualization and navigation for markdown files.
-
-### 🧵 What We Covered:
-
-**Fundamentals:**
-- [What are LLMs, and how do they differ from AI tools like Claude Code? Why should we use AI tools?](#what-are-llms-and-how-do-they-differ-from-ai-tools-like-claude-code)
-- [What is Claude Code?](#what-is-claude-code)
-- [Claude Code Setup: Get up and running seamlessly with a clean, optimized installation.](#claude-code-setup)
-
-**Core Features:**
-- [Prompt Engineering Deep Dive](#prompt-engineering-deep-dive)
-- [Claude Commands Mastery: Extract the best possible results by leveraging Claude's command capabilities to their fullest.](#claude-commands)
-- [Claude Skills: Transform complex workflows into reusable slash commands](#claude-skills)
-- [AI Agents: Harness agents, sub-agents, and `worktrees` to structure intelligence with precision.](#ai-agents)
-- [Hooks That Work: Discover the power of Claude Hooks and learn how to implement them for maximum impact.](#hooks)
-- [What are MCP servers and how to use them?](#model-context-protocol-mcp)
-
-**2026 Updates:**
-- [**Claude Opus 4.6**: The most capable model with 1M context window (API), adaptive thinking, and 128K output](#claude-opus-46-the-latest-powerhouse)
-- [**Fast Mode**: 2.5x faster responses for rapid development (toggle with `/fast`)](#fast-mode-)
-- [**Agent Teams**: Multi-agent collaboration for complex projects (experimental)](#agent-teams-experimental---2026)
-- [**MCP Registry**: Live registry at https://registry.modelcontextprotocol.io/ with searchable server catalog](#mcp-ecosystem-updates-2026)
-- [**New Commands**: `/fast`, `/auth`, `/debug`, `/teleport`, `/rename`, `/hooks`](#built-in-slash-commands)
-- [**Enhanced Pricing**: Pro plan ($20/mo) now includes ALL models (Opus 4.6, Sonnet 4.5, Haiku 4.5)](#faq)
-
-**Advanced Topics:**
-- [Software Development Life Cycle (SDLC)](#sdlc)
-- [Workflow Design: Build fully customized, high-performance workflows tailored to your project goals.](#1-explore--plan--code--commit)
-- [Hands-On Demo: Full App Development Through the SDLC, Step by Step!](#sdlc)
-- [Super Claude: Unlock advanced capabilities and push beyond standard limits.](#super-claude-framework)
-- [The BMAD Method: Apply a proven, systematic approach to deliver consistent, high-quality outcomes.](#the-bmad-method--ai-agent-framework)
-
-### What are LLMs, and how do they differ from AI tools like Claude Code?
-
-**LLM (Large Language Model):**
-- This is the underlying AI technology/engine
-- Think of it like a car engine - it's the core component that makes everything work
-- Examples: GPT-4, Claude 4.5/4.6 (Opus 4.6, Sonnet 4.5, Haiku 4.5), Gemini (the actual AI models)
-
-**Products built with LLMs:** These are the applications and tools that use LLMs to provide specific services:
-
-**Claude Code:**
-- A command-line tool that uses Claude's LLM
-- Specifically designed for developers to code from their terminal
-- It's like putting the Claude engine into a developer-focused interface
-
-**ChatGPT:**
-- A web/app interface that uses GPT models
-- Designed for general conversations and tasks
-
-**Google Bard/Gemini:**
-- Google's chat interface that uses their Gemini LLM
-- Note: "Gemini" refers both to Google's LLM and their chat product
-
-**Analogy:**
-- **LLM** = Car engine
-- **Claude Code** = A pickup truck (built for specific work)
-- **ChatGPT** = A family sedan (built for general use)
-- **Google Bard** = A racing car
-The LLM is the "brain" that understands and generates language, while products like Claude Code are specialized interfaces that make that brain accessible for particular use cases.
+# Claude Code: Everything You Need to Know <img src="Images/claude-jumping.svg" width="72" height="64" alt="Animated Claude" align="right" />
+
+A practical guide to Claude Code — from your first prompt to multi-agent automation, hooks, MCP, and team workflows. Built around clear mental models and real examples, not marketing.
+
+```bash
+npm install -g @anthropic-ai/claude-code
+```
+
+**Who this is for:** Developers using (or about to use) Claude Code. Beginners get a guided path; power users get depth on Skills, Hooks, MCP, and Agent Teams.
+
---
-### What is Claude Code?
-Claude Code is a command-line tool that lets developers work with Claude directly from their terminal or command prompt. Think of it as having an AI coding assistant that lives right in your development environment.
-Here's what makes it useful in simple terms:
+## 🧭 Choose your path
-**What it does:**
+| You are… | Start here | Time |
+|---|---|---|
+| 🚀 **New to Claude Code** | [Setup](#claude-code-setup) → [Prompt Engineering](#prompt-engineering-deep-dive) → [Your First Skill](#claude-skills) | ~15 min |
+| ⚡ **Already using it, want depth** | [Skills](#claude-skills) · [Hooks](#hooks) · [MCP](#model-context-protocol-mcp) | ~30 min each |
+| 🧠 **Building teams or automation** | [Agent Teams](#agent-teams-experimental---2026) · [Super Claude](#super-claude-framework) · [BMAD](#the-bmad-method--ai-agent-framework) | varies |
-- You can ask Claude to write code, fix bugs, or explain programming concepts without leaving your terminal
-- It can read and work with files in your project directory
-- You can delegate entire coding tasks to Claude and it will work through them step-by-step
+---
-**Why developers like it:**
+## 🧠 When to use what
-- No need to copy-paste code back and forth between a web browser and your code editor
-- Claude can see your actual project files and understand the context of what you're working on
-- It fits naturally into existing development workflows
-- You can automate repetitive coding tasks
+The four extension points in Claude Code, side by side:
-**Example use cases:**
+| Tool | Use when… | Skip if… | Lives in |
+|---|---|---|---|
+| **[Skills](#claude-skills)** *(slash commands)* | You repeat the same prompt or workflow ≥3 times | One-off task | `.claude/commands/*.md` |
+| **[Hooks](#hooks)** | You want code to run *automatically* on tool use, session start, etc. | You only want manual triggers | `.claude/settings.json` |
+| **[Subagents](#ai-agents)** | A subtask is big enough to need its own isolated context | The task fits in your main session | `.claude/agents/*.md` |
+| **[MCP servers](#model-context-protocol-mcp)** | You need Claude to use *external* tools (browsers, DBs, APIs) | All your data is in local files | Configured per project |
-- "Claude, add error handling to this function"
-- "Write unit tests for my new feature"
-- "Help me refactor this messy code"
-- "Explain what this legacy code does"
-It's essentially like having a very pair programming partner who can jump in and help with coding tasks whenever you need it.
+> 💡 These four compose. Most polished workflows combine 2–3.
---
-### Claude Opus 4.6: The Latest Powerhouse
+## 📚 What's inside
+
+**Fundamentals** — [What is Claude Code?](#what-is-claude-code) · [Setup](#claude-code-setup) · [Prompt Engineering](#prompt-engineering-deep-dive)
+
+**Workflow extensions** — [Slash Commands](#claude-commands) · [Skills](#claude-skills) · [Hooks](#hooks)
+
+**Multi-agent & integration** — [Subagents](#ai-agents) · [Agent Teams](#agent-teams-experimental---2026) · [MCP](#model-context-protocol-mcp)
+
+**Productivity & frameworks** — [Effort levels](#effort-levels) · [Fast Mode](#fast-mode-) · [Super Claude](#super-claude-framework) · [BMAD Method](#the-bmad-method--ai-agent-framework)
-**Claude Opus 4.6** is the most capable model in the Claude family (as of February 2026), offering advanced reasoning and coding capabilities.
+**Reference** — [Slash Command Cheatsheet](#built-in-slash-commands) · [Effort Levels](docs/reference/effort-levels.md) · [FAQ](#faq) · [Updates & Deprecations](#updates--deprecations) · [Further Reading](#references)
-#### Key Specifications
+<!-- Compatibility anchors for old inbound links -->
+<a id="sdlc"></a>
+<a id="what-are-llms-and-how-do-they-differ-from-ai-tools-like-claude-code"></a>
-| Feature | Specification |
-|---------|--------------|
-| **Model ID** | `claude-opus-4-6` |
-| **Context Window** | 200K tokens (1M beta via API) |
-| **Max Output** | 128K tokens |
-| **Availability** | Pro, Max, and API plans |
-| **Fast Mode** | ✅ Yes (2.5x faster, 6x pricing) |
+### What is Claude Code?
-#### Advanced Capabilities
+Claude Code is Anthropic's official CLI for working with Claude from your terminal. You point it at a project; it reads the code, plans, edits files, runs commands, and commits — all from the prompt line.
-**1. Extended Context Window**
-- Standard: 200K tokens (available to all Pro/Max subscribers)
-- Beta: 1M tokens (API only, not in subscriptions at launch)
-- Best for: Analyzing entire large codebases, extensive documentation
+**Three things it does that a chat UI can't:**
-**2. Adaptive Thinking**
-- Dynamic reasoning based on task complexity
-- Automatically scales computational effort
-- Better problem-solving for complex coding challenges
+- **Reads your actual repo** — not pasted snippets. Claude sees your file tree, runs `grep`, follows imports, and grounds answers in real context.
+- **Edits in place and runs your tests** — diff-aware edits, then `pytest`/`vitest`/`go test` on the spot to verify the change.
+- **Composes with the rest of your stack** — slash commands, hooks, sub-agents, MCP servers, and your normal git/shell workflow.
-**3. Agent Teams (Experimental)**
-- Multi-agent collaboration within single session
-- Team leads coordinate multiple specialist agents
-- Enable with: `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1`
+If you've used Copilot or Cursor, think of Claude Code as their "agent in your terminal" peer — same idea, different surface, no editor lock-in.
-**4. Top Performance**
-- Leading scores on Terminal-Bench 2.0
-- Superior code generation and debugging
-- Enhanced context understanding
+```bash
+claude # start a session in the current repo
+> explain what this codebase does
+> fix the failing test in src/api.test.ts
+> open a PR with the changes
+```
-#### When to Use Opus 4.6
+---
-**✅ Best For:**
-- Complex architectural decisions
-- Large-scale refactoring
-- Debugging intricate issues
-- Multi-file analysis
-- Production-critical code
+<a id="claude-opus-46-the-latest-powerhouse"></a>
+### Claude Opus 4.7: The Latest Flagship
-**💡 Consider Sonnet 4.5 or Haiku 4.5 for:**
-- Simple code changes
-- Documentation updates
-- Quick questions
-- Budget-conscious projects
+**Claude Opus 4.7** is the current flagship in the Claude 4 family (May 2026) — sharper adaptive thinking, better long-context grounding, more reliable tool calling than Opus 4.6, at the same price. 200K context (1M beta via API), 128K max output.
-#### Pricing & Access
+**Choosing a model — quick guide:**
-**Subscription Plans:**
-- Pro ($20/mo): Full access to Opus 4.6
-- Max 5x ($100/mo): 5x usage capacity
-- Max 20x ($200/mo): 20x usage capacity
+| Model | Reach for it when… |
+|---|---|
+| **Opus 4.7** | Complex reasoning, large refactors, multi-file analysis, production-critical code |
+| **Sonnet 4.6** | Balanced everyday work — most coding tasks live here |
+| **Haiku 4.5** | Fast, lightweight tasks — quick questions, doc updates |
+| **Opus 4.6** *(legacy)* | Pin a specific build; also the model behind Fast Mode (`/fast`) |
-**API Pricing:**
-- Standard: $5 input / $25 output per MTok
-- Fast Mode: $30 input / $150 output per MTok (6x)
+> *[→ Full specs, capabilities, and pricing in `docs/reference/models.md`](docs/reference/models.md)*
---
### Claude Code Setup
-[![Anthropic](Images/Anthropic.png)](https://www.anthropic.com)
+> ⏱️ **5-minute setup.** Get from zero to your first AI-assisted commit.
+
+#### 1. Install
+
+```bash
+npm install -g @anthropic-ai/claude-code
+```
+
+> Requires Node.js 18+. For other install methods (Homebrew, curl, native binary), see the [official install guide](https://docs.anthropic.com/en/docs/claude-code/setup).
+
+#### 2. Authenticate
+
+```bash
+claude
+```
+
+On first run, Claude Code opens a browser to sign in with your Anthropic account (Pro, Max, or API key all work). After that, you can re-authenticate any time with `/auth login` from inside Claude.
+
+#### 3. Run your first prompt
+
+From any project directory:
+
+```bash
+cd ~/your-project
+claude
+```
+
+Once Claude Code is running, try one of these:
+
+- `explain what this codebase does` — Claude reads your repo and summarizes.
+- `add a README section about installation` — generates content based on your project.
+- `find and fix the failing test in src/api.test.ts` — diagnoses and edits in place.
+
+#### 4. (Optional) Generate a `CLAUDE.md`
-[![Claude Installation](Images/claude-installation.png)](https://docs.anthropic.com/en/docs/claude-code/overview)
+```
+/init
+```
+
+Creates a project-level instruction file that Claude reads on every session — your project's "house rules." More on this in [Prompt Engineering Deep Dive](#prompt-engineering-deep-dive).
+
+#### 5. (Bonus) See a real Claude Code project setup
+
+This repo's own [`.claude/`](.claude/) directory is a working example of a fully-configured Claude Code project. Browse it as a reference for what a polished setup looks like:
+
+| Path | What it does |
+|---|---|
+| [`.claude/settings.json`](.claude/settings.json) | Project-level Claude Code settings — permissions, hooks, MCP integrations |
+| [`.claude/agents/`](.claude/agents) | 5 specialized subagents (frontend, tech lead, PM, UX designer, code reviewer) |
+| [`.claude/commands/`](.claude/commands) | 8 custom skills — `/pr`, `/review`, `/tdd`, `/test`, `/five`, `/ux`, `/todo`, `/mermaid`. See [Skills](#claude-skills) for the full guide. |
+| [`.claude/hooks/`](.claude/hooks) | Python hook scripts (`pre_tool_use.py`, `post_tool_use.py`, `notification.py`, `stop.py`, `subagent_stop.py`) — see [Hooks](#hooks) |
+
+> 💡 **Next:** Once you're comfortable with the basics, jump to [Claude Skills](#claude-skills) to build reusable slash commands in 3 minutes.
---
### Prompt Engineering Deep Dive
@@ -170,7 +154,7 @@ It's essentially like having a very pair programming partner who can jump in and
> Versatile workflow for complex problems.
- **Explore:** Read relevant files/images/URLs; use subagents for verification. Do **not code yet**.
-- **Plan:** Ask Claude to make a plan. Use `"think"`, `"think hard"`, `"think harder"`, or `"ultrathink"` to increase computation time. Optionally save plan for future reference.
+- **Plan:** Ask Claude to make a plan. Use `"think"`, `"think hard"`, `"think harder"`, or `"ultrathink"` to nudge depth in the prompt — see [Effort levels](#effort-levels) for the full reasoning dial. Optionally save the plan for future reference.
- **Code:** Implement the solution; verify reasonableness as you go.
- **Commit:** Commit results, create pull requests, update READMEs/changelogs.
- Claude has two default modes: `Plan Mode` and `Accept Edits Mode`. You can toggle between them using the `Shift + Tab` keys.
@@ -202,1920 +186,677 @@ It's essentially like having a very pair programming partner who can jump in and
---
-### Claude Commands
-#### Built-in slash commands
-
-| Command | Purpose |
-| ------------------------- | -------------------------------------------------------------------------------------------------------- |
-| `/add-dir` | Add additional working directories |
-| `/agents` | Manage custom AI subagents for specialized tasks |
-| `/auth login` | Authenticate with your Anthropic account (new Feb 2026) |
-| `/auth status` | Check authentication status (new Feb 2026) |
-| `/auth logout` | Sign out from your account (new Feb 2026) |
-| `/bug` | Report bugs (sends conversation to Anthropic) |
-| `/clear` | Clear conversation history |
-| `/compact [instructions]` | Compact conversation with optional focus instructions |
-| `/config` | View/modify configuration |
-| `/cost` | Show token usage statistics |
-| `/debug` | Troubleshoot current session and configuration (new Feb 2026) |
-| `/doctor` | Checks the health of your Claude Code installation |
-| `/fast` | Toggle Fast Mode for 2.5x faster Opus 4.6 responses (6x pricing) (new Feb 2026) |
-| `/help` | Get usage help |
-| `/hooks` | Interactive menu for hook configuration (new Feb 2026) |
-| `/init` | Initialize project with CLAUDE.md guide |
-| `/login` | Switch Anthropic accounts (use `/auth login` instead) |
-| `/logout` | Sign out from your Anthropic account (use `/auth logout` instead) |
-| `/mcp` | Manage MCP server connections and OAuth authentication |
-| `/memory` | Edit CLAUDE.md memory files |
-| `/model` | Select or change the AI model (Opus 4.6, Sonnet 4.5, Haiku 4.5) |
-| `/permissions` | View or update [permissions](https://docs.anthropic.com/en/docs/claude-code/iam#configuring-permissions) |
-| `/pr_comments` | View pull request comments |
-| `/rename` | Auto-generate descriptive session names (new Feb 2026) |
-| `/review` | Request code review |
-| `/status` | View account and system statuses |
-| `/teleport` | Send current session to claude.ai/code for web access (new Feb 2026) |
-| `/terminal-setup` | Install Shift+Enter key binding for newlines (built-in since 2026, zero setup needed) |
-| `/vim` | Enter vim mode for alternating insert and command modes |
-
-#### Custom slash commands
-> **📖 Note:** Custom slash commands allow you to define frequently-used prompts as Markdown files that Claude Code can execute. Commands are organized by scope (project-specific or personal) and support namespacing through directory structures.
-
-```bash
-mkdir -p .claude/commands
-echo "Analyze this code for performance issues and suggest optimizations:" > .claude/commands/optimize.md
-```
-
-**Example**
-- Create new file named `pull-request.md` in `.claude/commands`
-- Add the following info to file
- ```markdown
- # Create Pull Request Command
-
- Create a new branch, commit changes, and submit a pull request.
-
- ## Behavior
- - Creates a new branch based on current changes
- - Formats modified files using Biome
- - Analyzes changes and automatically splits into logical commits when appropriate
- - Each commit focuses on a single logical change or feature
- - Creates descriptive commit messages for each logical unit
- - Pushes branch to remote
- - Creates pull request with proper summary and test plan
-
- ## Guidelines for Automatic Commit Splitting
- - Split commits by feature, component, or concern
- - Keep related file changes together in the same commit
- - Separate refactoring from feature additions
- - Ensure each commit can be understood independently
- - Multiple unrelated changes should be split into separate commits
- ```
-
-> **💡 Next Level:** This is a basic custom slash command. For more sophisticated workflows, check out [Claude Skills](#claude-skills) to learn how to build reusable, team-wide skills with advanced patterns.
-
----
-
-<a id="claude-skills"></a>
-### Claude Skills
+<a id="effort-levels"></a>
+#### 4. Effort levels — how hard Claude thinks
-> **📖 Extensibility Layer:** Claude Skills transform complex, multi-step workflows into reusable slash commands. Think of them as "macros for AI" — instead of repeating the same detailed instructions, encapsulate them once and invoke them with a simple `/skill-name` command.
+*[→ Full guide in `docs/reference/effort-levels.md`](docs/reference/effort-levels.md)*
-> **📖 Terminology Note:** **"Skills"** and **"custom slash commands"** are the same thing. This documentation uses "skills" as the primary term, but you may see both used interchangeably. They both refer to markdown files in `.claude/commands/` that you invoke with `/skill-name`.
+> **Mental model:** Effort is a **behavioural dial**, not a token budget — it shifts thinking depth, tool-call appetite, response length, and how persistently Claude pushes through multi-step work. Higher ≠ smarter; context quality often matters more.
-> **🚨 SECURITY WARNING:** Skills execute with full access to your codebase and can run arbitrary commands. Only use skills from trusted sources. Review all third-party skills before adding them to your project. Skills from untrusted repositories can access files, execute commands, and potentially compromise your system.
+**5 levels exist** (most users assume 4):
-![Skills Workflow](Images/skill-workflow.png)
+| Level | Reach for it when… |
+|---|---|
+| `low` | Fast interactive queries you're steering — file renames, simple greps |
+| `medium` | General coding, small refactors, autonomous sessions where the plan is clear |
+| `high` | Multi-file refactors, complex debugging — Anthropic's recommended default for Sonnet 4.6 / Opus 4.6 |
+| `xhigh` *(Opus 4.7 only)* | Long autonomous agentic sessions — Anthropic's recommended default for Opus 4.7 |
+| `max` | Architecture, subtle bugs, security review — genuinely hard problems only |
-#### Quickstart: Your First Skill (3 minutes)
+**Current defaults (May 2026):** Opus 4.7 → `xhigh`; Opus 4.6 + Sonnet 4.6 → `high` on every plan. *(The "Pro/Max users on a nerfed `medium` default" lore was true ~March → late April 2026 but is fixed in Claude Code v2.1.117. Check yours with `/effort`.)*
-Want to try skills immediately? Here's the fastest path:
+**Setting it, in order of persistence:**
```bash
-# 1. Create the skills directory
-mkdir -p .claude/commands
-
-# 2. Create a simple skill file
-cat > .claude/commands/analyze.md << 'EOF'
-# Code Analysis
-
-Analyze the current code for:
-- Potential bugs and edge cases
-- Performance optimizations
-- Code quality improvements
-- Security vulnerabilities
+# This turn only — adds an in-context cue (does not change API effort)
+> ultrathink — design the migration strategy
-Provide specific, actionable recommendations.
-EOF
+# This session — slider with no args, level name with arg
+/effort xhigh
+/effort auto # reset to model default
-# 3. Start Claude Code (if not already running)
-claude
+# All sessions, low/medium/high/xhigh — settings.json
+echo '{ "effortLevel": "high" }' > .claude/settings.json
-# 4. Use your new skill
-# Type: /analyze
+# All sessions, max — only the env var works
+export CLAUDE_CODE_EFFORT_LEVEL=max
```
-**That's it!** You now have a working skill. Continue reading to learn how to create more sophisticated workflows.
-
----
-
-<a id="what-are-skills"></a>
-#### What Are Claude Skills?
-
-**Claude Skills** (also called "custom slash commands") are markdown files stored in `.claude/commands/` that contain structured instructions for Claude Code to execute. When you type `/skill-name`, Claude loads the corresponding markdown file and applies its instructions to your current context.
-
-**Key Characteristics:**
-
-1. **Single Responsibility** — Each skill focuses on one workflow (e.g., PR creation, code review, TDD)
-2. **Reusable** — Define once, invoke repeatedly across projects and sessions
-3. **Markdown-Based** — Simple text files, easy to read, write, and version control
-4. **Customizable** — Modify existing skills or create new ones to match your team's processes
-5. **Context-Aware** — Skills combine their instructions with your current code, files, and conversation
-
-> **📖 Quick Links:** [Built-in vs Custom Skills](#built-in-vs-custom-skills) | [Creating Skills](#creating-custom-skills) | [Troubleshooting](#troubleshooting-skills) | [FAQ](#skills-faq)
-
-**Skills vs Regular Prompts:**
-
-> **📱 Mobile Users:** View this comparison in landscape mode or on desktop for best readability.
-
-| Aspect | Regular Prompts | Claude Skills |
-|--------|----------------|---------------|
-| **Definition** | Ad-hoc instructions typed each time | Reusable markdown files in `.claude/commands/` |
-| **Reusability** | Manual copy-paste required | Instant invocation with `/skill-name` |
-| **Complexity** | Limited by chat input | Multi-step workflows with detailed checklists |
-| **Sharing** | Share via text/screenshots | Share via files in version control |
-| **Evolution** | Lost after session ends | Iteratively improved and committed to repo |
-| **Discoverability** | None | Auto-listed in Claude Code's skill registry |
-
-> **💡 Accessing the Skill Registry:** Skills are discovered automatically when you start Claude Code. To see available skills, start typing `/` in Claude Code and you'll see an autocomplete list of all available skills (both built-in and custom). You can also use `/help` to view all commands, which includes skills.
-
-<a id="built-in-vs-custom-skills"></a>
-#### Built-in Skills vs Custom Skills
-
-**Built-in Skills** (shipped with Claude Code):
+> ⚠️ **Three gotchas worth knowing:**
+> - **Anthropic's own guidance for Opus 4.7 max:** *"shows diminishing returns and is more prone to overthinking"* on routine work. Don't default to it.
+> - **`"effortLevel": "max"` in settings.json silently downgrades** — only `CLAUDE_CODE_EFFORT_LEVEL=max` env var persists max.
+> - **Context quality often beats more effort.** If you're reaching for max on a task that shouldn't need it, ~80% of the time the fix is upstream — sharper `CLAUDE.md`, atomic plan, named files. [Full breakdown →](docs/reference/effort-levels.md#effort--intelligence--the-context-quality-trap)
-| Skill | Purpose | Invocation |
-|-------|---------|------------|
-| `keybindings-help` | Customize keyboard shortcuts and modify `~/.claude/keybindings.json` | `/keybindings-help` |
-| `mermaid` | Create entity relationship diagrams and flowcharts | `/mermaid` |
+> 💡 **Pattern: plan-with-Opus / execute-with-Sonnet.** Plan in Opus xHigh or Max; hand the atomic, zero-ambiguity plan to Sonnet at lower effort to execute. Sonnet follows clear plans without drift, so the cheap execution is reliable when the plan is sharp.
-**Custom Skills** (in this repository's `.claude/commands/`):
+---
-**Quick Reference:**
+### Claude Commands
+<a id="built-in-slash-commands"></a>
-| Skill | Category + Complexity |
-|-------|---------------------|
-| `/pr` | Workflow (High) |
-| `/review` | Quality (High) |
-| `/test` | Quality (Medium) |
-| `/tdd` | Workflow (High) |
-| `/five` | Persona (Low) |
-| `/ux` | Persona (Medium) |
-| `/todo` | Task (Low) |
+Claude Code ships ~30 built-in slash commands plus the ability to define your own as **skills** (markdown files in `.claude/commands/`). The two work together — built-ins for common operations, custom skills for your team's workflows.
-**Detailed Purpose:**
+#### Day-1 essentials
-| Skill | What It Does |
-|-------|--------------|
-| `/pr` | Automated pull request creation with branch management and commit splitting |
-| `/review` | Multi-perspective code review (PM, Dev, QA, Security, DevOps, UX) |
-| `/test` | Unit testing best practices checklist for LLM-driven test generation |
-| `/tdd` | Complete test-driven development workflow with Red-Green-Refactor cycle |
-| `/five` | Five Whys root cause analysis for debugging and problem-solving |
-| `/ux` | User experience designer persona for empathetic, user-centric design |
-| `/todo` | Task management in `todos.md` with due dates and completion tracking |
+| Command | Purpose |
+|---|---|
+| `/init` | Generate a `CLAUDE.md` for your project — your "house rules" Claude reads every session |
+| `/help` | List all available commands |
+| `/clear` | Reset conversation history when you want a clean slate |
+| `/cost` | Track token usage in this session |
+| `/model` | Switch between Opus 4.7, Sonnet 4.6, Haiku 4.5 (4.6/4.5 still available) |
-> **💡 Pro Tip:** Start with simple skills (like `/five` or `/todo`) to understand the pattern, then progress to complex workflows (like `/tdd` or `/review`).
+> *[→ Full slash-command reference in `docs/reference/commands.md`](docs/reference/commands.md)* (~30 commands including `/auth`, `/fast`, `/hooks`, `/mcp`, `/teleport`, …)
-<a id="available-skills-reference"></a>
-#### Available Skills Reference
-
-**🔹 Workflow & Process**
-
-**`/pr` - Pull Request Creation**
-- Automatically creates feature branch from current changes
-- Formats code using project linter (e.g., Biome)
-- Intelligently splits changes into logical, atomic commits
-- Generates descriptive commit messages for each unit of work
-- Pushes to remote and creates PR with summary and test plan
-- **Perfect for:** Teams requiring consistent PR quality and commit hygiene
-
-**`/tdd` - Test-Driven Development**
-- Enforces strict Red-Green-Refactor cycle
-- Guides through: failing test → minimal implementation → refactoring
-- Maintains feature notes in `notes/features/` for long-term memory
-- Ensures tests pass before commits, commits only when green
-- Integrates with feature branch workflows
-- **Perfect for:** Projects requiring high code quality and comprehensive test coverage
-
-**🔹 Quality & Review**
-
-**`/review` - Multi-Perspective Code Review**
-Six-role review framework:
-1. **Product Manager** — Business value, user experience, strategic alignment
-2. **Developer** — Code quality, maintainability, performance, best practices
-3. **QA Engineer** — Test coverage, edge cases, regression risks
-4. **Security Engineer** — Vulnerabilities, data handling, compliance (OWASP, GDPR)
-5. **DevOps** — CI/CD integration, infrastructure, monitoring
-6. **UI/UX Designer** — Visual consistency, usability, accessibility
-
-- Enforces "fix now, not later" philosophy for all recommendations
-- Posts comprehensive review directly to GitHub PR as a comment
-- **Perfect for:** Critical PRs, production releases, architecture changes
-- **Note:** When run on your own PR, this will post a review comment from your account
-
-**`/test` - Unit Testing Best Practices**
-- Comprehensive checklist for writing robust unit tests
-- Focuses on testing internal logic, not API endpoints
-- Covers context verification, test structure, test cases, isolation, assertions
-- Includes strict guidance against over-mocking and framework bindings
-- Encourages spawning sub-agents for complex test flows
-- **Perfect for:** Ensuring consistent, maintainable test suites
-
-**🔹 Persona & Methodology**
-
-**`/five` - Five Whys Root Cause Analysis**
-- Systematic investigation technique drilling from symptoms to root causes
-- Iteratively asks "why" to uncover fundamental issues
-- Validates findings by working backwards from root cause
-- Proposes solutions addressing systemic problems, not just symptoms
-- Handles both technical and process-related causes
-- **Perfect for:** Debugging production incidents, understanding recurring bugs
-
-**`/ux` - User Experience Designer Persona**
-Claude becomes an empathetic UX specialist:
-- Conducts user research identifying needs, pain points, motivations
-- Designs accessible, aesthetically pleasing interfaces
-- Prioritizes user needs above all other considerations
-- Creates thoughtful micro-interactions and anticipates edge cases
-- Generates precise prompts for AI UI generation tools
-- **Perfect for:** Design-first projects, prototyping, user-centric product development
-
-**🔹 Task Management**
-
-**`/todo` - Project Task Manager**
-- Manages `todos.md` in project root with Active/Completed sections
-- Supports due dates/times with smart sorting (due tasks prioritized)
-- Commands: `add`, `complete`, `remove`, `undo`, `list`, `past due`, `next`
-- Auto-numbers todos for easy reference
-- Tracks completion timestamps
-- **Perfect for:** Sprint planning, personal task tracking, session continuity
-
-**`/mermaid` - Diagram Generation**
-- Creates entity relationship diagrams from database schemas
-- Generates flowcharts, sequence diagrams, and architecture visualizations
-- Outputs valid Mermaid syntax for embedding in markdown
-- **Perfect for:** Documentation, architecture discussions, onboarding
+#### Custom slash commands
-<a id="using-skills-in-workflow"></a>
-#### Using Skills in Your Workflow
+Define a frequently-used prompt once as a markdown file, invoke it forever with `/skill-name`:
-**Basic Invocation:**
```bash
-# In Claude Code CLI
-/skill-name
-
-# With arguments (for skills that accept them)
-/todo add "Fix navigation bug"
-/review https://github.com/user/repo/pull/123
+mkdir -p .claude/commands
+echo "Analyze this code for performance issues and suggest optimizations:" \
+ > .claude/commands/optimize.md
```
-**Workflow Prerequisites:**
+> 💡 **Next level:** custom slash commands and Skills are the same thing. Head to [Claude Skills](#claude-skills) for the deep dive — built-in skills, the 7 custom skills in this repo, workflow recipes, and how to write your own.
-Before using these workflow combinations, ensure you have:
-- ✅ Git repository initialized (`git init`)
-- ✅ Remote repository configured (`git remote -v` shows your repo)
-- ✅ Commit permissions to your repository
-- ✅ GitHub authentication configured (for `/review` and `/pr` skills)
-- ✅ Skills installed in `.claude/commands/` or `~/.claude/commands/`
-- ✅ Current working directory is your project root
+---
-**Workflow Execution Notes:**
-- Skills execute sequentially - wait for each to complete before invoking the next
-- Skills do NOT auto-chain - you must type each `/skill-name` command manually
-- If a skill fails, address the error before proceeding to the next step
-- Use `/help` to verify skill availability before running workflows
+<a id="claude-skills"></a>
+### Claude Skills
-**Example Workflow Combinations:**
+*~3 min read · [Full guide in `docs/skills.md` →](docs/skills.md)*
-**1. Complete Feature Development**
-```bash
-# Start with TDD workflow
-/tdd
-# Claude guides through Red-Green-Refactor cycle
+> **Mental model:** Skills package a workflow into a markdown file. Two flavors:
+> - **Slash skills** — `.claude/commands/<name>.md`, you invoke them with `/<name>`
+> - **Agent Skills** — `.claude/skills/<name>/SKILL.md` with YAML frontmatter; Claude auto-invokes when the description matches the task
-# Ensure tests pass
-/test
-# Validates test coverage and quality
+> ⚠️ **Security:** Skills are executable instructions running with your shell permissions. Read every third-party skill before adding it — exactly like reviewing a shell script before sourcing it.
-# Create PR with automatic commit splitting
-/pr
-# Creates branch, commits, and opens PR
-
-# Conduct comprehensive review (optional - creates PR comment)
-/review
-```
+![Skills Workflow](Images/skill-workflow.png)
-**Common Issues:**
-- **`/tdd` fails:** Ensure tests are properly written; review test syntax
-- **`/test` reports failures:** Fix failing tests before proceeding to `/pr`
-- **`/pr` merge conflicts:** Resolve conflicts manually, then retry
-- **`/review` auth failure:** Run `gh auth login` to configure GitHub CLI
-- **No Biome configured:** `/pr` assumes Biome formatter; install or modify skill
+#### Your first skill in 3 minutes
-**2. Bug Investigation & Resolution**
```bash
-# Identify root cause
-/five
-# Five Whys analysis to find systemic issues
-
-# Implement fix using TDD
-/tdd
-# Write failing test, implement fix, refactor
-
-# Verify with unit tests
-/test
-# Ensure all tests pass
-
-# Submit PR
-/pr
-# Create and push PR
-```
+mkdir -p .claude/commands
-**Common Issues:**
-- **`/five` identifies unfixable issue:** Root cause may require architecture changes
-- **Bug in dependency:** Report upstream; consider workaround or fork
-- **`/tdd` tests pass but bug persists:** Review test coverage; bug may be in untested code
+cat > .claude/commands/analyze.md << 'EOF'
+# Code Analysis
-**3. UX-Focused Development**
-```bash
-# Start with user-centric design
-/ux
-# Claude adopts UX designer persona
+Analyze the current code for:
+- Potential bugs and edge cases
+- Performance optimizations
+- Code quality improvements
+- Security vulnerabilities
-# Implement with tests
-/test
-# Build with test coverage
+Provide specific, actionable recommendations.
+EOF
-# Review for accessibility and usability
-/review
-# Multi-perspective review including UX
+claude # then type: /analyze
```
-**Common Issues:**
-- **`/ux` suggestions conflict with brand:** Provide brand guidelines as context
-- **`/review` finds accessibility violations:** Address WCAG issues before merge
-- **Performance issues with new UI:** Use browser profiling tools; optimize assets
-
-**Workflow FAQs:**
-
-**Q: How long do skill workflows typically take?**
-- Simple skills (5-20 lines): 10-30 seconds
-- Medium skills (20-100 lines): 1-3 minutes
-- Complex skills like `/tdd`: 5-15 minutes depending on implementation size
-
-**Q: Can I cancel a running skill midway?**
-- Press `Ctrl+C` to interrupt Claude Code execution
-- Some changes may be partially applied; review with `git status`
-
-**Q: What if a skill modifies files I didn't expect?**
-- Review changes with `git diff` before committing
-- Use `git checkout -- <file>` to revert unwanted changes
-- Report unexpected behavior to skill author
-
-**Q: Can I run skills in parallel?**
-- No - skills execute sequentially in a single Claude Code session
-- For parallel work, open multiple terminals with separate Claude Code sessions
-
-> **💡 Workflow Tips:**
-> - **Chain skills sequentially** - Skills execute one at a time; wait for completion before invoking the next
-> - **Combine with hooks** for automatic skill invocation on events (see [Hooks](#hooks) section)
-> - **Use `/todo`** at session start to maintain context across interruptions
-> - **Run `/review`** on your own PRs before requesting human review (note: posts as a PR comment from your account)
-> - **Skills don't auto-chain** - Each `/skill` must be invoked manually; they don't automatically call other skills
+That's it — a working slash skill. Promote it to an Agent Skill later by moving it to `.claude/skills/analyze/SKILL.md` and adding `name`/`description` frontmatter.
-<a id="skills-faq"></a>
-#### Skills FAQ
-
-**Q: What's the difference between "skills" and "custom slash commands"?**
-
-**A:** They're the same thing. This documentation uses "skills" as the primary term, but both refer to markdown files in `.claude/commands/` that you invoke with `/skill-name`. You may see both terms used interchangeably.
-
-**Q: Are skills safe to use from third-party repositories?**
-
-**A:** Treat skills like executable code - review them before running. Skills can:
-- Read and modify files in your project
-- Execute commands via Claude Code
-- Access your GitHub/API credentials if configured
-
-Always review `.claude/commands/` files from cloned repositories before invoking skills.
-
-**Q: How do I know if a skill is working correctly?**
-
-**A:**
-1. Check skill autocomplete: Type `/` and your skill name should appear
-2. Test with simple input: Invoke the skill with basic arguments
-3. Review Claude's response: Skill instructions should be reflected in output
-4. Check for errors: Run `claude --debug` to see detailed execution logs
-
-**Q: Can I modify built-in skills?**
-
-**A:** No. Built-in skills (`/keybindings-help`, `/mermaid`) are shipped with Claude Code and cannot be modified. You can create your own custom skills with similar names (e.g., `/my-mermaid`) for custom behavior.
-
-**Q: How do I share skills with my team?**
-
-**A:**
-1. Create skills in `.claude/commands/` (project directory)
-2. Commit skill files to version control: `git add .claude/commands/`
-3. Document skills in your project README
-4. Team members get skills automatically when they clone the repo
+#### Want more depth?
-**Q: Do skills work offline?**
+The [full Skills guide in `docs/skills.md`](docs/skills.md) covers:
-**A:** Yes. Skills are local markdown files read by Claude Code. No network connection is required to invoke skills, though the AI model execution requires internet access.
+- The 7 custom slash skills in this repo's `.claude/commands/`: `/pr`, `/review`, `/tdd`, `/test`, `/five`, `/ux`, `/todo`
+- The 2 built-in skills (`/keybindings-help`, `/mermaid`)
+- Slash skills vs Agent Skills — when to use each, frontmatter contract, conversion path
+- Workflow recipes — feature dev with TDD + PR, bug investigation, UX-first dev
+- How to write your own skills (file format, scope, examples)
+- Skills FAQ, troubleshooting, and best practices
-**Q: What happens if I have two skills with the same name?**
+#### Beyond your own skills — the ecosystem
-**A:** Project skills (`.claude/commands/`) take precedence over global skills (`~/.claude/commands/`). The project-level skill will execute.
+The community has built thousands of Agent Skills. Three places to start browsing:
-**Q: Can skills accept arguments?**
+| Resource | What it offers |
+|---|---|
+| [**anthropics/skills**](https://github.com/anthropics/skills) | Anthropic's official skills — PDF, slides, brand guidelines, document creation |
+| [**SkillHub**](https://www.skillhub.club/) · [**SkillsMP**](https://skillsmp.com/) · [**Smithery**](https://smithery.ai/) | Searchable marketplaces — thousands of community Agent Skills indexed from GitHub |
+| [`travisvn/awesome-claude-skills`](https://github.com/travisvn/awesome-claude-skills) · [`ComposioHQ/awesome-claude-skills`](https://github.com/ComposioHQ/awesome-claude-skills) | Curated lists for high-signal picks |
-**A:** Yes. Type arguments after the skill name:
-```bash
-/todo add "Fix navigation bug"
-/review https://github.com/user/repo/pull/123
-```
-Claude automatically sees your arguments as context - no special syntax needed.
+Notable community skills: `skill-creator`, `skill-installer`, `mcp-builder`, `systematic-debugging`, `pair-programming`, `github-code-review`, `pptx`, `react`, `frontend-design`, `prompt-engineering-patterns`, `superpowers`, `brainstorming`, `market-research-reports`, `senior-data-engineer`, and many more — see [the full ecosystem section in `docs/skills.md`](docs/skills.md#the-skills-ecosystem) for categorized tables and install paths.
+<!-- Anchor compatibility: deep-section anchors now live in docs/skills.md -->
+<a id="what-are-skills"></a>
+<a id="built-in-vs-custom-skills"></a>
+<a id="available-skills-reference"></a>
+<a id="using-skills-in-workflow"></a>
+<a id="skills-faq"></a>
<a id="creating-custom-skills"></a>
-#### Creating Custom Skills
-
-> **🚨 SECURITY NOTE:** When creating global skills (`~/.claude/commands/`), remember they will execute in ALL your projects. Only add skills you trust completely. For team projects, use project-specific skills (`.claude/commands/`) and commit them to version control for team review.
-
-> **💡 New to Skills?** Review [What Are Claude Skills](#what-are-skills) and [Available Skills Reference](#available-skills-reference) before creating your first skill.
-
-#### Skill File Requirements
-
-**File Format:**
-- **Extension:** Must be `.md` (markdown files only)
-- **Encoding:** UTF-8 (required; UTF-16 not supported)
-- **Line endings:** Both LF (Unix) and CRLF (Windows) supported
-- **File size:** Recommended maximum 50KB per skill (larger files may cause performance issues)
-- **Naming:** Lowercase with hyphens (e.g., `my-skill.md` → `/my-skill`)
-
-**File System:**
-- **Symlinks:** Supported (`.claude/commands/` can contain symlinks to skill files)
-- **Permissions:** Files must be readable by your user account
-- **Location:** Must be in `.claude/commands/` (project) or `~/.claude/commands/` (global)
-
-**Execution Context:**
-- **Git requirement:** None - skills work in any directory (git or non-git)
-- **Network requirement:** None - skills execute locally without network access
-- **Offline support:** ✅ Full support - skills are read from local files
-
-**Step-by-step guide to building your first skill:**
-
-**1. Create the skill file**
-```bash
-# Project-specific skill (recommended for team projects)
-# The .claude/commands/ directory will be created automatically if it doesn't exist
-mkdir -p .claude/commands
-touch .claude/commands/my-skill.md
-
-# Global skill (available in all projects - use with caution)
-mkdir -p ~/.claude/commands
-touch ~/.claude/commands/my-skill.md
-```
+<a id="troubleshooting-skills"></a>
+<a id="skills-best-practices"></a>
-> **💡 Tip:** Always use project-specific skills (`.claude/commands/`) for team workflows to ensure team members can review changes through version control.
+---
-**2. Define the skill structure**
+### Hooks
-Skills use markdown with structured sections:
-```markdown
-# Skill Name
+> **Mental model:** Hooks are programmable checkpoints on Claude Code's lifecycle (before/after a tool call, session start, prompt submit, etc.). Your script inspects the proposed action and returns *allow* / *deny* / *modify*.
-Brief description of what this skill does.
+**Three cases that win most teams over:**
-## Behavior
-- Bullet list of what Claude should do
-- Specific actions to take
-- Expected outcomes
+| Use case | What the hook does |
+|---|---|
+| Auto-format on save | Runs `prettier` / `ruff` / `gofmt` after every Edit so Claude's output matches your style |
+| Block sensitive paths | Refuses changes to `.env`, `secrets/`, `infra/prod/` regardless of what Claude tries |
+| Action audit log | Records every tool call to a file — paper trail of what Claude did and when |
-## Guidelines (optional)
-- Best practices to follow
-- Constraints or requirements
-- Formatting rules
+If none of those resonate, skip ahead.
-## Examples (optional)
-### Example 1: Use case description
-[Show example input/output or workflow]
-```
+![Hooks Workflow](Images/hooks-workflow.png)
-**3. Example: Simple Skill (Complete File)**
+<a id="setting-up-claude-hooks"></a>
+#### Setting up hooks
-Complete contents of `.claude/commands/five.md`:
-```markdown
-# Five Whys Analysis
+Hooks live in settings files at four scopes (later overrides earlier):
-Apply the Five Whys root cause analysis technique to investigate issues.
+| Scope | Path |
+|---|---|
+| User-wide | `~/.claude/settings.json` |
+| Project (committed) | `.claude/settings.json` |
+| Project (local, gitignored) | `.claude/settings.local.json` |
+| Enterprise managed policy | platform-specific |
-## Steps
-1. Start with the problem statement
-2. Ask "Why did this happen?" and document the answer
-3. For each answer, ask "Why?" again
-4. Continue for at least 5 iterations or until root cause is found
-5. Validate the root cause by working backwards
-6. Propose solutions that address the root cause
+**Quickest setup** — use the interactive menu added in 2026:
-## Notes
-- Don't stop at symptoms; keep digging for systemic issues
-- Multiple root causes may exist - explore different branches
+```bash
+/hooks # browse, enable, configure hooks without touching JSON
```
-> **💡 Tip:** This is a complete, working skill file. Copy this exactly to `.claude/commands/five.md` to use it immediately.
+**Manual setup** — for the hook scripts in this repo:
-**4. Example: Complex Skill (Complete File)**
+1. Copy `.claude/hooks/` into your project's `.claude/` folder.
+2. Delete the hook scripts you don't need; keep the rest.
+3. Install [`uv`](https://docs.astral.sh/uv/getting-started/installation/) (required to run the Python hook scripts).
+4. Copy `.claude/settings.json` into your project's `.claude/` folder.
+5. In `settings.json`, replace any hardcoded `uv` path with the output of `$(which uv)`.
-Complete contents of `.claude/commands/pr.md`:
-```markdown
-# Create Pull Request Command
-
-Create a new branch, commit changes, and submit a pull request.
-
-## Behavior
-- Creates a new branch based on current changes
-- Formats modified files using Biome
-- Analyzes changes and automatically splits into logical commits when appropriate
-- Each commit focuses on a single logical change or feature
-- Creates descriptive commit messages for each logical unit
-- Pushes branch to remote
-- Creates pull request with proper summary and test plan
-
-## Guidelines for Automatic Commit Splitting
-- Split commits by feature, component, or concern
-- Keep related file changes together in the same commit
-- Separate refactoring from feature additions
-- Ensure each commit can be understood independently
-- Multiple unrelated changes should be split into separate commits
+```text
+project-root/
+└── .claude/
+ ├── hooks/
+ │ ├── notification.py
+ │ ├── post_tool_use.py
+ │ └── ...
+ └── settings.json
```
-> **💡 Tip:** This is a complete, working skill file. Copy this exactly to `.claude/commands/pr.md` to use it immediately.
-
-**5. Skill Scope: Project vs Global**
-
-| Location | Scope | Use Case |
-|----------|-------|----------|
-| `.claude/commands/` | Project-specific | Team workflows, project conventions, domain-specific tasks |
-| `~/.claude/commands/` | Global (all projects) | Personal preferences, universal patterns, cross-project utilities |
+#### Hook Events
-**6. Test your skill**
-```bash
-# Start Claude Code in your project
-claude
+Hooks run in response to various events within Claude Code's lifecycle:
+[examples](https://github.com/disler/claude-code-hooks-mastery)
+- **`PreToolUse`**: Runs **after Claude creates tool parameters but before processing the tool call**.
+- **`PostToolUse`**: Runs **immediately after a tool completes successfully**.
+- **`Notification`**: Runs when Claude Code sends notifications, such as when permission is needed to use a tool or when prompt input has been idle.
+- **`UserPromptSubmit`**: Runs when the user submits a prompt, **before Claude processes it**.
+- **`Stop`**: Runs when the main Claude Code agent has finished responding (does not run if stopped by user interrupt).
+- **`SubagentStop`**: Runs when a Claude Code subagent (Task tool call) has finished responding.
+- **`SessionEnd`**: Runs when a Claude Code session ends.
+- **`PreCompact`**: Runs before Claude Code is about to run a compact operation.
+- **`SessionStart`**: Runs when Claude Code starts a new session or resumes an existing session.
+- **`TeammateIdle`**: Runs when an agent teammate becomes idle (new 2026, for Agent Teams).
+- **`TaskCompleted`**: Runs when a task is marked as completed (new 2026).
-# Invoke your skill
-/my-skill
+#### Hook input
-# Observe Claude's behavior and iterate on the skill file
-```
+Hooks receive **JSON via stdin**. Every event includes `session_id`, `transcript_path`, and `cwd`. Event-specific fields:
-> **💡 Creation Tips:**
-> - **Start simple** — A 10-line skill is better than none
-> - **Be specific** — Vague instructions yield vague results
-> - **Use examples** — Show Claude what good output looks like
-> - **Iterate** — Skills improve with use; refine based on results
-> - **Version control** — Commit skills to `.claude/commands/` for team sharing
+| Hook Event | Event-specific fields |
+|---|---|
+| `PreToolUse` | `tool_name`, `tool_input` |
+| `PostToolUse` | `tool_name`, `tool_input`, `tool_response` |
+| `Notification` | `message` |
+| `UserPromptSubmit` | `prompt` |
+| `Stop` / `SubagentStop` | `stop_hook_active` |
+| `PreCompact` | `trigger`, `custom_instructions` |
+| `SessionStart` | `source` |
+| `SessionEnd` | `reason` |
+| `TeammateIdle` | `teammate_id`, `last_activity` |
+| `TaskCompleted` | `task_id`, `task_name`, `completion_time` |
-<a id="troubleshooting-skills"></a>
-#### Troubleshooting Skills
+#### Hook output
-> **💡 Still stuck?** Check the [Skills FAQ](#skills-faq) for common questions or review [Skills Best Practices](#skills-best-practices).
+Two ways to communicate back: **exit codes** for simple control, **JSON in stdout** for fine-grained behavior.
-**Common Issues:**
+| Exit code | Effect |
+|---|---|
+| `0` (success) | `stdout` shown in transcript mode (CTRL-R). For `UserPromptSubmit` / `SessionStart`, `stdout` is added to Claude's context. |
+| `2` (blocking) | `stderr` fed back to Claude (or shown to user) to block the action. Stops tool calls in `PreToolUse`; stops prompt processing in `UserPromptSubmit`. |
+| Other | `stderr` shown; execution continues. |
-**1. `/skill-name` not recognized**
-- **Cause:** Skill file doesn't exist or wrong location
-- **Solution:** Verify file exists in `.claude/commands/skill-name.md`
+**Advanced: structured JSON in stdout.** Per-event decision fields:
-**2. Skill not executing**
-- **Cause:** File permissions issue
-- **Solution:** Run `chmod +r .claude/commands/skill-name.md`
+| Event | JSON output |
+|---|---|
+| `PreToolUse` | `permissionDecision`: `"allow"` / `"deny"` / `"ask"`; `updatedInput` to modify tool parameters *(new 2026)* |
+| `PostToolUse` | `decision`: `"block"` or `undefined`; `additionalContext` can be returned |
+| `UserPromptSubmit` | `decision`: `"block"` or `undefined`; `additionalContext` can be returned |
+| `Stop` / `SubagentStop` | `decision`: `"block"` or `undefined` |
+| `SessionStart` | `additionalContext` |
-**3. Wrong skill executes**
-- **Cause:** Name collision between project and global skills
-- **Solution:** Project skills (`.claude/commands/`) take precedence over global (`~/.claude/commands/`)
+#### Security considerations
-**4. Skill content ignored**
-- **Cause:** Markdown formatting errors
-- **Solution:** Validate markdown syntax, ensure proper heading levels
+Hooks run **arbitrary shell commands automatically** with your user permissions — they can read, modify, or delete any file you can. Anthropic provides no warranty for what your hooks do.
-**5. Unexpected behavior**
-- **Cause:** Skill instructions unclear
-- **Solution:** Make instructions more explicit and specific
+**Best practices:**
-**6. Changes not reflected**
-- **Cause:** Old session cache
-- **Solution:** Restart Claude Code session to reload skill files
+- Validate and sanitize all inputs from stdin JSON
+- Quote shell variables (`"$var"`, not `$var`)
+- Block path traversal (`..`, absolute paths outside the project)
+- Use absolute paths for invoked scripts so PATH attacks don't redirect
+- Explicitly skip sensitive files (`.env`, `.git/`, `secrets/`)
-**Debugging Tips:**
-1. **Test in isolation** - Create a minimal test skill to verify the system works
-2. **Check file paths** - Use absolute paths: `ls -la .claude/commands/` to verify files exist
-3. **Review logs** - Run `claude --debug` to see detailed execution logs
-4. **Validate markdown** - Use a markdown validator to check file syntax
-5. **Start fresh** - Close and restart Claude Code session after creating/modifying skills
+Claude Code snapshots your hook configuration at session start and warns if hooks change mid-session — review before applying.
-**Error Messages:**
+<a id="hook-execution-details-and-debugging"></a>
+#### Execution & debugging
-- **"Command not found"** - Skill file doesn't exist at expected path
-- **"Permission denied"** - Skill file not readable; check permissions
-- **No error but skill doesn't work** - Instructions may be too vague; add specific steps
+- **Timeout** — 60s per hook by default; configurable per command.
+- **Parallelization** — all matching hooks run in parallel.
+- **Environment** — hooks run in the current dir with Claude Code's env; `CLAUDE_PROJECT_DIR` is available.
+- **Debug** — `/hooks` shows current config; `claude --debug` shows hook execution logs; test scripts manually with the JSON payload piped to stdin.
-**Version Requirements:**
-- **Claude Code Version**: Skills are available in Claude Code v1.0+ (released 2024)
-- **No special installation needed** - Skills work out of the box with any Claude Code installation
-- **All plans supported** - Available in Free, Pro, and Max plans
-- **All models supported** - Works with Opus 4.6, Sonnet 4.5, and Haiku 4.5
+---
-**Edge Cases and Special Scenarios:**
+<a id="ai-agents"></a>
+### Subagents
-| Scenario | Behavior | Notes |
-|----------|----------|-------|
-| **File without .md extension** | Not recognized as skill | Only `.md` files are loaded as skills |
-| **Symlinked skill files** | ✅ Supported | `.claude/commands/` can contain symlinks |
-| **Skill in non-git directory** | ✅ Works normally | Skills don't require git |
-| **Running skills offline** | ✅ Fully supported | Skills are local files, no network needed |
-| **CRLF line endings (Windows)** | ✅ Supported | Both Unix (LF) and Windows (CRLF) work |
-| **UTF-16 encoded file** | ❌ May fail | Use UTF-8 encoding for compatibility |
-| **Skill file > 100KB** | ⚠️ Performance impact | Keep skills focused; split large workflows |
-| **Circular skill references** | ⚠️ User must break loop | Skills don't auto-execute; user types each command |
+Three building blocks for going beyond a single Claude session:
-<a id="skills-best-practices"></a>
-#### Skills Best Practices
+| Building block | What it gives you | When to reach for it |
+|---|---|---|
+| **Git worktrees** | Multiple branches checked out simultaneously, each in its own folder + Claude session | You want to work on `feature-A` while Claude finishes `feature-B` |
+| **General-purpose subagents** | Spawn isolated Claude sub-sessions from your main session for parallel sub-tasks | A task is large or context-heavy enough that the main session shouldn't carry it |
+| **Specialized subagents** | Pre-written role prompts (security-reviewer, frontend-engineer, etc.) you drop into `.claude/agents/` | You want focused expertise without writing the role prompt yourself |
-**✅ Do:**
+#### 1. Git worktrees — parallel branches, parallel sessions
-1. **Give skills descriptive names** — Use kebab-case: `create-api-endpoint.md`, not `command.md`
-2. **Focus on one workflow** — Split complex processes into composable skills
-3. **Include examples** — Show expected input/output patterns
-4. **Document arguments** — Skills can accept arguments passed after the slash command
+[Git worktrees](https://git-scm.com/docs/git-worktree) let one repo have multiple branches checked out at the same time, each in its own folder. Pair them with one Claude Code session per worktree to run independent streams of work.
-**Passing Arguments to Skills:**
```bash
-# Single argument
-/todo add "Fix navigation bug"
-
-# Multiple words (use quotes)
-/review https://github.com/user/repo/pull/123
-
-# URL or file path
-/analyze src/components/Button.tsx
+git worktree add -b feature-a ../feature-a # create the worktree
+cd ../feature-a && claude # start Claude in it
+# Repeat in another terminal for feature-b. Each session is independent.
+git worktree remove ../feature-a # clean up when done
```
-**Accessing Arguments in Skills:**
-Arguments are automatically available to Claude as context. In your skill file, reference them naturally:
-```markdown
-# Code Review Skill
-
-Analyze the code at the provided file path or URL.
-
-## Steps
-1. Read the provided argument (file path or URL)
-2. Perform code review...
-```
+![Worktrees](Images/work-trees.png)
+![Three Claude sessions, one per worktree](Images/claude-sessions.png)
-**Note:** There is no special `$ARGUMENTS` variable syntax - Claude automatically sees the text you type after `/skill-name` as part of the request context.
+> 💡 Use [tmux](https://github.com/tmux/tmux/wiki/Installing) to keep each worktree's session attached even when you close the terminal.
-5. **Test with edge cases** — Invoke skills with missing/invalid inputs
-6. **Share with your team** — Commit to `.claude/commands/` and document in README
-7. **Use structured sections** — Behavior, Guidelines, Examples, Notes
-8. **Leverage existing skills** — Reference other skills in workflows (e.g., "Run `/test` after implementation")
+#### 2. General-purpose subagents — when one Claude isn't enough
-**❌ Don't:**
+From your main session, ask Claude to spawn subagents for a parallel sub-task. Each subagent runs in its own context window and reports a summary back, so the main session stays focused.
-1. **Overload skills** — A skill doing 10 things is 10 skills in disguise
-2. **Use ambiguous language** — "Make it better" → "Refactor for readability: extract functions >20 lines"
-3. **Duplicate built-in commands** — Check existing commands first with `/help`
-4. **Forget to test** — Always run skills in real scenarios before sharing
-5. **Ignore naming conventions** — Consistent naming improves discoverability
-6. **Hardcode project paths** — Use relative paths or variables
-7. **Skip documentation** — Future you (and teammates) will need context
-8. **Run untrusted skills** — Always review third-party skills before executing them
-9. **Grant excessive permissions** — Skills should request only the minimum permissions needed
-
-**Advanced Patterns:**
-
-**Skill Composition** — Reference other skills within a skill:
-```markdown
-## Workflow
-1. Run `/five` to identify root cause
-2. Create feature branch
-3. Implement fix using `/tdd`
-4. Submit with `/pr`
-```
-
-**⚠️ Circular Reference Prevention:**
-Skills can reference other skills in their workflows, but be cautious:
-- **Avoid circular calls:** Don't create skill A that calls skill B that calls skill A
-- **No automatic chaining:** Each `/skill-name` must be invoked manually; skills don't auto-execute other skills
-- **Claude interprets references:** When a skill says "Run `/test`", Claude sees this as an instruction, not automatic execution
-- **Manual workflow:** Users still need to type each skill command themselves
-
-**Conditional Logic** — Guide Claude's decision-making:
```markdown
-## Behavior
-- If tests exist: Run tests first
-- If no tests: Create tests following `/test` guidelines
-- If tests fail: Fix code, do not modify tests
+Analyze the implementation of the payment feature.
+Spawn 5 subagents to accelerate the work.
+Ultrathink.
```
-**Subagent Coordination** — Delegate complex tasks:
-```markdown
-## Implementation
-1. Spawn 4 subagents (Task tool) for parallel work:
- - Agent 1: Generate test cases
- - Agent 2: Implement core logic
- - Agent 3: Create documentation
- - Agent 4: Review security implications
-2. Integrate results into cohesive implementation
-```
-
-**Performance Considerations:**
-
-| Complexity | Token Usage | Response Time | Best For |
-|------------|-------------|---------------|----------|
-| Simple (5-20 lines) | Lower token usage | Faster response | Single-step tasks, checklists |
-| Medium (20-100 lines) | Moderate token usage | Moderate response | Multi-step workflows, personas |
-| Complex (100+ lines) | Higher token usage | Slower response | Comprehensive reviews, TDD cycles |
-
-> **Note:** Actual performance varies based on skill content, model selection, server load, and network conditions. Token counts and response times are approximate guidelines only.
-
-> **🎯 Optimization Tips:**
-> - **Use subagents** for parallelizable work within complex skills
-> - **Split mega-skills** into smaller, composable units
-> - **Cache common patterns** as skills instead of re-prompting
-> - **Use Fast Mode** (see [Fast Mode section](#fast-mode)) when running skill-heavy workflows for 2.5x faster responses
+![Spawning subagents from a prompt](Images/agents-prompt.png)
+![Subagents executing tasks in parallel via a shared task list](Images/Subagents.png)
----
-
-<a id="fast-mode"></a>
-### Fast Mode ↯
+#### 3. Specialized subagents — drop-in role prompts
-**Fast Mode** delivers **2.5x faster responses** using Claude Opus 4.6, ideal for rapid iteration and time-sensitive development work.
+Specialized agents are pre-written role prompts you drop into `.claude/agents/`. Each one carries its own focus and tooling, so a `security-reviewer` agent stays focused on threats instead of also opining on code style.
-#### How It Works
-- Toggle on/off instantly with `/fast` command
-- Only available for Opus 4.6 (not Sonnet or Haiku)
-- Visual indicator: **↯** icon appears in session when active
-- Same model quality, just optimized for speed
+![Agent creation workflow](Images/agent-creation-workflow.png)
-#### Pricing
-Fast Mode uses **6x standard pricing**:
+<img src="Images/Agents/agent-6.png" alt="Set Agent System Prompt" width="600" height="300">
-| Mode | Input (per MTok) | Output (per MTok) |
-|------|------------------|-------------------|
-| Standard Opus 4.6 | $5 | $25 |
-| Fast Mode Opus 4.6 | $30 | $150 |
+<img src="Images/Agents/agent-7.png" alt="Set Agent Description" width="600" height="300">
-#### When to Use Fast Mode
+**This repo ships 10 production-ready specialist prompts** you can drop into `.claude/agents/`:
-**✅ Best For:**
-- Rapid prototyping and iteration
-- Live debugging sessions
-- Time-sensitive deployments
-- Quick code reviews
-- Interactive pair programming
-- Emergency hotfixes
+| Role | System prompt | Role description |
+|---|---|---|
+| Backend Engineer | [prompt](specialized-agents/system-prompts/backend-engineer-prompt.md) | [description](specialized-agents/Descriptions/backend-engineer-description.md) |
+| Frontend Engineer | [prompt](specialized-agents/system-prompts/frontend-engineer-prompt.md) | [description](specialized-agents/Descriptions/frontend-engineer-description.md) |
+| Database Engineer | [prompt](specialized-agents/system-prompts/database-engineer-prompt.md) | [description](specialized-agents/Descriptions/database-engineer-description.md) |
+| Tech Lead | [prompt](specialized-agents/system-prompts/tech-lead-prompt.md) | [description](specialized-agents/Descriptions/tech-lead-description.md) |
+| Code Reviewer | [prompt](specialized-agents/system-prompts/code-reviewer-prompt.md) | [description](specialized-agents/Descriptions/code-reviewer-description.md) |
+| Security Reviewer | [prompt](specialized-agents/system-prompts/security-reviewer-prompt.md) | [description](specialized-agents/Descriptions/security-reviewer-description.md) |
+| UX Engineer | [prompt](specialized-agents/system-prompts/ux-engineer-prompt.md) | [description](specialized-agents/Descriptions/ux-engineer-description.md) |
+| Design Reviewer | [prompt](specialized-agents/system-prompts/design-reviewer.md) | — |
+| Project Manager | [prompt](specialized-agents/system-prompts/project-manager-prompt.md) | [description](specialized-agents/Descriptions/project-manager-description.md) |
+| Business Analyst | [prompt](specialized-agents/system-prompts/business-analyst-prompt.md) | [description](specialized-agents/Descriptions/business-analyst-description.md) |
-**❌ Skip For:**
-- Long background tasks
-- Budget-conscious projects
-- Non-urgent documentation work
-- Batch processing
-- Learning/exploration sessions
+> 📐 The two `.canvas` flowcharts in `specialized-agents/` (`agent-creation-workflow.canvas`, `agent-orchestration-workflow.canvas`) visualize the full pipelines. Open in [Obsidian](https://obsidian.md/) or any canvas-compatible viewer.
-#### Usage Example
-```bash
-# Enable Fast Mode for rapid iteration
-/fast
+#### Orchestrating specialists from the main session
-# Your prompts now process 2.5x faster
-> Fix the authentication bug in login.ts
+Once you have specialized agents, the main session orchestrates them:
-# Disable when you're done with urgent work
-/fast
+```markdown
+Have backend-engineer suggest UI improvements; have frontend-engineer
+implement them; have code-reviewer review the changes; have
+frontend-engineer address the review feedback.
```
-#### Best Practices
-1. **Toggle strategically** - Turn on only when you need speed
-2. **Monitor costs** - Use `/cost` to track Fast Mode usage
-3. **Time-box sessions** - Use for focused sprints, not entire workdays
-4. **Combine with /model** - Switch to Haiku for simple tasks to save costs
-
----
-
-### AI Agents
-
-[**Git worktree**](https://git-scm.com/docs/git-worktree)
-
-> **📖 Git Worktree:** Worktrees allow multiple copies of the same Git repository on your local environment, each on a different branch.
-
-- **Single repo limitation:** Normally, a Git repository can only be on one branch in one folder.
-- **Worktrees:** Enable working on multiple branches simultaneously in separate folders.
-- **Isolation:** Changes in one worktree do **not** interfere with others.
- **Example**
- - **Main repo folder:** branch `main`
- - **Worktree folder:** branch `feature-x`
- - You can edit both simultaneously without switching branches.
-
-1. **Create worktrees**
- - `git worktree add -b feature-a ../feature-a`
- - Create additional worktrees as needed (repeat steps 1 in new terminal tabs)
- - Ex: Three separate terminal tabs, each linked to its own branch and worktree
- ![WorkTrees](Images/work-trees.png)
-2. **Launch Claude in each worktree**
- - `cd ../feature-a && claude`
- - Ex: three Claude code sessions to manage each branch
- ![Claude Sessions](Images/claude-sessions.png)
-
-3. **General Agents**
- > **📖 Agent System:** Claude Code's **agent system** — a powerful feature that lets you create specialized AI assistants for different coding tasks. Think of agents as specialized team members, each with their own expertise, tools, and focus area. Instead of having one general-purpose Claude handle everything, you can create focused agents for specific roles.
-
- - Example: Each agent can span multiple sub-agents to accelerate the process:
- ```markdown
- - Analyze the implementation of the payment feature
- - Span 5 subagents to accelerate work
- - Ultrathink
- ```
- ![Agents Prompt](Images/agents-prompt.png)
-
- - Subagents executing multiple tasks in parallel, coordinated through a to-do list:
- ![Subagents](Images/Subagents.png)
-
-4. **Specialized Agents**
- - **Traditional approach:**
- - One Claude tries to be everything
- - Generic feedback covering all areas
- - Context gets mixed between different types of reviews
-
- - **Agent approach:**
- - Specialized expertise for each task
- - Focused, deep feedback in specific areas
- - Clean separation of concerns
- - Each agent "remembers" previous conversations in their domain
-
- - Let's do it, step by step
-
- [View Agent Creation Workflow](Images/agent-creation-workflow.png)
- ![Agent Creation Workflow](Images/agent-creation-workflow.png)
-
- <img src="Images/Agents/agent-6.png" alt="Set Agent System Prompt" width="600" height="300">
-
- [Security Reviewer Prompt](specialized-agents/system-prompts/security-reviewer-prompt.md)
-
- <img src="Images/Agents/agent-7.png" alt="Set Agent Description" width="600" height="300">
-
- [Security Reviewer Description](specialized-agents/descriptions/security-reviewer-description.md)
-
-5. **General Agent orchestrate collaboration between Specialized Agents**
- ```md
- Get the **backend-engineer** to suggest changes for improving the UI of our app. Then, get the **backend-engineer** to implement those changes. Then, get the **code-reviewer** to review the changes made by the **backend-engineer**. Finally, get the **backend-engineer** to fix up any issues pointed out by the reviewer.
- ```
- <img src="Images/Orchestration.png" alt="Confirm and Save Agent" width="600" height="600">
-
-> **💡 Tip:**
-> - Use consistent naming conventions for worktrees
-> - Maintain one terminal tab per worktree
-> - Use [`Tmux`](https://github.com/tmux/tmux/wiki/Installing) to create a session for each terminal, allowing you to **detach** and keep processes running in the background
-> - Use separate IDE windows for different worktrees
-> - Clean up when finished: `git worktree remove ../feature-a`
+<img src="Images/Orchestration.png" alt="Orchestration of specialized agents" width="600" height="600">
---
### Agent Teams (Experimental - 2026)
-**Agent Teams** is an experimental feature that enables **multi-agent collaboration** within a single Claude Code session. Instead of one agent handling everything, you can coordinate multiple specialist agents working together on complex tasks.
-
-#### What Are Agent Teams?
-
-Agent Teams introduce a hierarchical structure where:
-- **Team Lead**: The main agent that coordinates and delegates work
-- **Teammates**: Specialist agents that handle specific subtasks
-- **Shared Task List**: All agents can view and update a common to-do list
-- **Parallel Execution**: Multiple agents can work simultaneously
-
-Think of it as having a development team where:
-- The lead architect makes high-level decisions
-- Specialists (frontend dev, backend dev, QA tester) work on their areas
-- Everyone stays synchronized through shared task tracking
+**Agent Teams** is an experimental feature that lets a single Claude Code session coordinate **multiple specialist agents** through a shared task list. The main session acts as the team lead; teammates work on their tasks (sometimes in parallel), report progress, and update the shared list. Reach for it on full-stack features, large refactors, or anything where multiple perspectives genuinely help. Skip it for single-file edits and quick fixes.
-#### How to Enable Agent Teams
-
-Agent Teams is currently experimental and requires an environment variable:
+#### Enable it
```bash
-# Enable Agent Teams
-export CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1
-
-# Launch Claude Code
+export CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 # add to ~/.zshrc to persist
claude
-
-# Agent Teams will now be available
-```
-
-**Permanent Setup (Recommended):**
-
-Add to your shell configuration (`~/.bashrc`, `~/.zshrc`, or equivalent):
-
-```bash
-# For bash/zsh
-echo 'export CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1' >> ~/.zshrc
-source ~/.zshrc
-
-# Verify it's set
-echo $CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS # Should output: 1
```
-#### Team Structure & Roles
+#### How a team is structured
-**Team Lead (You/Main Agent):**
-- Creates and assigns tasks
-- Monitors overall progress
-- Makes architectural decisions
-- Coordinates between teammates
-- Reviews completed work
+- **Team lead** *(your main session)* — assigns tasks, sets dependencies, reviews completed work.
+- **Teammates** *(specialist sub-agents)* — focus on a single task each, update the shared list, can request help.
+- **Shared task list** — single source of truth visible to everyone, tracks dependencies and status (pending / in progress / completed).
-**Teammates (Specialist Agents):**
-- Focus on assigned tasks
-- Report progress and blockers
-- Can request help from other teammates
-- Update shared task list
-- Work in parallel when possible
+#### Multi-agent collaboration patterns
-**Shared Task List:**
-- Central coordination point
-- Visible to all team members
-- Tracks dependencies between tasks
-- Shows task status (pending, in progress, completed)
-- Prevents duplicate work
+**1. Parallel development** — three independent streams, three teammates, one team lead synthesizing.
-#### Multi-Agent Collaboration Patterns
-
-**1. Parallel Development**
```markdown
-Task 1: Frontend engineer - Build login UI
-Task 2: Backend engineer - Implement auth API
-Task 3: QA engineer - Write integration tests
-
-All three agents work simultaneously on their tasks.
+Task 1: frontend-engineer – Build login UI
+Task 2: backend-engineer – Implement auth API
+Task 3: qa-engineer – Write integration tests
```
-**2. Sequential Pipeline**
+**2. Sequential pipeline** — one teammate's output feeds the next.
+
```markdown
-Task 1: Backend engineer - Create database schema
+Task 1: backend-engineer – Create database schema
↓ (blocks Task 2)
-Task 2: Backend engineer - Implement CRUD endpoints
+Task 2: backend-engineer – Implement CRUD endpoints
↓ (blocks Task 3)
-Task 3: Frontend engineer - Build admin dashboard
+Task 3: frontend-engineer – Build admin dashboard
```
-**3. Code Review Workflow**
+**3. Code review workflow** — feature lands, multiple reviewers, then revision.
+
```markdown
-Task 1: Feature developer - Implement new feature
+Task 1: feature-developer – Implement new feature
↓ (completed)
-Task 2: Security reviewer - Check for vulnerabilities
-Task 3: Performance reviewer - Analyze optimization opportunities
+Task 2: security-reviewer – Check for vulnerabilities
+Task 3: perf-reviewer – Analyze optimization opportunities
↓ (both complete)
-Task 4: Feature developer - Address review feedback
+Task 4: feature-developer – Address review feedback
```
-**4. Research & Implementation**
+**4. Research → implementation** — one analyst, multiple workers applying findings.
+
```markdown
-Task 1: Research agent - Analyze existing codebase patterns
+Task 1: research-agent – Analyze existing codebase patterns
↓ (generates recommendations)
-Task 2: Implementation team - Apply findings across modules
- - Teammate A: Update authentication module
- - Teammate B: Update payment module
- - Teammate C: Update notification module
+Task 2: implementation team – Apply findings across modules
+ - Teammate A: auth module
+ - Teammate B: payment module
+ - Teammate C: notifications module
```
-#### Example Usage
-
-**Simple Team Coordination:**
-```markdown
-I need to refactor our authentication system. Use agent teams:
-
-1. Create a "research" teammate to analyze current auth implementation
-2. Create a "backend" teammate to refactor the auth logic
-3. Create a "frontend" teammate to update UI components
-4. Create a "qa" teammate to write comprehensive tests
-
-Coordinate them to work in sequence, with each passing findings to the next.
-```
+#### Example: full feature implementation
-**Advanced Team Workflow:**
```markdown
-Create an agent team for a full feature implementation:
-
-Team Lead: You (coordinate overall strategy)
+Team lead: coordinate overall strategy.
Teammates:
-- planner: Analyze requirements and create technical spec
-- backend-dev: Implement API endpoints
-- frontend-dev: Build UI components
-- db-specialist: Design and migrate database schema
-- qa-engineer: Write unit and integration tests
-- security-reviewer: Perform security audit
-
-Task Dependencies:
-1. planner → creates spec (blocks all)
-2. db-specialist → schema design (blocks backend-dev)
-3. backend-dev + frontend-dev → parallel implementation
-4. qa-engineer → tests (waits for implementation)
-5. security-reviewer → audit (waits for all code)
-```
+- planner: requirements → technical spec
+- backend-dev: API endpoints
+- frontend-dev: UI components
+- db-specialist: schema design + migration
+- qa-engineer: unit + integration tests
+- security-reviewer: security audit
-#### Best Practices
-
-**✅ Do:**
-- Assign clear, focused tasks to teammates
-- Use descriptive teammate names (e.g., "frontend-specialist", not "agent1")
-- Set up task dependencies to prevent conflicts
-- Monitor the shared task list regularly
-- Keep team size manageable (3-5 teammates optimal)
-- Let teammates work in parallel when possible
-
-**❌ Don't:**
-- Create too many teammates (causes coordination overhead)
-- Assign vague or overlapping tasks
-- Skip task dependencies (can cause conflicts)
-- Micromanage teammate work
-- Mix different project contexts in one team
-
-#### Use Cases for Agent Teams
-
-**Ideal For:**
-- Large-scale refactoring across multiple files
-- Full-stack feature development
-- Simultaneous frontend and backend work
-- Comprehensive code reviews (multiple perspectives)
-- Research + implementation workflows
-- Complex migrations or upgrades
-
-**Not Ideal For:**
-- Simple single-file edits
-- Quick bug fixes
-- Exploratory coding sessions
-- Learning/tutorial following
-- Documentation-only tasks
-
-#### Monitoring & Debugging Teams
-
-**Check Team Status:**
-```bash
-# View all active teammates
-/agents
-
-# Check shared task list
-# (task list is visible in conversation context)
+Dependencies:
+1. planner → spec (blocks all)
+2. db-specialist → schema (blocks backend-dev)
+3. backend-dev + frontend-dev in parallel
+4. qa-engineer waits for implementation
+5. security-reviewer waits for all code
```
-**Common Issues:**
+#### Best practices
-| Issue | Solution |
-|-------|----------|
-| Teammates conflicting | Add explicit task dependencies with `blockedBy` |
-| Team too slow | Reduce team size, increase parallelization |
-| Tasks getting stuck | Check for circular dependencies |
-| Context confusion | Use clear task descriptions and teammate names |
+| ✅ Do | ❌ Don't |
+|---|---|
+| Give teammates clear, focused, single-purpose tasks | Spawn more than 3–5 teammates per session |
+| Use descriptive names (`frontend-specialist`, not `agent1`) | Assign vague or overlapping tasks |
+| Set explicit task dependencies (`blockedBy`) | Skip dependencies — they prevent merge conflicts |
+| Let teammates work in parallel when possible | Micromanage; trust the role prompt |
+| Use `/agents` to inspect team status | Mix different project contexts in one team |
-#### Current Limitations (Experimental)
+#### Common issues
-- **Experimental Status**: Features may change in future updates
-- **Resource Usage**: Multiple agents consume more tokens
-- **Coordination Overhead**: Large teams can slow down
-- **No Persistence**: Teams are session-specific (don't persist across restarts)
-- **Limited to Opus**: Best performance with Claude Opus 4.6
+| Issue | Fix |
+|---|---|
+| Teammates conflicting on the same files | Add explicit `blockedBy` dependencies |
+| Team too slow | Reduce team size; increase parallelization |
+| Tasks stuck | Check for circular dependencies |
+| Context drift | Make task descriptions and teammate names more specific |
-#### Future Roadmap
+#### Limitations (it's experimental)
-Expected enhancements for Agent Teams:
-- Persistent teams across sessions
-- Visual team dashboard
-- Advanced task scheduling
-- Inter-team communication tools
-- Team templates for common workflows
-- Performance optimizations
+- Multiple agents consume more tokens — budget accordingly.
+- Large teams add coordination overhead; 3–5 teammates is the sweet spot.
+- Teams are session-scoped — they don't persist across restarts.
+- Top performance with Opus 4.7; works on Sonnet 4.6 with shallower reasoning.
-**Learn More:**
-- For basic agent usage, see the "General Agents" section above
-- For specialized single agents, see "Specialized Agents" section above
-- Enable experimental features with environment variables
+> 🔮 Roadmap: persistence, visual dashboards, inter-team communication. See [`docs/reference/changelog.md` → Coming soon](docs/reference/changelog.md#-coming-soon).
---
-### Hooks
-
-Claude Code hooks are customizable checkpoints that let you intercept and control Claude's autonomous coding operations before they execute on your system. They act as programmable guardrails where you can define safety policies, validate changes, require approvals, or log activities. When Claude attempts to modify files, run commands, or make system changes, your hooks can inspect the proposed action and either allow it, block it, or modify it based on your custom logic, giving you fine-grained control over what the AI agent can actually do to your codebase.
-
-![Hooks Workflow](Images/hooks-workflow.png)
-
-### Setting Up Claude Hooks
-
-Claude Code hooks are configured in **settings files** such as `~/.claude/settings.json` (user settings), `.claude/settings.json` (project settings), `.claude/settings.local.json` (local project settings), and enterprise managed policy settings.
-
-Follow these steps to configure hooks in your project:
-
-1. **Copy Hooks Folder**
- Copy the `.claude/hooks` directory into the `.claude` folder at the root of your project.
-
-2. **Review Available Hooks**
- Inside the `hooks` folder, you’ll find Python scripts for each hook (e.g., `notification`, `post_tool_use`, etc.).
-
-3. **Keep Only Required Hooks**
- Retain the hooks you need and delete the rest.
-
-4. **Install Package Manager**
- Install the [uv](https://docs.astral.sh/uv/getting-started/installation/) Python package manager.
- > This is required to execute Python scripts.
-
-5. **Copy Settings File**
- Copy `.claude/settings.json` into your `.claude` folder.
-
-6. **Update Settings Path**
- Open `settings.json`, find the entry for: "/Users/wesam/.local/bin/uv" Replace it with the actual path returned by:
- ```bash which uv```
-
-```text
-project-root/
-│
-├── .claude/
-│ ├── hooks/
-│ │ ├── notification.py
-│ │ ├── post_tool_use.py
-│ │ └── ... (other hooks you keep)
-│ │
-│ └── settings.json
-│
-└── (other project files)
-```
-
-For a complete working example of hooks in action, see the [Event-X repository](https://github.com/wesammustafa/Event-X).
-
-**💡 Quick Configuration (New 2026):**
-Use the interactive `/hooks` command for menu-based hook configuration without manually editing JSON files:
-```bash
-# Launch interactive hook configuration menu
-/hooks
-
-# Browse available hooks, enable/disable them, and configure settings
-# Much easier than manual JSON editing!
-```
-
-### Hook Events
-
-Hooks run in response to various events within Claude Code's lifecycle:
-[examples](https://github.com/disler/claude-code-hooks-mastery)
-- **`PreToolUse`**: Runs **after Claude creates tool parameters but before processing the tool call**.
-- **`PostToolUse`**: Runs **immediately after a tool completes successfully**.
-- **`Notification`**: Runs when Claude Code sends notifications, such as when permission is needed to use a tool or when prompt input has been idle.
-- **`UserPromptSubmit`**: Runs when the user submits a prompt, **before Claude processes it**.
-- **`Stop`**: Runs when the main Claude Code agent has finished responding (does not run if stopped by user interrupt).
-- **`SubagentStop`**: Runs when a Claude Code subagent (Task tool call) has finished responding.
-- **`SessionEnd`**: Runs when a Claude Code session ends.
-- **`PreCompact`**: Runs before Claude Code is about to run a compact operation.
-- **`SessionStart`**: Runs when Claude Code starts a new session or resumes an existing session.
-- **`TeammateIdle`**: Runs when an agent teammate becomes idle (new 2026, for Agent Teams).
-- **`TaskCompleted`**: Runs when a task is marked as completed (new 2026).
-
-### Hook Input
-
-Hooks receive **JSON data via stdin** containing session information and event-specific data. Common fields include `session_id`, `transcript_path` (path to conversation JSON), and `cwd` (current working directory). Event-specific fields vary:
-
-| Hook Event | Payload / Fields |
-|---------------------|-----------------|
-| `PreToolUse` | `tool_name`, `tool_input` |
-| `PostToolUse` | `tool_name`, `tool_input`, `tool_response` |
-| `Notification` | `message` |
-| `UserPromptSubmit` | `prompt` |
-| `Stop` / `SubagentStop` | `stop_hook_active` |
-| `PreCompact` | `trigger`, `custom_instructions` |
-| `SessionStart` | `source` |
-| `SessionEnd` | `reason` |
-| `TeammateIdle` | `teammate_id`, `last_activity` |
-| `TaskCompleted` | `task_id`, `task_name`, `completion_time` |
-
-
-### Hook Output
-
-Hooks communicate status and control Claude Code behavior in two ways:
-
-## Hook Exit Codes and JSON Output
-
-| Exit Code / Feature | Behavior / Description |
-|----------------------------------------|-----------------------|
-| **Exit code 0 (Success)** | `stdout` is shown to the user in transcript mode (CTRL-R). For `UserPromptSubmit` and `SessionStart`, `stdout` is added to Claude's context. |
-| **Exit code 2 (Blocking error)** | `stderr` is fed back to Claude or shown to the user to block actions depending on the hook event. Examples: **blocks tool calls in `PreToolUse`** and **prompt processing in `UserPromptSubmit`**. |
-| **Other exit codes (Non-blocking error)** | `stderr` is shown to the user, but execution continues. |
-| **Advanced: JSON Output** | Hooks can return structured JSON in `stdout` for sophisticated control. |
-| `PreToolUse` | `permissionDecision`: `"allow"`, `"deny"`, or `"ask"`. Can also return `updatedInput` to modify tool parameters (new 2026). |
-| `PostToolUse` | `decision`: `"block"` or `undefined`; `additionalContext` can be returned. |
-| `UserPromptSubmit` | `decision`: `"block"` or `undefined`; `additionalContext` can be returned. |
-| `Stop` / `SubagentStop` | `decision`: `"block"` or `undefined`. |
-| `SessionStart` | `additionalContext` can be added. |
-
-
-### Security Considerations
-
-Hooks execute **arbitrary shell commands** on your system automatically and can modify, delete, or access any files your user account can access. Users are solely responsible for configured commands, and Anthropic provides no warranty.
-
-**Security Best Practices** include:
-
-- Validating and sanitizing inputs.
-- Quoting shell variables.
-- Blocking path traversal.
-- Using absolute paths for scripts.
-- Skipping sensitive files (e.g., `.env`, `.git/`). Configuration safety features include capturing a snapshot of hooks at startup and warning if hooks are modified externally, requiring review to apply changes.
-
-### Hook Execution Details and Debugging
-
-- **Timeout**: Hooks have a 60-second execution limit by default, configurable per command.
-- **Parallelization**: All matching hooks run in parallel.
-- **Environment**: Hooks run in the current directory with Claude Code’s environment, and the `CLAUDE_PROJECT_DIR` environment variable is available.
-- **Debugging**: Basic troubleshooting involves checking configuration with `/hooks`, verifying syntax, testing commands manually, and reviewing logs using `claude --debug`. Advanced debugging includes inspecting hook execution details, validating JSON schemas, and monitoring system resources.
-
### Model Context Protocol (MCP)
-> **📚 Comprehensive MCP Documentation**
-> For detailed setup, configuration, and usage of MCP servers:
-> - **[MCP Servers Documentation](./mcp-servers/)** - Complete guide with prerequisites, installation, and individual server documentation (Serena, Sequential Thinking, Memory, Playwright)
-> - **[Troubleshooting Guide](./mcp-servers/README.md#troubleshooting)** - Common issues and solutions
+> **Mental model:** MCP is a universal translator that lets any AI tool talk to any data source through one open protocol — USB-C for AI integrations.
-![Why is building AI Agents so chaotic?](Images/MCP/mcp-1.png)
+#### Featured MCP servers
-#### The Core Problem: Fragmentation and Inefficiency
-- AI agents are becoming smarter but face a massive hidden communication problem that's holding them back from their full potential.
-- Building AI agents is chaotic because it's ridiculously hard to get them to talk to the tools and data they need to be useful.
-- The current system is described as "a complete and utter mess," referred to by Anthropic as **"the land before MCP"**.
-- **Total fragmentation exists**, with teams, even inside the same company, reinventing the wheel by building custom one-off connections for every single tool and data source.
-- This chaos is named the **N by M problem**:
- ![Without MCP vs With MCP](Images/MCP/mcp-2.png)
- - If you have `n` AI applications and `m` different tools, the old way forces you to build n * m unique integrations.
- - This leads to an **exponential explosion of work that is completely unsustainable**.
- - This fragmentation everywhere, happening between different teams inside their own company, creating massive inefficiency and wasted effort.
- - The desired outcome is an **N + M world**, where you just build one connection for each app and one for each tool, and they all work together.
+Full setup walkthroughs in [`mcp-servers/`](./mcp-servers/). New to MCP? [`mcp-servers/playwright.md`](./mcp-servers/playwright.md) has a working three-line setup.
-> **Installing Playwright MCP for Claude Code (CLI)**
-Claude Code uses a different installation method than Claude Desktop, with MCP servers being added per-directory and persisting in a ~/.claude.json configuration file.
+| Server | What it adds | Walkthrough |
+|---|---|---|
+| **Serena** | Symbol-level code navigation and editing across many languages | [serena.md](./mcp-servers/serena.md) |
+| **Sequential Thinking** | Step-by-step reasoning that breaks complex problems into manageable steps | [sequential-thinking.md](./mcp-servers/sequential-thinking.md) |
+| **Memory** | Persistent context across sessions | [memory.md](./mcp-servers/memory.md) |
+| **Playwright** | Browser automation — interaction, scraping, testing, accessibility | [playwright.md](./mcp-servers/playwright.md) |
- **Quick Installation**
+See [`mcp-servers/README.md`](./mcp-servers/README.md) for the comparison matrix, install commands, and troubleshooting.
-The simplest method for Claude Code CLI:
-```bash
-# Navigate to your project directory
-cd /path/to/your/project
+#### More MCP servers worth knowing
-# Add Playwright MCP to Claude Code
-claude mcp add playwright npx '@playwright/mcp@latest'
-```
+Install from the [registry](https://registry.modelcontextprotocol.io/) or follow the source link. No walkthrough yet — source READMEs cover setup.
-**ExecuteAutomation Version (More Features)**
+**General-purpose:**
-```bash
-claude mcp add playwright npx '@executeautomation/playwright-mcp-server'
-```
+| Server | What it adds | Source |
+|---|---|---|
+| **Context7** | Live, version-pinned library docs piped into the prompt — grounds answers in current API surfaces instead of training-cutoff guesses | [upstash/context7](https://github.com/upstash/context7) |
+| **Tavily** | Web search, page extraction, and research designed for AI agents | [tavily-ai/tavily-mcp](https://github.com/tavily-ai/tavily-mcp) |
+| **Chrome DevTools** | Drives a real Chrome instance — DOM inspection, network logs, console, performance traces, screenshots | [ChromeDevTools/chrome-devtools-mcp](https://github.com/ChromeDevTools/chrome-devtools-mcp) |
+| **mem0** | Hosted long-term memory with semantic recall across sessions and projects (richer than the local-only Memory server above) | [mem0ai/mem0](https://github.com/mem0ai/mem0) |
-**Usage After Installation**
-```bash
-# Start Claude Code in your project directory
-claude
+**Specialized — reach for these when the workflow fits:**
-# Now you can use Playwright through natural language
-"Use playwright mcp to open a browser to example.com"
-"Take a screenshot of the current page"
-"Click on the login button and fill the form"
-```
+| Server | What it adds | When to reach for it | Source |
+|---|---|---|---|
+| **context-mode** | Curates and ships project context (rules, files, conventions) on demand | Multi-repo setups wanting consistent context without hand-rolled CLAUDE.md plumbing | [mksglu/context-mode](https://github.com/mksglu/context-mode) |
+| **Shadcn** | Pulls shadcn/ui component source into the session for accurate scaffolding | Frontend work in a shadcn/ui codebase | [ui.shadcn.com/docs/mcp](https://ui.shadcn.com/docs/mcp) |
+| **LangSmith** | Trace, evaluate, and debug LLM apps from inside Claude Code | Building on LangChain / LangGraph and want observability without leaving the terminal | [langchain-ai/langsmith-mcp-server](https://github.com/langchain-ai/langsmith-mcp-server) |
+| **TrustGraph** | Knowledge-graph-backed RAG with multi-source ingestion and graph-aware retrieval | Advanced RAG where flat vector search isn't enough — entity-rich corpora, agentic retrieval | [trustgraph-ai/trustgraph](https://github.com/trustgraph-ai/trustgraph) |
+#### The N×M problem MCP solves
-**Verification Commands**
+![N×M problem before MCP](Images/MCP/mcp-1.png)
-```bash
-# Check available MCP tools
-/mcp
+Before MCP, every AI app needed a custom integration for every tool: `n` apps × `m` tools = `n × m` brittle one-off connections. Teams inside the same company would reinvent the same Slack/GitHub/Postgres integration over and over.
-# Navigate to playwright section to see all tools
-# Available tools include: browser_navigate, browser_click,
-# browser_screenshot, browser_type, etc.
-```
+![Without MCP vs With MCP](Images/MCP/mcp-2.png)
+MCP collapses this to **N + M**: each app implements MCP once, each tool exposes MCP once, and any combination works together. Same pattern Web APIs gave us for app-to-server and LSP gave us for editor-to-language tooling.
-**Directory-Specific Persistence**
-The claude mcp add command will persist but will only affect the directory in which you run it, with configuration stored in ~/.claude.json under a "projects" key.
+![The evolution of protocols](Images/MCP/mcp-3.png)
-```bash
-# Each directory can have different MCP configurations
-cd ~/project-a
-claude mcp add playwright npx '@playwright/mcp@latest'
+#### Three pillars
-cd ~/project-b
-claude mcp add playwright npx '@executeautomation/playwright-mcp-server'
-```
+![MCP three pillars](Images/MCP/mcp-4.png)
-#### The Solution: Model Context Protocol
-
-- **MCP is the proposed solution** to this chaos.
-- It functions as a **universal translator for AI**.
-- **MCP is an open standard** designed to let any AI application speak fluently with any tool or data source.
-- It's the next logical step in a pattern seen before in tech:
- ![The Evolution of Protocols](Images/MCP/mcp-3.png)
- - **Web APIs** standardized how web apps talk to servers.
- - The **Language Server Protocol (LSP)** did the same for code editors and their tools.
- - **MCP is that same evolutionary leap for AI**, creating a common language for how agents talk to the rest of the world.
-- The core mission of MCP is to be an **open standard layer that flattens the N by M problem**.
-- It is explicitly **not a proprietary thing** but designed to be a public good for the whole ecosystem.
-- The goal is to make building with AI faster, more efficient, and more collaborative.
-
-#### How MCP Works: Three Core Pillars (Interfaces)
- ![MCP Deep Dive](Images/MCP/mcp-4.png)
- MCP is built on three core pillars designed to create a clean separation of duties and make it crystal clear who's in control of any given interaction:
-1. **Tools**
- - **Controlled by the AI model** so it can take action.
- - Developers expose capabilities like searching a database or writing to a file.
- - The **model decides when and how to use those tools** to accomplish its goal.
-
-2. Resources
- - **Controlled by the application**.
- - Allows developers to feed the AI rich, structured information beyond plain text.
- - Examples include attaching files, surfacing error logs, or sending complex JSON objects.
- - The application developer decides what important context the AI needs.
-
-3. Prompts
- - **Controlled by the user**.
- - Function like slash commands in apps like Slack or Discord.
- - A simple user shortcut (e.g., `/summarize_this_pull_request`) kicks off complex multi-step actions.
- - This puts **direct powerful control** back in the user's hands.
-
-#### The Future Vision: The MCP Registry and Self-Evolving Agents
-
-![Agent Learning on the Fly](Images/MCP/mcp-5.png)
-- **MCP lays the foundation for the next generation of AI**, enabling agents that can learn, grow, and evolve on their own.
-- The key to this future is the **MCP Registry**.
-- **The MCP Registry** is imagined as a global centralized directory, like an app store for AI tools and capabilities.
-- Its function allows an AI agent to:
- - **Search for** new tools **Verify** their authenticity
- - **Dynamically connect** to brand new tools it's never encountered
- - **Real-world example**:
- - An agent needs to check logs in Grafana but has no idea what Grafana is.
- - Instead of failing, it pings the MCP registry, searches for a verified Grafana server, finds the official one, and instantly connects.
- - The agent uses these new tools to read the log and complete the task.
- - This demonstrates the agent **literally teaching itself a new skill on the fly**.
-- The ultimate vision: agents that are **no longer limited to their original tools**.
-- They will **proactively discover and integrate new capabilities** by themselves.
-- The agent will give itself context and evolve to meet whatever new challenge comes its way.
+Each pillar makes ownership explicit, so it's always clear who's driving:
----
+| Pillar | Controlled by | Purpose |
+|---|---|---|
+| **Tools** | The model | Lets the AI take actions — query a DB, call an API, write a file |
+| **Resources** | The application | Feeds the AI structured context — files, error logs, JSON objects |
+| **Prompts** | The user | Slash-command shortcuts that kick off multi-step workflows |
-#### MCP Ecosystem Updates (2026)
+#### The MCP Registry & self-discovering agents
-The Model Context Protocol has evolved significantly since its introduction. Here's what's new:
+![Agent learning on the fly](Images/MCP/mcp-5.png)
-**🎯 MCP Registry - Now Live!**
+The [official MCP Registry](https://registry.modelcontextprotocol.io/) (live since September 2025) is the app-store-equivalent for MCP servers. An agent that needs to check Grafana logs but doesn't have a Grafana tool wired up can ping the registry, find the verified server, install it, and continue — teaching itself a new capability on the fly.
-The official **[MCP Registry](https://registry.modelcontextprotocol.io/)** launched in September 2025, providing a centralized directory of MCP servers.
+#### What's new in 2026
-**Key Features:**
-- 🔍 **Searchable catalog** of official and community MCP servers
-- 📦 **One-click installation** for supported servers
-- 🔐 **Public and private sub-registries** for organizations
-- ✅ **Quality verification** for listed servers
-- 📚 **Comprehensive documentation** for each server
+- **Live registry** — search official and community servers at [registry.modelcontextprotocol.io](https://registry.modelcontextprotocol.io/) or `claude mcp search <keyword>`.
+- **Linux Foundation governance** — MCP donated to the [Agentic AI Foundation](https://www.anthropic.com/news/donating-the-model-context-protocol) for vendor-neutral development.
+- **MCP Apps** — servers can ship interactive UI components, not just text tools.
+- **OAuth client credentials** — built-in `--client-id` / `--client-secret` flags for authenticated services.
+- **Async operations** — non-blocking server calls for long-running tasks.
+- **Server discovery** — `.well-known` URLs for automatic discovery.
-**Browse Available Servers:**
```bash
-# Visit the registry online
-https://registry.modelcontextprotocol.io/
-
-# Or search directly via claude mcp
-claude mcp search <keyword>
+claude mcp add <server> npx '@<package>@latest' # install from registry
+claude mcp add my-api --client-id ID --client-secret S npx '...' # with OAuth
+/mcp # list connected servers
```
-**🏢 Agentic AI Foundation**
-
-As of 2026, MCP has been **donated to the Agentic AI Foundation** (part of the Linux Foundation), ensuring:
-- Open governance and community-driven development
-- Long-term sustainability and vendor neutrality
-- Industry-wide collaboration and standardization
-
-**🆕 Latest Protocol Features**
-
-**1. MCP Apps (Interactive UI Components)**
-- Servers can now provide interactive UI elements
-- Visual components for complex interactions
-- Enhanced user experience for tool configuration
-
-**2. OAuth Client Credentials**
-- Built-in OAuth support for secure authentication
-- Use `--client-id` and `--client-secret` flags
-- Simplified integration with authenticated services
+📚 References: [MCP roadmap](https://modelcontextprotocol.io/development/roadmap) · [Official servers](https://github.com/modelcontextprotocol/servers).
-**3. Async Operations**
-- Non-blocking server operations
-- Better performance for long-running tasks
-- Improved responsiveness
-
-**4. Server Discovery**
-- `.well-known` URLs for automatic server discovery
-- Easier integration with new services
-- Standard protocol for server metadata
+---
-**5. Stateless Architecture**
-- Improved server reliability
-- Better scaling characteristics
-- Simplified server implementation
+<a id="fast-mode"></a>
+### Fast Mode ↯
-**Example: Installing from Registry**
-```bash
-# Browse registry for interesting servers
-# Visit https://registry.modelcontextprotocol.io/
+`/fast` toggles **2.5× faster responses at 6× the price**. The **↯** indicator confirms it's on.
-# Install a server from the registry
-claude mcp add <server-name> npx '@<package-name>@latest'
+> ⚠️ **Fast Mode runs on Opus 4.6 — not 4.7.** Even if your default model is Opus 4.7, `/fast` switches the underlying model to 4.6. Sonnet and Haiku don't have a Fast Mode.
-# Example: Install a database MCP server
-claude mcp add sqlite npx '@modelcontextprotocol/server-sqlite@latest'
-```
+| | Standard Opus 4.6 | Fast Mode (Opus 4.6) |
+|---|---|---|
+| Input (per MTok) | $5 | $30 |
+| Output (per MTok) | $25 | $150 |
-**OAuth Authentication Example**
```bash
-# Add server with OAuth credentials
-claude mcp add my-api \
- --client-id "your-client-id" \
- --client-secret "your-secret" \
- npx '@api-mcp-server@latest'
+/fast # toggle on (↯ appears)
+> fix the auth bug in src/login.ts # ~2.5× faster
+/fast # toggle off when done
```
-**🔮 What's Next for MCP**
-
-The MCP ecosystem continues to grow with:
-- More official integrations from major platforms
-- Enhanced protocol capabilities
-- Expanded registry features
-- Better tooling and debugging support
-- Community-built server ecosystem
-
-**Resources:**
-- Official Registry: https://registry.modelcontextprotocol.io/
-- MCP Roadmap: https://modelcontextprotocol.io/development/roadmap
-- Agentic AI Foundation: https://www.anthropic.com/news/donating-the-model-context-protocol
+**Decision rule:** use it when latency matters (live debugging, demo prep, time-pressured fixes). Skip it for background work, exploration, or anything where 2.5× faster isn't worth 6× the cost. Use `/cost` to monitor the bill.
---
-### SDLC
-![Software Software Development Life Cycle](Images/sdlc.png)
-
-![What is Software Software Development Life Cycle?](Images/what-is-sdlc.png)
-
-[What is Software Development Life Cycle](https://aws.amazon.com/what-is/sdlc)
-
### Super Claude Framework
-[Source](https://github.com/SuperClaude-Org/SuperClaude_Framework)
-
-### The BMAD METHOD — AI Agent Framework
-[Source](https://github.com/bmad-code-org/BMAD-METHOD)
-
-### FAQ
-
-#### Q: What Claude models are available in 2026?
-
-**A:** As of February 2026, the Claude 4.5/4.6 model family is available:
-
-| Model | Model ID | Context Window | Max Output | Best For |
-|-------|----------|----------------|------------|----------|
-| **Opus 4.6** | `claude-opus-4-6` | 200K tokens (1M beta via API) | 128K tokens | Complex reasoning, coding, analysis |
-| **Sonnet 4.5** | `claude-sonnet-4-5-20250929` | 200K tokens | 8K tokens | Balanced performance & speed |
-| **Haiku 4.5** | `claude-haiku-4-5-20251001` | 200K tokens | 8K tokens | Fast, lightweight tasks |
-
-**Key Features:**
-- **Opus 4.6**: Adaptive thinking, agent teams, top Terminal-Bench 2.0 scores
-- **1M Context Window**: Available in beta via API only (not in subscription plans at launch)
-- **Fast Mode**: 2.5x faster Opus 4.6 responses (6x pricing, toggle with `/fast`)
-
-#### Q: What's the difference between custom slash commands and skills?
-
-**A:** They're the same thing. See the [Skills FAQ section](#skills-faq) in the Claude Skills documentation for complete details on skills, including security best practices, team sharing, and troubleshooting.
-
-#### Q: How many tokens do I get with Claude Code Pro plan?
-
-**A:** Pro plan users get approximately **~45 messages per 5-hour period** (or roughly **10-40 coding prompts** depending on complexity).
-
-- Usage limits reset every 5 hours (rolling window)
-- **Full access to ALL models:** Claude Opus 4.6, Sonnet 4.5, and Haiku 4.5
-- Pro plan now includes Opus 4.6 (as of 2026)
-#### Q: How are tokens calculated in Claude Code?
+> An open-source framework that bolts pre-built personas, commands, and workflows on top of Claude Code.
-**A:** Tokens include everything in your interaction:
+**What it is.** [Super Claude](https://github.com/SuperClaude-Org/SuperClaude_Framework) ships 15+ ready-made specialist agents (architect, security, performance, frontend, etc.) plus a library of structured slash commands (`/sc:analyze`, `/sc:improve`, `/sc:design`) and behavioral flags. It installs into `~/.claude/` as a drop-in extension to Claude Code.
-**Text Tokenization:**
-- Basic formula: `tokens ≈ number of words + punctuation marks`
-- Example: "Hello, world!" = approximately 4 tokens (use claude tokenizer to calculate tokens [Tokenizer for Claude 4](https://claude-tokenizer.vercel.app/))
-- Uses BPE (Byte Pair Encoding) for subword tokenization
+**Why pair it with Claude Code.** Skips the "write your own role prompts" phase. You get a curated library of expert personas and commands the community has already iterated on — useful as both a daily tool and a reference for how to write your own skills.
-**What Counts Toward Your Limit:**
-- Your prompts and questions
-- Claude's responses and explanations
-- System instructions and tool definitions
-- File content that Claude reads
-- Project structure analysis
-- Images: `tokens = (width px × height px) / 750`
+**When to reach for it.** You want pre-built specialist agents without building them yourself, or you're learning prompt patterns by reading well-crafted examples.
-**Rough Conversion:**
-- 1 token ≈ 0.75 words (English text)
-- 1,000 tokens ≈ 750 words
-- 44,000 tokens ≈ 33,000 words
+→ [Source on GitHub](https://github.com/SuperClaude-Org/SuperClaude_Framework)
-#### Q: What are the Claude subscription plans and pricing (2026)?
-
-**A:** As of February 2026, Claude offers the following subscription tiers:
-
-| Plan | Price | Models Available | Usage Limit | Claude Code Access | Priority |
-|------|-------|------------------|-------------|-------------------|----------|
-| **Free** | $0 | Limited | Base | Limited | Standard |
-| **Pro** | $20/mo ($17/mo annually) | All (Opus 4.6, Sonnet 4.5, Haiku 4.5) | ~45 messages/5hr | Full | Standard |
-| **Max 5x** | $100/mo | All | 5x Pro (~225 messages/5hr) | Full | High |
-| **Max 20x** | $200/mo | All | 20x Pro (~900 messages/5hr) | Full | Maximum |
-
-**Key Points:**
-- **Unified Subscription**: One subscription covers both web (claude.ai) and CLI (Claude Code)
-- **Pro Benefits**: Full access to all models including Opus 4.6 (major upgrade from previous Sonnet-only access)
-- **Average Costs**: Pro users typically spend ~$6/day on coding tasks, with 90% spending under $12/day
-
-**API Pricing (Pay-as-you-go):**
-
-| Model | Input (per MTok) | Output (per MTok) | Fast Mode Input | Fast Mode Output |
-|-------|------------------|-------------------|-----------------|------------------|
-| Opus 4.6 | $5 | $25 | $30 (6x) | $150 (6x) |
-| Sonnet 4.5 | $3 | $15 | N/A | N/A |
-| Haiku 4.5 | $1 | $5 | N/A | N/A |
-
-**Fast Mode Pricing:**
-- Only available for Opus 4.6
-- 6x standard pricing: $30 input / $150 output per million tokens
-- 50% discount promotion until Feb 16, 2026 11:59pm PT
-- Toggle with `/fast` command
-
-#### Q: How many lines of code can I write with 44,000 tokens?
-
-**A:** **Theoretical capacity:** ~2,900-3,400 lines of pure code (13-15 tokens per line average)
-
-**Practical reality:** Effective for projects with **1,000-2,000 lines** because tokens are shared across:
-- Reading existing codebase
-- Claude's analysis and suggestions
-- Back-and-forth conversation
-- File modifications and explanations
-- Project context loading
-
-#### Q: What happens when I run multiple Claude Code sessions in different terminals?
-
-**A:** Two types of "sharing" occur:
-
-**1. Usage Limits (Shared Pool):**
-- All Claude Code sessions share the same 44,000 token allowance
-- Multiple sessions will exhaust your limits faster
-- Running 3 parallel sessions ≈ 3-13 prompts per session before hitting limits
-
-**2. Conversation Context (Independent):**
-- Each terminal has separate conversation history
-- Claude in tab 1 doesn't know what happened in tab 2
-- Each session analyzes codebases independently
-
-#### Q: How do Git worktrees affect Claude Code sessions?
-
-**A:** Git worktrees create an interesting hybrid situation:
-
-**Separate Working Directories:**
-- Each worktree shows different file contents
-- Changes committed in feature X won't appear in feature Y's files
-- Each Claude session sees different code states
-
-**Shared Git Metadata:**
-- All worktrees share the same `.git` directory
-- Git history, branches, and commit logs are visible across all worktrees
-- Claude can see that commits happened in other features (but not the actual code changes)
-
-**Example:**
-```bash
-# Terminal 1: feature/auth
-git commit -m "Add auth middleware"
-
-# Terminal 2: feature/payment
-cat middleware.js # Won't show auth changes
-git log --oneline --all # WILL show the auth commit
-```
-
-#### Q: How can I get completely separate Claude Code contexts?
-
-**A:** Use **separate repository clones** instead of worktrees:
-
-```bash
-# Instead of worktrees:
-~/project-auth/ # Complete separate clone
-~/project-payment/ # Complete separate clone
-
-# Benefits:
-# - Separate .git directories
-# - Independent Git histories
-# - No shared state whatsoever
-# - Claude sees completely isolated projects
-```
+---
-#### Q: What is Fast Mode and when should I use it?
+### The BMAD METHOD — AI Agent Framework
-**A:** Fast Mode provides **2.5x faster responses** using Claude Opus 4.6 at the cost of 6x pricing.
+> A multi-agent framework that walks a project from idea to working software using a team of Claude agents in defined roles.
-**How to Use:**
-- Toggle on/off with `/fast` command
-- Visual indicator: **↯** icon appears when active
-- Only works with Opus 4.6 (not Sonnet or Haiku)
+**What it is.** [BMAD](https://github.com/bmad-code-org/BMAD-METHOD) (Breakthrough Method of Agile AI-driven Development) coordinates specialist agents — analyst, PM, architect, developer, QA, scrum master — through a full SDLC. Each role produces specific artifacts (PRD, architecture doc, story file) that the next role consumes. Works as a Claude Code extension via skills and agents.
-**Pricing:**
-- Standard Opus 4.6: $5 input / $25 output per MTok
-- Fast Mode: $30 input / $150 output per MTok (6x cost)
-- 50% discount promotion until Feb 16, 2026 11:59pm PT
+**Why pair it with Claude Code.** Gives you a documented, repeatable workflow for greenfield builds. Instead of asking Claude "build me an app," you walk through analyst → PM → architect → developer → QA, each agent producing structured output the next one consumes.
-**When to Use Fast Mode:**
-- ✅ Rapid iteration and experimentation
-- ✅ Live debugging sessions
-- ✅ Time-sensitive deployments
-- ✅ Quick prototyping
-- ❌ Long background tasks
-- ❌ Budget-conscious projects
-- ❌ Non-urgent documentation work
+**When to reach for it.** Greenfield projects, large feature builds, or any time you want planning rigor before code. Overkill for a quick fix or a one-file refactor.
-**Best Practice:** Toggle Fast Mode on only when you need speed, then toggle off to save costs.
+→ [Source on GitHub](https://github.com/bmad-code-org/BMAD-METHOD)
-#### Q: What's the difference between Claude Max 5x and 20x?
+---
-**A:** Claude Max plans multiply your usage capacity compared to Pro:
+### FAQ
-**Max 5x ($100/month):**
-- 5x Pro usage: ~225 messages per 5-hour window
-- Best for: Professional developers with heavy daily usage
-- Priority access during peak times
+*[→ Full FAQ in `docs/reference/faq.md`](docs/reference/faq.md)* — covers models, pricing, tokens, plans, Fast Mode, worktrees, and Pro-plan optimization.
-**Max 20x ($200/month):**
-- 20x Pro usage: ~900 messages per 5-hour window
-- Best for: Teams, power users, or production development
-- Maximum priority access
+A few of the most-asked questions:
-**Who Should Upgrade:**
-- Frequently hit Pro limits (45 messages/5hr)
-- Work on multiple projects simultaneously
-- Need guaranteed availability during high-traffic periods
-- Professional/commercial development work
+**How many messages do I get on the Pro plan?**
+~45 messages per 5-hour rolling window. Full access to all models (Opus 4.7, Sonnet 4.6, Haiku 4.5; previous-gen 4.6/4.5 also available). [Details →](docs/reference/faq.md#q-how-many-messages-do-i-get-on-the-pro-plan)
-#### Q: Can I use Opus 4.6's 1M context window?
+**What's the difference between Pro, Max 5x, and Max 20x?**
+Pro $20/mo, Max 5x $100/mo (5× usage), Max 20x $200/mo (20× usage). All tiers include Claude Code and all models. [Pricing details →](docs/reference/faq.md#q-what-are-the-claude-subscription-plans-and-pricing)
-**A:** The 1M token context window is currently in **beta and available via API only**.
+**Should I use Fast Mode?**
+Use it for rapid iteration and time-sensitive work; skip it for long background tasks (6× pricing). [More →](docs/reference/faq.md#q-what-is-fast-mode-and-when-should-i-use-it)
-**Current Status (February 2026):**
-- ✅ Available: Via API with API key
-- ❌ Not Available: In Pro/Max subscription plans (limited to 200K context)
-- Beta access required
+**What's the difference between custom slash commands and skills?**
+Same thing — both are markdown files in `.claude/commands/`. See [Skills FAQ in `docs/skills.md`](docs/skills.md#skills-faq).
-**How to Access:**
-- Use Claude API directly with your API key
-- Set model to `claude-opus-4-6`
-- Enable beta features in API settings
-- Note: 1M context window may be added to subscriptions in future updates
+**Can I use Opus 4.7's 1M context window?**
+Beta and API-only at the moment. Subscription plans are limited to 200K. [Beta access details →](docs/reference/faq.md#q-can-i-use-opus-47s-1m-context-window)
-**Use Cases for 1M Context:**
-- Analyzing entire large codebases at once
-- Processing extensive documentation
-- Complex multi-file refactoring
-- Long-form content generation
+---
-#### Q: How can I maximize my Claude Code Pro usage?
+<a id="updates--deprecations-february-2026"></a>
-**A:** **Session Management:**
-- Use `/compact` command to reduce context in long sessions
-- Close unused sessions to avoid accidental token consumption
-- Time your sessions to align with your peak coding periods
-- Start fresh contexts for different types of work
+### Updates & Deprecations
-**Token Efficiency:**
-- Batch similar tasks together
-- Use `/model` command strategically (choose between Opus 4.6, Sonnet 4.5, Haiku 4.5 based on task complexity)
-- Be specific in prompts to avoid back-and-forth
-- Work on one feature at a time when possible
+*[→ Full changelog in `docs/reference/changelog.md`](docs/reference/changelog.md)* — major changes, new features, and deprecations through May 2026.
-**Project Structure:**
-- Create concise CLAUDE.md files for project context
-- Use selective file reading when possible
+**Recent highlights:**
----
+- 🆕 **Claude Opus 4.7** *(May 2026)* — sharper reasoning and better long-context grounding than Opus 4.6 at the same price.
+- 🆕 **Claude Sonnet 4.6** *(May 2026)* — replaces Sonnet 4.5 as the everyday balanced tier.
+- 🆕 **Agent Teams** — multi-agent collaboration with team leads and shared task lists (experimental).
+- 🆕 **MCP Registry** is live at [registry.modelcontextprotocol.io](https://registry.modelcontextprotocol.io/), now governed by the Linux Foundation.
+- 🆕 New commands: `/fast`, `/auth`, `/debug`, `/teleport`, `/rename`, `/hooks`.
+- 📝 **Pro plan** now includes every current and previous-generation model; usage measured in messages (~45 / 5hr), not tokens.
+- ❌ `/login` and `/logout` deprecated in favor of `/auth login` / `/auth logout`.
-### Updates & Deprecations (February 2026)
-
-This section tracks major changes, new features, and deprecated functionality as of February 2026.
-
-#### 🆕 New Features
-
-**Claude Models & Performance:**
-- ✅ **Claude Opus 4.6** - Most capable model with adaptive thinking and 128K max output
-- ✅ **1M Context Window** - Beta access via API (200K in subscriptions)
-- ✅ **Fast Mode** - 2.5x faster Opus 4.6 responses with `/fast` command
-- ✅ **Haiku 4.5** - New fast, lightweight model for simple tasks
-
-**Agent Features:**
-- ✅ **Agent Teams** - Multi-agent collaboration (experimental, enable with `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1`)
-- ✅ **Team Leads & Teammates** - Hierarchical agent structure with shared task lists
-- ✅ **Parallel Agent Execution** - Multiple agents working simultaneously
-
-**Commands & Tools:**
-- ✅ `/fast` - Toggle Fast Mode for rapid responses
-- ✅ `/auth login`, `/auth status`, `/auth logout` - Authentication management
-- ✅ `/debug` - Troubleshoot current session
-- ✅ `/teleport` - Send session to claude.ai/code for web access
-- ✅ `/rename` - Auto-generate descriptive session names
-- ✅ `/hooks` - Interactive menu for hook configuration
-
-**MCP Ecosystem:**
-- ✅ **MCP Registry** - Official registry live at https://registry.modelcontextprotocol.io/
-- ✅ **MCP Apps** - Interactive UI components from servers
-- ✅ **OAuth Support** - Built-in client credentials authentication
-- ✅ **Agentic AI Foundation** - MCP now maintained by Linux Foundation
-- ✅ **Async Operations** - Non-blocking server operations
-- ✅ **Server Discovery** - `.well-known` URLs for automatic discovery
-
-**Hooks Enhancement:**
-- ✅ **New Hook Events** - `TeammateIdle` and `TaskCompleted`
-- ✅ **PreToolUse updatedInput** - Hooks can now modify tool parameters
-- ✅ **Interactive Configuration** - `/hooks` command for easier setup
-
-**Other Features:**
-- ✅ **Automatic Memory** - Recording and recall across sessions
-- ✅ **PDF Support** - Read PDFs with page range selection
-- ✅ **Shift+Enter** - Built-in newline support (zero setup needed)
-- ✅ **Wildcard Permissions** - More flexible tool permission patterns
-
-#### 📝 Changed
-
-**Subscription & Pricing:**
-- 🔄 **Pro Plan Enhancement** - Now includes ALL models (Opus 4.6, Sonnet 4.5, Haiku 4.5)
- - Previously: Sonnet 4 only
- - Now: Full access to entire Claude family
-- 🔄 **Usage Metrics** - Changed from token counts to message counts
- - Pro: ~45 messages per 5-hour window (previously "44,000 tokens")
- - Easier to understand and track
-- 🔄 **Unified Subscription** - One subscription for both web (claude.ai) and CLI
-- 🔄 **Average Costs** - Pro users spend ~$6/day on coding (90% under $12/day)
-
-**MCP Ecosystem:**
-- 🔄 **MCP Governance** - Donated to Agentic AI Foundation (Linux Foundation)
- - Open governance model
- - Vendor-neutral development
- - Industry collaboration
-- 🔄 **Registry Status** - Changed from "future vision" to live production service
-
-**Model IDs:**
-- 🔄 Use specific model IDs instead of generic references:
- - `claude-opus-4-6` (not "Opus 4")
- - `claude-sonnet-4-5-20250929` (not "Sonnet 4")
- - `claude-haiku-4-5-20251001` (not "Haiku 4")
-
-**Commands:**
-- 🔄 **Authentication** - Use `/auth login` instead of `/login`
-- 🔄 **Terminal Setup** - Shift+Enter now built-in, `/terminal-setup` still available for iTerm2/VSCode custom bindings
-
-#### ❌ Deprecated
-
-**Subscription Tiers:**
-- ⛔️ **Separate Opus Access** - No longer needed; Opus 4.6 included in Pro ($20/mo)
- - Pro plan now includes all models
- - No separate "Opus-only" tier
-
-**Workarounds:**
-- ⛔️ **Manual Token Calculations** - Use `/cost` command instead
- - Built-in token tracking
- - Real-time usage monitoring
- - No need for external calculators
-
-**Legacy Commands:**
-- ⛔️ `/login` and `/logout` - Use `/auth login` and `/auth logout` instead
- - Still functional but use new commands
-
-#### 🎁 Special Promotions (Limited Time)
-
-- **🎉 Pro Subscribers** - $50 in free API credits for Opus 4.6 (new subscribers)
-- **⚡ Fast Mode** - 50% discount until Feb 16, 2026 11:59pm PT
- - Regular: $30/$150 per MTok
- - Discounted: $15/$75 per MTok
-
-#### 📅 Important Dates
-
-- **September 2025** - MCP Registry launched
-- **January 2026** - Claude 4.5/4.6 model family released
-- **February 2026** - Agent Teams experimental release
-- **February 16, 2026** - Fast Mode promotion ends
-
-#### 🔮 Coming Soon
-
-Based on current roadmap and experimental features:
-- Agent Teams general availability
-- 1M context window in subscriptions (currently API-only)
-- Enhanced MCP Apps capabilities
-- Persistent agent teams across sessions
-- Visual team dashboard
-- Advanced task scheduling
+> 💡 For Anthropic's authoritative release notes, see [docs.anthropic.com/release-notes/claude-code](https://docs.anthropic.com/en/release-notes/claude-code).
---
-**Last Updated:** February 16, 2026
+### 📖 Reading tips
-**Note:** Features, pricing, and availability subject to change. Check official Anthropic documentation for the most current information.
+- **Reading on GitHub?** The in-page anchor links work natively. Tap the table-of-contents button (top-left of the file view) for fast jumping.
+- **Want a richer markdown view?** This repo plays well with [Obsidian](https://obsidian.md/) — handy if you also want to open the `specialized-agents/*.canvas` flowcharts.
+- **On a phone?** Stick to the [Choose your path](#-choose-your-path) section at the top; the wider tables read best on desktop.
---
### References
-#### Official Claude & Anthropic Resources (2026)
-
-**Claude Code Documentation:**
-- https://code.claude.com/docs/en/overview - Claude Code overview
-- https://docs.anthropic.com/en/docs/claude-code/quickstart - Quick start guide
-- https://code.claude.com/docs/en/cli-reference - CLI command reference
-- https://code.claude.com/docs/en/fast-mode - Fast Mode documentation
-- https://code.claude.com/docs/en/hooks - Hooks reference
-- https://docs.anthropic.com/en/docs/claude-code/slash-commands - Slash commands
-- https://www.anthropic.com/engineering/claude-code-best-practices - Best practices
-- https://www.anthropic.com/news/how-anthropic-teams-use-claude-code - Team usage
-
-**Claude Models & API:**
-- https://platform.claude.com/docs/en/about-claude/models/overview - Models overview
-- https://platform.claude.com/docs/en/about-claude/pricing - API pricing
-- https://www.anthropic.com/claude/opus - Claude Opus 4.6 official page
-- https://claude-tokenizer.vercel.app/ - Token calculator
-
-**Agent Development:**
-- https://www.anthropic.com/engineering/building-effective-agents - Building agents guide
-
-#### MCP (Model Context Protocol) Resources
-
-**Official MCP:**
-- https://registry.modelcontextprotocol.io/ - **Official MCP Registry (Live)**
-- https://modelcontextprotocol.io/docs/getting-started/intro - Getting started
-- https://modelcontextprotocol.io/development/roadmap - MCP roadmap
-- https://github.com/modelcontextprotocol/servers - Official MCP servers
-- http://blog.modelcontextprotocol.io/posts/2025-09-08-mcp-registry-preview/ - Registry announcement
-- https://www.anthropic.com/news/donating-the-model-context-protocol - Agentic AI Foundation announcement
-- https://auth0.com/blog/mcp-specs-update-all-about-auth/ - MCP auth specifications
-
-**MCP Server Examples:**
-- https://github.com/microsoft/playwright-mcp - Playwright MCP
-- https://github.com/lastmile-ai/mcp-agent - MCP agent implementation
-- https://github.com/oraios/serena - Serena semantic code intelligence
-
-#### Hooks & Automation
-
-- https://github.com/disler/claude-code-hooks-mastery - Hooks examples
-- https://www.eesel.ai/blog/hooks-in-claude-code - Hooks guide
-- https://github.com/wesammustafa/Event-X - Complete hooks example
-
-#### Workflows & Tutorials
-
-- https://github.com/OneRedOak/claude-code-workflows - Claude Code workflows
-- https://www.youtube.com/watch?v=kQmXtrmQ5Zg - Video tutorial
-- https://www.youtube.com/watch?v=xOO8Wt_i72s - Advanced tutorial
-
-#### Pricing & Subscription Information (2026)
-
-- https://intuitionlabs.ai/articles/claude-pricing-plans-api-costs - Pricing guide
-- https://www.nops.io/blog/anthropic-api-pricing/ - API pricing details
-- https://www.braingrid.ai/blog/claude-code-pricing - Claude Code pricing
-- https://screenapp.io/blog/claude-ai-pricing - Subscription comparison
-- https://www.eesel.ai/blog/claude-opus-46-pricing - Opus 4.6 pricing
-- https://www.xda-developers.com/psa-claude-users-can-claim-50-in-free-credits-to-try-opus-46/ - Free credits offer
-
-#### Fast Mode Resources (2026)
-
-- https://simonwillison.net/2026/Feb/7/claude-fast-mode/ - Fast Mode analysis
-- https://medium.com/@joe.njenga/how-im-using-new-claude-code-fast-mode-to-code-faster-like-a-whiz-09a2694da6ae - Fast Mode usage
-- https://wmedia.es/en/tips/claude-code-fast-mode-faster-responses - Fast Mode guide
-
-#### Development Tools & Resources
+*[→ Full reading list in `docs/reference/further-reading.md`](docs/reference/further-reading.md)*
-- https://github.com/adrianhajdin/ecommerce_sanity_stripe - Example project
-- https://aws.amazon.com/what-is/sdlc/ - SDLC overview
-- https://tmuxcheatsheet.com/ - Tmux reference
-- https://obsidian.md/ - Obsidian documentation viewer
-- https://github.com/yamadashy/repomix - Repository packaging tool
-- https://github.com/cline/cline - Alternative AI coding assistant
+A curated set of pointers — official Anthropic docs, MCP resources, hooks examples, workflow tutorials, pricing references, and adjacent tooling.
-#### Agent Interoperability
+**Most-clicked starting points:**
-- https://developers.googleblog.com/en/a2a-a-new-era-of-agent-interoperability/ - Agent-to-agent communication
+- [Claude Code overview (official)](https://docs.anthropic.com/en/docs/claude-code/overview)
+- [Claude Code best practices (Anthropic engineering)](https://www.anthropic.com/engineering/claude-code-best-practices)
+- [Building effective agents (Anthropic engineering)](https://www.anthropic.com/engineering/building-effective-agents)
+- [Official MCP Registry](https://registry.modelcontextprotocol.io/)
+- [Hooks reference (official)](https://docs.anthropic.com/en/docs/claude-code/hooks)
---
-**Documentation Version:** 2.0 (Updated February 2026)
+> Features, pricing, and availability change frequently. Always check the [official Anthropic documentation](https://docs.anthropic.com/en/docs/claude-code/overview) for the most current information.
-**Contributing:** Found outdated information? Please open an issue or submit a pull request.
+*Last reviewed May 2026 · Spotted something stale? [Open an issue](../../issues) or send a PR — see [`CONTRIBUTING.md`](CONTRIBUTING.md).*
diff --git a/docs/reference/changelog.md b/docs/reference/changelog.md
new file mode 100644
index 0000000..b0e02d0
--- /dev/null
+++ b/docs/reference/changelog.md
@@ -0,0 +1,126 @@
+# Changelog — Claude Code & Ecosystem Updates
+
+*[← Back to README](../../README.md#updates--deprecations)*
+
+Major changes, new features, and deprecations through May 2026. For Anthropic's authoritative release notes (always more current than this file), see [docs.anthropic.com/release-notes/claude-code](https://docs.anthropic.com/en/release-notes/claude-code).
+
+---
+
+## 🆕 New features
+
+### Models & performance
+
+- **Claude Opus 4.7** *(current flagship, May 2026)* — Sharper adaptive thinking, better long-context grounding, more reliable tool calling. Same pricing as Opus 4.6.
+- **Claude Sonnet 4.6** *(current balanced tier, May 2026)* — Replaces Sonnet 4.5 as the default everyday model.
+- **1M context window** — Beta via API (200K in subscriptions).
+- **Fast Mode** — 2.5× faster responses with `/fast` (runs on Opus 4.6 underneath).
+- **Haiku 4.5** — Fast, lightweight model for simple tasks (unchanged).
+
+### Agent features
+
+- **Agent Teams** *(experimental)* — Multi-agent collaboration in a single session. Enable with `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1`.
+- **Team leads & teammates** — Hierarchical agent structure with shared task lists.
+- **Parallel agent execution** — Multiple agents working simultaneously.
+
+### Commands & tools
+
+- `/fast` — Toggle Fast Mode for rapid responses.
+- `/auth login`, `/auth status`, `/auth logout` — Authentication management.
+- `/debug` — Troubleshoot the current session.
+- `/teleport` — Send a session to claude.ai/code for web access.
+- `/rename` — Auto-generate descriptive session names.
+- `/hooks` — Interactive menu for hook configuration.
+
+### MCP ecosystem
+
+- **MCP Registry** — Official registry live at [registry.modelcontextprotocol.io](https://registry.modelcontextprotocol.io/).
+- **MCP Apps** — Interactive UI components from servers.
+- **OAuth support** — Built-in client-credentials authentication.
+- **Agentic AI Foundation** — MCP now maintained by the Linux Foundation.
+- **Async operations** — Non-blocking server operations.
+- **Server discovery** — `.well-known` URLs for automatic discovery.
+
+### Hooks enhancements
+
+- **New hook events** — `TeammateIdle` and `TaskCompleted`.
+- **`PreToolUse` `updatedInput`** — Hooks can now modify tool parameters.
+- **Interactive configuration** — `/hooks` command for easier setup.
+
+### Other features
+
+- **Automatic memory** — Recording and recall across sessions.
+- **PDF support** — Read PDFs with page-range selection.
+- **Shift+Enter** — Built-in newline support (zero setup needed).
+- **Wildcard permissions** — More flexible tool permission patterns.
+
+---
+
+## 📝 Changed
+
+### Subscription & pricing
+
+- **Pro plan** — Now includes ALL models (Opus 4.7, Sonnet 4.6, Haiku 4.5, plus the previous-generation 4.6/4.5). Previously: Sonnet 4 only.
+- **Usage metrics** — Changed from token counts to message counts. Pro: ~45 messages per 5-hour window. Easier to understand and track.
+- **Unified subscription** — One subscription for both web (claude.ai) and CLI.
+- **Average costs** — Pro users spend ~$6/day on coding (90% under $12/day).
+
+### MCP ecosystem
+
+- **MCP governance** — Donated to the Agentic AI Foundation (Linux Foundation). Open governance, vendor-neutral.
+- **Registry status** — Changed from "future vision" to live production service.
+
+### Model IDs
+
+Use specific model IDs instead of generic references:
+
+- `claude-opus-4-7` (current flagship; previously `claude-opus-4-6`)
+- `claude-sonnet-4-6` (current balanced; previously `claude-sonnet-4-5-20250929`)
+- `claude-haiku-4-5-20251001` (unchanged)
+
+Previous-generation IDs (`claude-opus-4-6`, `claude-sonnet-4-5-20250929`) remain accessible — useful when you need stable behavior or Fast Mode (which still runs on Opus 4.6).
+
+### Commands
+
+- **Authentication** — Use `/auth login` instead of `/login`.
+- **Terminal setup** — Shift+Enter is now built-in; `/terminal-setup` still available for iTerm2/VSCode custom bindings.
+
+---
+
+## ❌ Deprecated
+
+### Subscription tiers
+
+- **Separate Opus access** — No longer needed; Opus is included in Pro ($20/mo). No separate "Opus-only" tier.
+
+### Workarounds
+
+- **Manual token calculations** — Use `/cost` instead. Built-in token tracking, real-time usage monitoring.
+
+### Legacy commands
+
+- `/login` and `/logout` — Use `/auth login` and `/auth logout` instead. Still functional but the new commands are preferred.
+
+---
+
+## 📅 Important dates
+
+- **September 2025** — MCP Registry launched.
+- **January 2026** — Claude 4.5 / 4.6 model family released (Opus 4.6, Sonnet 4.5, Haiku 4.5).
+- **February 2026** — Agent Teams experimental release. Fast Mode launch promotion ended Feb 16.
+- **May 2026** — Opus 4.7 and Sonnet 4.6 released.
+
+---
+
+## 🔮 Coming soon
+
+Based on the public roadmap and experimental features:
+
+- Agent Teams general availability
+- 1M context window in subscriptions (currently API-only)
+- Enhanced MCP Apps capabilities
+- Persistent agent teams across sessions
+- Visual team dashboard
+
+---
+
+[← Back to README](../../README.md#updates--deprecations) · [FAQ](faq.md) · [Further reading](further-reading.md)
diff --git a/docs/reference/commands.md b/docs/reference/commands.md
new file mode 100644
index 0000000..6494c88
--- /dev/null
+++ b/docs/reference/commands.md
@@ -0,0 +1,88 @@
+# Slash Commands — Complete Reference
+
+*[← Back to README](../../README.md#claude-commands)*
+
+Every built-in slash command shipped with Claude Code, plus the file-format spec for custom commands (skills). For workflows and recipes built around slash commands, see [`docs/skills.md`](../skills.md).
+
+---
+
+## Built-in slash commands
+
+| Command | Purpose |
+|---|---|
+| `/add-dir` | Add additional working directories |
+| `/agents` | Manage custom AI subagents for specialized tasks |
+| `/auth login` | Authenticate with your Anthropic account |
+| `/auth status` | Check authentication status |
+| `/auth logout` | Sign out from your account |
+| `/bug` | Report bugs (sends conversation to Anthropic) |
+| `/clear` | Clear conversation history |
+| `/compact [instructions]` | Compact conversation with optional focus instructions |
+| `/config` | View or modify configuration |
+| `/cost` | Show token usage statistics |
+| `/debug` | Troubleshoot current session and configuration |
+| `/doctor` | Check the health of your Claude Code installation |
+| `/effort` | Set reasoning effort (`low` / `medium` / `high` / `xhigh` / `max`); no args opens an interactive slider; `/effort auto` resets to model default. See [Effort levels](effort-levels.md). |
+| `/fast` | Toggle Fast Mode for 2.5× faster Opus 4.6 responses (6× pricing) |
+| `/help` | Get usage help |
+| `/hooks` | Interactive menu for hook configuration |
+| `/init` | Initialize project with `CLAUDE.md` guide |
+| `/login` | Switch Anthropic accounts (legacy — use `/auth login`) |
+| `/logout` | Sign out (legacy — use `/auth logout`) |
+| `/mcp` | Manage MCP server connections and OAuth authentication |
+| `/memory` | Edit `CLAUDE.md` memory files |
+| `/model` | Select or change the AI model (Opus 4.7, Sonnet 4.6, Haiku 4.5; previous-gen 4.6/4.5 still available) |
+| `/permissions` | View or update [permissions](https://docs.anthropic.com/en/docs/claude-code/iam#configuring-permissions) |
+| `/pr_comments` | View pull request comments |
+| `/rename` | Auto-generate descriptive session names |
+| `/review` | Request code review |
+| `/status` | View account and system statuses |
+| `/teleport` | Send current session to claude.ai/code for web access |
+| `/terminal-setup` | Install Shift+Enter key binding for newlines (built-in since 2026; this command remains for iTerm2/VSCode custom bindings) |
+| `/vim` | Enter vim mode for alternating insert and command modes |
+
+> 💡 **Day 1 essentials:** start with `/init`, `/help`, `/clear`, `/cost`, and `/model`.
+
+---
+
+## Custom slash commands (skills)
+
+Custom slash commands let you define frequently-used prompts as markdown files that Claude Code can execute. They're scoped (project-specific or personal) and support namespacing through directories.
+
+**Quick demo:**
+
+```bash
+mkdir -p .claude/commands
+echo "Analyze this code for performance issues and suggest optimizations:" \
+ > .claude/commands/optimize.md
+```
+
+**Realistic example** — `.claude/commands/pull-request.md`:
+
+```markdown
+# Create Pull Request Command
+
+Create a new branch, commit changes, and submit a pull request.
+
+## Behavior
+- Creates a new branch based on current changes
+- Formats modified files using Biome
+- Analyzes changes and automatically splits into logical commits when appropriate
+- Each commit focuses on a single logical change or feature
+- Creates descriptive commit messages for each logical unit
+- Pushes branch to remote
+- Creates pull request with proper summary and test plan
+
+## Guidelines for Automatic Commit Splitting
+- Split commits by feature, component, or concern
+- Keep related file changes together in the same commit
+- Separate refactoring from feature additions
+- Ensure each commit can be understood independently
+- Multiple unrelated changes should be split into separate commits
+```
+
+> 💡 **Next level:** custom slash commands and Skills are the same thing. For workflows, recipes, and best practices, see [`docs/skills.md`](../skills.md).
+
+---
+
+[← Back to README](../../README.md#claude-commands) · [Skills guide](../skills.md) · [FAQ](faq.md)
diff --git a/docs/reference/effort-levels.md b/docs/reference/effort-levels.md
new file mode 100644
index 0000000..a341ff5
--- /dev/null
+++ b/docs/reference/effort-levels.md
@@ -0,0 +1,194 @@
+# Reasoning Effort Levels
+
+*~10 min read · [← Back to README](../../README.md#prompt-engineering-deep-dive)*
+
+> **Mental model:** Effort is a **behavioural dial**, not a strict token budget. It shifts how much Claude thinks before responding, how willing it is to read related files, how long the response gets, and how persistently it pushes through multi-step work. A higher dial doesn't make the model smarter — it changes its bias.
+
+---
+
+## TL;DR
+
+- **5 levels exist:** `low` · `medium` · `high` · `xhigh` · `max` — most users assume 4.
+- **`xhigh` is Opus 4.7-only.** Opus 4.6 and Sonnet 4.6 expose only `low / medium / high / max`.
+- **Current defaults (May 2026, post-v2.1.117):** Opus 4.7 → `xhigh` on every plan; Opus 4.6 + Sonnet 4.6 → `high` on every plan.
+- **Context quality often beats more effort.** A model on Low with great context regularly outperforms the same model on Max with poor context.
+- **Higher ≠ always better.** Anthropic's own guidance: max on Opus 4.7 "shows diminishing returns and is more prone to overthinking" on routine work.
+- **Persistence has gotchas.** The `ultrathink` keyword doesn't change the API effort, and `"effortLevel": "max"` in `settings.json` silently downgrades — covered below.
+
+---
+
+## What effort actually controls
+
+Effort affects three documented behaviours simultaneously, plus a fourth pattern the community has named:
+
+| Dimension | Low | Medium | High / xHigh / Max |
+|---|---|---|---|
+| **Thinking depth** | Skips on simple problems | Thinks when warranted | Almost always engages reasoning |
+| **Tool-call appetite** | Minimum exploration | Reads what's asked for | Reads related files unprompted |
+| **Response length** | Terse | Balanced | Thorough, structured |
+| **Agentic persistence** *(community framing)* | Pauses to ask for clarification | Plans ahead, keeps moving | Drives through multi-step work autonomously |
+
+Even at low, Claude will still think on sufficiently hard problems — just less than it would at higher effort.
+
+---
+
+## The five levels
+
+| Effort | Available on | Behaviour | Reach for it when… |
+|---|---|---|---|
+| **Low** | All Claude 4 models | Fastest. Skips thinking on simple problems, minimum tool use, terse responses, pauses to ask for clarification. | Fast interactive queries where you're steering — file renames, simple greps, build commands. |
+| **Medium** | All Claude 4 models | Balanced. Thinks when warranted, skips when not. | General coding, small refactors, writing tests, autonomous sessions where the plan is clear. |
+| **High** | All Claude 4 models | Almost always engages thinking, reads related files unprompted, gives thorough responses. | Multi-file refactors, complex debugging. Anthropic's recommended default for most coding on Sonnet 4.6 / Opus 4.6. |
+| **xHigh** | **Opus 4.7 only** | A notch above high — more thorough reasoning, more willing to explore, persists across sessions. | Long autonomous agentic sessions. Anthropic's recommended default for most coding on Opus 4.7. |
+| **Max** | All Claude 4 models (current session unless via env var) | Highest capability, no token constraints on reasoning. | Architecture decisions, subtle bugs, security reviews — genuinely hard problems. Skip for routine work. |
+
+> ⚠️ **Anthropic's official guidance for Opus 4.7 max:** *"Reserve for genuinely frontier problems. On most workloads `max` adds significant cost for relatively small quality gains, and on some structured-output or less intelligence-sensitive tasks it can lead to overthinking."* — [Effort API docs](https://platform.claude.com/docs/en/build-with-claude/effort)
+
+---
+
+## Defaults by plan and model
+
+| Model | Default effort | Notes |
+|---|---|---|
+| **Opus 4.7** | `xhigh` | All plans (Pro, Max, Team, Enterprise, API) |
+| **Opus 4.6** | `high` | All plans, current as of Claude Code v2.1.117 |
+| **Sonnet 4.6** | `high` | API and Claude Code |
+| **Haiku 4.5** | n/a | Effort dial isn't meaningful on Haiku |
+
+> 📜 **Why community write-ups still say "medium on Pro/Max":** the 4.6 default has churned. Originally `high`, dropped to `medium` for all plans in early March 2026 (a deliberate speed/cost tune that hit quality), reverted to `high` for API / Bedrock / Team / Enterprise on April 7 in v2.1.94, then standardized to `high` everywhere in v2.1.117. If a guide tells you Pro/Max users are on a nerfed `medium` default, **check `/effort` in your session** — that was true for ~6 weeks but is fixed now. *Tracked in [`anthropics/claude-code` issue #42796](https://github.com/anthropics/claude-code/issues/42796).*
+
+If you had a manual effort level set on a prior model, Opus 4.7 overrides it to `xhigh` on first run — use `/effort` to assert your preference.
+
+---
+
+## Per-model behaviour
+
+| Model | Notes |
+|---|---|
+| **Haiku 4.5** | Effort parameter behaves differently — not a meaningful dial. Use Haiku for simple lookups, quick edits, boilerplate. |
+| **Sonnet 4.6** | Default high. Sonnet **follows directions closely without drift** — if you plan well upfront, you can drop to a lower effort for execution. |
+| **Opus 4.6** | Default high. The level whose defaults churned the most over March–April 2026. |
+| **Opus 4.7** | Default xhigh. Respects effort more strictly than 4.6 — at lower effort it scopes work tighter rather than going above and beyond. The new tokenizer uses **roughly 1.0–1.35× more tokens per same input than 4.6** (≈1.0–1.1× on code, ≈1.35× on complex text), so sessions burn through limits faster at the same effort. |
+
+---
+
+## When to use what
+
+| Task | Model + Effort |
+|---|---|
+| File renames, simple greps, build commands | Sonnet Low |
+| General coding, small refactors, writing tests | Sonnet Medium |
+| Multi-file refactors, complex debugging | Sonnet High |
+| Long autonomous agentic sessions | Opus xHigh |
+| Architecture decisions, subtle bugs, security reviews | Opus Max |
+
+---
+
+## The plan-with-high / execute-with-low pattern
+
+A repeatable cost-saver for harder tasks:
+
+1. **Plan in Opus xHigh or Max.** Get a clean, atomic, unambiguous plan with explicit task boundaries. This is where deep reasoning earns its keep.
+2. **Execute in Sonnet at lower effort.** Sonnet follows clear plans closely without drift. If the plan leaves no room for interpretation, execution is cheap.
+
+The pattern fails when the plan has gaps — Sonnet at low effort won't catch ambiguity it inherits, so the cleanup costs more than the savings. Invest in the plan; the execution comes for free.
+
+---
+
+## Effort ≠ intelligence — the context-quality trap
+
+> 💡 **The most actionable insight here:** effort level is partly a **context-quality proxy**. A model on Low with great context regularly beats the same model on Max with poor context — the extra thinking budget gets spent reconstructing state the session should already have.
+
+**Practical heuristic:** if you're reaching for Max on a task that shouldn't need it, ~80% of the time the fix is upstream — not in how hard the model thinks:
+
+- A sharper [`CLAUDE.md`](https://docs.anthropic.com/en/docs/claude-code/memory) that names files, conventions, and constraints explicitly.
+- A clearer plan with atomic, zero-ambiguity tasks.
+- Files referenced by path, not "the thing we discussed earlier."
+- Errors pasted in full, not paraphrased.
+
+A project that works fine on High but falls apart on Medium is telling you something about your context setup, not the model.
+
+---
+
+## Setting effort
+
+Five mechanisms, in increasing order of persistence:
+
+| Mechanism | How | Persistence |
+|---|---|---|
+| **Per-turn keyword** | `ultrathink` in your prompt — adds an in-context instruction; *does not change the API effort* | This turn only |
+| **Per-session command** | `/effort <level>` — or `/effort` (no args) for an interactive slider; `/effort auto` resets to model default | Current session |
+| **Per-session flag** | `claude --effort <level>` at launch | Current session |
+| **Persistent (low / medium / high / xhigh)** | `"effortLevel": "high"` in `~/.claude/settings.json` (user) or `.claude/settings.json` (project) | All sessions |
+| **Persistent for max** | `CLAUDE_CODE_EFFORT_LEVEL=max` in your shell profile — the only mechanism that reliably persists max | All sessions |
+
+```bash
+# Quick raise for one turn (in-context only — see gotcha below)
+> ultrathink — design the migration strategy here
+
+# Raise for the session
+/effort xhigh
+
+# Persist project-wide (any level except max)
+echo '{ "effortLevel": "high" }' > .claude/settings.json
+
+# Persist max — only mechanism that works
+export CLAUDE_CODE_EFFORT_LEVEL=max # add to ~/.zshrc / ~/.bashrc
+```
+
+> Precedence (highest to lowest): `CLAUDE_CODE_EFFORT_LEVEL` env var → `--effort` flag → `/effort` command → `effortLevel` in `settings.json` → model default.
+
+---
+
+## Known gotchas
+
+### `ultrathink` doesn't change the API effort
+
+Per Anthropic's docs, `ultrathink` "adds an in-context instruction" and **the effort level sent to the API is unchanged**. The community-discovered consequence: if you're already running `xhigh` or `max`, the in-context "think harder" cue is essentially redundant or, worse, can cause the model to anchor to a "high"-style trace rather than its higher-effort default. **For a deliberately deeper turn on a session at xhigh/max, prefer `/effort max` (set, prompt, then `/effort auto`) over the keyword.**
+
+### `settings.json` silently downgrades `max`
+
+`"effortLevel": "max"` in `settings.json` does not actually persist max — once the UI is interacted with, the value gets quietly downgraded. **Only `CLAUDE_CODE_EFFORT_LEVEL=max` as an environment variable reliably persists max** across sessions.
+
+### Opus 4.7 ignores prior `effortLevel`
+
+If your `settings.json` had a manual effort set for a prior model, Opus 4.7 overrides it to `xhigh` on first run. Use `/effort <level>` to assert your preference, or update `effortLevel` after switching.
+
+### Don't ask for `xhigh` on 4.6 models
+
+`xhigh` only exists on Opus 4.7. Asking for it on Opus 4.6 or Sonnet 4.6 will fall back to the model's accepted ceiling.
+
+---
+
+## Decision shortcut
+
+If you remember nothing else from this page:
+
+1. **Check your current effort with `/effort`** — defaults have churned and your `settings.json` may be stale.
+2. **Stay on the model default** unless you have a specific reason to change. (`high` for 4.6 / Sonnet, `xhigh` for 4.7.)
+3. **Reach for max only when the problem genuinely needs it** — architecture, subtle bugs, security review. Skip for routine work.
+4. **Before raising effort, fix context.** Sharper `CLAUDE.md`, atomic plan, named files. ~80% of the time that's the actual fix.
+5. **Plan with Opus xHigh/Max, execute with Sonnet** at a lower effort when the work is large enough to split.
+
+---
+
+## Sources
+
+- [Claude Code model-config docs](https://code.claude.com/docs/en/model-config.md) — canonical reference for `effortLevel`, `/effort`, env var, and precedence
+- [Anthropic Effort API docs](https://platform.claude.com/docs/en/build-with-claude/effort) — the `xhigh` / `max` guidance and per-level behaviour
+- [Introducing Claude Opus 4.7](https://www.anthropic.com/news/claude-opus-4-7) — model-level context for the new defaults
+- [`anthropics/claude-code` issue #42796](https://github.com/anthropics/claude-code/issues/42796) — March/April 2026 default-drop timeline
+- [OpenRouter — Opus 4.7 tokenizer analysis](https://openrouter.ai/announcements/opus-47-tokenizer-analysis) — the 1.0–1.35× tokenizer-cost data
+
+---
+
+## See also
+
+- [Models — specs and pricing](models.md) — adaptive thinking, model IDs, when to pick which
+- [Slash commands reference](commands.md) — `/effort`, `/cost`, `/model`
+- [README → Prompt Engineering Deep Dive](../../README.md#prompt-engineering-deep-dive) — `think` directives, Explore→Plan→Code→Commit, TDD workflow
+- [FAQ](faq.md) — pricing, plan limits, Fast Mode
+
+---
+
+[← Back to README](../../README.md#prompt-engineering-deep-dive) · [Models](models.md) · [Commands](commands.md)
diff --git a/docs/reference/faq.md b/docs/reference/faq.md
new file mode 100644
index 0000000..feaf97e
--- /dev/null
+++ b/docs/reference/faq.md
@@ -0,0 +1,230 @@
+# FAQ — Claude Code & Claude Plans
+
+*[← Back to README](../../README.md#faq)*
+
+A consolidated FAQ covering models, pricing, tokens, plans, Fast Mode, worktrees, and Pro-plan optimization. For Skills-specific questions, see [`docs/skills.md` → Skills FAQ](../skills.md#skills-faq).
+
+---
+
+## Models
+
+### Q: What Claude models are available in 2026?
+
+As of May 2026, the Claude 4 model family is:
+
+| Model | Model ID | Context window | Max output | Best for |
+|---|---|---|---|---|
+| **Opus 4.7** *(flagship)* | `claude-opus-4-7` | 200K (1M beta via API) | 128K | Complex reasoning, large refactors |
+| **Sonnet 4.6** *(balanced)* | `claude-sonnet-4-6` | 200K | 8K | Everyday coding |
+| **Haiku 4.5** *(fast/cheap)* | `claude-haiku-4-5-20251001` | 200K | 8K | Lightweight tasks |
+
+**Key features:**
+
+- **Adaptive thinking** — Opus 4.7 scales reasoning depth automatically; hint with `"think"`, `"think hard"`, or `"ultrathink"`.
+- **1M context window** — Beta via API only (not in subscription plans at launch).
+- **Fast Mode** — 2.5× faster, 6× pricing. **Runs on Opus 4.6** even when your default is 4.7. Toggle with `/fast`.
+- **Previous generation** — `claude-opus-4-6` and `claude-sonnet-4-5-20250929` remain accessible via API and `/model`.
+
+> Anthropic ships new models often. Check the [official model overview](https://docs.anthropic.com/en/docs/about-claude/models) for the current list.
+
+### Q: Can I use Opus 4.7's 1M context window?
+
+The 1M token context window is currently in **beta, API-only**.
+
+- ✅ Available via API with an API key
+- ❌ Not available in Pro/Max subscription plans (limited to 200K)
+- Beta access required
+
+**How to access:**
+
+- Use the Claude API directly with your API key
+- Set model to `claude-opus-4-7`
+- Enable beta features in API settings
+
+**Best for:** analyzing entire large codebases at once, processing extensive documentation, complex multi-file refactoring.
+
+---
+
+## Reasoning effort
+
+### Q: How many reasoning effort levels are there, and what's my default?
+
+**Five:** `low / medium / high / xhigh / max`. As of May 2026 (Claude Code v2.1.117+):
+
+| Model | Default |
+|---|---|
+| Opus 4.7 | `xhigh` (every plan) |
+| Opus 4.6 | `high` (every plan) |
+| Sonnet 4.6 | `high` (every plan) |
+| Haiku 4.5 | n/a |
+
+`xhigh` is Opus 4.7-only. Run `/effort` to see and change yours. For the full breakdown — defaults timeline, persistence ladder, gotchas, decision matrix — see [Effort levels](effort-levels.md).
+
+### Q: I read Pro/Max users are on a "nerfed medium" default. Is that still true?
+
+It was true between early March and late April 2026, but **it's been fixed**. Opus 4.6 / Sonnet 4.6 now default to `high` on all plans (Pro, Max, Team, Enterprise) since Claude Code v2.1.117. Older guides may still report the old behaviour — verify with `/effort` in your session.
+
+### Q: Does `ultrathink` actually raise effort?
+
+It adds an in-context "think harder" instruction but **does not change the API effort level**. If you're already on `xhigh` or `max`, the keyword is essentially redundant. For a deliberately deeper turn, set `/effort max`, prompt, then `/effort auto` to reset.
+
+### Q: Why doesn't `"effortLevel": "max"` in `settings.json` persist?
+
+Known issue — `max` is silently downgraded once the UI is interacted with. The only mechanism that reliably persists max across sessions is the `CLAUDE_CODE_EFFORT_LEVEL=max` environment variable. Add it to your shell profile.
+
+---
+
+## Skills & commands
+
+### Q: What's the difference between custom slash commands and skills?
+
+They're the same thing. Both refer to markdown files in `.claude/commands/` invoked with `/skill-name`. See [`docs/skills.md` → Skills FAQ](../skills.md#skills-faq) for security best practices, team sharing, and troubleshooting.
+
+---
+
+## Tokens & limits
+
+### Q: How many messages do I get on the Pro plan?
+
+~**45 messages per 5-hour rolling window** (roughly 10–40 coding prompts depending on complexity). Limits reset every 5 hours; full access to all current and previous-generation models.
+
+### Q: How are tokens counted?
+
+Everything in your interaction counts: your prompts, Claude's responses, system instructions, tool definitions, and any file content Claude reads.
+
+| Input | Token cost |
+|---|---|
+| English text | ~1 token per 0.75 words (1,000 tokens ≈ 750 words) |
+| Punctuation / code symbols | Each counts as ~1 token |
+| Images | `(width_px × height_px) / 750` tokens |
+| File reads | Each line counts; `CLAUDE.md` adds context every session |
+
+> 💡 Use the [Claude tokenizer](https://claude-tokenizer.vercel.app/) for an exact count, or `/cost` inside Claude Code to track live usage.
+
+### Q: How much code can I work on per 5-hour window?
+
+**Theoretical:** ~2,900–3,400 lines of pure code per Pro window.
+
+**Practical:** effective for projects in the **1,000–2,000 line range** because tokens are shared across reading existing code, Claude's analysis, your back-and-forth, and the file edits themselves.
+
+---
+
+## Pricing & plans
+
+### Q: What are the Claude subscription plans?
+
+As of May 2026 (verify on [anthropic.com/pricing](https://www.anthropic.com/pricing) before committing):
+
+| Plan | Price | Models | Usage limit | Claude Code |
+|---|---|---|---|---|
+| **Free** | $0 | Limited | Base | Limited |
+| **Pro** | $20/mo ($17/mo annual) | All | ~45 msg / 5hr | Full |
+| **Max 5x** | $100/mo | All | 5× Pro | Full |
+| **Max 20x** | $200/mo | All | 20× Pro | Full |
+
+- **Unified subscription** — One subscription covers both web (claude.ai) and CLI (Claude Code).
+- **All models** means current (Opus 4.7, Sonnet 4.6, Haiku 4.5) plus previous-generation 4.6/4.5.
+- **Average costs** — Pro users typically spend ~$6/day; 90% spend under $12/day.
+
+### Q: API pricing (pay-as-you-go)?
+
+| Model | Input (per MTok) | Output (per MTok) |
+|---|---|---|
+| Opus 4.7 | $5 | $25 |
+| Sonnet 4.6 | $3 | $15 |
+| Haiku 4.5 | $1 | $5 |
+| Opus 4.6 (Fast Mode) | $30 (6×) | $150 (6×) |
+
+### Q: Pro vs. Max 5x vs. Max 20x?
+
+Same models, more capacity:
+
+- **Max 5x ($100/mo)** — ~225 messages/5hr. Heavy daily users; multiple parallel projects.
+- **Max 20x ($200/mo)** — ~900 messages/5hr. Teams, power users, production work.
+
+**Upgrade if:** you frequently hit Pro limits, run multiple parallel sessions, or need guaranteed availability during peak hours.
+
+---
+
+## Fast Mode
+
+### Q: What is Fast Mode and when should I use it?
+
+Fast Mode delivers **2.5× faster responses** at **6× pricing**. It runs on **Opus 4.6** specifically — Opus 4.7 doesn't expose Fast Mode (yet).
+
+- Toggle with `/fast`. The **↯** indicator confirms it's on.
+- Visual indicator: **↯** appears in the session header.
+
+| | Standard Opus 4.6 | Fast Mode |
+|---|---|---|
+| Input (per MTok) | $5 | $30 |
+| Output (per MTok) | $25 | $150 |
+
+**Use it for:** rapid iteration, live debugging, time-sensitive deployments, demo prep.
+**Skip it for:** long background tasks, budget projects, exploratory work, documentation.
+
+> 💡 Toggle on for the focused sprint, toggle off when you're done. The cost difference adds up fast.
+
+---
+
+## Sessions, terminals & worktrees
+
+### Q: What happens when I run multiple Claude Code sessions in different terminals?
+
+**Usage limits are shared.** All Claude Code sessions on your account draw from the same 5-hour message budget — running 3 parallel sessions exhausts it ~3× faster.
+
+**Conversation context is independent.** Each terminal has its own history; Claude in tab 1 doesn't know what happened in tab 2. Each session analyzes the codebase independently.
+
+### Q: How do Git worktrees affect Claude Code sessions?
+
+Worktrees create a hybrid:
+
+- **Separate working directories** — each worktree shows different file contents. Edits in feature-A don't appear in feature-B.
+- **Shared `.git`** — git history, branches, and commit logs are visible across all worktrees. Claude can see commits from other features (but not their working changes).
+
+```bash
+# Terminal 1: feature/auth
+git commit -m "Add auth middleware"
+
+# Terminal 2: feature/payment
+cat middleware.js # Won't show auth changes
+git log --oneline --all # WILL show the auth commit
+```
+
+### Q: How do I get fully separate Claude Code contexts?
+
+Use **separate clones** instead of worktrees:
+
+```bash
+~/project-auth/ # Complete separate clone
+~/project-payment/ # Complete separate clone
+```
+
+Each clone has its own `.git`, no shared state, fully isolated views.
+
+---
+
+## Optimization
+
+### Q: How do I maximize my Pro usage?
+
+**Session management:**
+
+- `/compact` to reduce context in long sessions.
+- Close unused sessions to avoid accidental token consumption.
+- Start fresh contexts when switching task types.
+
+**Token efficiency:**
+
+- Batch related work — let one session deliver a feature, don't re-explain context across sessions.
+- Use `/model` strategically: Haiku for simple tasks, Sonnet 4.6 for everyday, Opus 4.7 only when reasoning depth matters.
+- Be specific in prompts to avoid back-and-forth.
+
+**Project structure:**
+
+- Keep `CLAUDE.md` concise — it loads every session.
+- Point Claude at specific files rather than letting it scan the whole repo.
+
+---
+
+[← Back to README](../../README.md#faq) · [Skills FAQ](../skills.md#skills-faq) · [Changelog](changelog.md)
diff --git a/docs/reference/further-reading.md b/docs/reference/further-reading.md
new file mode 100644
index 0000000..cc2d5b5
--- /dev/null
+++ b/docs/reference/further-reading.md
@@ -0,0 +1,103 @@
+# Further reading
+
+*[← Back to README](../../README.md#references)*
+
+Curated links to official docs, deep-dives, and community resources for Claude Code, MCP, agents, and the broader ecosystem.
+
+---
+
+## Official Claude & Anthropic resources
+
+### Claude Code documentation
+
+- [Claude Code overview](https://docs.anthropic.com/en/docs/claude-code/overview)
+- [Quick start guide](https://docs.anthropic.com/en/docs/claude-code/quickstart)
+- [CLI reference](https://docs.anthropic.com/en/docs/claude-code/cli-reference)
+- [Slash commands](https://docs.anthropic.com/en/docs/claude-code/slash-commands)
+- [Hooks reference](https://docs.anthropic.com/en/docs/claude-code/hooks)
+- [Best practices (Anthropic engineering)](https://www.anthropic.com/engineering/claude-code-best-practices)
+- [How Anthropic teams use Claude Code](https://www.anthropic.com/news/how-anthropic-teams-use-claude-code)
+
+### Claude models & API
+
+- [Models overview](https://docs.anthropic.com/en/docs/about-claude/models)
+- [API pricing](https://www.anthropic.com/pricing)
+- [Claude Opus official page](https://www.anthropic.com/claude/opus)
+- [Token calculator](https://claude-tokenizer.vercel.app/)
+
+### Agent development
+
+- [Building effective agents (Anthropic engineering)](https://www.anthropic.com/engineering/building-effective-agents)
+
+---
+
+## Model Context Protocol (MCP)
+
+### Official
+
+- **[Official MCP Registry (live)](https://registry.modelcontextprotocol.io/)**
+- [MCP getting started](https://modelcontextprotocol.io/docs/getting-started/intro)
+- [MCP roadmap](https://modelcontextprotocol.io/development/roadmap)
+- [Official MCP servers (GitHub)](https://github.com/modelcontextprotocol/servers)
+- [Registry announcement](http://blog.modelcontextprotocol.io/posts/2025-09-08-mcp-registry-preview/)
+- [Donation to the Agentic AI Foundation](https://www.anthropic.com/news/donating-the-model-context-protocol)
+- [MCP auth specifications](https://auth0.com/blog/mcp-specs-update-all-about-auth/)
+
+### MCP server examples
+
+- [Playwright MCP](https://github.com/microsoft/playwright-mcp)
+- [MCP agent implementation](https://github.com/lastmile-ai/mcp-agent)
+- [Serena — semantic code intelligence](https://github.com/oraios/serena)
+
+---
+
+## Hooks & automation
+
+- [Hooks examples (community)](https://github.com/disler/claude-code-hooks-mastery)
+- [Hooks guide (eesel)](https://www.eesel.ai/blog/hooks-in-claude-code)
+
+---
+
+## Workflows & tutorials
+
+- [Claude Code workflows (community)](https://github.com/OneRedOak/claude-code-workflows)
+- [Video tutorial](https://www.youtube.com/watch?v=kQmXtrmQ5Zg)
+- [Advanced tutorial](https://www.youtube.com/watch?v=xOO8Wt_i72s)
+
+---
+
+## Pricing & subscription information
+
+- [Pricing guide](https://intuitionlabs.ai/articles/claude-pricing-plans-api-costs)
+- [API pricing details](https://www.nops.io/blog/anthropic-api-pricing/)
+- [Claude Code pricing](https://www.braingrid.ai/blog/claude-code-pricing)
+- [Subscription comparison](https://screenapp.io/blog/claude-ai-pricing)
+- [Opus 4.6 pricing](https://www.eesel.ai/blog/claude-opus-46-pricing)
+
+---
+
+## Fast Mode resources
+
+- [Fast Mode analysis (Simon Willison)](https://simonwillison.net/2026/Feb/7/claude-fast-mode/)
+- [Fast Mode usage walkthrough](https://medium.com/@joe.njenga/how-im-using-new-claude-code-fast-mode-to-code-faster-like-a-whiz-09a2694da6ae)
+- [Fast Mode guide](https://wmedia.es/en/tips/claude-code-fast-mode-faster-responses)
+
+---
+
+## Development tools & adjacent resources
+
+- [Example project — e-commerce w/ Sanity + Stripe](https://github.com/adrianhajdin/ecommerce_sanity_stripe)
+- [Tmux cheatsheet](https://tmuxcheatsheet.com/)
+- [Obsidian — markdown viewer](https://obsidian.md/)
+- [Repomix — repository packaging tool](https://github.com/yamadashy/repomix)
+- [Cline — alternative AI coding assistant](https://github.com/cline/cline)
+
+---
+
+## Agent interoperability
+
+- [Agent-to-agent communication (Google for Developers)](https://developers.googleblog.com/en/a2a-a-new-era-of-agent-interoperability/)
+
+---
+
+[← Back to README](../../README.md#references) · [Changelog](changelog.md) · [FAQ](faq.md)
diff --git a/docs/reference/models.md b/docs/reference/models.md
new file mode 100644
index 0000000..a440462
--- /dev/null
+++ b/docs/reference/models.md
@@ -0,0 +1,103 @@
+# Models — Specifications & Pricing
+
+*[← Back to README](../../README.md#claude-opus-47-the-latest-flagship)*
+
+The Claude 4 model family at a glance, plus deeper specs for the current flagship. For Anthropic's authoritative list (always more current), see the [official model overview](https://docs.anthropic.com/en/docs/about-claude/models).
+
+---
+
+## The Claude 4 family
+
+| Model | Model ID | Context | Max output | Best for |
+|---|---|---|---|---|
+| **Opus 4.7** *(flagship)* | `claude-opus-4-7` | 200K (1M beta via API) | 128K | Complex reasoning, large refactors, multi-file analysis |
+| **Sonnet 4.6** *(balanced)* | `claude-sonnet-4-6` | 200K | 8K | Everyday coding — most tasks live here |
+| **Haiku 4.5** *(fast/cheap)* | `claude-haiku-4-5-20251001` | 200K | 8K | Quick edits, doc updates, light reasoning |
+
+> ⚠️ Anthropic ships new models often. Always check the [official model overview](https://docs.anthropic.com/en/docs/about-claude/models) before pinning a model ID.
+
+**Previous-generation models still available:** `claude-opus-4-6` and `claude-sonnet-4-5-20250929` remain accessible via API and the `/model` switcher. They're no longer the default but useful for cost optimization or pinning a build to a specific behavior.
+
+---
+
+## Claude Opus 4.7 — deep specs
+
+### Key specifications
+
+| Feature | Specification |
+|---|---|
+| **Model ID** | `claude-opus-4-7` |
+| **Context window** | 200K tokens (1M beta via API) |
+| **Max output** | 128K tokens |
+| **Availability** | Pro, Max, and API plans |
+| **Fast Mode** | Available via Opus 4.6 (`/fast` switches the underlying model — see [Fast Mode](#fast-mode) below) |
+
+### What's new in 4.7 vs 4.6
+
+- **Sharper adaptive thinking.** Reasoning depth scales more reliably with task complexity — fewer cases of overthinking trivial prompts or underthinking hard ones.
+- **Better long-context grounding.** Multi-file refactoring at the upper end of the 200K window holds the thread tighter than 4.6.
+- **Improved tool calling.** Lower rate of malformed JSON and clearer reasoning when picking between similar tools.
+- **Same price.** Input/output pricing matches Opus 4.6.
+
+### Capabilities
+
+**1. Extended context window** — 200K standard for everyone; 1M beta via API only. Best for: analyzing entire large codebases at once, processing extensive documentation.
+
+**2. Adaptive thinking** — dynamic reasoning that scales with task complexity. You can hint at depth with `"think"`, `"think hard"`, `"think harder"`, or `"ultrathink"` in your prompt; for the persistent dial, see [Effort levels](effort-levels.md). Opus 4.7 defaults to the `xhigh` effort level on every plan.
+
+**3. Agent teams (experimental)** — multi-agent collaboration in one session. Enable with `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1`.
+
+**4. Top-tier benchmarks** — leading scores on Terminal-Bench 2.0 and SWE-bench Verified.
+
+### When to reach for Opus 4.7
+
+- Complex architectural decisions
+- Large-scale refactoring or migrations
+- Debugging intricate, multi-file issues
+- Production-critical code paths
+
+**Save tokens with Sonnet 4.6 or Haiku 4.5 when:**
+
+- The task is a single-file edit or simple refactor
+- You're writing or updating documentation
+- You're doing exploratory Q&A about an unfamiliar codebase
+
+---
+
+## Fast Mode
+
+Fast Mode delivers ~2.5× faster responses at 6× the standard token price. It runs on **Opus 4.6** — not 4.7. Toggle with `/fast`; the **↯** indicator confirms it's on. Available via API and Pro/Max plans.
+
+| | Standard Opus 4.6 | Fast Mode (Opus 4.6) |
+|---|---|---|
+| Input (per MTok) | $5 | $30 (6×) |
+| Output (per MTok) | $25 | $150 (6×) |
+
+> 💡 Default to Opus 4.7 for everyday work. Reach for `/fast` only when latency genuinely matters (live debugging, demo prep, time-pressured fixes).
+
+---
+
+## Pricing
+
+### Subscription plans
+
+| Plan | Price | Models | Usage |
+|---|---|---|---|
+| Pro | $20/mo ($17/mo annual) | All | ~45 messages / 5hr |
+| Max 5x | $100/mo | All | 5× Pro |
+| Max 20x | $200/mo | All | 20× Pro |
+
+### API (pay-as-you-go)
+
+| Model | Input (per MTok) | Output (per MTok) |
+|---|---|---|
+| Opus 4.7 | $5 | $25 |
+| Sonnet 4.6 | $3 | $15 |
+| Haiku 4.5 | $1 | $5 |
+| Opus 4.6 (Fast Mode only) | $30 | $150 |
+
+> Pricing changes occasionally. Check [anthropic.com/pricing](https://www.anthropic.com/pricing) before committing.
+
+---
+
+[← Back to README](../../README.md#claude-opus-47-the-latest-flagship) · [FAQ](faq.md) · [Changelog](changelog.md)
diff --git a/docs/skills.md b/docs/skills.md
new file mode 100644
index 0000000..e4a8dc4
--- /dev/null
+++ b/docs/skills.md
@@ -0,0 +1,869 @@
+# Claude Skills — The Complete Guide
+
+*~30 min read · [← Back to README](../README.md#claude-skills)*
+
+> **Mental model:** Skills package a workflow into a markdown file Claude can run. Two flavors: *slash skills* you invoke with `/name`, and *Agent Skills* Claude reaches for automatically when their description matches the task.
+
+> ⚠️ **Security:** Skills are executable instructions running with your shell permissions. Only install skills from trusted sources, and read the file before adding it to your project — exactly like reviewing a shell script before sourcing it.
+
+![Skills Workflow](../Images/skill-workflow.png)
+
+## Two flavors of skills
+
+| | Slash skills *(custom slash commands)* | Agent Skills |
+|---|---|---|
+| **File path** | `.claude/commands/<name>.md` | `.claude/skills/<name>/SKILL.md` |
+| **Frontmatter** | None required | YAML — `name`, `description` (required); `allowed-tools`, `model`, `paths` (optional) |
+| **Invocation** | User types `/<name>` | Model auto-invokes when its description matches the request |
+| **Scope** | Project (`.claude/`) or user (`~/.claude/`) | Project (`.claude/skills/`) or user (`~/.claude/skills/`) |
+| **Loading** | Loaded on `/` autocomplete | Metadata pre-loaded; full content read on demand (progressive disclosure) |
+| **Best for** | Workflows you want to trigger explicitly | Capabilities Claude should reach for when relevant |
+
+> 💡 **Which to write?** Start with slash skills — simpler, no frontmatter, and you control invocation. Reach for Agent Skills when you want Claude to *decide* when the workflow applies (e.g., "if the user asks about PDFs, invoke `pdf-handler`"). The wider community has converged on Agent Skills as the format for shareable capabilities — see [The skills ecosystem](#the-skills-ecosystem) below.
+
+This guide focuses on **slash skills** (the seven shipped in this repo's `.claude/commands/`). Agent Skills follow most of the same patterns — name, description, structured prompt — plus YAML frontmatter and the `.claude/skills/<name>/SKILL.md` layout.
+
+## Contents
+
+- [Quickstart: your first skill in 3 minutes](#quickstart-your-first-skill-3-minutes)
+- [What are Claude Skills?](#what-are-claude-skills)
+- [Built-in skills vs custom skills](#built-in-skills-vs-custom-skills)
+- [Available skills reference](#available-skills-reference)
+- [Using skills in your workflow](#using-skills-in-your-workflow)
+- [Skills FAQ](#skills-faq)
+- [Creating custom skills](#creating-custom-skills)
+- [Troubleshooting skills](#troubleshooting-skills)
+- [Skills best practices](#skills-best-practices)
+- [The skills ecosystem](#the-skills-ecosystem)
+
+---
+
+## Quickstart: your first skill (3 minutes)
+
+The fastest path to a working skill:
+
+```bash
+# 1. Create the skills directory
+mkdir -p .claude/commands
+
+# 2. Create a simple skill file
+cat > .claude/commands/analyze.md << 'EOF'
+# Code Analysis
+
+Analyze the current code for:
+- Potential bugs and edge cases
+- Performance optimizations
+- Code quality improvements
+- Security vulnerabilities
+
+Provide specific, actionable recommendations.
+EOF
+
+# 3. Start Claude Code (if not already running)
+claude
+
+# 4. Use your new skill
+# Type: /analyze
+```
+
+**That's it.** You now have a working skill. Read on for the deeper patterns.
+
+---
+
+<a id="what-are-skills"></a>
+<a id="what-are-claude-skills"></a>
+
+## What are Claude Skills?
+
+Claude Skills (a.k.a. *custom slash commands*) are markdown files in `.claude/commands/` that hold structured instructions Claude Code runs on demand. Type `/skill-name` and Claude loads the file, then applies its instructions to your current context.
+
+| Skills are… | Skills are not… |
+|---|---|
+| Reusable across projects and sessions | One-shot prompts that vanish after the session |
+| Plain-text, version-controlled, peer-reviewable | Hidden, opaque, or model-specific |
+| Single-responsibility (one workflow per file) | Catch-all "do everything" instructions |
+| Discoverable — type `/` to autocomplete, or `/help` to list | Discovered through tribal knowledge |
+| Context-aware — fold in your current code and files | Static prompt templates |
+
+---
+
+<a id="built-in-vs-custom-skills"></a>
+<a id="built-in-skills-vs-custom-skills"></a>
+
+## Built-in skills vs custom skills
+
+**Built-in skills** (shipped with Claude Code):
+
+| Skill | Purpose | Invocation |
+|---|---|---|
+| `keybindings-help` | Customize keyboard shortcuts and modify `~/.claude/keybindings.json` | `/keybindings-help` |
+| `mermaid` | Create entity-relationship diagrams and flowcharts | `/mermaid` |
+
+**Custom skills** (in this repository's `.claude/commands/`):
+
+| Skill | Category | Complexity |
+|---|---|---|
+| `/pr` | Workflow | High |
+| `/review` | Quality | High |
+| `/test` | Quality | Medium |
+| `/tdd` | Workflow | High |
+| `/five` | Persona | Low |
+| `/ux` | Persona | Medium |
+| `/todo` | Task | Low |
+
+**What each skill does:**
+
+| Skill | Description |
+|---|---|
+| `/pr` | Automated pull request creation with branch management and commit splitting |
+| `/review` | Multi-perspective code review (PM, Dev, QA, Security, DevOps, UX) |
+| `/test` | Unit testing best-practices checklist for LLM-driven test generation |
+| `/tdd` | Complete test-driven development workflow with Red-Green-Refactor cycle |
+| `/five` | Five Whys root-cause analysis for debugging and problem-solving |
+| `/ux` | User-experience designer persona for empathetic, user-centric design |
+| `/todo` | Task management in `todos.md` with due dates and completion tracking |
+
+> 💡 **Pro tip:** Start with simple skills like `/five` or `/todo` to understand the pattern, then progress to complex workflows like `/tdd` or `/review`.
+
+---
+
+<a id="available-skills-reference"></a>
+
+## Available skills reference
+
+### 🔹 Workflow & process
+
+**`/pr` — Pull Request Creation**
+- Automatically creates feature branch from current changes
+- Formats code using project linter (e.g., Biome)
+- Intelligently splits changes into logical, atomic commits
+- Generates descriptive commit messages for each unit of work
+- Pushes to remote and creates PR with summary and test plan
+- **Perfect for:** Teams requiring consistent PR quality and commit hygiene
+
+**`/tdd` — Test-Driven Development**
+- Enforces strict Red-Green-Refactor cycle
+- Guides through: failing test → minimal implementation → refactoring
+- Maintains feature notes in `notes/features/` for long-term memory
+- Ensures tests pass before commits, commits only when green
+- Integrates with feature branch workflows
+- **Perfect for:** Projects requiring high code quality and comprehensive test coverage
+
+### 🔹 Quality & review
+
+**`/review` — Multi-Perspective Code Review**
+
+Six-role review framework:
+
+1. **Product Manager** — Business value, user experience, strategic alignment
+2. **Developer** — Code quality, maintainability, performance, best practices
+3. **QA Engineer** — Test coverage, edge cases, regression risks
+4. **Security Engineer** — Vulnerabilities, data handling, compliance (OWASP, GDPR)
+5. **DevOps** — CI/CD integration, infrastructure, monitoring
+6. **UI/UX Designer** — Visual consistency, usability, accessibility
+
+- Enforces "fix now, not later" philosophy for all recommendations
+- Posts comprehensive review directly to GitHub PR as a comment
+- **Perfect for:** Critical PRs, production releases, architecture changes
+- **Note:** When run on your own PR, this posts a review comment from your account
+
+**`/test` — Unit Testing Best Practices**
+- Comprehensive checklist for writing robust unit tests
+- Focuses on testing internal logic, not API endpoints
+- Covers context verification, test structure, test cases, isolation, assertions
+- Includes strict guidance against over-mocking and framework bindings
+- Encourages spawning sub-agents for complex test flows
+- **Perfect for:** Ensuring consistent, maintainable test suites
+
+### 🔹 Persona & methodology
+
+**`/five` — Five Whys Root-Cause Analysis**
+- Systematic investigation technique drilling from symptoms to root causes
+- Iteratively asks "why" to uncover fundamental issues
+- Validates findings by working backwards from root cause
+- Proposes solutions addressing systemic problems, not just symptoms
+- Handles both technical and process-related causes
+- **Perfect for:** Debugging production incidents, understanding recurring bugs
+
+**`/ux` — User Experience Designer Persona**
+
+Claude becomes an empathetic UX specialist:
+
+- Conducts user research identifying needs, pain points, motivations
+- Designs accessible, aesthetically pleasing interfaces
+- Prioritizes user needs above all other considerations
+- Creates thoughtful micro-interactions and anticipates edge cases
+- Generates precise prompts for AI UI generation tools
+- **Perfect for:** Design-first projects, prototyping, user-centric product development
+
+### 🔹 Task management
+
+**`/todo` — Project Task Manager**
+- Manages `todos.md` in project root with Active/Completed sections
+- Supports due dates/times with smart sorting (due tasks prioritized)
+- Commands: `add`, `complete`, `remove`, `undo`, `list`, `past due`, `next`
+- Auto-numbers todos for easy reference
+- Tracks completion timestamps
+- **Perfect for:** Sprint planning, personal task tracking, session continuity
+
+**`/mermaid` — Diagram Generation**
+- Creates entity-relationship diagrams from database schemas
+- Generates flowcharts, sequence diagrams, and architecture visualizations
+- Outputs valid Mermaid syntax for embedding in markdown
+- **Perfect for:** Documentation, architecture discussions, onboarding
+
+---
+
+<a id="using-skills-in-workflow"></a>
+<a id="using-skills-in-your-workflow"></a>
+
+## Using skills in your workflow
+
+**Basic invocation:**
+
+```bash
+# In Claude Code CLI
+/skill-name
+
+# With arguments (for skills that accept them)
+/todo add "Fix navigation bug"
+/review https://github.com/user/repo/pull/123
+```
+
+**Workflow prerequisites:**
+
+Before using these workflow combinations, ensure you have:
+
+- ✅ Git repository initialized (`git init`)
+- ✅ Remote repository configured (`git remote -v` shows your repo)
+- ✅ Commit permissions to your repository
+- ✅ GitHub authentication configured (for `/review` and `/pr` skills)
+- ✅ Skills installed in `.claude/commands/` or `~/.claude/commands/`
+- ✅ Current working directory is your project root
+
+**Workflow execution notes:**
+
+- Skills execute sequentially — wait for each to complete before invoking the next
+- Skills do **not** auto-chain — you must type each `/skill-name` command manually
+- If a skill fails, address the error before proceeding to the next step
+- Use `/help` to verify skill availability before running workflows
+
+### Recipe 1: Complete feature development
+
+```bash
+# Start with TDD workflow
+/tdd
+# Claude guides through Red-Green-Refactor cycle
+
+# Ensure tests pass
+/test
+# Validates test coverage and quality
+
+# Create PR with automatic commit splitting
+/pr
+# Creates branch, commits, and opens PR
+
+# Conduct comprehensive review (optional — creates PR comment)
+/review
+```
+
+**Common issues:**
+
+- **`/tdd` fails:** Ensure tests are properly written; review test syntax
+- **`/test` reports failures:** Fix failing tests before proceeding to `/pr`
+- **`/pr` merge conflicts:** Resolve conflicts manually, then retry
+- **`/review` auth failure:** Run `gh auth login` to configure GitHub CLI
+- **No Biome configured:** `/pr` assumes Biome formatter; install or modify skill
+
+### Recipe 2: Bug investigation & resolution
+
+```bash
+# Identify root cause
+/five
+# Five Whys analysis to find systemic issues
+
+# Implement fix using TDD
+/tdd
+# Write failing test, implement fix, refactor
+
+# Verify with unit tests
+/test
+# Ensure all tests pass
+
+# Submit PR
+/pr
+```
+
+**Common issues:**
+
+- **`/five` identifies unfixable issue:** Root cause may require architecture changes
+- **Bug in dependency:** Report upstream; consider workaround or fork
+- **`/tdd` tests pass but bug persists:** Review test coverage; bug may be in untested code
+
+### Recipe 3: UX-focused development
+
+```bash
+# Start with user-centric design
+/ux
+# Claude adopts UX designer persona
+
+# Implement with tests
+/test
+# Build with test coverage
+
+# Review for accessibility and usability
+/review
+# Multi-perspective review including UX
+```
+
+**Common issues:**
+
+- **`/ux` suggestions conflict with brand:** Provide brand guidelines as context
+- **`/review` finds accessibility violations:** Address WCAG issues before merge
+- **Performance issues with new UI:** Use browser profiling tools; optimize assets
+
+> 💡 **Workflow tips:**
+> - **Chain skills sequentially** — Skills execute one at a time; wait for completion before invoking the next.
+> - **Combine with hooks** for automatic skill invocation on events (see [Hooks](../README.md#hooks) section).
+> - **Use `/todo`** at session start to maintain context across interruptions.
+> - **Run `/review`** on your own PRs before requesting human review (note: posts as a PR comment from your account).
+> - **Skills don't auto-chain** — each `/skill` must be invoked manually; they don't call each other automatically.
+
+---
+
+<a id="skills-faq"></a>
+
+## Skills FAQ
+
+**Q: What's the difference between "skills" and "custom slash commands"?**
+
+In this guide, "slash skills" and "custom slash commands" are interchangeable — both are markdown files in `.claude/commands/` invoked with `/skill-name`. The broader community also uses "skills" to mean Agent Skills (a separate, model-invoked format with YAML frontmatter at `.claude/skills/<name>/SKILL.md`). See [Two flavors of skills](#two-flavors-of-skills) at the top of this guide for the comparison.
+
+**Q: Are skills safe to use from third-party repositories?**
+
+Treat skills like executable code — review them before running. Skills can:
+
+- Read and modify files in your project
+- Execute commands via Claude Code
+- Access your GitHub/API credentials if configured
+
+Always review `.claude/commands/` files from cloned repositories before invoking skills.
+
+**Q: How do I know if a skill is working correctly?**
+
+1. Check skill autocomplete: type `/` and your skill name should appear
+2. Test with simple input: invoke the skill with basic arguments
+3. Review Claude's response: skill instructions should be reflected in output
+4. Check for errors: run `claude --debug` to see detailed execution logs
+
+**Q: Can I modify built-in skills?**
+
+No. Built-in skills (`/keybindings-help`, `/mermaid`) are shipped with Claude Code and cannot be modified. You can create your own custom skills with similar names (e.g., `/my-mermaid`) for custom behavior.
+
+**Q: How do I share skills with my team?**
+
+1. Create skills in `.claude/commands/` (project directory)
+2. Commit skill files to version control: `git add .claude/commands/`
+3. Document skills in your project README
+4. Team members get skills automatically when they clone the repo
+
+**Q: Do skills work offline?**
+
+Yes. Skills are local markdown files read by Claude Code. No network connection is required to invoke skills, though the AI model execution requires internet access.
+
+**Q: What happens if I have two skills with the same name?**
+
+Project skills (`.claude/commands/`) take precedence over global skills (`~/.claude/commands/`). The project-level skill executes.
+
+**Q: Can skills accept arguments?**
+
+Yes. Type arguments after the skill name:
+
+```bash
+/todo add "Fix navigation bug"
+/review https://github.com/user/repo/pull/123
+```
+
+Claude automatically sees your arguments as context — no special syntax needed.
+
+**Q: How long do skill workflows typically take?**
+
+- Simple skills (5–20 lines): 10–30 seconds
+- Medium skills (20–100 lines): 1–3 minutes
+- Complex skills like `/tdd`: 5–15 minutes depending on implementation size
+
+**Q: Can I cancel a running skill midway?**
+
+Press `Ctrl+C` to interrupt Claude Code. Some changes may be partially applied; review with `git status` and revert with `git checkout -- <file>` if needed.
+
+**Q: Can I run skills in parallel?**
+
+No — skills execute sequentially within a single Claude Code session. For parallel work, open multiple terminals with separate Claude Code sessions.
+
+---
+
+<a id="creating-custom-skills"></a>
+
+## Creating custom skills
+
+> ⚠️ **Security note:** When creating global skills (`~/.claude/commands/`), they execute in **all** your projects. Only add skills you trust completely. For team projects, use project-specific skills (`.claude/commands/`) and commit them to version control for review.
+
+### Skill file requirements
+
+**File format:**
+
+- **Extension:** Must be `.md` (markdown files only)
+- **Encoding:** UTF-8 (required; UTF-16 not supported)
+- **Line endings:** Both LF (Unix) and CRLF (Windows) supported
+- **File size:** Recommended max 50KB per skill (larger files may cause performance issues)
+- **Naming:** Lowercase with hyphens (e.g., `my-skill.md` → `/my-skill`)
+
+**File system:**
+
+- **Symlinks:** Supported (`.claude/commands/` can contain symlinks to skill files)
+- **Permissions:** Files must be readable by your user account
+- **Location:** Must be in `.claude/commands/` (project) or `~/.claude/commands/` (global)
+
+**Execution context:**
+
+- **Git:** None required — skills work in any directory (git or non-git)
+- **Network:** None required — skills execute locally without network access
+- **Offline support:** ✅ Full support — skills are read from local files
+
+### Step-by-step: building your first skill
+
+**1. Create the skill file**
+
+```bash
+# Project-specific skill (recommended for team projects)
+mkdir -p .claude/commands
+touch .claude/commands/my-skill.md
+
+# Global skill (available in all projects — use with caution)
+mkdir -p ~/.claude/commands
+touch ~/.claude/commands/my-skill.md
+```
+
+> 💡 Always use project-specific skills (`.claude/commands/`) for team workflows — team members can review changes through version control.
+
+**2. Define the skill structure**
+
+Skills use markdown with structured sections:
+
+```markdown
+# Skill Name
+
+Brief description of what this skill does.
+
+## Behavior
+- Bullet list of what Claude should do
+- Specific actions to take
+- Expected outcomes
+
+## Guidelines (optional)
+- Best practices to follow
+- Constraints or requirements
+- Formatting rules
+
+## Examples (optional)
+### Example 1: Use case description
+[Show example input/output or workflow]
+```
+
+**3. Example: simple skill (complete file)**
+
+Complete contents of `.claude/commands/five.md`:
+
+```markdown
+# Five Whys Analysis
+
+Apply the Five Whys root cause analysis technique to investigate issues.
+
+## Steps
+1. Start with the problem statement
+2. Ask "Why did this happen?" and document the answer
+3. For each answer, ask "Why?" again
+4. Continue for at least 5 iterations or until root cause is found
+5. Validate the root cause by working backwards
+6. Propose solutions that address the root cause
+
+## Notes
+- Don't stop at symptoms; keep digging for systemic issues
+- Multiple root causes may exist — explore different branches
+```
+
+> 💡 Copy this exactly to `.claude/commands/five.md` to use it immediately.
+
+**4. Example: complex skill (complete file)**
+
+Complete contents of `.claude/commands/pr.md`:
+
+```markdown
+# Create Pull Request Command
+
+Create a new branch, commit changes, and submit a pull request.
+
+## Behavior
+- Creates a new branch based on current changes
+- Formats modified files using Biome
+- Analyzes changes and automatically splits into logical commits when appropriate
+- Each commit focuses on a single logical change or feature
+- Creates descriptive commit messages for each logical unit
+- Pushes branch to remote
+- Creates pull request with proper summary and test plan
+
+## Guidelines for Automatic Commit Splitting
+- Split commits by feature, component, or concern
+- Keep related file changes together in the same commit
+- Separate refactoring from feature additions
+- Ensure each commit can be understood independently
+- Multiple unrelated changes should be split into separate commits
+```
+
+**5. Skill scope: project vs global**
+
+| Location | Scope | Use case |
+|---|---|---|
+| `.claude/commands/` | Project-specific | Team workflows, project conventions, domain-specific tasks |
+| `~/.claude/commands/` | Global (all projects) | Personal preferences, universal patterns, cross-project utilities |
+
+**6. Test your skill**
+
+```bash
+# Start Claude Code in your project
+claude
+
+# Invoke your skill
+/my-skill
+
+# Observe Claude's behavior and iterate on the skill file
+```
+
+> 💡 **Creation tips:**
+> - **Start simple** — A 10-line skill is better than none.
+> - **Be specific** — Vague instructions yield vague results.
+> - **Use examples** — Show Claude what good output looks like.
+> - **Iterate** — Skills improve with use; refine based on results.
+> - **Version control** — Commit skills to `.claude/commands/` for team sharing.
+
+---
+
+<a id="troubleshooting-skills"></a>
+
+## Troubleshooting skills
+
+### Common issues
+
+**1. `/skill-name` not recognized**
+- **Cause:** Skill file doesn't exist or wrong location
+- **Solution:** Verify file exists in `.claude/commands/skill-name.md`
+
+**2. Skill not executing**
+- **Cause:** File permissions issue
+- **Solution:** Run `chmod +r .claude/commands/skill-name.md`
+
+**3. Wrong skill executes**
+- **Cause:** Name collision between project and global skills
+- **Solution:** Project skills (`.claude/commands/`) take precedence over global
+
+**4. Skill content ignored**
+- **Cause:** Markdown formatting errors
+- **Solution:** Validate markdown syntax, ensure proper heading levels
+
+**5. Unexpected behavior**
+- **Cause:** Skill instructions unclear
+- **Solution:** Make instructions more explicit and specific
+
+**6. Changes not reflected**
+- **Cause:** Old session cache
+- **Solution:** Restart Claude Code session to reload skill files
+
+### Debugging tips
+
+1. **Test in isolation** — Create a minimal test skill to verify the system works
+2. **Check file paths** — Use absolute paths: `ls -la .claude/commands/` to verify files exist
+3. **Review logs** — Run `claude --debug` to see detailed execution logs
+4. **Validate markdown** — Use a markdown validator to check file syntax
+5. **Start fresh** — Close and restart Claude Code session after creating/modifying skills
+
+### Error messages
+
+- **"Command not found"** — Skill file doesn't exist at expected path
+- **"Permission denied"** — Skill file not readable; check permissions
+- **No error but skill doesn't work** — Instructions may be too vague; add specific steps
+
+### Version requirements
+
+- **Claude Code version:** Skills are available in Claude Code v1.0+ (2024 – present)
+- **No special installation needed** — Skills work out of the box with any Claude Code installation
+- **All plans supported** — Available in Free, Pro, and Max plans
+- **All models supported** — Works across the Claude 4 model family
+
+### Edge cases & gotchas
+
+| Scenario | Behavior |
+|---|---|
+| Wrong extension (not `.md`) | ❌ Not loaded — only `.md` files become skills |
+| UTF-16 encoded file | ❌ May fail — re-save as UTF-8 |
+| Skill file > 100KB | ⚠️ Slow — split into smaller composable skills |
+| Symlinks in `.claude/commands/` | ✅ Supported |
+| Non-git directory | ✅ Works — skills don't require git |
+| Offline use | ✅ Works — skills are local files |
+| Windows CRLF line endings | ✅ Supported |
+
+---
+
+<a id="skills-best-practices"></a>
+
+## Skills best practices
+
+### ✅ Do
+
+1. **Give skills descriptive names** — Use kebab-case: `create-api-endpoint.md`, not `command.md`
+2. **Focus on one workflow** — Split complex processes into composable skills
+3. **Include examples** — Show expected input/output patterns
+4. **Document arguments** — Skills can accept arguments passed after the slash command
+5. **Test with edge cases** — Invoke skills with missing/invalid inputs
+6. **Share with your team** — Commit to `.claude/commands/` and document in README
+7. **Use structured sections** — Behavior, Guidelines, Examples, Notes
+8. **Leverage existing skills** — Reference other skills in workflows (e.g., "Run `/test` after implementation")
+
+### Passing arguments to skills
+
+```bash
+# Single argument
+/todo add "Fix navigation bug"
+
+# Multiple words (use quotes)
+/review https://github.com/user/repo/pull/123
+
+# URL or file path
+/analyze src/components/Button.tsx
+```
+
+**Accessing arguments in skills:** Arguments are automatically available to Claude as context. In your skill file, reference them naturally:
+
+```markdown
+# Code Review Skill
+
+Analyze the code at the provided file path or URL.
+
+## Steps
+1. Read the provided argument (file path or URL)
+2. Perform code review...
+```
+
+> **Note:** There is no special `$ARGUMENTS` variable syntax — Claude automatically sees the text you type after `/skill-name` as part of the request context.
+
+### ❌ Don't
+
+1. **Overload skills** — A skill doing 10 things is 10 skills in disguise
+2. **Use ambiguous language** — "Make it better" → "Refactor for readability: extract functions >20 lines"
+3. **Duplicate built-in commands** — Check existing commands first with `/help`
+4. **Forget to test** — Always run skills in real scenarios before sharing
+5. **Ignore naming conventions** — Consistent naming improves discoverability
+6. **Hardcode project paths** — Use relative paths or variables
+7. **Skip documentation** — Future you (and teammates) will need context
+8. **Run untrusted skills** — Always review third-party skills before executing them
+9. **Grant excessive permissions** — Skills should request only the minimum permissions needed
+
+### Advanced patterns
+
+**Skill composition** — Reference other skills within a skill:
+
+```markdown
+## Workflow
+1. Run `/five` to identify root cause
+2. Create feature branch
+3. Implement fix using `/tdd`
+4. Submit with `/pr`
+```
+
+**⚠️ Circular reference prevention:** Skills can reference other skills in their workflows, but be cautious:
+
+- **Avoid circular calls:** Don't create skill A that calls skill B that calls skill A
+- **No automatic chaining:** Each `/skill-name` must be invoked manually; skills don't auto-execute other skills
+- **Claude interprets references:** When a skill says "Run `/test`", Claude sees this as an instruction, not automatic execution
+- **Manual workflow:** Users still need to type each skill command themselves
+
+**Conditional logic** — Guide Claude's decision-making:
+
+```markdown
+## Behavior
+- If tests exist: Run tests first
+- If no tests: Create tests following `/test` guidelines
+- If tests fail: Fix code, do not modify tests
+```
+
+**Subagent coordination** — Delegate complex tasks:
+
+```markdown
+## Implementation
+1. Spawn 4 subagents (Task tool) for parallel work:
+ - Agent 1: Generate test cases
+ - Agent 2: Implement core logic
+ - Agent 3: Create documentation
+ - Agent 4: Review security implications
+2. Integrate results into cohesive implementation
+```
+
+### Performance considerations
+
+| Complexity | Token usage | Response time | Best for |
+|---|---|---|---|
+| Simple (5–20 lines) | Lower | Faster | Single-step tasks, checklists |
+| Medium (20–100 lines) | Moderate | Moderate | Multi-step workflows, personas |
+| Complex (100+ lines) | Higher | Slower | Comprehensive reviews, TDD cycles |
+
+> **Note:** Actual performance varies based on skill content, model selection, server load, and network conditions. Token counts and response times are approximate guidelines only.
+
+> 🎯 **Optimization tips:**
+> - **Use subagents** for parallelizable work within complex skills.
+> - **Split mega-skills** into smaller, composable units.
+> - **Cache common patterns** as skills instead of re-prompting.
+> - **Use Fast Mode** (see [Fast Mode](../README.md#fast-mode-)) when running skill-heavy workflows for 2.5× faster responses.
+
+---
+
+## The skills ecosystem
+
+A vibrant community has formed around Agent Skills since Anthropic open-sourced the SKILL.md format. Beyond the seven custom slash skills shipped in this repo, you'll find an official Anthropic catalog, multiple marketplaces with thousands of skills indexed, and curated "awesome" lists that point at high-signal contributors.
+
+### Official Anthropic resources
+
+| Resource | What it is |
+|---|---|
+| [**anthropics/skills**](https://github.com/anthropics/skills) | Anthropic's public repo of authored Agent Skills (PDF/document creation, brand guidelines, slide generation, etc.). The reference implementation for the SKILL.md format. |
+| [**agentskills.io**](https://agentskills.io/specification) | Open specification for the SKILL.md format and frontmatter contract. Source on [GitHub → `agentskills/agentskills`](https://github.com/agentskills/agentskills). |
+| [Anthropic Skills docs](https://code.claude.com/docs/en/skills) | Authoritative usage guide — invocation, scopes, packaging, sharing. |
+
+### Marketplaces & registries
+
+| Marketplace | URL | Focus |
+|---|---|---|
+| **SkillHub** | [skillhub.club](https://www.skillhub.club/) | ~7K AI-evaluated skills auto-indexed from public GitHub repos. Searchable by category. |
+| **SkillsMP** | [skillsmp.com](https://skillsmp.com/) | ~900K skills aggregated across GitHub. Independent (not Anthropic-affiliated). Filters by occupation, popularity, author. |
+| **Smithery** | [smithery.ai](https://smithery.ai/) | Originally an MCP-server registry; now covers Agent Skills too. Includes a CLI for discovery and install. |
+
+> ⚠️ Marketplaces aggregate community content and don't vet every entry. Read `SKILL.md` (and any `scripts/` it references) before installing — the same care you'd apply to a shell script.
+
+### Curated "awesome" lists
+
+| List | Slant |
+|---|---|
+| [**travisvn/awesome-claude-skills**](https://github.com/travisvn/awesome-claude-skills) | Broadest community list with creation guides, security notes, and best-practice picks. |
+| [**ComposioHQ/awesome-claude-skills**](https://github.com/ComposioHQ/awesome-claude-skills) | 1000+ production-ready skills organized by category; integrates with Composio's Connect-Apps for 500+ external apps. |
+| [**jesseotremblay/claude-skills**](https://github.com/jesseotremblay/claude-skills) | Skill-creator toolkit + business-analysis library (SWOT, market sizing, [market research](https://github.com/jesseotremblay/claude-skills/tree/main/market-research)). |
+| [**mattpocock/skills**](https://github.com/mattpocock/skills) | Engineering-focused composable skills (TDD, debugging, triage). Includes the well-known [`grill-me`](https://github.com/mattpocock/skills/blob/main/grill-me/SKILL.md). |
+
+### Notable community skills, by category
+
+These are skills that surface repeatedly across SkillHub, SkillsMP, and the awesome lists. Most are Agent Skills (`SKILL.md`) — install via the marketplace UI, the [`skill-installer`](#-skill-installer) skill, or by copying the folder into `.claude/skills/<name>/`.
+
+#### Engineering & development
+
+| Skill | What it adds |
+|---|---|
+| `backend-dev-guidelines` | House-style backend patterns and review checklist |
+| `nodejs-backend-patterns` | Node.js architecture, async patterns, error handling |
+| `react` | Component conventions, hook idioms, and refactoring guidance |
+| `frontend-design` | Design-system implementation aligned with brand tokens |
+| `senior-data-engineer` | Data engineering reviewer / mentor persona |
+
+#### Quality, review & debugging
+
+| Skill | What it adds |
+|---|---|
+| `github-code-review` | Structured GitHub PR reviews with inline comments |
+| `peer-review` | Multi-perspective peer review (engineering + product lenses) |
+| `docs-review` | Documentation audit — clarity, accuracy, structure |
+| `verification-quality` | Verifies output meets a defined quality bar before sign-off |
+| `evaluation` | Systematic output evaluation with rubrics |
+| `systematic-debugging` | Methodical bug investigation with hypothesis tracking |
+
+#### Skill & tool development
+
+| Skill | What it adds |
+|---|---|
+| `skill-creator` | Scaffolds a new SKILL.md with valid frontmatter |
+| <a id="-skill-installer"></a>`skill-installer` | Installs Agent Skills from a registry or repo into `.claude/skills/` |
+| `mcp-builder` | MCP server scaffolding aligned with the protocol spec |
+| `tool-design` | Designing well-shaped tool interfaces for agents |
+
+#### Reasoning & process
+
+| Skill | What it adds |
+|---|---|
+| `brainstorming` | Structured brainstorming protocols (SCAMPER, lateral, etc.) |
+| `scientific-critical-thinking` | Critical-thinking framework for claim evaluation |
+| `scientific-problem-selection` | Picking tractable, high-leverage problems |
+| `prompt-engineering-patterns` | Reusable prompting patterns and anti-patterns |
+| `behavioral-modes` | Switch Claude into focused working modes (architect, reviewer, …) |
+
+#### Research & business
+
+| Skill | What it adds |
+|---|---|
+| `market-research-reports` | Structured market research deliverable |
+| `market-sizing-analysis` | TAM / SAM / SOM methodology, defensible bottom-up |
+| `product-strategist` | Product strategy persona — positioning, GTM, prioritization |
+
+#### Memory, context & ops
+
+| Skill | What it adds |
+|---|---|
+| `memory-systems` | Long-term memory patterns for agents |
+| `context-optimization` | Manage the context window efficiently across long sessions |
+| `context-degradation` | Recover gracefully when context drift sets in |
+| `file-search` | Improved repository search heuristics |
+| `reasoningbank-agentdb` | Reasoning + agent-DB integration patterns |
+
+#### Workflow & collaboration
+
+| Skill | What it adds |
+|---|---|
+| `pair-programming` | Structured pair-programming sessions with the model |
+| `agentic-jujutsu` | Agent orchestration techniques for multi-step problems |
+| `superpowers` / `using-superpowers` | Power-user toolkit; community-maintained meta-skill |
+
+#### Output formats & creative
+
+| Skill | What it adds |
+|---|---|
+| `pptx` | Generate PowerPoint decks programmatically |
+| `algorithmic-art` | Generative-art workflows and reusable scaffolds |
+
+### Installing a community skill
+
+Three common paths, listed in order of friction:
+
+1. **Marketplace one-click install.** SkillHub, SkillsMP, and Smithery offer a copy/install button that drops the skill folder into the right place.
+2. **Install via `skill-installer`.** Once you've installed [`skill-installer`](#-skill-installer) once, ask Claude *"install the X skill from Y registry"* and it handles the rest.
+3. **Manual copy from source.** Clone the source repo and drop `<name>/SKILL.md` (plus any `scripts/`, `references/`, `assets/` subfolders) into `.claude/skills/<name>/` for project scope or `~/.claude/skills/<name>/` for user scope.
+
+```bash
+# Manual install of a community Agent Skill
+mkdir -p .claude/skills
+git clone https://github.com/<author>/<repo>.git /tmp/src
+cp -r /tmp/src/<skill-name>/ .claude/skills/<skill-name>/
+
+# Verify the skill loaded
+claude
+> /skills # list available Agent Skills
+```
+
+> 💡 **Convert a slash skill to an Agent Skill.** Move `.claude/commands/<name>.md` to `.claude/skills/<name>/SKILL.md`, add YAML frontmatter at the top (`name`, `description`), and Claude will start invoking it automatically when the description matches the user's request — no more typing `/<name>`.
+
+```yaml
+---
+name: my-skill
+description: Use when the user asks for X, Y, or Z. Adds A and B.
+allowed-tools: ["Read", "Edit", "Bash"] # optional
+---
+
+# Skill body — same structured prompt you'd put in a slash skill
+```
+
+---
+
+[← Back to README](../README.md#claude-skills) · [Hooks](../README.md#hooks) · [MCP](../README.md#model-context-protocol-mcp)