docs: Add missing commands, features, and settings across 6 guides
Phase 2 of docs sync: fill gaps in existing content for Jan-Mar 2026 features.
- Add 15 missing slash commands to built-in commands table
- Add bundled skills section (/simplify, /batch, /debug, /loop, /claude-api)
- Add ${CLAUDE_SKILL_DIR} string substitution for skills
- Add MCP OAuth metadata override, scope terminology update, CLAUDEAI toggle
- Add InstructionsLoaded/Setup hook events, HTTP hooks version note, new fields
- Add effort level visual indicators and autoMemoryDirectory/claudeMdExcludes settings
- Update /context command description with optimization suggestions
- Add update-plan.md tracking document
This commit is contained in:
@@ -269,6 +269,26 @@ graph TD
|
||||
style I fill:#e1f5fe,stroke:#333,color:#333
|
||||
```
|
||||
|
||||
## Excluding CLAUDE.md Files with `claudeMdExcludes`
|
||||
|
||||
In large monorepos, some CLAUDE.md files may be irrelevant to your current work. The `claudeMdExcludes` setting lets you skip specific CLAUDE.md files so they are not loaded into context:
|
||||
|
||||
```jsonc
|
||||
// In ~/.claude/settings.json or .claude/settings.json
|
||||
{
|
||||
"claudeMdExcludes": [
|
||||
"packages/legacy-app/CLAUDE.md",
|
||||
"vendors/**/CLAUDE.md"
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
Patterns are matched against paths relative to the project root. This is particularly useful for:
|
||||
|
||||
- Monorepos with many sub-projects, where only some are relevant
|
||||
- Repositories that contain vendored or third-party CLAUDE.md files
|
||||
- Reducing noise in Claude's context window by excluding stale or unrelated instructions
|
||||
|
||||
## Modular Rules System
|
||||
|
||||
Create organized, path-specific rules using the `.claude/rules/` directory structure. Rules can be defined at both the project level and user level:
|
||||
@@ -407,6 +427,31 @@ graph TD
|
||||
└── testing-patterns.md # Topic file (loaded on demand)
|
||||
```
|
||||
|
||||
### Version Requirement
|
||||
|
||||
Auto memory requires **Claude Code v2.1.59 or later**. If you are on an older version, upgrade first:
|
||||
|
||||
```bash
|
||||
npm install -g @anthropic-ai/claude-code@latest
|
||||
```
|
||||
|
||||
### Custom Auto Memory Directory
|
||||
|
||||
By default, auto memory is stored in `~/.claude/projects/<project>/memory/`. You can change this location using the `autoMemoryDirectory` setting (available since **v2.1.74**):
|
||||
|
||||
```jsonc
|
||||
// In ~/.claude/settings.json or .claude/settings.json
|
||||
{
|
||||
"autoMemoryDirectory": "/path/to/custom/memory/directory"
|
||||
}
|
||||
```
|
||||
|
||||
This is useful when you want to:
|
||||
|
||||
- Store auto memory in a shared or synced location
|
||||
- Separate auto memory from the default Claude configuration directory
|
||||
- Use a project-specific path outside the default hierarchy
|
||||
|
||||
### Controlling Auto Memory
|
||||
|
||||
Auto memory can be controlled via the `CLAUDE_CODE_DISABLE_AUTO_MEMORY` environment variable:
|
||||
|
||||
Reference in New Issue
Block a user