You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: agents/code-reviewer.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
name: code-reviewer
3
-
description: Senior engineer code reviewer for quality, maintainability and readability
3
+
description: Senior engineer code reviewer for quality, maintainability and readability. Use proactively after code changes, when asked to "review code", "review changes", or "check the implementation". Do NOT use for reviewing PRs from GitHub (use review-pr skill instead).
Copy file name to clipboardExpand all lines: agents/code-simplifier.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
name: code-simplifier
3
-
description: Code refinement specialist for clarity, consistency and maintainability
3
+
description: Code refinement specialist for clarity, consistency and maintainability. Use proactively after implementation phases, when asked to "simplify", "clean up", "polish", or "refactor" code. Do NOT change behavior or add features — only improve how code reads and is organized.
Copy file name to clipboardExpand all lines: agents/symfony-simplifier.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
name: symfony-simplifier
3
-
description: Code refinement specialist for Symfony applications
3
+
description: Code refinement specialist for Symfony/PHP applications. Use proactively after Symfony implementation phases, when asked to "simplify", "clean up", "polish", or "refactor" PHP/Symfony code. Preferred over code-simplifier for PHP/Symfony projects. Do NOT change behavior or add features.
Copy file name to clipboardExpand all lines: docs/claude-cookbook-best-practices.md
+62-7Lines changed: 62 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,9 @@
1
1
# Claude Code Best Practices
2
2
3
3
> Document de reference pour Claude Code CLI
4
-
> Last updated: 2026-03-10 (sync #5)
4
+
> Last updated: 2026-03-17 (sync #7)
5
5
> Use `/sync-cookbook` to refresh this document
6
-
> Latest version: v2.1.72
6
+
> Latest version: v2.1.77
7
7
8
8
---
9
9
@@ -69,6 +69,8 @@ Context and instructions for Claude at multiple levels:
69
69
- Check CLAUDE.md into git so the team can contribute
70
70
- Treat like code: review when things go wrong, test changes by observing behavior
71
71
72
+
**HTML comments hidden (v2.1.72):**`<!-- ... -->` in CLAUDE.md are hidden from Claude when auto-injected (not counted in context). Comments remain visible when the file is read with the Read tool.
73
+
72
74
**Include / Exclude:**
73
75
74
76
| Include | Exclude |
@@ -147,6 +149,10 @@ Context and instructions for Claude at multiple levels:
147
149
|`awsAuthRefresh`| string | Custom script for AWS SSO login |
148
150
|`awsCredentialExport`| string | Custom script that outputs JSON with AWS credentials |
149
151
|`otelHeadersHelper`| string | Script for dynamic OpenTelemetry headers |
152
+
|`modelOverrides`| object | Map model picker entries to custom provider IDs (Bedrock ARNs, etc.) |
|`CLAUDE_CODE_MAX_OUTPUT_TOKENS`| Max output tokens (default: 32000, max: 64000) |
244
+
|`CLAUDE_CODE_MAX_OUTPUT_TOKENS`| Max output tokens (default: 64000 for Opus 4.6, 32000 for Sonnet, upper bound: 128000 for Opus/Sonnet 4.6) (v2.1.77) |
223
245
|`CLAUDE_CODE_AUTOCOMPACT_PCT_OVERRIDE`| Context % for auto-compaction (1-100) |
**WorktreeCreate** - retourner le chemin absolu pour VCS personnalise (remplace la creation git standard):
414
+
415
+
```bash
416
+
# stdout = chemin absolu du worktree cree
417
+
echo"/path/to/custom/worktree"
418
+
```
419
+
376
420
**PermissionRequest** - via `hookSpecificOutput.decision`:
377
421
378
422
```json
@@ -704,9 +748,19 @@ Commands livrees avec Claude Code:
704
748
|`/batch`| Batch operations on multiple files |
705
749
|`/claude-api`| Build apps with Claude API or Anthropic SDK |
706
750
|`/security-review`| Security review of current changes |
707
-
|`/copy`| Interactive picker: select a code block or the full response to copy (v2.1.59) |
751
+
|`/copy`| Copy responses: `/copy` for picker, `/copy N` for Nth-latest response (v2.1.77) |
752
+
|`/effort`| Set model effort level (`low`, `medium`, `high`) for thinking budget (v2.1.76) |
708
753
|`/loop`| Run a prompt or slash command on a recurring interval (e.g., `/loop 5m check deploy`) (v2.1.71) |
709
754
755
+
### /plan with Optional Description (v2.1.72)
756
+
757
+
```bash
758
+
/plan # Enter plan mode
759
+
/plan fix the auth bug # Enter plan mode with immediate description
760
+
```
761
+
762
+
The optional argument sets an initial description so Claude starts planning immediately without waiting for context.
763
+
710
764
### Cron Scheduling Tools (New in v2.1.71)
711
765
712
766
Schedule prompts or commands to run on recurring intervals **within a session**. Useful for monitoring tasks, periodic checks, or recurring reminders.
@@ -932,7 +986,7 @@ When enabled: memory directory instructions added to system prompt, first 200 li
932
986
933
987
- **Foreground** (default): Blocks main conversation. Permission prompts passed through.
934
988
- **Background**: Runs concurrently. Permissions pre-approved upfront. Auto-denies unapproved actions. `Ctrl+B` to background a running task.
935
-
- **Resume**: Each subagent gets an `agent_id`. Ask Claude to continue previous work to resume with full context preserved.
989
+
- **Resume**: Each subagent gets an `agent_id`. Use `SendMessage({to: agentId})` to continue a previously spawned agent (Agent tool no longer accepts a `resume` parameter since v2.1.77). `SendMessage` auto-resumes stopped agents in the background instead of returning an error.
936
990
937
991
### Subagent Transcripts & Resume
938
992
@@ -985,6 +1039,7 @@ Coordination automatisee de multiples sessions avec taches partagees, messaging,
985
1039
| `--disallowedTools` | Block specific tools |
986
1040
| `--agent <name>` | Start with a custom agent |
987
1041
| `--agents <json>` | Define session-only subagents as JSON |
1042
+
| `-n`, `--name <name>` | Set display name for session at startup (v2.1.76) |
988
1043
| `--worktree` | Run in isolated git worktree |
989
1044
990
1045
### Slash Commands
@@ -1015,7 +1070,7 @@ Coordination automatisee de multiples sessions avec taches partagees, messaging,
1015
1070
| `/batch` | Batch operations |
1016
1071
| `/loop` | Run prompt/command on recurring interval (e.g., `/loop 5m check deploy`) |
1017
1072
| `/debug` | Toggle debug logging mid-session |
1018
-
| `/fork` | Fork conversation into separate session |
1073
+
| `/branch` | Fork conversation into separate session (`/fork` still works as alias) (v2.1.77) |
1019
1074
| `/color` | Change session color (`/color default` to reset) |
| `/security-review` | Security review of current changes |
@@ -1194,7 +1249,7 @@ cd ../feature-branch
1194
1249
claude # Session separee, contexte preserve
1195
1250
```
1196
1251
1197
-
Ou utiliser `claude --worktree` pour isolation automatique.
1252
+
Ou utiliser `claude --worktree` pour isolation automatique. L'outil `ExitWorktree` (v2.1.72) permet de quitter une session `EnterWorktree` depuis le REPL.
0 commit comments