Skip to content

Commit a75cb21

Browse files
chore: sync docs and apply audit improvements (#17)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 5b2b735 commit a75cb21

9 files changed

Lines changed: 73 additions & 14 deletions

File tree

agents/code-reviewer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
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).
44
tools: Read, Grep, Glob, Bash
55
skills:
66
- architect

agents/code-simplifier.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
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.
44
disallowedTools: Agent
55
maxTurns: 50
66
---

agents/symfony-simplifier.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
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.
44
disallowedTools: Agent
55
maxTurns: 50
66
---

commands/resolve.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
description: Main orchestrator for ticket resolution workflow - fetch, analyze, plan, implement, simplify, review, PR
33
argument-hint: [ticket-id] [--auto] [--continue] [--refine-plan] [--plan-only] [--init] [--source youtrack|github] [--skip-simplify] [--skip-review] [--pr] [--draft]
4-
allowed-tools: Read, Glob, Grep, Bash, Write, Edit, Task, AskUserQuestion, mcp__youtrack__get_issue, mcp__youtrack__get_issue_comments, mcp__youtrack__get_issue_attachments, mcp__figma-screenshot__figma_screenshot
4+
allowed-tools: Read, Glob, Grep, Bash, Write, Edit, Agent, AskUserQuestion, mcp__youtrack__get_issue, mcp__youtrack__get_issue_comments, mcp__youtrack__get_issue_attachments, mcp__figma-screenshot__figma_screenshot
55
---
66

77
# /resolve - Ticket Resolution Workflow

commands/review-code.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
description: Perform code review on current branch changes via isolated fresh agent
33
argument-hint: [--ticket <id>] [--base <branch>] [--fix] [--severity <level>]
4-
allowed-tools: Read, Glob, Grep, Bash, Edit, Write, AskUserQuestion, Task
4+
allowed-tools: Read, Glob, Grep, Bash, Edit, Write, AskUserQuestion, Agent
55
---
66

77
# CODE REVIEW COMMAND

docs/changelog-last-version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2.1.72
1+
v2.1.77

docs/claude-cookbook-best-practices.md

Lines changed: 62 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Claude Code Best Practices
22

