docs: sync all tutorials with latest Claude Code docs (April 2026) (#56)
* docs: sync all tutorials with latest Claude Code official docs (April 2026) Update 44 documentation files to reflect the latest Claude Code features from code.claude.com. Key content changes include new slash commands (/ultraplan, /powerup, /sandbox), deprecated command removals (/pr-comments, /vim), corrected skill description budget (1%/8K), new hook events (PermissionDenied, InstructionsLoaded, ConfigChange), expanded Agent Teams section, new plugin components (LSP, bin/, settings.json), and new CLI flags (--bare, --tmux, --effort, --channels). Added "Last Updated: April 2026" metadata footer to all documentation files. * fix(docs): correct env var values and alphabetical ordering - CLAUDE_CODE_NEW_INIT=true → =1 in 02-memory and 09-advanced-features - CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=true → =1 in 09-advanced-features - Fix /powerup vs /plugin alphabetical order in slash commands table * fix(docs): correct env var values in locale files (vi, zh) Propagate CLAUDE_CODE_NEW_INIT=true → =1 and CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=true → =1 corrections to Vietnamese and Chinese translations.
This commit is contained in:
@@ -69,6 +69,14 @@ Hooks are configured in settings files with a specific structure:
|
||||
| Wildcard | Matches all tools | `"*"` or `""` |
|
||||
| MCP tools | Server and tool pattern | `"mcp__memory__.*"` |
|
||||
|
||||
**InstructionsLoaded matcher values:**
|
||||
|
||||
| Matcher Value | Description |
|
||||
|---------------|-------------|
|
||||
| `session_start` | Instructions loaded at session startup |
|
||||
| `nested_traversal` | Instructions loaded during nested directory traversal |
|
||||
| `path_glob_match` | Instructions loaded via path glob pattern matching |
|
||||
|
||||
## Hook Types
|
||||
|
||||
Claude Code supports four hook types:
|
||||
@@ -143,7 +151,7 @@ Subagent-based verification hooks that spawn a dedicated agent to evaluate condi
|
||||
|
||||
## Hook Events
|
||||
|
||||
Claude Code supports **25 hook events**:
|
||||
Claude Code supports **26 hook events**:
|
||||
|
||||
| Event | When Triggered | Matcher Input | Can Block | Common Use |
|
||||
|-------|---------------|---------------|-----------|------------|
|
||||
@@ -152,6 +160,7 @@ Claude Code supports **25 hook events**:
|
||||
| **UserPromptSubmit** | User submits prompt | (none) | Yes | Validate prompts |
|
||||
| **PreToolUse** | Before tool execution | Tool name | Yes (allow/deny/ask) | Validate, modify inputs |
|
||||
| **PermissionRequest** | Permission dialog shown | Tool name | Yes | Auto-approve/deny |
|
||||
| **PermissionDenied** | User denies a permission prompt | Tool name | No | Logging, analytics, policy enforcement |
|
||||
| **PostToolUse** | After tool succeeds | Tool name | No | Add context, feedback |
|
||||
| **PostToolUseFailure** | Tool execution fails | Tool name | No | Error handling, logging |
|
||||
| **Notification** | Notification sent | Notification type | No | Custom notifications |
|
||||
@@ -1154,3 +1163,8 @@ Edit `~/.claude/settings.json` or `.claude/settings.json` with the hook configur
|
||||
- **[Official Hooks Documentation](https://code.claude.com/docs/en/hooks)** - Complete hooks reference
|
||||
- **[CLI Reference](https://code.claude.com/docs/en/cli-reference)** - Command-line interface documentation
|
||||
- **[Memory Guide](../02-memory/)** - Persistent context configuration
|
||||
|
||||
---
|
||||
**Last Updated**: April 2026
|
||||
**Claude Code Version**: 2.1+
|
||||
**Compatible Models**: Claude Sonnet 4.6, Claude Opus 4.6, Claude Haiku 4.5
|
||||
|
||||
Reference in New Issue
Block a user