Claude Code Examples - Complete Index
This document provides a complete index of all example files organized by feature type.
Summary Statistics
- Total Files: 100+ files
- Categories: 10 feature categories
- Plugins: 3 complete plugins
- Skills: 6 complete skills
- Hooks: 11 example hooks
- Ready to Use: All examples
01. Slash Commands (10 files)
User-invoked shortcuts for common workflows.
| File | Description | Use Case |
|---|---|---|
optimize.md |
Code optimization analyzer | Find performance issues |
pr.md |
Pull request preparation | PR workflow automation |
generate-api-docs.md |
API documentation generator | Generate API docs |
commit.md |
Commit message helper | Standardized commits |
setup-ci-cd.md |
CI/CD pipeline setup | DevOps automation |
push-all.md |
Push all changes | Quick push workflow |
unit-test-expand.md |
Expand unit test coverage | Test automation |
doc-refactor.md |
Documentation refactoring | Doc improvements |
pr-slash-command.png |
Screenshot example | Visual reference |
README.md |
Documentation | Setup and usage guide |
Installation Path: .claude/commands/
Usage: /optimize, /pr, /generate-api-docs, /commit, /setup-ci-cd, /push-all, /unit-test-expand, /doc-refactor
02. Memory (6 files)
Persistent context and project standards.
| File | Description | Scope | Location |
|---|---|---|---|
project-CLAUDE.md |
Team project standards | Project-wide | ./CLAUDE.md |
directory-api-CLAUDE.md |
API-specific rules | Directory | ./src/api/CLAUDE.md |
personal-CLAUDE.md |
Personal preferences | User | ~/.claude/CLAUDE.md |
memory-saved.png |
Screenshot: memory saved | - | Visual reference |
memory-ask-claude.png |
Screenshot: ask Claude | - | Visual reference |
README.md |
Documentation | - | Reference |
Installation: Copy to appropriate location
Usage: Automatically loaded by Claude
AGENTS.md (v2.1.277): read as project instructions when no CLAUDE.md, .claude/CLAUDE.md or CLAUDE.local.md exists at or above the working directory β see 02-memory/README.md#agentsmd
03. Skills (23 files)
Auto-invoked capabilities with scripts and templates.
Code Review Skill (5 files)
code-review-specialist/
βββ SKILL.md # Skill definition
βββ scripts/
β βββ analyze-metrics.py # Code metrics analyzer
β βββ compare-complexity.py # Complexity comparison
βββ templates/
βββ review-checklist.md # Review checklist
βββ finding-template.md # Finding documentation
Purpose: Comprehensive code review with security, performance, and quality analysis
Auto-invoked: When reviewing code
Brand Voice Skill (4 files)
brand-voice/
βββ SKILL.md # Skill definition
βββ templates/
β βββ email-template.txt # Email format
β βββ social-post-template.txt # Social media format
βββ tone-examples.md # Example messages
Purpose: Ensure consistent brand voice in communications
Auto-invoked: When creating marketing copy
Documentation Generator Skill (2 files)
doc-generator/
βββ SKILL.md # Skill definition
βββ generate-docs.py # Python doc extractor
Purpose: Generate comprehensive API documentation from source code
Auto-invoked: When creating/updating API documentation
Refactor Skill (5 files)
refactor/
βββ SKILL.md # Skill definition
βββ scripts/
β βββ analyze-complexity.py # Complexity analyzer
β βββ detect-smells.py # Code smell detector
βββ references/
β βββ code-smells.md # Code smells catalog
β βββ refactoring-catalog.md # Refactoring patterns
βββ templates/
βββ refactoring-plan.md # Refactoring plan template
Purpose: Systematic code refactoring with complexity analysis
Auto-invoked: When refactoring code
Claude MD Skill (1 file)
claude-md/
βββ SKILL.md # Skill definition
Purpose: Manage and optimize CLAUDE.md files
Blog Draft Skill (3 files)
blog-draft/
βββ SKILL.md # Skill definition
βββ templates/
βββ draft-template.md # Blog draft template
βββ outline-template.md # Blog outline template
Purpose: Draft blog posts with consistent structure
Plus: README.md - Skills overview and usage guide
Installation Path: ~/.claude/skills/ or .claude/skills/
04. Subagents (10 files)
Specialized AI assistants with custom capabilities.
| File | Description | Tools | Use Case |
|---|---|---|---|
code-reviewer.md |
Code quality analysis | Read, Grep, Glob, Bash | Comprehensive reviews |
test-engineer.md |
Test coverage analysis | Read, Write, Bash, Grep | Test automation |
documentation-writer.md |
Documentation creation | Read, Write, Grep | Doc generation |
secure-reviewer.md |
Security review (read-only) | Read, Grep | Security audits |
implementation-agent.md |
Full implementation | Read, Write, Edit, Bash, Grep, Glob | Feature development |
debugger.md |
Debugging specialist | Read, Edit, Bash, Grep, Glob | Bug investigation |
data-scientist.md |
Data analysis specialist | Bash, Read, Write | Data workflows |
clean-code-reviewer.md |
Clean code standards | Read, Grep, Glob, Bash | Code quality |
performance-optimizer.md |
Performance bottleneck analysis | Read, Edit, Bash, Grep, Glob | Optimization work |
README.md |
Documentation | - | Setup and usage guide |
Installation Path: .claude/agents/
Usage: Automatically delegated by main agent
05. MCP Protocol (5 files)
External tool and API integrations.
| File | Description | Integrates With | Use Case |
|---|---|---|---|
github-mcp.json |
GitHub integration | GitHub API | PR/issue management |
database-mcp.json |
Database queries | PostgreSQL/MySQL | Live data queries |
filesystem-mcp.json |
File operations | Local filesystem | File management |
multi-mcp.json |
Multiple servers | GitHub + DB + Slack | Complete integration |
README.md |
Documentation | - | Setup and usage guide |
Installation Path: .mcp.json (project scope) or ~/.claude.json (user scope)
Usage: /mcp__github__list_prs, etc.
06. Hooks (12 files)
Event-driven automation scripts that execute automatically.
| File | Description | Event | Use Case |
|---|---|---|---|
format-code.sh |
Auto-format code | PostToolUse (matcher: Write) | Code formatting |
pre-commit.sh |
Run tests before commit | PreToolUse (matcher: Bash) | Test automation |
pre-tool-check.sh |
Validate and audit commands before they run | PreToolUse (matcher: Bash) | Guardrails, audit log |
security-scan.sh |
Security scanning | PostToolUse (matcher: Write) | Security checks |
dependency-check.sh |
Scan dependency manifests for vulnerabilities | PostToolUse (matcher: Write) | Supply-chain checks |
log-bash.sh |
Log bash commands | PostToolUse (matcher: Bash) | Command logging |
notify-team.sh |
Send notifications | PostToolUse (matcher: Bash) | Team notifications |
validate-prompt.sh |
Validate prompts | UserPromptSubmit | Input validation |
session-end.sh |
Capture progress when a session ends | SessionEnd | Progress tracking |
context-tracker.py |
Track context window usage | UserPromptSubmit, Stop | Context monitoring |
context-tracker-tiktoken.py |
Token-based context tracking | UserPromptSubmit, Stop | Precise token counting |
README.md |
Documentation | - | Setup and usage guide |
Installation Path: Configure in ~/.claude/settings.json
Usage: Configured in settings, executed automatically
Hook Types (5): command, http, prompt, mcp_tool, agent β how a hook runs.
Hook Events (33, in 4 categories) β when it runs: - Tool Hooks: PreToolUse, PostToolUse, PostToolUseFailure, PostToolBatch, PermissionRequest, PermissionDenied - Session Hooks: SessionStart, Setup, SessionEnd, Stop, StopFailure, SubagentStart, SubagentStop - Task Hooks: UserPromptSubmit, UserPromptExpansion, MessageDisplay, TaskCompleted, TaskCreated, TeammateIdle (TaskCompleted/TaskCreated only fire when the todo tools are enabled β available by default only on Claude 3.x models, Opus 4 through 4.7, Sonnet 4 through 4.6, and Haiku 4.5) - Lifecycle Hooks: ConfigChange, CwdChanged, DirectoryAdded, FileChanged, PreCompact, PostCompact, PreModelSwitch, PostModelSwitch, WorktreeCreate, WorktreeRemove, Notification, InstructionsLoaded, Elicitation, ElicitationResult
07. Plugins (3 complete plugins, 39 files)
Bundled collections of features.
PR Review Plugin (10 files)
pr-review/
βββ .claude-plugin/
β βββ plugin.json # Plugin manifest
βββ commands/
β βββ review-pr.md # Comprehensive review
β βββ check-security.md # Security check
β βββ check-tests.md # Test coverage check
βββ agents/
β βββ security-reviewer.md # Security specialist
β βββ test-checker.md # Test specialist
β βββ performance-analyzer.md # Performance specialist
βββ mcp/
β βββ github-config.json # GitHub integration
βββ hooks/
β βββ pre-review.js # Pre-review validation
βββ README.md # Plugin documentation
Features: Security analysis, test coverage, performance impact
Commands: /review-pr, /check-security, /check-tests
Installation: /plugin install pr-review
DevOps Automation Plugin (15 files)
devops-automation/
βββ .claude-plugin/
β βββ plugin.json # Plugin manifest
βββ commands/
β βββ deploy.md # Deployment
β βββ rollback.md # Rollback
β βββ status.md # System status
β βββ incident.md # Incident response
βββ agents/
β βββ deployment-specialist.md # Deployment expert
β βββ incident-commander.md # Incident coordinator
β βββ alert-analyzer.md # Alert analyzer
βββ mcp/
β βββ kubernetes-config.json # Kubernetes integration
βββ hooks/
β βββ pre-deploy.js # Pre-deployment checks
β βββ post-deploy.js # Post-deployment tasks
βββ scripts/
β βββ deploy.sh # Deployment automation
β βββ rollback.sh # Rollback automation
β βββ health-check.sh # Health checks
βββ README.md # Plugin documentation
Features: Kubernetes deployment, rollback, monitoring, incident response
Commands: /deploy, /rollback, /status, /incident
Installation: /plugin install devops-automation
Documentation Plugin (14 files)
documentation/
βββ .claude-plugin/
β βββ plugin.json # Plugin manifest
βββ commands/
β βββ generate-api-docs.md # API docs generation
β βββ generate-readme.md # README creation
β βββ sync-docs.md # Doc synchronization
β βββ validate-docs.md # Doc validation
βββ agents/
β βββ api-documenter.md # API doc specialist
β βββ code-commentator.md # Code comment specialist
β βββ example-generator.md # Example creator
βββ mcp/
β βββ github-docs-config.json # GitHub integration
βββ templates/
β βββ api-endpoint.md # API endpoint template
β βββ function-docs.md # Function doc template
β βββ adr-template.md # ADR template
βββ README.md # Plugin documentation
Features: API docs, README generation, doc sync, validation
Commands: /generate-api-docs, /generate-readme, /sync-docs, /validate-docs
Installation: /plugin install documentation
Plus: README.md - Plugins overview and usage guide
08. Checkpoints and Rewind (2 files)
Save conversation state and explore alternative approaches.
| File | Description | Content |
|---|---|---|
README.md |
Documentation | Comprehensive checkpoint guide |
checkpoint-examples.md |
Real-world examples | Database migration, performance optimization, UI iteration, debugging |
Key Concepts: - Checkpoint: Snapshot of conversation state - Rewind: Return to previous checkpoint - Branch Point: Explore multiple approaches
Usage:
# Checkpoints are created automatically with every user prompt
# To rewind, press Esc twice or use:
/rewind
# Then choose: Restore code and conversation, Restore conversation,
# Restore code, Summarize from here, or Never mind
Use Cases: - Try different implementations - Recover from mistakes - Safe experimentation - Compare solutions - A/B testing
09. Advanced Features (4 files)
Advanced capabilities for complex workflows.
| File | Description | Features |
|---|---|---|
README.md |
Complete guide | All advanced features documentation |
config-examples.json |
Configuration examples | 10+ use-case-specific configurations |
planning-mode-examples.md |
Planning examples | REST API, database migration, refactoring |
setup-auto-mode-permissions.py |
Seed permissions.allow for auto mode |
Idempotent, --dry-run and opt-in flags |
| Dynamic Workflows | Deterministic multi-agent orchestration via /workflows (v2.1.154) |
Comprehensive audits, migrations, scale-out |
| Scheduled Tasks | Recurring tasks with /loop and cron tools |
Automated recurring workflows |
| Chrome Integration | Browser automation via headless Chromium | Web testing and scraping |
| Remote Control (expanded) | Connection methods, security, comparison table, device cards | Remote session management (no longer a research preview) |
| Cross-Session Messaging | SendMessage / ListAgents, including notify_when_idle (v2.1.236) |
Coordinating sessions on the same machine |
| Keyboard Customization | Custom keybindings, chord support, contexts | Personalized shortcuts |
| Desktop App (expanded) | Connectors, launch.json, enterprise features | Desktop integration |
Advanced Features Covered:
Planning Mode
- Create detailed implementation plans
- Time estimates and risk assessment
- Systematic task breakdown
Extended Thinking
- Deep reasoning for complex problems
- Architectural decision analysis
- Trade-off evaluation
Background Tasks
- Long-running operations without blocking
- Parallel development workflows
- Task management and monitoring
Dynamic Workflows (v2.1.154)
- Deterministic orchestration of tens-to-hundreds of background subagents
- Fan-out / pipeline / parallel stages for comprehensive coverage
- View runs with
/workflows; the Ultracode toggle in/effort(/effort ultracode [on|off]) turns it on for a session without changing the effort level (v2.1.284); theultracodesetting makes it persist - Default size guideline is medium (aim for fewer than 10 agents) as of v2.1.219 β change it with Dynamic workflow size in
/config
Permission Modes
- manual: Ask for approval on risky actions (renamed from
defaultin v2.1.200;defaultstill accepted) - acceptEdits: Auto-accept file edits, ask for others
- plan: Read-only analysis, no modifications
- auto: Everything, with background safety checks β a classifier reviews commands and protected-directory writes (configured via the
autoModesettings object) - dontAsk: Only pre-approved tools β auto-denies every call that would otherwise prompt. Claude runs only
permissions.allowmatches, read-only Bash commands, and calls approved by aPreToolUsehook - bypassPermissions: Accept all (requires
--dangerously-skip-permissions)
Headless Mode (claude -p)
- CI/CD integration
- Automated task execution
- Batch processing
Session Management
- Multiple work sessions
- Session switching and saving
- Session persistence
Interactive Features
- Keyboard shortcuts
- Command history
- Tab completion
- Multi-line input
Configuration
- Comprehensive settings management
- Environment-specific configs
- Per-project customization
Scheduled Tasks
- Recurring tasks with
/loopcommand - Cron tools: CronCreate, CronList, CronDelete
- Automated recurring workflows
Chrome Integration
- Browser automation via headless Chromium
- Web testing and scraping capabilities
- Page interaction and data extraction
Remote Control (expanded)
- Connection methods and protocols
- Security considerations and best practices
- Comparison table of remote access options
- Out of research preview β a machine running
claude remote-controlappears as a device card in the Claude app's Code tab
Cross-Session Messaging
SendMessagebetween sessions on the same machinenotify_when_idleβ one opt-in notice when the other session next goes idle (v2.1.236)ListAgentsreports the session's own name and lists live teammates (v2.1.239)
Keyboard Customization
- Custom keybindings configuration
- Chord support for multi-key shortcuts
- Context-aware keybinding activation
Desktop App (expanded)
- Connectors for IDE integration
- launch.json configuration
- Enterprise features and deployment
10. CLI Usage (1 file)
Command-line interface usage patterns and reference.
| File | Description | Content |
|---|---|---|
README.md |
CLI documentation | Flags, options, and usage patterns |
Key CLI Features:
- claude - Start interactive session
- claude -p "prompt" - Headless/non-interactive mode
- claude web - Launch web session
- claude --model - Select model (Opus 5.5, Sonnet 5.5, Opus 5, Sonnet 5, Sonnet 4.6, Opus 4.8, Haiku 5.5, Haiku 4.5)
- claude --permission-mode - Set permission mode
- claude --remote - Enable remote control via WebSocket
Documentation Files (13 files)
| File | Location | Description |
|---|---|---|
README.md |
/ |
Main examples overview |
INDEX.md |
/ |
This complete index |
QUICK_REFERENCE.md |
/ |
Quick reference card |
README.md |
/01-slash-commands/ |
Slash commands guide |
README.md |
/02-memory/ |
Memory guide |
README.md |
/03-skills/ |
Skills guide |
README.md |
/04-subagents/ |
Subagents guide |
README.md |
/05-mcp/ |
MCP guide |
README.md |
/06-hooks/ |
Hooks guide |
README.md |
/07-plugins/ |
Plugins guide |
README.md |
/08-checkpoints/ |
Checkpoints guide |
README.md |
/09-advanced-features/ |
Advanced features guide |
README.md |
/10-cli/ |
CLI guide |
Complete File Tree
claude-howto/
βββ README.md # Main overview
βββ INDEX.md # This file
βββ QUICK_REFERENCE.md # Quick reference card
βββ claude_concepts_guide.md # Original guide
β
βββ 01-slash-commands/ # Slash Commands
β βββ optimize.md
β βββ pr.md
β βββ generate-api-docs.md
β βββ commit.md
β βββ setup-ci-cd.md
β βββ push-all.md
β βββ unit-test-expand.md
β βββ doc-refactor.md
β βββ pr-slash-command.png
β βββ README.md
β
βββ 02-memory/ # Memory
β βββ project-CLAUDE.md
β βββ directory-api-CLAUDE.md
β βββ personal-CLAUDE.md
β βββ memory-saved.png
β βββ memory-ask-claude.png
β βββ README.md
β
βββ 03-skills/ # Skills
β βββ code-review-specialist/
β β βββ SKILL.md
β β βββ scripts/
β β β βββ analyze-metrics.py
β β β βββ compare-complexity.py
β β βββ templates/
β β βββ review-checklist.md
β β βββ finding-template.md
β βββ brand-voice/
β β βββ SKILL.md
β β βββ templates/
β β β βββ email-template.txt
β β β βββ social-post-template.txt
β β βββ tone-examples.md
β βββ doc-generator/
β β βββ SKILL.md
β β βββ generate-docs.py
β βββ refactor/
β β βββ SKILL.md
β β βββ scripts/
β β β βββ analyze-complexity.py
β β β βββ detect-smells.py
β β βββ references/
β β β βββ code-smells.md
β β β βββ refactoring-catalog.md
β β βββ templates/
β β βββ refactoring-plan.md
β βββ claude-md/
β β βββ SKILL.md
β βββ blog-draft/
β β βββ SKILL.md
β β βββ templates/
β β βββ draft-template.md
β β βββ outline-template.md
β βββ README.md
β
βββ 04-subagents/ # Subagents
β βββ code-reviewer.md
β βββ test-engineer.md
β βββ documentation-writer.md
β βββ secure-reviewer.md
β βββ implementation-agent.md
β βββ debugger.md
β βββ data-scientist.md
β βββ clean-code-reviewer.md
β βββ README.md
β
βββ 05-mcp/ # MCP Protocol
β βββ github-mcp.json
β βββ database-mcp.json
β βββ filesystem-mcp.json
β βββ multi-mcp.json
β βββ README.md
β
βββ 06-hooks/ # Hooks
β βββ format-code.sh
β βββ pre-commit.sh
β βββ security-scan.sh
β βββ log-bash.sh
β βββ validate-prompt.sh
β βββ notify-team.sh
β βββ context-tracker.py
β βββ context-tracker-tiktoken.py
β βββ README.md
β
βββ 07-plugins/ # Plugins
β βββ pr-review/
β β βββ .claude-plugin/
β β β βββ plugin.json
β β βββ commands/
β β β βββ review-pr.md
β β β βββ check-security.md
β β β βββ check-tests.md
β β βββ agents/
β β β βββ security-reviewer.md
β β β βββ test-checker.md
β β β βββ performance-analyzer.md
β β βββ mcp/
β β β βββ github-config.json
β β βββ hooks/
β β β βββ pre-review.js
β β βββ README.md
β βββ devops-automation/
β β βββ .claude-plugin/
β β β βββ plugin.json
β β βββ commands/
β β β βββ deploy.md
β β β βββ rollback.md
β β β βββ status.md
β β β βββ incident.md
β β βββ agents/
β β β βββ deployment-specialist.md
β β β βββ incident-commander.md
β β β βββ alert-analyzer.md
β β βββ mcp/
β β β βββ kubernetes-config.json
β β βββ hooks/
β β β βββ pre-deploy.js
β β β βββ post-deploy.js
β β βββ scripts/
β β β βββ deploy.sh
β β β βββ rollback.sh
β β β βββ health-check.sh
β β βββ README.md
β βββ documentation/
β β βββ .claude-plugin/
β β β βββ plugin.json
β β βββ commands/
β β β βββ generate-api-docs.md
β β β βββ generate-readme.md
β β β βββ sync-docs.md
β β β βββ validate-docs.md
β β βββ agents/
β β β βββ api-documenter.md
β β β βββ code-commentator.md
β β β βββ example-generator.md
β β βββ mcp/
β β β βββ github-docs-config.json
β β βββ templates/
β β β βββ api-endpoint.md
β β β βββ function-docs.md
β β β βββ adr-template.md
β β βββ README.md
β βββ README.md
β
βββ 08-checkpoints/ # Checkpoints
β βββ checkpoint-examples.md
β βββ README.md
β
βββ 09-advanced-features/ # Advanced Features
β βββ config-examples.json
β βββ planning-mode-examples.md
β βββ README.md
β
βββ 10-cli/ # CLI Usage
βββ README.md
Quick Start by Use Case
Code Quality & Reviews
# Install slash command
cp 01-slash-commands/optimize.md .claude/commands/
# Install subagent
cp 04-subagents/code-reviewer.md .claude/agents/
# Install skill
cp -r 03-skills/code-review-specialist ~/.claude/skills/
# Or install complete plugin
/plugin install pr-review
DevOps & Deployment
# Install plugin (includes everything)
/plugin install devops-automation
Documentation
# Install slash command
cp 01-slash-commands/generate-api-docs.md .claude/commands/
# Install subagent
cp 04-subagents/documentation-writer.md .claude/agents/
# Install skill
cp -r 03-skills/doc-generator ~/.claude/skills/
# Or install complete plugin
/plugin install documentation
Team Standards
# Set up project memory
cp 02-memory/project-CLAUDE.md ./CLAUDE.md
# Edit to match your team's standards
External Integrations
# Set environment variables
export GITHUB_TOKEN="your_token"
export DATABASE_URL="postgresql://..."
# Install MCP config (project scope)
cp 05-mcp/multi-mcp.json .mcp.json
Automation & Validation
# Install hooks
mkdir -p ~/.claude/hooks
cp 06-hooks/*.sh ~/.claude/hooks/
chmod +x ~/.claude/hooks/*.sh
# Configure hooks in settings (~/.claude/settings.json)
# See 06-hooks/README.md
Safe Experimentation
# Checkpoints are created automatically with every user prompt
# To rewind: press Esc+Esc or use /rewind
# Then choose what to restore from the rewind menu
# See 08-checkpoints/README.md for examples
Advanced Workflows
# Configure advanced features
# See 09-advanced-features/config-examples.json
# Use planning mode
/plan Implement feature X
# Use permission modes
claude --permission-mode plan # For code review (read-only)
claude --permission-mode acceptEdits # Auto-accept edits
claude --permission-mode auto # Auto-approve safe actions
# Run in headless mode for CI/CD
claude -p "Run tests and report results"
# Run background tasks
Run tests in background
# See 09-advanced-features/README.md for complete guide
Feature Coverage Matrix
| Category | Commands | Agents | MCP | Hooks | Scripts | Templates | Docs | Images | Total |
|---|---|---|---|---|---|---|---|---|---|
| 01 Slash Commands | 8 | - | - | - | - | - | 1 | 1 | 10 |
| 02 Memory | - | - | - | - | - | 3 | 1 | 2 | 6 |
| 03 Skills | - | - | - | - | 5 | 7 | 11 | - | 23 |
| 04 Subagents | - | 9 | - | - | - | - | 1 | - | 10 |
| 05 MCP | - | - | 4 | - | - | - | 1 | - | 5 |
| 06 Hooks | - | - | - | 11 | - | - | 1 | - | 12 |
| 07 Plugins | 11 | 9 | 3 | 3 | 3 | 3 | 7 | - | 39 |
| 08 Checkpoints | - | - | - | - | - | - | 1 | 1 | 2 |
| 09 Advanced | - | - | - | - | 1 | 1 | 2 | - | 4 |
| 10 CLI | - | - | - | - | - | - | 1 | - | 1 |
Learning Path
Beginner (Week 1)
- β
Read
README.md - β Install 1-2 slash commands
- β Create project memory file
- β Try basic commands
Intermediate (Week 2-3)
- β Set up GitHub MCP
- β Install a subagent
- β Try delegating tasks
- β Install a skill
Advanced (Week 4+)
- β Install complete plugin
- β Create custom slash commands
- β Create custom subagent
- β Create custom skill
- β Build your own plugin
Expert (Week 5+)
- β Set up hooks for automation
- β Use checkpoints for experimentation
- β Configure planning mode
- β Use permission modes effectively
- β Set up headless mode for CI/CD
- β Master session management
Search by Keyword
Performance
01-slash-commands/optimize.md- Performance analysis04-subagents/code-reviewer.md- Performance review03-skills/code-review-specialist/- Performance metrics07-plugins/pr-review/agents/performance-analyzer.md- Performance specialist
Security
04-subagents/secure-reviewer.md- Security review03-skills/code-review-specialist/- Security analysis07-plugins/pr-review/- Security checks
Testing
04-subagents/test-engineer.md- Test engineer07-plugins/pr-review/commands/check-tests.md- Test coverage
Documentation
01-slash-commands/generate-api-docs.md- API docs command04-subagents/documentation-writer.md- Doc writer agent03-skills/doc-generator/- Doc generator skill07-plugins/documentation/- Complete doc plugin
Deployment
07-plugins/devops-automation/- Complete DevOps solution
Automation
06-hooks/- Event-driven automation06-hooks/pre-commit.sh- Pre-commit automation06-hooks/format-code.sh- Auto-formatting09-advanced-features/- Headless mode for CI/CD
Validation
06-hooks/security-scan.sh- Security validation06-hooks/validate-prompt.sh- Prompt validation
Experimentation
08-checkpoints/- Safe experimentation with rewind08-checkpoints/checkpoint-examples.md- Real-world examples
Planning
09-advanced-features/planning-mode-examples.md- Planning mode examples09-advanced-features/README.md- Extended thinking
Configuration
09-advanced-features/config-examples.json- Configuration examples
Notes
- All examples are ready to use
- Modify to fit your specific needs
- Examples follow Claude Code best practices
- Each category has its own README with detailed instructions
- Scripts include proper error handling
- Templates are customizable
Contributing
Want to add more examples? Follow the structure: 1. Create appropriate subdirectory 2. Include README.md with usage 3. Follow naming conventions 4. Test thoroughly 5. Update this index
Last Updated: October 10, 2026 Claude Code Version: 2.1.296 Sources: - https://code.claude.com/docs/en/tools-reference#task-tool-availability - https://code.claude.com/docs/en/workflows#set-a-size-guideline - https://code.claude.com/docs/en/memory#agents-md - https://code.claude.com/docs/en/overview - https://code.claude.com/docs/en/hooks - https://code.claude.com/docs/en/commands - https://code.claude.com/docs/en/permission-modes - https://github.com/anthropics/claude-code/releases/tag/v2.1.153 - https://github.com/anthropics/claude-code/releases/tag/v2.1.154 - https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md - https://code.claude.com/docs/en/model-config - https://code.claude.com/docs/en/workflows#let-claude-decide-with-ultracode Compatible Models: Claude Fable 5, Claude Opus 5, Claude Sonnet 5, Claude Sonnet 4.6, Claude Opus 4.8, Claude Haiku 4.5 Total Examples: 100+ files Categories: 10 features Hooks: 11 automation scripts Configuration Examples: 10+ scenarios Ready to Use: All examples