Add comprehensive Claude Code advanced features
Added three new major feature categories with complete documentation and examples: ## New Features ### 07-hooks/ - Event-driven automation with 6 example hook scripts - Pre/post tool hooks, session hooks, and git hooks - Auto-formatting, security scanning, test automation - Complete documentation with best practices ### 08-checkpoints/ - Conversation state snapshots and rewind capability - Safe experimentation and approach comparison - Real-world examples: DB migration, performance optimization, UI iteration - Checkpoint management commands and workflows ### 09-advanced-features/ - Planning Mode: detailed implementation plans before coding - Extended Thinking: deep reasoning for complex problems - Background Tasks: long-running operations without blocking - Permission Modes: unrestricted, confirm, read-only, custom - Headless Mode: CI/CD integration and automation - Session Management: multiple work sessions - Interactive Features: keyboard shortcuts, command history - 10+ configuration examples for different scenarios ## Documentation Updates - README.md: Added sections for all new features with examples - INDEX.md: Updated with new categories, file listings, and search keywords - QUICK_REFERENCE.md: Added quick reference for new features - claude_concepts_guide.md: Comprehensive guide sections for new concepts ## Statistics - Total files: 90+ (up from 71) - Categories: 9 (up from 6) - New hook scripts: 6 - New documentation files: 10+ - Configuration examples: 10+ scenarios All examples are production-ready and follow Claude Code best practices. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -56,6 +56,50 @@ cp -r 05-skills/code-review .claude/skills/
|
||||
/plugin install documentation
|
||||
```
|
||||
|
||||
### Hooks
|
||||
```bash
|
||||
# Install hooks
|
||||
mkdir -p ~/.claude/hooks
|
||||
cp 07-hooks/*.sh ~/.claude/hooks/
|
||||
chmod +x ~/.claude/hooks/*.sh
|
||||
|
||||
# Configure in settings (.claude/settings.json)
|
||||
```
|
||||
|
||||
### Checkpoints
|
||||
```bash
|
||||
# Checkpoints are auto-enabled
|
||||
# Use commands:
|
||||
/checkpoint save "description"
|
||||
/checkpoint list
|
||||
/checkpoint rewind "checkpoint-name"
|
||||
/checkpoint diff checkpoint-1 checkpoint-2
|
||||
```
|
||||
|
||||
### Advanced Features
|
||||
```bash
|
||||
# Configure in settings (.claude/settings.json)
|
||||
# See 09-advanced-features/config-examples.json
|
||||
|
||||
# Planning mode
|
||||
/plan Task description
|
||||
|
||||
# Permission modes
|
||||
/permission readonly
|
||||
/permission confirm
|
||||
/permission unrestricted
|
||||
|
||||
# Session management
|
||||
/session list
|
||||
/session new "name"
|
||||
/session switch "name"
|
||||
|
||||
# Background tasks
|
||||
Run command in background
|
||||
/task list
|
||||
/task status task-id
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 📋 Feature Cheat Sheet
|
||||
@@ -68,6 +112,12 @@ cp -r 05-skills/code-review .claude/skills/
|
||||
| **MCP** | `.claude/mcp.json` | `/mcp__server__action` |
|
||||
| **Skills** | `.claude/skills/*/SKILL.md` | Auto-invoked |
|
||||
| **Plugins** | Via `/plugin install` | Bundles all |
|
||||
| **Hooks** | `~/.claude/hooks/*.sh` | Event-triggered |
|
||||
| **Checkpoints** | Built-in | `/checkpoint <command>` |
|
||||
| **Planning Mode** | Built-in | `/plan <task>` |
|
||||
| **Permission Modes** | Built-in | `/permission <mode>` |
|
||||
| **Sessions** | Built-in | `/session <command>` |
|
||||
| **Background Tasks** | Built-in | Run in background |
|
||||
|
||||
---
|
||||
|
||||
@@ -124,6 +174,61 @@ cp 03-memory/project-CLAUDE.md ./CLAUDE.md
|
||||
vim CLAUDE.md
|
||||
```
|
||||
|
||||
### Automation & Hooks
|
||||
```bash
|
||||
# Install hooks
|
||||
mkdir -p ~/.claude/hooks
|
||||
cp 07-hooks/*.sh ~/.claude/hooks/
|
||||
chmod +x ~/.claude/hooks/*.sh
|
||||
|
||||
# Examples:
|
||||
# - Pre-commit tests: pre-commit.sh
|
||||
# - Auto-format code: format-code.sh
|
||||
# - Security scanning: security-scan.sh
|
||||
```
|
||||
|
||||
### Safe Refactoring
|
||||
```bash
|
||||
# Use checkpoints for safe experimentation
|
||||
/checkpoint save "Before refactoring"
|
||||
|
||||
# Try refactoring
|
||||
# If it works: continue
|
||||
# If it fails:
|
||||
/checkpoint rewind "Before refactoring"
|
||||
```
|
||||
|
||||
### Complex Implementation
|
||||
```bash
|
||||
# Use planning mode
|
||||
/plan Implement user authentication system
|
||||
|
||||
# Claude creates detailed plan
|
||||
# Review and approve
|
||||
# Claude implements systematically
|
||||
```
|
||||
|
||||
### CI/CD Integration
|
||||
```bash
|
||||
# Run in headless mode
|
||||
claude-code --headless --task "Run all tests and generate report"
|
||||
|
||||
# With hooks for automation
|
||||
# See 09-advanced-features/README.md
|
||||
```
|
||||
|
||||
### Learning & Experimentation
|
||||
```bash
|
||||
# Use permission mode
|
||||
/permission confirm
|
||||
|
||||
# Use checkpoints
|
||||
/checkpoint save "Before experiment"
|
||||
|
||||
# Experiment safely
|
||||
# Rewind if needed
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 📁 File Locations Reference
|
||||
@@ -134,7 +239,8 @@ Your Project/
|
||||
│ ├── commands/ # Slash commands go here
|
||||
│ ├── agents/ # Subagents go here
|
||||
│ ├── skills/ # Project skills go here
|
||||
│ └── mcp.json # MCP configuration
|
||||
│ ├── mcp.json # MCP configuration
|
||||
│ └── settings.json # Project settings (hooks, checkpoints, etc.)
|
||||
├── CLAUDE.md # Project memory
|
||||
└── src/
|
||||
└── api/
|
||||
@@ -143,8 +249,11 @@ Your Project/
|
||||
User Home/
|
||||
└── .claude/
|
||||
├── commands/ # Personal commands
|
||||
├── agents/ # Personal agents
|
||||
├── skills/ # Personal skills
|
||||
├── hooks/ # Hook scripts
|
||||
├── mcp.json # Personal MCP config
|
||||
├── settings.json # User settings
|
||||
└── CLAUDE.md # Personal memory
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user