33
> Document de reference pour Claude Code CLI
4-
> Last updated: 2026-03-10 (sync #5)
4+
> Last updated: 2026-03-17 (sync #7)
55
> Use `/sync-cookbook` to refresh this document
6-
> Latest version: v2.1.72
6+
> Latest version: v2.1.77
77
88
---
99

@@ -69,6 +69,8 @@ Context and instructions for Claude at multiple levels:
6969
- Check CLAUDE.md into git so the team can contribute
7070
- Treat like code: review when things go wrong, test changes by observing behavior
7171

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+
7274
**Include / Exclude:**
7375

7476
| Include | Exclude |
@@ -147,6 +149,10 @@ Context and instructions for Claude at multiple levels:
147149
| `awsAuthRefresh` | string | Custom script for AWS SSO login |
148150
| `awsCredentialExport` | string | Custom script that outputs JSON with AWS credentials |
149151
| `otelHeadersHelper` | string | Script for dynamic OpenTelemetry headers |
152+
| `modelOverrides` | object | Map model picker entries to custom provider IDs (Bedrock ARNs, etc.) |
153+
| `autoMemoryDirectory` | string | Custom directory for auto-memory storage (default: `~/.claude/memory`) |
154+
| `effortLevel` | string | Persist effort level across sessions: `"low"`, `"medium"`, `"high"`. Set via `/effort`. Applies to Opus 4.6 and Sonnet 4.6 |
155+
| `feedbackSurveyRate` | number | **Managed**: Session quality survey sample rate (0-1, enterprise only) |
150156

151157
### MCP Server Settings
152158

@@ -190,6 +196,7 @@ Context and instructions for Claude at multiple levels:
190196
"allowUnsandboxedCommands": true,
191197
"filesystem": {
192198
"allowWrite": ["//tmp/build", "~/.kube"],
199+
"allowRead": ["~/.kube"],
193200
"denyWrite": ["//etc"],
194201
"denyRead": ["~/.aws/credentials"]
195202
},
@@ -210,6 +217,21 @@ Context and instructions for Claude at multiple levels:
210217

211218
**Path prefixes:** `//` = absolute, `~/` = home, `/` = relative to settings file, `./` = relative
212219

220+
### Worktree Configuration
221+
222+
```json
223+
{
224+
"worktree": {
225+
"sparsePaths": ["src/", "tests/", ".claude/"],
226+
"symlinkDirectories": ["node_modules", ".venv"]
227+
}
228+
}
229+
```
230+
231+
**`sparsePaths`:** In large monorepos, check out only necessary directories via git sparse-checkout when using `claude --worktree`.
232+
233+
**`symlinkDirectories`:** Directories to symlink from main repo into each worktree (reduces disk usage for large dependency directories).
234+
213235
### Environment Variables
214236

215237
| Variable | Purpose |
@@ -219,7 +241,7 @@ Context and instructions for Claude at multiple levels:
219241
| `ANTHROPIC_DEFAULT_HAIKU_MODEL` | Haiku model override |
220242
| `ANTHROPIC_DEFAULT_OPUS_MODEL` | Opus model override |
221243
| `CLAUDE_CODE_EFFORT_LEVEL` | `low`, `medium`, `high` (thinking budget) |
222-
| `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) |
223245
| `CLAUDE_CODE_AUTOCOMPACT_PCT_OVERRIDE` | Context % for auto-compaction (1-100) |
224246
| `CLAUDE_CODE_SIMPLE` | Minimal mode (Bash, file tools only) |
225247
| `CLAUDE_CODE_SHELL` | Override shell detection |
@@ -236,6 +258,7 @@ Context and instructions for Claude at multiple levels:
236258
| `CLAUDE_CODE_DISABLE_1M_CONTEXT` | Disable 1M context window |
237259
| `CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING` | Disable adaptive reasoning for Opus/Sonnet 4.6 |
238260
| `CLAUDE_CODE_DISABLE_CRON` | Disable scheduled tasks (cron tools unavailable) |
261+
| `CLAUDE_CODE_SESSIONEND_HOOKS_TIMEOUT_MS` | Timeout for `SessionEnd` hooks on exit (v2.1.74) |
239262
| `CLAUDE_CODE_FILE_READ_MAX_OUTPUT_TOKENS` | Override default token limit for file reads |
240263
| `CLAUDE_CODE_ENABLE_TASKS` | Set to `false` to revert to TODO list instead of task tracking |
241264
| `CLAUDE_CODE_ENABLE_PROMPT_SUGGESTION` | Set to `false` to disable prompt suggestions |
@@ -294,6 +317,9 @@ Installable extensions from marketplace bundling skills, hooks, subagents, and M
294317
| `WorktreeCreate` | Creation worktree | Custom git behavior | Pas de matcher |
295318
| `WorktreeRemove` | Suppression worktree | Cleanup | Pas de matcher |
296319
| `PreCompact` | Avant compaction | Pre-traitement | `manual`, `auto` |
320+
| `PostCompact` | Apres compaction | React to compacted state, log | `manual`, `auto` |
321+
| `Elicitation` | MCP elicitation dialog | Override MCP input | Nom serveur MCP |
322+
| `ElicitationResult` | Reponse a elicitation MCP | Valider/bloquer reponse | Nom serveur MCP |
297323
| `SessionEnd` | Fin session | Cleanup, rapport | `clear`, `logout`, `prompt_input_exit`, `bypass_permissions_disabled`, `other` |
298324

299325
### Hook Types
@@ -373,6 +399,24 @@ Note: En v2.1.63, `Task` a ete renomme en `Agent`. Les references `Task(...)` ex
373399
}
374400
```
375401

402+
**PostToolUse (MCP tools only)** - remplacer la sortie de l'outil:
403+
404+
```json
405+
{
406+
"hookSpecificOutput": {
407+
"hookEventName": "PostToolUse",
408+
"updatedMCPToolOutput": [{"type": "text", "text": "Remapped output"}]
409+
}
410+
}
411+
```
412+
413+
**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+
376420
**PermissionRequest** - via `hookSpecificOutput.decision`:
377421

378422
```json
@@ -704,9 +748,19 @@ Commands livrees avec Claude Code:
704748
| `/batch` | Batch operations on multiple files |
705749
| `/claude-api` | Build apps with Claude API or Anthropic SDK |
706750
| `/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) |
708753
| `/loop` | Run a prompt or slash command on a recurring interval (e.g., `/loop 5m check deploy`) (v2.1.71) |
709754

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+
710764
### Cron Scheduling Tools (New in v2.1.71)
711765

712766
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
932986

933987
- **Foreground** (default): Blocks main conversation. Permission prompts passed through.
934988
- **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.
936990

937991
### Subagent Transcripts & Resume
938992

@@ -985,6 +1039,7 @@ Coordination automatisee de multiples sessions avec taches partagees, messaging,
9851039
| `--disallowedTools` | Block specific tools |
9861040
| `--agent <name>` | Start with a custom agent |
9871041
| `--agents <json>` | Define session-only subagents as JSON |
1042+
| `-n`, `--name <name>` | Set display name for session at startup (v2.1.76) |
9881043
| `--worktree` | Run in isolated git worktree |
9891044
9901045
### Slash Commands
@@ -1015,7 +1070,7 @@ Coordination automatisee de multiples sessions avec taches partagees, messaging,
10151070
| `/batch` | Batch operations |
10161071
| `/loop` | Run prompt/command on recurring interval (e.g., `/loop 5m check deploy`) |
10171072
| `/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) |
10191074
| `/color` | Change session color (`/color default` to reset) |
10201075
| `/terminal-setup` | Install terminal shortcuts (Shift+Enter for iTerm2/VS Code) |
10211076
| `/security-review` | Security review of current changes |
@@ -1194,7 +1249,7 @@ cd ../feature-branch
11941249
claude # Session separee, contexte preserve
11951250
```
11961251

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.
11981253

11991254
### Parallel Sessions
12001255

settings.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@
4040
"WebFetch(domain:shipyard.build)",
4141
"WebFetch(domain:awesomeclaude.ai)"
4242
],
43+
"ask": [
44+
"Bash(git push *)",
45+
"Bash(cd * && git push *)"
46+
],
4347
"deny": [
4448
"Bash(rm -rf *)",
4549
"Bash(rm -rf /)",

skills/code-review/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Required context (gathered by YOU, passed inline to the agent):
4646
### Step 2: Delegate to Fresh Agent
4747

4848
```yaml
49-
Task:
49+
Agent:
5050
subagent_type: code-reviewer
5151
description: "Fresh code review {ticket-id}"
5252
prompt: |

0 commit comments

Comments
 (0)