Commit Graph
296 Commits
Author SHA1 Message Date
Luong NGUYEN 0b73efee9e Merge branch 'main' into fix/hook-template-security 2026-11-13 13:23:53 +01:00
Luong NGUYEN 64a30cd671 fix(plugins): make the example plugins load their commands, hooks and MCP servers (#265)
Make the three example plugins in `07-plugins/` load the way their READMEs describe: commands are namespaced, hooks are registered on documented events, and the GitHub MCP server is declared at the documented location with a pinned image tag. The devops plugin no longer ships an MCP server.

Closes #260
2026-11-13 13:23:42 +01:00
Luong NGUYEN bc03fd721d fix(skills): add Fable 5.2 to the ultrathink lists in the learner skills (#268)
Adds Fable 5.2 (v2.1.321) to the models on which `ultrathink` raises a turn to `xhigh` effort, in the lesson-quiz and self-assessment learner skills. This finishes the "Learner skills" part of #247, which was blocked because the workers couldn't write to `.claude/skills/**`. No `Correct` letter changes.

## Edits

**1. `.claude/skills/lesson-quiz/references/question-bank.md:718`** (Lesson 09 Q5, Explanation)
- old: ``Since v2.1.311, typed in the interactive terminal on Opus 5.5, Sonnet 5.5, Haiku 5.5, or Fable 5.1 through Anthropic's API, it also runs that turn at `xhigh` effort,``
- new: ``Since v2.1.311, typed in the interactive terminal on Opus 5.5, Sonnet 5.5, Haiku 5.5, Fable 5.2 (v2.1.321+), or Fable 5.1 through Anthropic's API, it also runs that turn at `xhigh` effort,``

**2. `.claude/skills/self-assessment/SKILL.md:351` and `.claude/skills/self-assessment/references/topic-recommendations.md:73`** (the two lines stay identical)
- old: ``and the `ultrathink` keyword, which runs that turn at `xhigh` effort on Opus 5.5, Sonnet 5.5, Haiku 5.5, and Fable 5.1 (v2.1.311+)``
- new: ``and the `ultrathink` keyword, which runs that turn at `xhigh` effort on Opus 5.5, Sonnet 5.5, Haiku 5.5, Fable 5.2, and Fable 5.1 (v2.1.311+; Fable 5.2 needs v2.1.321+)``
- round 1 (ae2768f): ``… Fable 5.2, and Fable 5.1 in the terminal (v2.1.311+) and VS Code (v2.1.316+) through Anthropic's API, not on Bedrock (Fable 5.2 needs v2.1.321+)``. See *Review round 1 fixes* below.

**3. Version bumps** (skill-creator standard, frontmatter otherwise unchanged)
- `lesson-quiz/SKILL.md`: `metadata.version` 1.6.4 → 1.6.5
- `self-assessment/SKILL.md`: `version` 2.5.7 → 2.5.8. This skill keeps `version:` at the top level, so it was bumped there rather than moved into `metadata`.
- Neither skill's README has a version table or changelog.

**4. Footer stamps** in `question-bank.md` and `topic-recommendations.md`: `Claude Code Version` 2.1.316 → 2.1.322, with `Last Updated` November 1 → November 12, 2026 (STYLE_GUIDE footer pair). For why the stamps move, see *Stamp check* below.

## Review round 1 fixes (ae2768f)

These address review nits N2 and N3 and follow-up F2. No `Correct` letter changes.

**A. `ultrathink` scope** in `self-assessment/SKILL.md:351` and `references/topic-recommendations.md:73`. The two lines are still byte-identical.
- old: ``… Fable 5.2, and Fable 5.1 (v2.1.311+; Fable 5.2 needs v2.1.321+)``
- new: ``… Fable 5.2, and Fable 5.1 in the terminal (v2.1.311+) and VS Code (v2.1.316+) through Anthropic's API, not on Bedrock (Fable 5.2 needs v2.1.321+)``
- model-config, "Use ultrathink for one-off deep reasoning": "Typed in the terminal prompt, the word can also raise that turn to `xhigh` effort. … Requires Claude Code v2.1.311 or later." It also says: "Where the word can't raise a turn, such as on Amazon Bedrock, set the effort level instead"
- CL 2.1.311: "Changed `ultrathink` in the interactive terminal to run its turn at xhigh effort on Opus 5.5, Sonnet 5.5, Haiku 5.5 and Fable 5.1 through Anthropic's API"
- CL 2.1.316: "[VSCode] Changed `ultrathink` to run its turn at `xhigh` effort and show in a rainbow in the chat box, as in the terminal"

**B. L03 Q6 `Review:` pointer** (`question-bank.md:223`)
- old: `Supporting files structure section`
- new: `Supporting Files section`. This is an exact match for `## Supporting Files` (`03-skills/README.md:589` on main). That section shows `references/api-spec.md` and says "Supporting files are loaded at Level 3 (as needed)".

**C. L09 Q7 explanation** (`question-bank.md:734`; `Correct: B` unchanged)
- appended: "It fills only in sessions that have the task-tracking tools, which, outside background and cloud sessions, Claude Code provides by default only on Opus 4.7, Sonnet 4.6, Haiku 4.5, and earlier models; on Opus 5.5, Sonnet 5.5, Haiku 5.5, and the Fable models it stays empty unless you opt in, for example with `CLAUDE_CODE_ENABLE_TODO_TOOLS=1` (v2.1.233+)."
- interactive-mode "Task list": "The list fills only in sessions that have the task-tracking tools, which Claude Code provides by default on Opus 4.7, Sonnet 4.6, Haiku 4.5, and earlier models. On any other model … the list stays empty unless you opt in with `CLAUDE_CODE_ENABLE_TODO_TOOLS=1` or one of the other ways under Task tool availability."
- env-vars `CLAUDE_CODE_ENABLE_TODO_TOOLS`: "Set to `1` to get the task-tracking tools on every model. … Requires Claude Code v2.1.233 or later"
- tools-reference "Task tool availability": "In background sessions and in cloud sessions, Claude Code provides the same tools on every model, listed or not."

**Not changed:** "Opus 5.5 (the default model since v2.1.280)" (nit N1). It will be fixed together with the Lesson 09 README in #269. The Lesson 09 Task List section gains the same availability rule in #270.

## Sources (re-fetched 2026-11-12)
- [model-config.md](https://code.claude.com/docs/en/model-config.md), "Use ultrathink for one-off deep reasoning": "Run `/model` in your session to switch to an Opus 5.5, Sonnet 5.5, Haiku 5.5, Fable 5.2, or Fable 5.1 model."
- model-config.md: "Fable 5.2 requires Claude Code v2.1.321 or later, and Fable 5.1 requires v2.1.257 or later."
- Changelog 2.1.321: "Added Claude Fable 5.2 (`claude-fable-5-2`), now the default Fable model"
- Changelog 2.1.311: "Changed `ultrathink` in the interactive terminal to run its turn at xhigh effort on Opus 5.5, Sonnet 5.5, Haiku 5.5 and Fable 5.1 through Anthropic's API; typed while Claude is working, it raises the rest of that turn"
- `09-advanced-features/README.md:261` on main already says "Opus 5.5, Sonnet 5.5, Haiku 5.5, Fable 5.2 (v2.1.321+), and Fable 5.1", so the quiz now matches the lesson.

## Claim check (Lesson 09 Q4–Q5, SKILL.md:351 / topic-recommendations.md:73)

| Claim | Line | Verdict | Source |
|---|---|---|---|
| Sonnet 5 is a model where thinking can be turned off (Q4 stem) | qb:707 | ✓ | model-config: "you can turn thinking off on models such as `claude-opus-5`, `claude-sonnet-5`, and `claude-haiku-4-5`" |
| `Option+T` (macOS) / `Alt+T` toggles extended thinking for the session (Q4 answer B) | qb:708, 710 | ✓ | model-config Extended thinking table: "Toggle for the current session \| Press `Option+T` on macOS or `Alt+T` on Windows and Linux" |
| `Ctrl+O` toggles verbose mode to show the reasoning | qb:710 | ✓ | model-config: "Press `Ctrl+O` to toggle verbose mode and see the reasoning as gray italic text" |
| Opus 5.5 is the default model since v2.1.280 | qb:710; SA:351/73 ("the default model") | ✓ | model-config `default` model setting: "Pro, Max, Ultra, Team, Enterprise, and Anthropic API: defaults to Opus 5.5"; "Before v2.1.280, `default` resolved to Sonnet 5 on Pro and Team Standard, and to Opus 5 on …". Microsoft Foundry still defaults to Sonnet 4.5. The lesson (`09-advanced-features/README.md:228`) states the claim the same way, so it was left as is. |
| `sonnet` → Sonnet 5.5 on the Anthropic API since v2.1.284 | qb:710 | ✓ | model-config version history: "v2.1.284 \| `sonnet` resolves to Sonnet 5.5 on the Anthropic API" |
| `haiku` → Haiku 5.5 on the Anthropic API since v2.1.293 | qb:710 | ✓ | model-config version history: "v2.1.293 \| `haiku` resolves to Haiku 5.5 on the Anthropic API" |
| Thinking can't be turned off on Opus 5.5, Sonnet 5.5, Haiku 5.5, Fable; the toggle, `alwaysThinkingEnabled` and `MAX_THINKING_TOKENS=0` have no effect | qb:710; SA:351/73 | ✓ | model-config: "You can't turn thinking off on Opus 5.5, Sonnet 5.5, Haiku 5.5, or the Fable models. … a saved `alwaysThinkingEnabled: false` or `MAX_THINKING_TOKENS=0` has no effect there"; interactive-mode `Alt+T` row: "Has no effect on Opus 5.5, Sonnet 5.5, Haiku 5.5, or the Fable models, which always use extended thinking" |
| `/effort` for session-level control | qb:710 | ✓ | model-config: "`/effort` followed by a level name to set it directly" |
| Q4 `Correct: B` | qb:709 | ✓ | the toggle row above. A (`/effort max`) sets effort, not thinking on/off. C is per-turn. D is false for Sonnet 5. |
| `ultrathink` adds an in-context instruction without changing the session effort | qb:718 | ✓ | model-config: "request deeper reasoning on that turn without changing your session effort setting. Claude Code recognizes the keyword and adds an in-context instruction." |
| Since v2.1.311 runs the turn at `xhigh` in the interactive terminal through Anthropic's API; typed while working, raises the rest of the turn | qb:718; SA:351/73 | ✓ | Changelog 2.1.311 (quoted above) |
| …on Fable 5.2 too (v2.1.321+) | qb:718; SA:351/73 | **fixed** | model-config (quoted above) |
| Rainbow when it can | qb:718 | ✓ | model-config: "When it can, the word shows in rainbow colors."; CL 2.1.311: "Changed the `ultrathink` rainbow to appear only where the keyword can raise effort" |
| VS Code does the same since v2.1.316 | qb:718 | ✓ | CL 2.1.316: "[VSCode] Changed `ultrathink` to run its turn at `xhigh` effort and show in a rainbow in the chat box, as in the terminal" |
| `CLAUDE_CODE_DISABLE_ULTRATHINK` (v2.1.316) | qb:718 | ✓ | CL 2.1.316: "Added `CLAUDE_CODE_DISABLE_ULTRATHINK`, which turns the `ultrathink` keyword off" |
| `/effort max` for session-level deep reasoning | qb:718 | ✓ | model-config: "Unless you set it through the `CLAUDE_CODE_EFFORT_LEVEL` environment variable, Claude Code applies `max` to the current session only." |
| Q5 `Correct: A` | qb:717 | ✓ | the in-context-instruction quote. B contradicts it. C: the keyword isn't limited to Opus 4.6. D: "without changing your session effort setting". |
| Planning mode via `/plan` or Shift+Tab | SA:351/73 | ✓ | permission-modes: "Enter plan mode by pressing `Shift+Tab` or prefixing a single prompt with `/plan`" |
| 6 permission modes (default, acceptEdits, plan, auto, dontAsk, bypassPermissions); Manual has the config value `default` | SA:351/73 | ✓ | permission-modes mode table has those six rows; "Manual mode appears under its config value, `default`." |
| Shown as Manual since v2.1.200 | SA:351/73 | ✓ | CL 2.1.200: "Changed the "default" permission mode to "Manual" across the CLI, `--help`, VS Code, and JetBrains" |

`qb` = `lesson-quiz/references/question-bank.md`; `SA:351/73` = `self-assessment/SKILL.md:351` / `references/topic-recommendations.md:73`.

## Stamp check
The brief only required the edited lines to be verified. #259 sets a stricter rule: a stamp moves only when every claim in the file holds through the new version. So both files were also checked against every `Added`/`Changed`/`Removed` entry in changelog 2.1.317–2.1.322, by grepping the files for the affected topics: subagent and teammate effort, `/loop`, nested skills, mods in dontAsk, Read stub, Remote Control, IDE extension, SendMessage, `/tasks`, auto mode, fast mode, Fable. No entry contradicts a claim. The only relevant entry is the additive `/tasks` row (below), so the stamps move to 2.1.322.

## Not done
- **Optional Lesson 04 Q10 `/tasks` note: skipped.** The source is CL 2.1.319: "Added an "Earlier in this session" row to `/tasks` that lists finished subagents, so you can reopen one and message it even after it leaves the list or you restart". Neither `sub-agents.md` nor `04-subagents/README.md` (the question's `Review: Resumable agents section`) mentions it. The explanation would teach something the review section doesn't cover, so this belongs in a Lesson 04 sync.
- **Translated copies:** none exist. `.claude/skills/` has one copy each of lesson-quiz and self-assessment.

## Validation (round 1, ae2768f)

I ran the read-only structure script from stdin (`python3 -I -`) against the lesson READMEs, which are identical to `origin/main`. It matches `##`/`###` headings outside code fences, ignoring list numbers, a trailing " section", backticks and case. "contains" means a substring match in either direction.

```text
L03 Q6 pointer: 'supporting files section' -> exact ['supporting files']
questions=100 structural_errors=[] exact=80 contains=18 manual=2
SA351==TR73: True 5404d2bb949efeb282c8702b34f134b79fdf871dff13d641604414420aece9bf
```

The 2 "manual" pointers are the cross-lesson ones and resolve by hand: L07 Q3 points to `05-mcp/README.md:870` `## Plugin-Provided MCP Servers`, and L07 Q4 points to `01-slash-commands/README.md:361` `## Plugin Commands`. Unresolved: 0.

`SKIP=mermaid,vietnamese-mermaid,japanese-mermaid,korean-mermaid,persian-mermaid pre-commit run --from-ref HEAD~1 --to-ref HEAD`: fix-end-of-file, fix-trailing-whitespace, check-large-files, check-merge-conflict, markdown-lint, cross-references, link-check (246 URLs reachable) and markdown-rendering all Passed. mermaid-syntax was skipped; no Mermaid changed.

## Validation (original round, c42f49e)

The review (N3) found that this block's "contains" label is loose. It includes exact matches (L02 Q6, L06 Q3) and reverse matches (L03 Q6, L10 Q1). The round 1 counts above supersede it.

Question bank, a read-only script: 4 options A–D, one `Correct` letter in A–D, and each `Review:` pointer matched to a `##`/`###` heading in that lesson's README on `origin/main`. "contains" means the pointer is a substring of the heading, e.g. "Testing" → "Testing a Plugin":

```text
contains   L02 Q1 (line 93): 'Memory hierarchy section' -> L02: 'Memory Hierarchy in Claude Code'
contains   L02 Q4 (line 117): 'Path-specific rules section' -> L02: 'Path-Specific Rules with YAML Frontmatter'
contains   L02 Q6 (line 133): 'Memory Locations Table' -> L02: 'Memory Locations Table'
contains   L02 Q7 (line 141): '/init command section' -> L02: 'The `/init` Command'
contains   L02 Q9 (line 157): 'Memory hierarchy section' -> L02: 'Memory Hierarchy in Claude Code'
contains   L02 Q10 (line 165): 'Additional directories section' -> L02: 'Additional Directories with `--add-dir`'
contains   L03 Q3 (line 193): 'Keep SKILL.md Under 500 Lines section' -> L03: '4. Keep SKILL.md Under 500 Lines'
contains   L03 Q6 (line 217): 'Supporting files structure section' -> L03: 'Supporting Files'
contains   L04 Q7 (line 309): 'Persistent memory section' -> L04: 'Persistent Memory for Subagents'
contains   L05 Q4 (line 369): 'Environment variable expansion section' -> L05: 'Environment Variable Expansion in Configuration'
contains   L05 Q5 (line 377): 'MCP vs Memory section' -> L05: 'MCP vs Memory: Decision Matrix'
contains   L05 Q7 (line 393): 'Claude as MCP Server section' -> L05: 'Claude as MCP Server (`claude mcp serve`)'
contains   L05 Q9 (line 409): 'Managed MCP Configuration section' -> L05: 'Managed MCP Configuration (Enterprise)'
contains   L05 Q10 (line 417): 'MCP Resources section' -> L05: 'MCP Resources via @ Mentions'
contains   L06 Q3 (line 445): 'JSON Input (via stdin)' -> L06: 'JSON Input (via stdin)'
contains   L07 Q2 (line 521): 'Testing section' -> L07: 'Testing a Plugin'
contains   L10 Q1 (line 765): 'CLI architecture section' -> L10: 'Architecture'
contains   L10 Q10 (line 837): 'Batch processing section' -> L10: '5. Batch Processing'
questions: 100; per lesson: {'01': 10, '02': 10, '03': 10, '04': 10, '05': 10, '06': 10, '07': 10, '08': 10, '09': 10, '10': 10}
4 options + one Correct letter: 100/100
review pointers: exact=82 contains=18 unresolved=0
edited/checked: L09 Q4 (line 705) correct=B review='Extended Thinking section' -> exact: 'Extended Thinking'
edited/checked: L09 Q5 (line 713) correct=A review='Extended Thinking section' -> exact: 'Extended Thinking'
problems: 0
```

`SKILL.md:351 == topic-recommendations.md:73 (identical)`

`SKIP=mermaid,vietnamese-mermaid,japanese-mermaid,korean-mermaid,persian-mermaid pre-commit run --files <4 changed files>`: exit 0. The node hooks can't install here (`AssertionError: language: node must have package.json or additional_dependencies`), and the changed files have no Mermaid.

```text
fix-end-of-file....................Passed
fix-trailing-whitespace............Passed
check-large-files..................Passed
check-merge-conflict...............Passed
markdown-lint......................Passed
cross-references...................Passed
mermaid-syntax.....................Skipped
link-check.........................Passed   ✅ All external URLs reachable (246 checked)
markdown-rendering.................Passed
(locale hooks: no files to check)
```

`source .venv/bin/activate && python scripts/check_cross_references.py`: `✅ All cross-references valid (674 files checked)`

Closes #267
2026-11-12 15:34:14 +01:00
Luong NGUYEN ee1649d8f2 Merge remote-tracking branch 'origin/main' into fix/hook-template-security 2026-11-12 14:11:46 +00:00
Luong NGUYENandBenjamin Kincses b2785cd276 fix(hooks): encode webhook JSON byte-wise and cap the commit message
json_string's pattern replacements ran in the caller's locale. In a UTF-8
locale bash decodes characters on every scan, so a commit message dense
with quotes, control bytes and multibyte text took 546 s to encode at
128 KiB, and the PostToolUse hook stalled the session (or hit its timeout
and dropped the notification). It now sets `local LC_ALL=C`, which is
safe because \, " and the control bytes never occur inside a multibyte
UTF-8 character: 0.83 s on the same input, byte-identical output.

The byte-wise replacements still grow faster than the input on dense
text, so the commit message is capped at 4000 bytes, and author and
branch at 256. Slack suggests keeping a message under 4,000 characters,
so a notification loses nothing useful. truncate_utf8 cuts on bytes,
which works in any locale, and drops a multibyte character the cut went
through, so the payload stays valid UTF-8 JSON. A plain
${COMMIT_MSG:0:4000} would split one when the hook runs in a C locale.

Same code in ja, uk and vi; ja keeps its translated strings and comments.

Refs #258

Co-authored-by: Benjamin Kincses <4175097+benjaminkincses@users.noreply.github.com>
2026-11-12 14:11:23 +00:00
Luong NGUYEN ac9ee17169 docs: make version stamps and Compatible Models footers true (#259)
Type: docs

Makes the version stamps, Compatible Models footers and locale README badges say only what has been checked. Every claim below was checked against `https://code.claude.com/docs/en/<page>.md` or the raw changelog (2.1.303–2.1.322), not written from memory.

## Part A: English footers at 2.1.310 / 2.1.302

Each file's behavioural claims were checked against every changelog entry after its stamp, up to 2.1.322, and against the current docs. A stamp moves only when every claim checks out.

| File | Claims checked | Fixes | Sources | New stamp |
|---|---|---|---|---|
| `INDEX.md` | ~75: AGENTS.md rule (v2.1.277); skill/agent/MCP install paths; `/mcp__github__list_prs`; 5 hook types, 33 events, task-tool model note; `--plugin-dir`; checkpoint menu (6 options); `/workflows`, ultracode (v2.1.284), size guideline; 6 permission modes; `/loop` and the cron tools; Chrome; Remote Control; `SendMessage`/`ListAgents`/`notify_when_idle`; CLI flags | 1. Workflow size: medium aims for fewer than 10 agents only since v2.1.271 (15 before), and the default is small on a Pro plan. 2. dontAsk: file reads inside the working directories also run, as do *most* calls a `permissions.allow` rule or a `PreToolUse` hook approves (neither can approve critical-path `rm`/`rmdir` or network-path reads), and an installed mod can approve some calls. No version is given: the changelog doesn't say when a mod's `tool.check` allow arrived (it is already referenced in 2.1.290, 2.1.292 and 2.1.299). 3. `SendMessage` also reaches sessions on other machines and in the cloud, from a session connected to Remote Control with a claude.ai sign-in; a cloud session can't answer with `SendMessage`. The L383 use-case column now says the same. 4. The `--model` list adds the Fable models. 5. Plan mode: "Read-only analysis" → researches and proposes, runs shell commands to explore, edits blocked until the plan is approved. | [workflows#set-a-size-guideline](https://code.claude.com/docs/en/workflows#set-a-size-guideline) ("The default is `medium`, or `small` when you're signed in on a Pro plan with Claude Code v2.1.271 or later"); CL 2.1.219 ("aim for fewer than 15 agents"), CL 2.1.271 ("lowered the medium size guideline from 15 to 10 agents"); [permission-modes](https://code.claude.com/docs/en/permission-modes#allow-only-pre-approved-tools-with-dontask-mode) ("a mod you installed can still approve some of those calls"; "Claude still runs … file reads inside your working directories and read-only Bash commands"; "It also denies the built-in `AskUserQuestion` tool even if your allow rules match it"; "An allow rule or `PreToolUse` hook can't approve these: Recognized `rm` and `rmdir` critical-path removals … Reads from a network path"); CL 2.1.292 ("Fixed a plugin's `tool.check` hook answering allow running a tool…"), CL 2.1.299 ("…that a `PreToolUse` hook or a mod's `tool.check` hook allowed"); [permission-modes#analyze-before-you-edit-with-plan-mode](https://code.claude.com/docs/en/permission-modes#analyze-before-you-edit-with-plan-mode) ("Claude reads files, runs shell commands to explore, and writes a plan, but does not edit your source. Except in interactive terminal sessions with bypass permissions available, edits stay blocked until you approve the plan."); [cross-session-messaging](https://code.claude.com/docs/en/cross-session-messaging) ("reach your sessions on other machines or in the cloud"; "from a session that is connected to Remote Control, which needs a claude.ai sign-in"; "A cloud session … can't use `SendMessage` to answer a message from another machine"); model-config. The "device card" line checked out against [whats-new/2026-w34](https://code.claude.com/docs/en/whats-new/2026-w34). | **2.1.322** |
| `LEARNING-ROADMAP.md` | 33 hook events / 5 types; 6 built-in subagents (Explore, Plan, General-purpose, claude, statusline-setup, claude-code-guide); 60+ commands (commands page has 121 rows); `/design` (v2.1.265); `/plan`, `/rewind`, `/loop 5m`, `/schedule`; 6 permission modes (Manual since v2.1.200); Alt+T; skill `effort`/`shell`; plugin `workflows`/`channels`/`dependencies`; agent-teams env var; `claude mcp add --transport http`; `-r`, `--max-turns`, `--output-format json`; all 17 source links resolve | 1. Remote Control: "generally available" → "out of research preview", the docs' own wording. 2. Extended thinking (L368, Exercise 3, checklist): Opus 5.5, Sonnet 5.5, Haiku 5.5 and the Fable models always use extended thinking, so the exercise uses `/effort` and scopes Alt+T / Option+T to models that allow turning thinking off. 3. Exercise 4: checkpoints are automatic and unnamed, so step 1 no longer creates a named "Clean state" checkpoint and step 5 says which one to `/rewind` to. | [whats-new/2026-w34](https://code.claude.com/docs/en/whats-new/2026-w34): "Any machine running `claude remote-control` now shows up as a device card at the top of the Code tab in the Claude app. Remote Control is also out of research preview."; [interactive-mode](https://code.claude.com/docs/en/interactive-mode): Alt+T "Has no effect on Opus 5.5, Sonnet 5.5, Haiku 5.5, or the Fable models, which always use extended thinking."; [model-config](https://code.claude.com/docs/en/model-config): "the effort level is the primary control for how much thinking happens"; [checkpointing](https://code.claude.com/docs/en/checkpointing): "Every prompt you send that starts a turn creates a new checkpoint" | **2.1.322** |
| `resources.md` | Adaptive reasoning on Opus 4.7+, Sonnet 5+, Haiku 5.5 and the Fable models; permission modes; 33 hook events; `/loop` and cron; 7 memory tiers; Chrome; keybinding chords; Code Review; Monitor (2.1.98); `/goal` and `claude agents` (2.1.139); `--json` (2.1.145); all links | none needed | model-config, hooks, memory, agent-view, changelog | **stays 2.1.310**: L253 gives `/run`, `/verify`, `/run-skill-generator` as "(v2.1.145+)". Neither the changelog, the v2.1.145 release notes, the skills/commands docs nor the what's-new pages for weeks 19–22 give a version. |
| `03-skills/claude-md/SKILL.md` | `name`/`description` frontmatter, `$ARGUMENTS`; CLAUDE.md locations and loading; "under 200 lines"; AGENTS.md gates (v2.1.277, v2.1.281), blocking files, `/config` Project instructions values and default; `@AGENTS.md`/symlink fallback; `.claude/agents/` | L196: the list of cases where AGENTS.md isn't read now includes a disabled built-in plugin, and limits the upgrade case to "in some cases" after upgrading from v2.1.276 or earlier | [memory#when-agents-md-support-is-unavailable](https://code.claude.com/docs/en/memory#when-agents-md-support-is-unavailable): "You used `/plugin` to disable the built-in plugin that reads `AGENTS.md`"; "In some cases, it's your first session after you upgrade from v2.1.276 or earlier" | **stays 2.1.302**: no primary source states L24 ("~150-200 instructions", "system prompt already uses ~50") or L214 (the system reminder says CLAUDE.md "may or may not be relevant") |
| `07-plugins/devops-automation/README.md` | `--plugin-dir` install; commands; agents; hooks; MCP; workflow; source URLs (all 200) | none: the stale claims need a design decision (below) | [plugins/components](https://code.claude.com/docs/en/plugins/components): "Save a command at `commands/<file>.md` and it becomes `/<plugin>:<file>`"; [plugins-reference](https://code.claude.com/docs/en/plugins-reference) standard layout: "Hooks \| `hooks/hooks.json`", "MCP servers \| `.mcp.json`" | **stays 2.1.302**: bare `/deploy`, `/rollback`, `/status` (`/status` is also a built-in), `/incident`; `hooks/*.js` are never registered (no `hooks/hooks.json`); `mcp/kubernetes-config.json` never loads (no `.mcp.json` or `mcpServers`) |
| `07-plugins/documentation/README.md` | same | none | same | **stays 2.1.302**: bare command names; `mcp/github-docs-config.json` never loads, so the `GITHUB_TOKEN` setup has no effect |
| `07-plugins/pr-review/README.md` | same | none | same | **stays 2.1.302**: bare command names; `hooks/pre-review.js` is not registered; `mcp/github-config.json` never loads |

No changelog entry from 2.1.303 to 2.1.322 touched the plugin READMEs or SKILL.md. Their problems predate the stamps, and #209 already listed the hook/MCP files that never load.

**Locale copies:** the same factual fixes went into every locale with the same sentence. That's dontAsk and plan mode in all six INDEX files; workflow size in fa and ko; `SendMessage` and the use-case column in fa and ko; the `--model` list in fa and ko; "generally available" in fa and ko LEARNING-ROADMAP; the extended-thinking exercise/checklist and the checkpoint exercise in all six LEARNING-ROADMAP copies; the AGENTS.md cases in all six SKILL.md copies. Locale stamps were not bumped. INDEX and LEARNING-ROADMAP stay at 2.1.310 in every locale, and the SKILL.md copies keep their footers.

## Part B: Compatible Models footers

The new list is **Claude Fable 5.2, Claude Fable 5.1, Claude Fable 5, Claude Opus 5.5, Claude Opus 5, Claude Sonnet 5.5, Claude Sonnet 5, Claude Sonnet 4.6, Claude Opus 4.8, Claude Haiku 5.5, Claude Haiku 4.5**. It is used on root docs and module pages alike, and it's the README FAQ's list, so the footers and the FAQ no longer disagree.

Why one list for both file types: STYLE_GUIDE's footer rule ("List all compatible models") applies to both. A shorter "current models only" list on module pages would break that rule. Justification from [model-config](https://code.claude.com/docs/en/model-config):

- **Current models:** "| Anthropic API | Opus 5.5 | Sonnet 5.5 | Haiku 5.5 |"; "the `fable` alias resolves to Fable 5 in Claude apps gateway sessions and to Fable 5.2 everywhere else"; "Fable 5.2 requires Claude Code v2.1.321 or later".
- **Older models still in use:**
  - "**Fable 5.1 or Fable 5**: select it by model ID."
  - "| Claude Platform on AWS | Opus 5.5 | Sonnet 4.6 | Haiku 4.5 |".
  - "biology-flagged requests re-run on Opus 5, and cybersecurity-flagged requests re-run on Opus 4.8".
  - "**Sonnet 5.5**: cybersecurity-flagged requests re-run on Sonnet 5."
- **None are retired.** The [models overview](https://platform.claude.com/docs/en/about-claude/models/overview) that model-config links marks only Opus 4.1, Opus 4 and Sonnet 4 as "retired". All eleven listed models appear there without that mark.

Scope: 336 lines in 331 files. The changed lines are the `**Compatible Models**` lines (92, some of them in locale files) and every localized label (`호환 모델`, `مدل‌های سازگار`, `Các Mô Hình Tương Thích`, `Сумісні моделі`, `対応モデル`, `互換モデル`, `兼容模型`), plus the italic `*対応:…*` / `*Для …*` / `*适用于 …*` lines in the ja/uk/zh concepts guides. Labels, separators (`, ` `、` `، `) and locale stamps are unchanged. The README FAQ lines and the 05-mcp `tool_reference` note are not footers and were left alone. The footer lines of `CHANGELOG.md`, `fa/CHANGELOG.md` and `ko/CHANGELOG.md` also carry the new list; only the footer line changed, not the entries.

## Part C: locale README badges

Real state: the newest version that most (more than half) of the locale's ten module READMEs carry or exceed, backed by the sync commit that brought them there.

A badge is marked **(partial)** when one or more of the locale's module READMEs has no version footer (never synced since its first translation), or when the locale is a condensed translation. A module synced to an older version than the badge doesn't make it partial on its own; the majority rule above already covers that. Only zh meets the rule (02-memory and 05-mcp have no footer, and #247 calls zh condensed).

| Locale | Old badge / "latest" | Evidence | New |
|---|---|---|---|
| ja | 2.1.119 (badge, "latest", FAQ) | module footers: 3×2.1.322, 5×2.1.316, 1×2.1.310, 1×2.1.302; 8/10 ≥ 2.1.316 (#230); #247 carried only the sections ja has | **2.1.316** (Oct 2026) |
| uk | 2.1.112 (FAQ line; no badge) | 3×2.1.322, 4×2.1.316, 1×2.1.310, 2×2.1.302; 7/10 ≥ 2.1.316 (#230) | **2.1.316** (Oct 2026) |
| zh | 2.1.112 (badge, "latest", FAQ) | 2.1.316, 2.1.310 ×2, 2.1.302 ×2, 2.1.300 ×2, 2.1.278; 02 and 05 have no footer (untouched since the first translation); 7/10 ≥ 2.1.300 (#193); #247 was "condensed", model lists only | **2.1.300 (partial)** (Oct 2026): the badge, "latest" and FAQ lines say zh is condensed and that 02-memory and 05-mcp haven't been synced since the April 2026 translation |
| ko | 2.1.310 | 5×2.1.322, 5×2.1.310; #228 synced ko to 2.1.310, and #247 says 2.1.316 "was not backfilled" | **2.1.310** (unchanged) |
| fa | 2.1.310 | 5×2.1.322, 5×2.1.316; #241 "syncs the translation from v2.1.310 to v2.1.316"; #247 carried only the 2.1.322 P1 changes | **2.1.316** (Oct 2026) |
| vi | none (README has no badge or version line) | 4×2.1.322, 6×2.1.316 | no change |

Months come from the docs changelog: 2.1.300 was released October 14, 2026 and 2.1.316 October 31, 2026. The README *footers* in fa/ja/ko/uk/zh stay at 2.1.322: #247 checked those files themselves, while the badge describes the whole locale.

## Deliberately left

- **Stamps not bumped:** `resources.md` (2.1.310), `03-skills/claude-md/SKILL.md` and the three plugin READMEs (2.1.302), for the reasons in the Part A table.
- **Example plugins:** the fix is a design choice between wiring up `hooks/hooks.json` / `.mcp.json` and rewording the READMEs, and renaming commands to `/<plugin>:<name>` touches seven languages plus `07-plugins/README.md` (bare `/review-pr`). It needs a follow-up issue.
- **Same unverifiable version elsewhere:** `03-skills/README.md` also said `/run-skill-generator` is v2.1.145+. Handled by #262, now merged into this branch from `main`.
- **Older `--model` lists:** ja/uk/vi/zh INDEX have pre-5.x lists (e.g. "Sonnet 4.6, Opus 4.7, Haiku 4.5"). That isn't the English sentence, so it belongs to a locale sync.

## Follow-ups
- **LEARNING-ROADMAP `/effort` line (review r3 N13):** line 368 can read as if `/effort` applies only to the models that always use extended thinking; per model-config's effort table it also works on Opus 5, Sonnet 5 and Opus 4.8. Not wrong; clarify in the next pass.

- **Compatible Models scope (review S3):** Opus 4.6 is Microsoft Foundry's current `opus`, and Sonnet 4.5 is the current `sonnet` on Bedrock, Google Cloud's Agent Platform and Foundry (deprecated, retiring Nov 30, 2026), per model-config's alias table. Both are still in use, so either add them to the FAQ and every footer (Sonnet 4.5 marked deprecated), or define the list's scope in STYLE_GUIDE (e.g. the models the aliases resolve to on the Anthropic API plus older models in active use) and cite the deprecations table.
- **Model order (review N8):** the list puts Opus 4.8 after Sonnet 4.6. Grouping by family (Fable, Opus 5.5/5/4.8, Sonnet, Haiku) would read better; the order is shared by STYLE_GUIDE, the FAQ and every footer, so change it everywhere at once.
- **Example plugins:** the follow-up issue proposed above.

## Validation

- `SKIP=mermaid,vietnamese-mermaid,japanese-mermaid,korean-mermaid,persian-mermaid pre-commit run --files <338 changed files>`: every hook passes, including link-check (246 URLs per language). The Mermaid hooks can't install here (`language: node must have package.json or additional_dependencies`, the same failure #247 reported). `python scripts/check_mermaid.py --strict` was run directly instead: Pele 1.6.0 rendered all 416 blocks.
- `python scripts/check_cross_references.py`: all valid (674 files).
- Review fix round 1 (18 files): the same `pre-commit run --files` passes every hook (Mermaid hooks skipped as above; no Mermaid block was touched), and the cross-reference check is still valid after merging `main`.
- Review fix round 2 (14 files: the extended-thinking wording in all 7 LEARNING-ROADMAP files, the dontAsk line in all 7 INDEX files): `pre-commit run --files` passes every hook (Mermaid hooks skipped; no Mermaid block touched), and the cross-reference check is valid (674 files) after merging `main` again (#257).
- Pre-push secret scan: it flagged `06-hooks/README.md:1683` (en, fa, vi), a false positive. The `sk-…{20,}` pattern matches the docs anchor `hooks#pretooluse-ask-decisions-in-auto-mode`, which has been on `main` since 11b2ae3 (en), c2f92c8 (fa) and 8de1820 (vi), and is not on a line this PR changes. The PR's added lines have no secret-pattern matches.

Closes #256
2026-11-12 14:29:18 +01:00
Luong NGUYEN da86ae9bf5 Merge remote-tracking branch 'origin/main' into fix/hook-template-security 2026-11-12 13:25:56 +00:00
Luong NGUYEN 2fa192d02a ci(release): publish a draft naming missing languages when a build fails (#257)
When a language build fails, the release job now publishes a **draft** whose body starts with a note naming the missing languages. Before this change it published a normal **Latest** release that said nothing about the missing languages.

## Behaviour by case

| Case | Result |
|------|--------|
| All 6 builds succeed | Normal, non-draft release, as before: `generate_release_notes: true`, `fail_on_unmatched_files: true`, `draft: false`, empty `body` |
| A build fails (`needs.build.result != 'success'`) and at least one EPUB is missing | `draft: true`. The body starts with a `[!WARNING]` note naming the missing languages and linking the workflow run, followed by the generated release notes |
| A build job fails but all 6 EPUBs are present | `draft: true`. The note says a build job failed although all expected EPUBs are present |
| No EPUB at all | The `Check for missing languages` step fails with `::error::no EPUBs built, nothing to release (build result: <result>)`. Nothing is published |
| A draft for this tag already exists | The `Remove stale drafts for this tag` step deletes it before `Create Release`, so the new release, draft or not, gets a fresh body. This applies to **any** draft for the tag, including one written or edited by hand. Published releases and the tag are never touched |

The missing languages come from comparing `LANGUAGES` with the files in `dist/`. `claude-howto-guide.epub` is `en`, and `claude-howto-guide-<lang>.epub` covers every other language. The steps only read values passed through `env:`, with no `${{ }}` inside the scripts, so the tests below run the same scripts as the workflow.

## Re-running after a partial draft

The natural recovery after a partial draft is **Re-run failed jobs**. Without cleanup, `softprops/action-gh-release@v2` (`3bb1273`) would publish the old draft with its stale "Partial release" note:

- `findTagFromReleases` uses `getReleaseByTag` (`src/github.ts:739`), which only returns published releases, so it gets a 404 and goes down the create path.
- `createRelease` creates a new draft, and then `canonicalizeCreatedRelease` picks the lowest-id draft for the tag (`pickCanonicalRelease`) and deletes the new, asset-less duplicate. The old draft is kept with its old body. The create path never rewrites the body.
- Passing a different `body` doesn't help. It only reaches the new draft, which gets deleted. Even on the update path, an empty body keeps the old one (`src/github.ts:566`: `body = workflowBody || existingReleaseBody`).

So the release job now deletes the drafts for `$GITHUB_REF_NAME` first:

```bash
# shell: bash, i.e. bash --noprofile --norc -eo pipefail
ids=$(gh api --paginate "repos/$GH_REPO/releases?per_page=100" |
  jq -r --arg tag "$GITHUB_REF_NAME" '.[] | select(.draft and .tag_name == $tag) | .id')
for id in $ids; do
  gh api -X DELETE "repos/$GH_REPO/releases/$id"
done
```

- Releases are deleted **by id**, and only when `draft == true`. `gh release delete <tag>` was not used because it looks the tag up again through `FetchRelease`, which races a published-release lookup against a draft lookup and returns whichever succeeds first (`pkg/cmd/release/shared/fetch.go:183-223` in gh v2.102.0). If a published release and a draft shared the tag, a `view` followed by a `delete` by tag could hit different releases.
- Only the release is deleted. The tag stays.
- The REST list includes drafts only for users with push access ([docs](https://docs.github.com/en/rest/releases/releases#list-releases)). The job has `contents: write` and uses `GH_TOKEN: ${{ github.token }}`. It also sets `GH_REPO`, because the release job doesn't check out the repo.
- The step runs after `check`, so if no EPUB was built, the old draft isn't deleted. It runs on the draft path too, so a re-run that is still partial gets a note with the current missing list.
- If listing the releases fails, the step fails before any delete and nothing is published. This holds because the step sets `shell: bash`. A `run:` step without `shell:` runs as `bash -e {0}`, with no pipefail, so a `gh` failure with nothing on stdout would let `jq` exit 0. The [workflow syntax docs](https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#jobsjob_idstepsshell) say: "By default, fail-fast behavior is enforced using `set -e` for both `sh` and `bash`. When `shell: bash` is specified, `-o pipefail` is also applied to enforce early exit from pipelines that generate a non-zero exit status." `Check for missing languages` sets `shell: bash` too.
- Every run that gets past the missing-languages check (a full success or a partial build, re-runs included) deletes **any** draft release for the tag, including one a maintainer wrote or edited by hand before pushing the tag or re-running. Save hand-written notes somewhere else first.
- The cleanup only removes drafts. If someone publishes a partial draft by hand, it keeps its "Partial release … saved as a draft" warning until someone edits the body. A later re-run takes the action's update path, which keeps an existing body when `body` is empty (`src/github.ts:566`). To recover, re-run while the release is still a draft, or remove the note when publishing by hand.
- If a tag whose release is already **published** is re-run and a build fails, the release stays published, but its body is replaced by the "saved as a draft" warning. This is rare and harmless; edit the body after a successful re-run.

## Language lists

`LANGUAGES: en vi zh ja ko fa` (top-level `env`) is what the check compares against. The build matrix is the plain `lang: [en, vi, zh, ja, ko, fa]`, because `strategy.matrix` can't read `env`. A comment next to each says to keep it in sync with the other, with `test.yml` build-epub and with `scripts/build_epub.py` `lang_map`. To add a language, edit all four.

Drift between the two lists can't publish a silent Latest:

- A language in the matrix but not in `LANGUAGES` that fails still makes `needs.build.result` `failure`, so the release is a draft. The note is just less specific.
- A language in `LANGUAGES` but not in the matrix is always reported missing, so every tag becomes a draft.

## Action inputs (softprops/action-gh-release v2)

Source: the inputs table in [README.md at `v2`](https://github.com/softprops/action-gh-release/blob/v2/README.md#inputs) and `action.yml` at `v2`, checked on 2026-11-12.

- `draft`: "Keep the release as a draft. Defaults to false."
- `generate_release_notes`: "If body is specified, the body will be pre-pended to the automatically generated notes." This keeps the note above the generated notes, so `append_body` isn't needed. That input only appends to the body of an existing release.
- The `src/util.ts` and `src/github.ts` source at `v2` shows that `draft: false` and an empty `body` act the same as leaving them unset. The action creates a draft, uploads the files, and publishes it unless `input_draft === true`. So a full build behaves as it did before.

## Verification

`release.yml` only runs on tags, so nothing was triggered and no release was touched. The `run:` scripts were taken from the parsed YAML. Each one ran under the command its `shell:` maps to: `bash --noprofile --norc -eo pipefail` for `shell: bash`, and `bash -e` for the old unset `shell:`.

`Check for missing languages` against fake `dist/` dirs:

```text
===== all6 (BUILD_RESULT=success; present: en vi zh ja ko fa) =====
  dist/claude-howto-guide-fa.epub
  dist/claude-howto-guide-ja.epub
  dist/claude-howto-guide-ko.epub
  dist/claude-howto-guide-vi.epub
  dist/claude-howto-guide-zh.epub
  dist/claude-howto-guide.epub
exit=0
--- GITHUB_OUTPUT:
draft=false
note=
===== missing-ja-fa (BUILD_RESULT=failure; present: en vi zh ko) =====
  dist/claude-howto-guide-ko.epub
  dist/claude-howto-guide-vi.epub
  dist/claude-howto-guide-zh.epub
  dist/claude-howto-guide.epub
::warning::partial build, publishing a draft (missing: ja fa)
exit=0
--- GITHUB_OUTPUT:
draft=true
note<<EOF_NOTE
> [!WARNING]
> **Partial release.** Missing languages: ja, fa.
> See the [workflow run](https://github.com/OWNER/REPO/actions/runs/1). This release was saved as a draft;
> review it before publishing.

EOF_NOTE
===== only-en (BUILD_RESULT=failure; present: en) =====
  dist/claude-howto-guide.epub
::warning::partial build, publishing a draft (missing: vi zh ja ko fa)
exit=0
--- GITHUB_OUTPUT:
draft=true
note<<EOF_NOTE
> [!WARNING]
> **Partial release.** Missing languages: vi, zh, ja, ko, fa.
> See the [workflow run](https://github.com/OWNER/REPO/actions/runs/1). This release was saved as a draft;
> review it before publishing.

EOF_NOTE
===== none (BUILD_RESULT=failure; present: none) =====
::error::no EPUBs built, nothing to release (build result: failure)
exit=1
--- GITHUB_OUTPUT:
===== no-dir (BUILD_RESULT=failure; present: NODIR) =====
::error::no EPUBs built, nothing to release (build result: failure)
exit=1
--- GITHUB_OUTPUT:
===== build-skipped (BUILD_RESULT=skipped; present: NODIR) =====
::error::no EPUBs built, nothing to release (build result: skipped)
exit=1
--- GITHUB_OUTPUT:
===== failure-but-all-present (BUILD_RESULT=failure; present: en vi zh ja ko fa) =====
  dist/claude-howto-guide-fa.epub
  dist/claude-howto-guide-ja.epub
  dist/claude-howto-guide-ko.epub
  dist/claude-howto-guide-vi.epub
  dist/claude-howto-guide-zh.epub
  dist/claude-howto-guide.epub
::warning::build result is failure although all EPUBs are present, publishing a draft
exit=0
--- GITHUB_OUTPUT:
draft=true
note<<EOF_NOTE
> [!WARNING]
> **Draft release.** A build job failed although all expected EPUBs are present.
> See the [workflow run](https://github.com/OWNER/REPO/actions/runs/1). This release was saved as a draft;
> review it before publishing.

EOF_NOTE
===== success-but-ko-missing (BUILD_RESULT=success; present: en vi zh ja fa) =====
  dist/claude-howto-guide-fa.epub
  dist/claude-howto-guide-ja.epub
  dist/claude-howto-guide-vi.epub
  dist/claude-howto-guide-zh.epub
  dist/claude-howto-guide.epub
::warning::partial build, publishing a draft (missing: ko)
exit=0
--- GITHUB_OUTPUT:
draft=true
note<<EOF_NOTE
> [!WARNING]
> **Partial release.** Missing languages: ko.
> See the [workflow run](https://github.com/OWNER/REPO/actions/runs/1). This release was saved as a draft;
> review it before publishing.

EOF_NOTE
```

`Remove stale drafts for this tag` with a fake `gh` on `PATH`. It serves fixture release pages, one JSON array per page (or one merged array in `merged` mode), and logs every call. It refuses (exit 99) to delete a release that isn't a draft in the fixtures. The fixtures are:

- `other-tag-drafts-*`: page 1 has a `v9.9.8` draft and a `v9.9.9` draft. Page 2 has a `v9.9.9` draft, a `v9.9.9-rc` draft and a published `v9.9.9`.
- `*-json-body`: gh prints a JSON error object on stdout and exits 1, which is what real gh does on an HTTP error.
- `*-empty`: nothing on stdout and exit 1, a transport error.
- `page2-*`: page 1 succeeds and then page 2 fails.

```text
===== no-release [bash -eo pipefail, gh mode: ok] =====
  exit=0  deleted ids: []
  gh calls:
    gh api --paginate repos/OWNER/REPO/releases?per_page=100
===== draft-exists [bash -eo pipefail, gh mode: ok] =====
  | Deleting stale draft release 101 for v9.9.9
  exit=0  deleted ids: [101]
  gh calls:
    gh api --paginate repos/OWNER/REPO/releases?per_page=100
    gh api -X DELETE repos/OWNER/REPO/releases/101
===== published-exists [bash -eo pipefail, gh mode: ok] =====
  exit=0  deleted ids: []
  gh calls:
    gh api --paginate repos/OWNER/REPO/releases?per_page=100
===== published-and-draft [bash -eo pipefail, gh mode: ok] =====
  | Deleting stale draft release 101 for v9.9.9
  exit=0  deleted ids: [101]
  gh calls:
    gh api --paginate repos/OWNER/REPO/releases?per_page=100
    gh api -X DELETE repos/OWNER/REPO/releases/101
===== other-tag-drafts-2pages [bash -eo pipefail, gh mode: ok] =====
  | Deleting stale draft release 101 for v9.9.9
  | Deleting stale draft release 102 for v9.9.9
  exit=0  deleted ids: [101,102]
  gh calls:
    gh api --paginate repos/OWNER/REPO/releases?per_page=100
    gh api -X DELETE repos/OWNER/REPO/releases/101
    gh api -X DELETE repos/OWNER/REPO/releases/102
===== other-tag-drafts-merged [bash -eo pipefail, gh mode: merged] =====
  | Deleting stale draft release 101 for v9.9.9
  | Deleting stale draft release 102 for v9.9.9
  exit=0  deleted ids: [101,102]
  gh calls:
    gh api --paginate repos/OWNER/REPO/releases?per_page=100
    gh api -X DELETE repos/OWNER/REPO/releases/101
    gh api -X DELETE repos/OWNER/REPO/releases/102
===== list-fails-json-body [bash -eo pipefail, gh mode: errjson] =====
  | gh: Server Error (HTTP 500)
  | jq: error (at <stdin>:1): Cannot index string with string "draft"
  exit=5  deleted ids: []
  gh calls:
    gh api --paginate repos/OWNER/REPO/releases?per_page=100
===== list-fails-empty-stdout [bash -eo pipefail, gh mode: empty] =====
  | gh: connection reset by peer
  exit=1  deleted ids: []
  gh calls:
    gh api --paginate repos/OWNER/REPO/releases?per_page=100
===== page2-fails-json-body [bash -eo pipefail, gh mode: p2err] =====
  | gh: HTTP 500
  | jq: error (at <stdin>:2): Cannot index string with string "draft"
  exit=5  deleted ids: []
  gh calls:
    gh api --paginate repos/OWNER/REPO/releases?per_page=100
===== page2-fails-empty [bash -eo pipefail, gh mode: p2empty] =====
  | gh: connection reset by peer
  exit=1  deleted ids: []
  gh calls:
    gh api --paginate repos/OWNER/REPO/releases?per_page=100
```

For contrast, the intermediate version of this step at `41ab1e3` (never on `main`), with no `shell:` so it ran as `bash -e`, on the two cases where the result differs. The step passed after the list call failed, and on a page-2 failure it deleted the page-1 draft. The other 8 cases give the same result under both shells.

```text
===== list-fails-empty-stdout [bash -e, gh mode: empty] =====
  | gh: connection reset by peer
  exit=0  deleted ids: []
  gh calls:
    gh api --paginate repos/OWNER/REPO/releases
===== page2-fails-empty [bash -e, gh mode: p2empty] =====
  | gh: connection reset by peer
  | Deleting stale draft release 101 for v9.9.9
  exit=0  deleted ids: [101]
  gh calls:
    gh api --paginate repos/OWNER/REPO/releases
    gh api -X DELETE repos/OWNER/REPO/releases/101
```

Other checks:

- The YAML parses. Both release-job `run:` steps have `shell: bash`, and there is no `defaults:` block. `actionlint` 1.7.12 (release binary, checksum verified) with `shellcheck` 0.11.0 reports nothing on `release.yml` (exit 0). A probe workflow confirmed that actionlint does call shellcheck. `shellcheck -s bash` on both extracted scripts exits 0.
- `pre-commit run --files .github/workflows/release.yml` passes. The mermaid hooks were skipped (`SKIP=mermaid,…`) because they don't check `.yml` files.
- The EPUB build was not run.

Closes #254
2026-11-12 14:16:21 +01:00
Luong NGUYEN 38bc476ed3 docs: drop unsourced v2.1.145 for /run, /verify and /run-skill-generator (#262)
Type: docs

Drops the unsourced "v2.1.145" from `/run`, `/verify` and `/run-skill-generator` in every locale. The rest of each sentence stays the same.

## Source search

No source found. Nothing I checked gives a version for when these skills were added:

- **Raw changelog** (`anthropics/claude-code/main/CHANGELOG.md`): the `## 2.1.145` section doesn't mention any of the three. It lists `claude agents --json`, the Stop/SubagentStop `background_tasks`/`session_crons` fields, the bare env-var Bash fix and the `context: fork` loop fix. The changelog never mentions `/run` or `run-skill-generator`. `/verify` shows up only in later entries (for example 2.1.215: "Claude no longer runs the `/verify` and `/code-review` skills on its own…"; 2.1.309: "Fixed `/verify` and `/code-review` not finding a nested package's own skill…"; 2.1.312: "Fixed `/verify` showing a long description…"), none of which says when it was added.
- **commands.md** lists `/run`, `/run-skill-generator` and `/verify` as bundled skills, with no version.
- **skills.md** (bundled skills table, "Run and verify your app") describes all three, with no version.

## Hits changed (45 lines, 16 files)

| File | Lines |
|------|-------|
| `03-skills/README.md` | 854, 855, 858 |
| `CATALOG.md` | 262, 263, 268 |
| `QUICK_REFERENCE.md` | 135, 418, 419, 420 |
| `claude_concepts_guide.md` | 569, 570, 571 |
| `resources.md` | 253 |
| `fa/03-skills/README.md` | 854, 855, 858 |
| `fa/CATALOG.md` | 262, 263, 268 |
| `fa/QUICK_REFERENCE.md` | 135, 418, 419, 420 |
| `fa/claude_concepts_guide.md` | 569, 570, 571 |
| `fa/resources.md` | 253 |
| `ko/03-skills/README.md` | 858, 859, 862 |
| `ko/CATALOG.md` | 265, 266, 271 |
| `ko/QUICK_REFERENCE.md` | 139, 423, 424, 425 |
| `ko/claude_concepts_guide.md` | 573, 574, 575 |
| `ko/resources.md` | 258 |
| `zh/CATALOG.md` | 238, 239, 240 |

The `/verify` notes "explicit invocation only since v2.1.215" are kept.

## Left unchanged on purpose

- The other `2.1.145` hits are about changes the changelog does list for 2.1.145: the `context: fork` fix, the bare env-var Bash fix and `claude agents --json`. So are the `releases/tag/v2.1.145` source links.
- `CHANGELOG.md`, `fa/CHANGELOG.md` and `ko/CHANGELOG.md` keep "Three new bundled skills (v2.1.145)" in the `[v2.1.145]` release entry. That entry records what that sync did, so I didn't rewrite it. Say if you want it corrected too.
- Footer/stamp lines are not touched (#259 updates them).

## Checks

- `pre-commit run --files <16 changed>`: all hooks pass. The node-based mermaid hooks are skipped (`SKIP=mermaid,…`) because they fail to install here (`language: node` must have package.json). No diagrams were touched.
- `git grep -n '2\.1\.145' -- '*.md'`: outside the CHANGELOG files, no line ties the version to these commands any more.

Closes #261
2026-11-12 14:09:44 +01:00
Luong NGUYENandBenjamin Kincses e9d6e878b5 fix(hooks): escape webhook JSON, read full commands, and lock down the bash log
notify-team.sh: the commit message, author, branch and repo name were
pasted unescaped into the Slack/Discord JSON, so a crafted commit could
rewrite the payload and a newline made it invalid. Read the values from
git first, encode each with a pure-bash json_string (escapes \ and ", and
every control character U+0001-U+001F as RFC 8259 requires), build the
payload with printf %s from the encoded literals only, and pipe it to
curl on stdin so a long message can't exceed the argument size limit.
The email path keeps the raw values. There's no jq or python3 dependency.

pre-commit.sh, pre-tool-check.sh, validate-prompt.sh, log-bash.sh: the
"\([^"]*\)" extraction stopped at the first \", so the blocklists saw only
a prefix (echo \"x\"; rm -rf / passed) and git commit after a quoted
argument skipped the tests. Use the escape-aware ERE notify-team.sh
already had. Exit codes and output are unchanged: exit 2 + stderr to block
a tool call, {"decision":"block"} on exit 0 for prompts.

log-bash.sh: set umask 077 before mkdir/touch so a new log is 0600 and a
new ~/.claude 0700 with no chmod window, and keep chmod 600 for logs that
older versions created. The comment now says the log can hold secrets
passed as arguments.

Locale copies now run the English code (ja keeps its translated comments
and messages):
- uk/06-hooks/pre-tool-check.sh was an older version (no audit log, block
  reasons on stdout).
- vi/06-hooks/log-bash.sh read $1 instead of the hook JSON on stdin, so it
  logged empty lines.
- vi/06-hooks/validate-prompt.sh "blocked" with exit 1, a non-blocking
  error, so it never blocked anything.

Refs #258

Co-authored-by: Benjamin Kincses <4175097+benjaminkincses@users.noreply.github.com>
2026-11-12 13:07:25 +00:00
Luong NGUYENandBenjamin Kincses 54ee1122a9 fix(advanced-features): drop write-capable and redundant rules from the auto-mode baseline
Remove Bash(sort:*), Bash(uniq:*), Bash(env:*), Bash(printenv:*) and
Bash(find:*) from CORE_PERMISSIONS in setup-auto-mode-permissions.py
(en, uk, vi; the copies stay byte-identical):

- sort -o FILE and uniq IN OUT overwrite a file, and a trailing-wildcard
  rule approves any arguments.
- env/printenv print every environment variable into the transcript, and
  env CMD also runs CMD.
- find is redundant: it is in Claude Code's built-in read-only set, and
  since v2.1.113 a find rule can't approve -exec/-delete. In Manual mode,
  find with an unquoted glob still prompts.

The comment now gives these reasons instead of the outdated find rationale.
Counted from the script: core 37 -> 32, maximum with every category flag
63 -> 58. The "Common shell" example row (Bash(find:*) -> Bash(wc:*))
and the 06-hooks rule counts are updated in en, fa, ja, ko, uk and vi.

The git read rules (git branch, git log/diff/show --output) are left for
a follow-up.

Refs #258

Co-authored-by: Benjamin Kincses <4175097+benjaminkincses@users.noreply.github.com>
2026-11-12 13:04:00 +00:00
Luong NGUYEN dec30c0897 ci(release): publish EPUBs for all six languages (#253)
Extend the `build` matrix in `.github/workflows/release.yml` from `[en, vi, zh]` to `[en, vi, zh, ja, ko, fa]`, the same order as `test.yml`'s `build-epub` job. Nothing else in the workflow changes: the `UV_PYTHON: '3.11'` pin, the `uv python install 3.11` step, `fail-fast: false`, the diagram check and the release job all stay as they are.

File names are unique per language. `scripts/build_epub.py`'s `lang_map` writes `claude-howto-guide.epub` (en) and `claude-howto-guide-{vi,zh,ja,ko,fa}.epub`. Each matrix leg uploads its own `epub-<lang>` artifact, so `download-artifact` with `merge-multiple: true` puts six distinct files in `dist/`, and nothing gets overwritten.

Docs: none updated. No doc in English or any locale says which languages a GitHub Release ships. I searched `git grep -i epub` over `*.md` (CHANGELOGs excluded) for release, download and language-list wording. The only language lists are `build_epub.py --lang` usage blocks, which describe the build CLI, not release contents.

`test.yml` already builds and verifies these six languages on every scripts change. Most recently, #250's push run on main was green, with `Build EPUB Artifact` passing for en, vi, zh, ja, ko and fa: https://github.com/luongnv89/claude-howto/actions/runs/43216242906

Closes #252
v2.1.322
2026-11-12 13:39:22 +01:00
Luong NGUYEN 3cd08e372e fix(ci): pin Python 3.11 in release workflow (#250)
The v2.1.322 release run failed: https://github.com/luongnv89/claude-howto/actions/runs/43214385899

## Cause

`ubuntu-latest` moved to Ubuntu 26.04, whose system Python is 3.14. `.github/workflows/release.yml` ran `uv venv` without pinning a version and with no uv-managed Python installed, so uv took the first Python it found on the runner's `PATH`: `/usr/bin/python` (CPython 3.14.4). `pillow==11.1.0` (`scripts/requirements.txt`) has no 3.14 wheel. uv tried to build it from source, and the build failed because the libjpeg headers were missing. All three EPUB jobs failed at "Install Python dependencies". The "Publish GitHub Release" job then failed at "List built artifacts" (`ls: cannot access 'dist/'`), before it reached the publish step.

## Fix

- **`release.yml`, `build` job:** add a `Set up Python` step (`uv python install 3.11`) before "Install Python dependencies". This is the step the `build-epub` job in `test.yml` already uses.
- **Both `release.yml` `build` and `test.yml` `build-epub`:** set a job-level `UV_PYTHON: '3.11'`. This pins every uv command in those jobs to 3.11: `uv venv`, and also the PEP 723 environment that `uv run scripts/build_epub.py` creates. Without it, the install step works only because 3.11 is the sole managed interpreter and uv's default preference is `managed`. A runner image that ships a newer uv-managed Python, or a change to that default, would silently switch versions. The `uv python install 3.11` steps stay as the explicit download.

The two jobs now pin Python the same way, so release builds run on the interpreter CI already tests. Editing `test.yml` also makes it run on this PR, so its `build-epub` job exercises the same pin. Nothing else changes, and the release language matrix (en/vi/zh) stays as it is.

The other workflows don't need this. `docs-check.yml` pins 3.11 through `actions/setup-python`. `pages.yml` runs `uv run scripts/build_website.py`, whose inline dependencies are pure Python (markdown, beautifulsoup4, jinja2). It doesn't install Pillow or `scripts/requirements*.txt`.

## Publishing v2.1.322

Re-running the failed run won't fix it: a tag-triggered run uses the workflow file at the tagged commit (`b5548c6`), which doesn't have this fix. After merge, v2.1.322 is released only if the tag is moved to a commit that contains this fix, or a new tag is cut. That's the maintainer's decision.

## Verification

- Both workflow files parse. The `build` step order is checkout → uv → Node.js → **Set up Python** → install deps → build.
- `pre-commit run --files .github/workflows/release.yml .github/workflows/test.yml` passes: check-yaml, end-of-file, trailing-whitespace, large-files and merge-conflict. The mermaid hooks were skipped (`SKIP=…`) because their Node.js environment couldn't install locally, and they have nothing to check on these files anyway.
- `release.yml` has no `workflow_dispatch`, so only the next tag push proves it end to end.

## Follow-up (not in this PR)

`uv run scripts/build_epub.py` builds in its own PEP 723 environment and doesn't use `.venv` or `scripts/requirements-dev.txt`. The `uv venv` + `uv pip install -r scripts/requirements-dev.txt` step in both EPUB jobs installs tools the build never uses. It also means the EPUB is built with the latest Pillow, not the `pillow==11.1.0` pin. Dropping that step, or pinning the script's inline dependencies, is a separate change.

Closes #249
2026-11-12 13:15:23 +01:00
Luong NGUYEN b5548c6b9f docs: sync to Claude Code v2.1.322 (#247)
Type: docs

Syncs the tutorial, its translations and root docs to **Claude Code 2.1.322** (previous sync: v2.1.316, #230). The audit covered every changelog entry for 2.1.317, 2.1.318, 2.1.319, 2.1.321 and 2.1.322, plus the official docs pages for each affected feature. npm `latest` is 2.1.322.

49 files changed (46 in the sync commit, plus `fa/` and `ko/03-skills` in review round 1 and `ko/claude_concepts_guide.md` in round 3). P0 0 · P1 15 · P2 6 (deferred) · P3 30 + 1 blocked · P4 3.

## P1: outdated claims (mirrored to translations)

- **Fable 5.2 (v2.1.321).** The `10-cli` model table gains a Fable 5.2 row (1M context, default effort `medium`), and Fable 5.1 becomes the previous model.
  - The Fable alias note now says `fable` resolves to Fable 5.2 (Fable 5 in Claude apps gateway sessions).
  - `best` now resolves to the same model as `opus`.
  - A saved `claude-fable-5-1` pick moves to `fable` on Pro/Max/Ultra, and on Team/Enterprise when the organization's settings allow.
  - Pricing: $8/$40 per Mtok, with $0.20 per Mtok cache reads.
  - The FAQ and QUICK_REFERENCE model lists name Fable 5.2.
- **Fast mode on Fable 5.2 (v2.1.321, $16/$80):** added to `/fast` in `01-slash-commands`, CATALOG, the `10-cli` fast-mode note and the `CLAUDE_CODE_OPUS_4_6_FAST_MODE_OVERRIDE` row.
- **`ultrathink`** now lists Fable 5.2 in `09`, `10-cli` and `claude_concepts_guide`.
- **Scheduled tasks (`09`)**:
  - Recurring tasks expire after 7 days, not 3.
  - Tasks are restored on `--resume`/`--continue`, except expired tasks, past-due one-shots and a self-paced `/loop`.
  - Recurring jitter is "up to half the gap, at most 30 min" (`*/5` isn't delayed).
  - One-shots scheduled for `:00`/`:30` run up to 90 s early.
- **Subagent and teammate effort (v2.1.317):** on a different model they use that model's saved effort or its default, not the session's (`04-subagents`, `10-cli`).
- **`switchModelsOnFlag` (v2.1.318):** subagents never pause. With "Ask each time", a flagged subagent request fails instead of switching models.
- **Background commands:** the default limit is 10 minutes in a `-p` run whose prompt is passed as text (the fix is in v2.1.321).
- **Mods Claude writes (v2.1.321):** in `auto`/`bypassPermissions` they turn on without asking. They don't load in `dontAsk` or in `-p` outside those modes.

## P3: additions (English only)

- **`01-slash-commands`:**
  - `/model` "More models" row (v2.1.319/321).
  - `/context` sends Claude only the table.
  - `/ide` no longer installs the extension from an IDE terminal (v2.1.318).
  - `/tasks` "Earlier in this session".
  - `/claude-api latency-optimize`, also added in `03-skills`, CATALOG and the concepts guide.
- **`03-skills`:** two new limits on nested-skill loading: under the Bash sandbox (v2.1.319), and `.claude/skills` inside `~/.claude/plugins` (v2.1.321). The skills docs page doesn't list these exceptions yet; the source is the changelog.
- **`04-subagents`:** background subagents move a shell command to the background after 3 min, and `SendMessage` reaches a busy background agent sooner.
- **`06-hooks`:**
  - Agent SDK `onFailure: "block"` / `on_failure="block"`.
  - An `mcp_tool` hook refuses the call when it can't read the answer (>16 MiB).
  - `defer` works only with a single tool call; `tool_deferred_unavailable` and `CLAUDE_CODE_DROP_UNAVAILABLE_DEFERRED_TOOL`.
  - PostToolUse runs after a `Ctrl+Enter` interrupt (10 s).
- **`07-plugins`:**
  - `$.model.fork` `effort` and `prompt.submit` in the user turn.
  - `${CLAUDE_PLUGIN_ROOT}` in `subagentStatusLine`.
  - Plugin updates install new dependencies.
  - Managed `extraKnownMarketplaces` take-over rules.
- **`08-checkpoints`:** `/rewind` after `/branch` (fixed in v2.1.319).
- **`09-advanced-features`:**
  - `/tasks` row.
  - Background command notifications show only the start and end of a command over 1,000 characters.
  - `claude remote-control --settings <file>`, and sessions keep their folder.
  - OTel `anthropic.plan`, `anthropic.seat_type`, `anthropic.provider`, `anthropic.custom_base_url`.
  - Three v2.1.319 trust-hardening items.
  - Auto-mode `-p` exits 1 when no safety check was available.
  - Monitor WebSocket watches follow Bash rules.
- **`10-cli`:**
  - Fast mode on Google Cloud's Agent Platform: Fable 5.2 only, regions `global`/`us`/`eu`, v2.1.322.
  - `claude auth status` `loginExpiresAt`.
  - `claude -p` `credential_expires_at` and the 10-day stderr warning.
  - Bash permission hardening: `which` with flags, `timeout` wrappers, exact ask vs. broader deny, `cp`/`mv` by path.
  - Agent view `--agent` dispatch default.
  - `MCP_PROTOCOL_NEGOTIATION` 7-day skip.
  - New rows for `CLAUDE_CODE_DISABLE_FEATURE_FLAGS`, `CLAUDE_CODE_DISABLE_NESTED_SESSION_ID` and `permissions.denyInsteadOfPrompting`.

## P4: cosmetic

- Root `README.md`: the version badge, "latest" line and "Current version" line now say v2.1.322 / November 2026.
- `10-cli`: the resume hint repeats launch flags (v2.1.317).
- `08-checkpoints`: directory symlinks are no longer followed by rewind (v2.1.319).

Every file the sync commit changed has a refreshed footer: November 12, 2026 and 2.1.322, with localized labels and dates in translations. `fa/03-skills` and `ko/03-skills` got only the S1 `effort` row fix in round 1, and their footers were left as they were (2.1.316 and 2.1.310), because the rest of those files was not synced to 2.1.322. For the same reason, `ko/claude_concepts_guide.md` got only the round-3 Fable rows and keeps its 2.1.310 footer.

## Translation coverage

- **vi, ko, fa:** carry every P1 change whose text exists in that locale.
- **ja, uk:** carry the P1 changes to the sections they have: `ultrathink`, scheduled tasks, the `effort` row and QUICK_REFERENCE; the README FAQ in ja and uk.
- **zh:** condensed. Only the stale model lists were fixed (README FAQ, QUICK_REFERENCE). zh has no model table, fast-mode note, scheduled-tasks section or `effort` row.
- **`vi/README.md`:** has no FAQ, so Task 2.9 had nothing to change there.
- **ko is partly stale from before this run.** Its module footers were still at 2.1.310, and some 2.1.316 content is missing, such as the `CLAUDE_CODE_SUBAGENT_EFFORT` sentence and `env` row. This PR adds the 2.1.322 P1 changes but does not backfill 2.1.316.
- **Locale README stamps:** the ko and fa READMEs still show v2.1.310 in their badge and "latest" lines. Each locale tracks its own sync state, so they were left as they are.
- **P3 additions are English only.**

## Review round 1 fixes (`docs: address review of v2.1.322 sync`)

Each change was checked again against model-config, env-vars, skills or the raw changelog before it was written.

- **S1:** the `03-skills` `effort` row and the `01` `/effort` row now list Fable 5.2, and give it a `medium` default. The `/effort` row also gives `high` for Fable 5.1 and Fable 5 (model-config: "Fable 5.2, Opus 5.5, Sonnet 5.5, and Haiku 5.5 default to `medium`… Other models in the effort levels table default to `high`"). Also changed in fa and ko.
- **S2:** `09` `remote-control --settings`: "If the file changes, no new session starts until you restart `claude remote-control`" (CL 2.1.321). English only.
- **S3:** the `10-cli` `claude agents` note now names the five flags from CL 2.1.321. English only.
- **S4:** the `03-skills` nested-skill exceptions are now attributed to the changelog in the text: "The changelog adds two exceptions that the skills docs don't list yet". English only.
- **S5:** the `CLAUDE_CODE_DISABLE_FEATURE_FLAGS` row now says that with the variable set, Remote Control and the other features that need feature-flag fetching are unavailable (env-vars). English only.
- **S7:** wrong effort claims removed from sentences this PR rewrote:
  - `ja/09` and `uk/09` now translate the English effort-level, `xhigh` and default lists.
  - In `ja/10-cli` and `uk/10-cli`, the false "`max` is exclusive to Opus 4.x" clause is dropped. The English sentence has no such clause.
- **N1:** "from v2.1.257 until v2.1.321" in `10-cli`, fa, ko and vi.
- **N2:** the `/context` row now says the 10-row limit applies to the table Claude reads. No locale has this row text.
- **N4:** the Fable models were added to the `09` effort-level, `xhigh` and default lists in en, fa, ko and vi (ja and uk via S7). In `claude_concepts_guide`, Fable 5.2, 5.1 and 5 rows were added to the model/effort table, and the Fable models to its `xhigh`/`max` note, in en and fa.
- **N5:** the `CLAUDE_CODE_SUBAGENT_EFFORT` row now says only what CL 2.1.317 says: a subagent on a different model from the main conversation uses that model's saved effort level or its default, instead of the session's. The old wording said such a subagent "never inherits". How the variable ranks against that rule isn't stated by any source. Also changed in fa and vi; ko has no row.
- **N8:** "where Fable is available" was restored to the pre-v2.1.321 `best` behaviour, in en, fa, ko and vi.

## Review round 2 fixes (`docs: add Fable models to the effort-level bullet in 09`)

- Added the Fable models to the `09` "Opus 5 / Opus 4.8" effort bullet (en, fa, ko, vi): Fable 5.2 defaults to `medium`, Fable 5.1 and Fable 5 to `high`, and all of them support `xhigh` and `max`.
- Added the Fable models to the en `10-cli` `CLAUDE_CODE_EFFORT_LEVEL` row.

## Review round 3 fixes (`docs: align model and effort lists with model-config (v2.1.322 sync)`)

The model and effort lists changed in this round now match model-config.md (effort table, default-effort rule and 1M list, re-fetched before editing). The lists still behind are under Follow-ups.

- **en (R2-S1):** the Fable models were added to the remaining `09` effort lists (the "Effort level" heading line and three `CLAUDE_CODE_EFFORT_LEVEL` code comments) and to the `10-cli` "Effort Levels" paragraph and its code comment. The paragraph now gives Fable 5.2 a `medium` default, matching the model table above it.
- **fa, ko, vi (R2-S1, R2-S2):** mirrored the same lines, and brought the `10-cli` `CLAUDE_CODE_EFFORT_LEVEL` row in line with en. `ko/claude_concepts_guide.md` gains the Fable 5.2, 5.1 and 5 rows, and its `xhigh`/`max` note names the Fable models, as in en and fa.
- **ja, uk (R2-S2, R2-S3):** removed the false "`xhigh` is Opus 4.7-only" and "`max` is Opus 4.7/4.6-only" claims from `09` and `10-cli`. The support and `xhigh` lists now match model-config, and the model lists in the `CLAUDE_CODE_EFFORT_LEVEL` row are translated from en.
- **ja, uk `04-subagents` (R2-S4):** the `effort` row and the frontmatter comment now list `xhigh`.
- **Haiku 4.5 context (R2-N2, factual part only):** `uk/10-cli` listed Haiku 4.5 at 1M tokens. It's now 200K, matching en `10-cli` and model-config's 1M list, which doesn't include Haiku 4.5. The same cell in `ja/10-cli` was fixed too.
- Merged `main` (#246, scripts only).

## Learner skills

No changes landed. Three edits are pending because writes to `.claude/skills/**` were refused by the permission system in this run:
- `lesson-quiz` `question-bank.md` Lesson 09 Q5 explanation: add Fable 5.2 to the `ultrathink` model list (P1).
- `self-assessment` `topic-recommendations.md` and its `SKILL.md` mirror, Advanced Features focus line: same change (P1).
- Lesson 04 Q10 explanation: optional `/tasks` "Earlier in this session" note (P3).

No correct answer letter changes, and all 100 `Review` pointers still resolve.

Exact text for the follow-up (from the round-1 review, §6):

1. `.claude/skills/lesson-quiz/references/question-bank.md:718` (Lesson 09 Q5, Explanation):
   - old: ``Since v2.1.311, typed in the interactive terminal on Opus 5.5, Sonnet 5.5, Haiku 5.5, or Fable 5.1 through Anthropic's API, it also runs that turn at `xhigh` effort,``
   - new: ``Since v2.1.311, typed in the interactive terminal on Opus 5.5, Sonnet 5.5, Haiku 5.5, Fable 5.2 (v2.1.321+), or Fable 5.1 through Anthropic's API, it also runs that turn at `xhigh` effort,``
2. `.claude/skills/self-assessment/SKILL.md:351` **and** `.claude/skills/self-assessment/references/topic-recommendations.md:73` (identical lines):
   - old: ``and the `ultrathink` keyword, which runs that turn at `xhigh` effort on Opus 5.5, Sonnet 5.5, Haiku 5.5, and Fable 5.1 (v2.1.311+)``
   - new: ``and the `ultrathink` keyword, which runs that turn at `xhigh` effort on Opus 5.5, Sonnet 5.5, Haiku 5.5, Fable 5.2, and Fable 5.1 (v2.1.311+; Fable 5.2 needs v2.1.321+)``
3. Version bumps: `lesson-quiz/SKILL.md` `version: 1.6.4` → `1.6.5`; `self-assessment/SKILL.md` `version: 2.5.7` → `2.5.8`.
4. Footer stamps: `question-bank.md` and `topic-recommendations.md`, 2.1.316 → 2.1.322. Optionally add `https://code.claude.com/docs/en/model-config#use-ultrathink-for-one-off-deep-reasoning` to Sources; it is already listed in both.
5. Optional (P3): Lesson 04 Q10 explanation, a note on the `/tasks` "Earlier in this session" row. It changes no letter.

## Needs maintainer decision (P2, not applied)

1. **Self-paced `/loop` ending.**
   - Repo: says nothing about how a no-interval `/loop` ends.
   - Docs: "If an iteration ends without either rescheduling or stopping, Claude Code schedules one fallback wakeup about 20 minutes later".
   - Changelog 2.1.319: self-paced `/loop` now ends "instead of scheduling a fallback wakeup; set `CLAUDE_CODE_LOOP_KEEPALIVE=1` to keep the old behavior".
   - https://code.claude.com/docs/en/scheduled-tasks#stop-a-loop
2. **Auto mode with telemetry or feature flags off.**
   - Repo (`10-cli` `CLAUDE_CODE_AUTO_MODE_SERVER` row, `09`): "Set to `0` to use Claude Code's own auto-mode classifier requests instead of server-side review".
   - Docs: when the review is dropped, "Claude Code falls back to its own classifier requests".
   - Changelog 2.1.319: calls the server can't check "are asked about or denied, with no fallback to the built-in classifier".
   - https://code.claude.com/docs/en/permission-modes#server-side-classifier-review
3. **MCP tasks.**
   - Repo (`05-mcp`): public beta since v2.1.304, needs feature-flag fetching (not Bedrock, Vertex, Foundry or telemetry off).
   - Docs: same.
   - Changelog 2.1.319: terminal support moves tasks to the background, works without feature-flag fetching, and adds `CLAUDE_CODE_DISABLE_MCP_TASK_BACKGROUND` and `CLAUDE_CODE_DISABLE_MCP_TASKS`. The second variable is only in the changelog.
   - https://code.claude.com/docs/en/mcp#mcp-tasks-that-run-on-the-server
4. **`deniedMcpServers` URL entries.**
   - Repo (`05-mcp`): "`serverUrl` | A remote server URL, exact or with `*` wildcards".
   - Changelog 2.1.318: URL entries also block Anthropic-provided servers and cloud-session connectors.
   - Docs: "a `serverUrl` pattern written for the connector's own URL doesn't match it".
   - https://code.claude.com/docs/en/mcp#how-connectors-reach-claude-code
5. **`CLAUDE_CODE_PLUGIN_DIR_WATCH`.**
   - Repo (`07-plugins`): has only a generic hot-reload note.
   - Changelog 2.1.321: headless sessions now reload `.claude/skills` mods, and `=0` turns this off.
   - Docs: reloading covers `--plugin-dir` mods, is on in interactive sessions, and "Set to `1` to turn it on in non-interactive sessions".
   - https://code.claude.com/docs/en/env-vars#variables
6. **Mods' own tool calls.**
   - Repo (`07-plugins`): says nothing about prompting.
   - Changelog 2.1.321: `$.tool.call` and `$.mcp.call` "raise no permission prompt, even under your own ask rules".
   - Docs: "`$.mcp.call` | Calls a tool on a connected MCP server, under the session's permission rules".
   - https://code.claude.com/docs/en/plugins/mods/admin#review-what-a-mod-can-do

## Follow-ups (separate PRs)

- **Stamps only (review N3 + N6):** add Fable 5.2 to the "Compatible Models" footers (88 lines; root files still list Fable 5.1 as newest, and module files lack Opus 5.5, Sonnet 5.5 and Haiku 5.5). Align the locale README badges and "latest" lines: ja 2.1.119, zh and uk 2.1.112, ko and fa 2.1.310.
- **ko catch-up sync (review N7):** backfill 2.1.316 in ko: the Opus 4.8 fast-mode deprecation, the `CLAUDE_CODE_SUBAGENT_EFFORT` sentence and row, and the v2.1.311 `ultrathink` model list.
- **Learner skills (review S6):** apply the exact text under "Learner skills" above once `.claude/skills/**` is writable.
- **"Effort Levels (…)" headings (review R2-N1):** `10-cli` and its locale copies name only some models in the heading. They were left unchanged because renaming them changes the anchors.
- **Opus 4.6 row (R2-N4):** `claude_concepts_guide.md` (and fa, ko) has no Opus 4.6 row, but the note below the table mentions it. The Sonnet 4.6 row's "1M tokens" also needs the `[1m]`-variant qualifier.
- **`high`-default lists (R2-N5):** the `01` `/effort` row and the `10-cli` `CLAUDE_CODE_EFFORT_LEVEL` row (and their locale copies) leave Opus 4.6 and Sonnet 4.6 out of the `high` default.
- **ja/uk/zh/vi effort catch-up (R2-N6):** the `/effort` rows in `ja/01`, `uk/01`, `zh/01` and `vi/01` still say `max` needs Opus 4.7 or Opus 4.6. `ja/claude_concepts_guide.md:3061` has an Opus 4.7-era table.
- **uk/ja `10-cli` model tables (rest of R2-N2):** `uk/10-cli` `--effort` lacks `xhigh`, its model table is Opus 4.6-era (and Opus 4.6 / Sonnet 4.6 reach 1M only through `[1m]`), and it says "Opus 4.6 підтримує…". The `ja/10-cli` model table is Opus 4.7-era.
- **`06-hooks` context-limit comment:** the `CONTEXT_LIMIT` comment's 1M list leaves out the Fable models and Opus 4.7, and lists Sonnet 4.6, which reaches 1M only through `[1m]` (also in fa, ko and vi). This predates the PR.
- **ja/uk stale model lists:** `ja/09:228` and `uk/09:220` ("all models (Opus 4.7/4.6, Sonnet 4.6, Haiku 4.5)"), and `ja/10-cli:717-719` (the "Opus 4.7" heading and paragraph, the counterpart of en `10-cli:853`). In ja and uk, the 2.1.322 stamp covers the sections those files have; these older lists are tracked here.

## Validation

`pre-commit run --all-files` passes: markdown-lint, cross-references, link-check (247 URLs) and markdown-rendering in all five hooked languages, plus the Python checks. The Mermaid hooks were skipped with `SKIP=mermaid,vietnamese-mermaid,japanese-mermaid,korean-mermaid,persian-mermaid` because their `language: node` environment fails to install under pre-commit 4.7.0. `python scripts/check_mermaid.py --strict` was run directly instead: Pele rendered all 416 blocks. The pre-edit baseline was also all green. For the round-1 fixes, `pre-commit run --files` on the 20 changed files passes, with the same Mermaid SKIP; the `language: node` install error was reproduced. `check_mermaid.py --strict` (416 blocks) and `check_cross_references.py` (675 files) also pass. For round 3, pre-commit on the 15 changed files passes, with the same Mermaid SKIP. `check_cross_references.py` (676 files after the merge), `check_mermaid.py --strict` (416 blocks) and `pytest scripts/tests/` (234 passed, after merging #246) also pass.

## Sources

- https://raw.githubusercontent.com/anthropics/claude-code/main/CHANGELOG.md (2.1.317–2.1.322) and https://code.claude.com/docs/en/changelog
- https://www.npmjs.com/package/@anthropic-ai/claude-code
- https://code.claude.com/docs/en/model-config
- https://code.claude.com/docs/en/fast-mode
- https://code.claude.com/docs/en/scheduled-tasks
- https://code.claude.com/docs/en/remote-control
- https://code.claude.com/docs/en/errors
- https://code.claude.com/docs/en/settings-reference#permissions-denyinsteadofprompting
- https://code.claude.com/docs/en/env-vars
- https://code.claude.com/docs/en/hooks
- https://code.claude.com/docs/en/agent-sdk/hooks
- https://code.claude.com/docs/en/tools-reference
- https://code.claude.com/docs/en/plugins/mods/create
- https://code.claude.com/docs/en/plugins/org
- https://code.claude.com/docs/en/skills
- https://code.claude.com/docs/en/commands
- https://code.claude.com/docs/en/vs-code
- https://code.claude.com/docs/en/agent-view
- https://code.claude.com/docs/en/mcp
- https://code.claude.com/docs/en/permissions
- https://code.claude.com/docs/en/permission-modes
- https://code.claude.com/docs/en/cli-reference
2026-11-12 13:02:46 +01:00
Luong NGUYEN b3d96155a5 fix(scripts): keep indentation of nested mermaid fences (#246)
The fence regex in `build_website.py`, `build_epub.py` and `check_mermaid.py` matched the leading whitespace as part of the fence but did not keep it. `replace_mermaid_blocks` and `process_mermaid_blocks` then wrote the diagram at column 0, so a fence nested in a list item ended the item.

## What changed
- The leading indentation is captured as a named `indent` group and the diagram source as `code`. Both builds write `indent` again before `<pre class="mermaid">` (website) and the `![Diagram](…)` image (EPUB).
- `build_epub.py` used to repeat the pattern as a literal in two functions. It now compiles it once as `MERMAID_BLOCK_RE`, like the other two scripts. A comment above each copy points to the other two.
- `check_mermaid.py` reads `group("code")`. Line numbers are unchanged because the match still starts at the beginning of the fence line.
- **Website, 4+ columns:** at this indent Python-Markdown no longer reads the `<pre>` as raw HTML. A blank line in the diagram would end the block, and `*`, `_`, `` ` ``, `[…]` and `\` would be formatted as Markdown before the page script reads `pre.textContent`. At 4+ columns only, tabs, newlines and those characters are now written as numeric character references. These decode back to the original characters in the parsed HTML and in `textContent`, so Pele gets the exact fence source. A block at 0–3 columns is raw HTML and is written exactly as before.
- **Website:** the `<p>` that Python-Markdown wraps around a nested mermaid `<pre>` is unwrapped, because `<p><pre>` is invalid HTML. Only a `<p>` whose sole content is that `<pre>` is unwrapped.
- **`check_mermaid.py`** prints a non-fatal `⚠` warning for a fence indented 4+ columns (a tab advances to the next multiple of 4). Such a fence renders as a diagram only inside a list item, and as an indented code block anywhere else. The warning does not change the exit code or `--strict` failures.

## Deviation from the issue: indentation is `[ \t]*`, not 0–3 spaces
The issue suggested CommonMark's 0–3 spaces. Both builds render with **Python-Markdown**, which continues a list item only at **four** spaces. I checked rendered output for both limits:

| Nested fence | `{0,3}` group | `[ \t]*` group (this PR) |
|---|---|---|
| 2–3 spaces, blank line before the fence | Diagram renders outside the list, same as main | Same as main (Python-Markdown limit) |
| 1–3 spaces, directly under the item text | List ends; diagram at top level | Website keeps the diagram inside the `<li>`, within the item's paragraph; the EPUB ends the list as on main. Diagram text is exact in both |
| 4 spaces or a tab, in a list item | **Not matched**: becomes inline code, and `check_mermaid` stops validating it | Diagram inside the `<li>` on the website and in the EPUB. The website `<pre>` text is byte-identical to the fence source, including blank lines and Markdown characters |
| 4+ columns, not in a list | Not matched | Indented code block on the website and in the EPUB (as on GitHub). `check_mermaid` validates it and prints a warning |

A 0–3 limit would bring no rendering improvement, and it would be a regression for 4-space fences, which would stop matching. Keeping `[ \t]*` leaves the set of matched fences exactly as it is on main. If you still want strict CommonMark, it is a one-token change in three places, and the parity test keeps the copies in step.

## Tests
- `process_mermaid_blocks` with an info-string fence. Replacement has to match the same fences extraction did, or the build raises `MermaidRenderError`.
- A nested fence keeps its indentation: website `replace_mermaid_blocks` (3 spaces) and EPUB `process_mermaid_blocks` (3 and 4 spaces).
- A 4-space nested diagram renders inside its `<li>`: website `render_markdown` and EPUB `md_to_html`.
- Website `pre.textContent` equals the fence source at indent 0, 3 spaces, 4 spaces and a tab, for a diagram with a blank line, `` *x* _y_ `z` ``, `[l](u)` and `\\`. No `<em>`, `<code>` or `<a>` appears inside the `<pre>`.
- A top-level diagram renders to exactly the HTML main produces. Below 4 columns the `<pre>` is not entity-encoded.
- A nested mermaid `<pre>` is a direct child of its `<li>`, with no `<p>` around it.
- `check_mermaid` warns for 4 spaces, a tab, 2 spaces plus a tab, and 6 spaces, and not for 0, 1 or 3 spaces. The warning leaves a Pele rejection and a strict "Pele unavailable" failure as failures.
- ```` ``` mermaid ```` (a space before the language) is matched: website, EPUB and `check_mermaid`.
- `mermaid-foo` is ignored by the website and EPUB builds (`check_mermaid` already had this test).
- `check_mermaid` reports the right line for 3- and 4-space nested fences.
- The three `MERMAID_BLOCK_RE` patterns and flags are identical.

All 234 tests pass.

## No change to current output
- Using `git ls-files '*.md'` (679 files) with each module's regex, the count is **416** on main and **416** for each of the three patterns. Every match has the same span and source as on main. All 416 fences are at column 0, so `check_mermaid` prints no indentation warning.
- `render_markdown` gives byte-identical HTML to main's for all 679 tracked pages.
- `check_mermaid.py --strict` (Pele 1.6.0) renders all 416 blocks.

## Gates
`pytest scripts/tests/` (234 passed), `ruff check`, `ruff format --check`, `mypy` and `bandit` all pass.

Closes #244

Follow-up to #240 by @kevin9327
2026-11-12 12:50:38 +01:00
Luong NGUYEN 6f64c1bdfc docs(advanced-features): tighten output-style timing wording and port it to fa and vi (#245)
Rewords the Output Styles timing note in `09-advanced-features` so it says only what the docs say, and ports it to the locales that still had the pre-#239 claim.

## What changed

- **en** (`09-advanced-features/README.md`): replaced "Claude Code sends the active style's instructions with every request" with "Claude Code delivers the new style's instructions as a message in the conversation". The docs don't give the old clause as a reason. The restart note now begins "In the terminal, …".
- **ko**: same meaning. Dropped the `…보내기 때문입니다` causal clause and added `터미널에서는 …`.
- **fa** (line 1538): replaced the outdated sentence, which said the style is read once at session start and needs `/clear` or a new session, with the corrected English meaning. It keeps the page's existing terms (`نسخهٔ`, `نشست`, `گفت‌وگو`, `ترمینال`, `دوباره راه‌اندازی`) and ZWNJ usage.
- **vi** (line 1538): the issue says vi has no Output Styles section, but it does. Line 1538 had the same outdated sentence as fa, so it gets the same fix. Without it, the acceptance criterion "No other locale has the sentence" would fail.
- **ja, zh, uk**: no Output Styles section and no such sentence (checked with `git grep`).

## Sources

https://code.claude.com/docs/en/output-styles.md:

> When you switch styles mid-session, Claude uses the new style starting with your next message. […] Before v2.1.251, the new style applied only after you ran `/clear` or started a new session.

> In the terminal, Claude Code reads style files when it starts, so if you create or edit one during a running session, restart Claude Code to pick up the change.

https://code.claude.com/docs/en/prompt-caching.md, "Changing output style":

> Claude Code delivers the new style's instructions as a message in the conversation, so that request still reads the system prompt and the earlier conversation from the cache.

## Checks

`pre-commit run --files` on the four changed files passes: markdown-lint, cross-references, link-check and markdown-rendering, plus the vi/ko/fa variants. The node-based mermaid hooks could not install here (`language: node must have package.json or additional_dependencies`), so they ran with `SKIP=mermaid,vietnamese-mermaid,japanese-mermaid,korean-mermaid,persian-mermaid`. No Mermaid diagrams are touched.

Closes #243
2026-11-12 12:01:45 +01:00
Luong NGUYEN 1a34d727ac docs(skills): retitle skillOverrides section as a visibility control (#242)
The `skillOverrides` section in `03-skills/README.md` already describes the setting as a per-skill visibility map, but its heading still read "Controlling Skill Override Behavior", which suggests it controls precedence. This PR retitles the heading to **Controlling Skill Visibility (`skillOverrides`)** to match the docs section "Override skill visibility from settings". The rest of #176 (the precedence order and the section body) was already fixed on `main` by the v2.1.245 sync (#177).

Changes:
- `03-skills/README.md`: new heading. The link on line 96 now points to `#controlling-skill-visibility-skilloverrides` (old: `#controlling-skill-override-behavior-skilloverrides`).
- `fa/03-skills/README.md`: heading `کنترل دیدپذیری مهارت`, link updated to `#کنترل-دیدپذیری-مهارت-skilloverrides`.
- `ko/03-skills/README.md`: heading `스킬 표시 여부 제어`, link updated to `#스킬-표시-여부-제어-skilloverrides`.

Anchors were computed with `heading_to_anchor()` in `scripts/check_cross_references.py`. No other links to the old anchors exist in the repo. The zh, ja, uk and vi pages have no `skillOverrides` heading. Their precedence lines (where present) already say enterprise > personal > project, so they need no change.

Source: https://code.claude.com/docs/en/skills.md

Gates: `scripts/check_cross_references.py` passed, and `pre-commit run --files <changed>` passed with `SKIP=mermaid,vietnamese-mermaid,japanese-mermaid,korean-mermaid,persian-mermaid`. The node mermaid hooks failed to install (`language: node must have package.json or additional_dependencies`). This diff changes no Mermaid diagrams.

#169 is not touched. It was found invalid: the lesson-quiz key (Q9 = B, Enterprise > Personal > Project) already matches the docs.

Closes #176
2026-11-12 11:52:56 +01:00
TSMN 33f5c7df2d docs(advanced-features): output style switches apply on the next message (#239)
Since v2.1.251, Claude Code applies a mid-session output style switch on the next message. /clear or a new session was only required before v2.1.251. Style files are still read at startup, so editing one needs a restart.

Fixes the English page and the Korean translation.

Source: https://code.claude.com/docs/en/output-styles
2026-11-12 11:48:23 +01:00
kevinandLuong NGUYEN 701357730d fix: recognize mermaid fences with info strings or trailing space (#240)
## Summary
The website builder, EPUB builder, and Pele mermaid validator only
matched a fence that was exactly `\`\`\`mermaid` followed by a newline.
CommonMark allows a trailing space on the info string, and authors often
write `\`\`\`mermaid title=Overview`. Those diagrams were skipped, so
they were not rendered and were not syntax-checked.

The fence regex now allows optional whitespace after the backticks and
any remainder of the info-string line.

## Tests
- `test_extracts_fences_with_info_string_or_trailing_space` in
`test_check_mermaid.py`
- `test_replaces_fence_with_info_string_or_trailing_space` in
`test_build_website.py`
- `test_extract_mermaid_blocks_with_info_string` in `test_build_epub.py`

---------

Co-authored-by: Luong NGUYEN <luongnv89@gmail.com>
2026-11-12 11:44:28 +01:00
Nguyễn Văn Nam 0630b599ec docs(vi): sync 07-plugins and 10-cli READMEs with English source (#238)
## Description
Bring `vi/07-plugins/README.md` and `vi/10-cli/README.md` to parity with
the English sources (through v2.1.316).

## Type of Change
- [ ] New example or template
- [x] Documentation improvement
- [ ] Bug fix
- [ ] Feature guide
- [ ] Other (please describe)

## Related Issues
N/A

## Changes Made
- 07-plugins: add ~20 missing sections/notes (manifest fields, `bin/` on
PATH, Background Monitors, Mods, marketplace management, `plugin
details`/`eval`, auto-update, deprecated marketplace note)
- 10-cli: add Runtime & Packaging, Restricted Mode, Project State
Cleanup, Agent View, full models and env-var tables, Settings.json keys;
translate leftover English; drop outdated content (`--enable-auto-mode`,
Opus 4.6 model table)

## What to Review
The env-var and flags tables in 10-cli. Links into
`vi/09-advanced-features/README.md` (#các-cài-đặt-được-quản-lý-có-sẵn,
#chế-độ-bash, #các-cài-đặt-bổ-sung-theo-người-dùng) resolve once the 09
PR is merged.

## Files Changed
- `vi/07-plugins/README.md`
- `vi/10-cli/README.md`
- `vi/TRANSLATION_QUEUE.md` (translation dates for the files above)

## Testing
- [ ] Tested locally with Claude Code
- [ ] Verified examples work
- [x] Checked links and references
- [x] Reviewed for typos and clarity

Every translated file mirrors its English source line for line
(headings, code fences, tables). `check_cross_references.py --lang vi`,
`check_markdown_rendering.py`, `check_mermaid.py --strict` (Pele) and
markdownlint pass on the changed files.

## Checklist
- [x] Follows project structure and conventions
- [x] Includes clear documentation/examples
- [x] Code/examples are copy-paste ready
- [x] All links are verified and working
- [x] No sensitive information included (keys, tokens, credentials)
- [ ] Updated relevant README files
- [x] Commit message follows conventional commit format
- [x] No large files (>1MB) added

## Breaking Changes
- [x] No breaking changes

## Additional Notes
Part of a 5-PR series bringing `vi/` to parity with the English sources
at v2.1.316. The PRs merge cleanly in any order; suggested order is
09-advanced-features → 07/10 → 04/05, because 10-cli links to new 09
anchors and 04-subagents links to the new Agent View section in 10-cli.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
2026-11-12 11:10:35 +01:00
Nguyễn Văn Nam 6f66c1ab81 docs(vi): sync 04-subagents and 05-mcp READMEs with English source (#237)
## Description
Bring `vi/04-subagents/README.md` and `vi/05-mcp/README.md` to parity
with the English sources (through v2.1.316).

## Type of Change
- [ ] New example or template
- [x] Documentation improvement
- [ ] Bug fix
- [ ] Feature guide
- [ ] Other (please describe)

## Related Issues
N/A

## Changes Made
- 04-subagents: add missing sections (subagent model env vars,
main-thread frontmatter, forked subagents, concurrency/depth limits,
output scanning, examples 8–9, Observability), update the config-fields
and agent-teams tables
- 05-mcp: add missing content (roots/list, `headersHelper`, `/mcp`,
tool-search bypass, MCP Apps, lifecycle fixes, `mcp
login`/`logout`/`add-json`, MCP Tasks, troubleshooting); headings are
now Vietnamese-only
- Restore two Mermaid diagrams that had been translated, against
`vi/TRANSLATION_NOTES.md`

## What to Review
Updated tables in 04, the heading change in 05 (no other vi file links
to the old anchors). The link to
`../10-cli/README.md#agent-view-claude-agents-v21139` resolves once the
07/10 PR is merged.

## Files Changed
- `vi/04-subagents/README.md`
- `vi/05-mcp/README.md`
- `vi/TRANSLATION_QUEUE.md` (translation dates for the files above)

## Testing
- [ ] Tested locally with Claude Code
- [ ] Verified examples work
- [x] Checked links and references
- [x] Reviewed for typos and clarity

Every translated file mirrors its English source line for line
(headings, code fences, tables). `check_cross_references.py --lang vi`,
`check_markdown_rendering.py`, `check_mermaid.py --strict` (Pele) and
markdownlint pass on the changed files.

## Checklist
- [x] Follows project structure and conventions
- [x] Includes clear documentation/examples
- [x] Code/examples are copy-paste ready
- [x] All links are verified and working
- [x] No sensitive information included (keys, tokens, credentials)
- [ ] Updated relevant README files
- [x] Commit message follows conventional commit format
- [x] No large files (>1MB) added

## Breaking Changes
- [x] No breaking changes

## Additional Notes
Part of a 5-PR series bringing `vi/` to parity with the English sources
at v2.1.316. The PRs merge cleanly in any order; suggested order is
09-advanced-features → 07/10 → 04/05, because 10-cli links to new 09
anchors and 04-subagents links to the new Agent View section in 10-cli.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
2026-11-12 11:10:30 +01:00
Nguyễn Văn Nam 8de1820f66 docs(vi): sync 06-hooks README with English source (#236)
## Description
Bring `vi/06-hooks/README.md` to parity with the English source. The vi
file covered a condensed older version (898 vs 1688 lines).

## Type of Change
- [ ] New example or template
- [x] Documentation improvement
- [ ] Bug fix
- [ ] Feature guide
- [ ] Other (please describe)

## Related Issues
N/A

## Changes Made
- Add missing sections: Narrowing with `if` conditions,
PreModelSwitch/PostModelSwitch, security notes, Complete Configuration
Example, Hook Execution Details, Troubleshooting, Examples 6–8
- Update outdated content (event table order, PreToolUse decisions,
Notification matchers, env vars, output limits) through v2.1.316
- Keep existing faithful translations untouched

## What to Review
New sections and the event/field tables. The file keeps its existing
bilingual heading style ("Tiếng Việt / English").

## Files Changed
- `vi/06-hooks/README.md`
- `vi/TRANSLATION_QUEUE.md` (translation dates for the files above)

## Testing
- [ ] Tested locally with Claude Code
- [ ] Verified examples work
- [x] Checked links and references
- [x] Reviewed for typos and clarity

Every translated file mirrors its English source line for line
(headings, code fences, tables). `check_cross_references.py --lang vi`,
`check_markdown_rendering.py`, `check_mermaid.py --strict` (Pele) and
markdownlint pass on the changed files.

## Checklist
- [x] Follows project structure and conventions
- [x] Includes clear documentation/examples
- [x] Code/examples are copy-paste ready
- [x] All links are verified and working
- [x] No sensitive information included (keys, tokens, credentials)
- [ ] Updated relevant README files
- [x] Commit message follows conventional commit format
- [x] No large files (>1MB) added

## Breaking Changes
- [x] No breaking changes

## Additional Notes
Part of a 5-PR series bringing `vi/` to parity with the English sources
at v2.1.316. The PRs merge cleanly in any order; suggested order is
09-advanced-features → 07/10 → 04/05, because 10-cli links to new 09
anchors and 04-subagents links to the new Agent View section in 10-cli.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
2026-11-12 11:10:25 +01:00
Nguyễn Văn Nam d49bd7c931 docs(vi): translate memory, plugin and checkpoint example files (#235)
## Description
Translate example and template files under `vi/` that were still
verbatim English copies (ja/zh/uk already translate them).

## Type of Change
- [ ] New example or template
- [x] Documentation improvement
- [ ] Bug fix
- [ ] Feature guide
- [ ] Other (please describe)

## Related Issues
N/A

## Changes Made
- `02-memory`: `personal-CLAUDE.md`, `project-CLAUDE.md`,
`directory-api-CLAUDE.md`
- `07-plugins` sub-plugins (devops-automation, documentation,
pr-review): READMEs, 9 agents, 11 commands, 3 documentation templates;
only the `description:` value in frontmatter is translated
- `08-checkpoints/checkpoint-examples.md`
- Footers updated to the current English values

## What to Review
Files stay copy-paste usable: frontmatter keys, `name`/`tools` values,
placeholders and commands are verbatim. Agent titles (e.g. `# Test
Checker`) are kept in English, as in ja.

## Files Changed
- `vi/02-memory/*-CLAUDE.md` (3)
- `vi/07-plugins/{devops-automation,documentation,pr-review}/**` (26)
- `vi/08-checkpoints/checkpoint-examples.md`
- `vi/TRANSLATION_QUEUE.md` (translation dates for the files above)

## Testing
- [ ] Tested locally with Claude Code
- [ ] Verified examples work
- [x] Checked links and references
- [x] Reviewed for typos and clarity

Every translated file mirrors its English source line for line
(headings, code fences, tables). `check_cross_references.py --lang vi`,
`check_markdown_rendering.py`, `check_mermaid.py --strict` (Pele) and
markdownlint pass on the changed files.

## Checklist
- [x] Follows project structure and conventions
- [x] Includes clear documentation/examples
- [x] Code/examples are copy-paste ready
- [x] All links are verified and working
- [x] No sensitive information included (keys, tokens, credentials)
- [ ] Updated relevant README files
- [x] Commit message follows conventional commit format
- [x] No large files (>1MB) added

## Breaking Changes
- [x] No breaking changes

## Additional Notes
Part of a 5-PR series bringing `vi/` to parity with the English sources
at v2.1.316. The PRs merge cleanly in any order; suggested order is
09-advanced-features → 07/10 → 04/05, because 10-cli links to new 09
anchors and 04-subagents links to the new Agent View section in 10-cli.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
2026-11-12 11:10:20 +01:00
Nguyễn Văn Nam 654ddd8050 docs(vi): fully translate 09-advanced-features (#234)
## Description
Fully translate `vi/09-advanced-features/` from the current English
source. The previous `vi/09-advanced-features/README.md` was an outdated
English copy (about 3% Vietnamese) missing eight sections.

## Type of Change
- [ ] New example or template
- [x] Documentation improvement
- [ ] Bug fix
- [ ] Feature guide
- [ ] Other (please describe)

## Related Issues
N/A

## Changes Made
- Retranslate `README.md` from scratch, adding the missing sections:
Monitor Tool, Dynamic Workflows, Cross-Session Messaging, Output Styles,
Status Line, TUI Mode, Trust and Permission Scoping, Agent Teams
- Translate `planning-mode-examples.md` (was untranslated)
- Table of contents and in-file anchors use Vietnamese slugs

## What to Review
Terminology and heading wording (e.g. Auto Mode → Chế Độ Auto, Agent
Teams → Nhóm Tác Nhân). Sample User/Claude dialogues and product UI
labels are intentionally kept in English, matching existing vi files.

## Files Changed
- `vi/09-advanced-features/README.md`
- `vi/09-advanced-features/planning-mode-examples.md`
- `vi/TRANSLATION_QUEUE.md` (translation dates for the files above)

## Testing
- [ ] Tested locally with Claude Code
- [ ] Verified examples work
- [x] Checked links and references
- [x] Reviewed for typos and clarity

Every translated file mirrors its English source line for line
(headings, code fences, tables). `check_cross_references.py --lang vi`,
`check_markdown_rendering.py`, `check_mermaid.py --strict` (Pele) and
markdownlint pass on the changed files.

## Checklist
- [x] Follows project structure and conventions
- [x] Includes clear documentation/examples
- [x] Code/examples are copy-paste ready
- [x] All links are verified and working
- [x] No sensitive information included (keys, tokens, credentials)
- [ ] Updated relevant README files
- [x] Commit message follows conventional commit format
- [x] No large files (>1MB) added

## Breaking Changes
- [x] No breaking changes

## Additional Notes
Part of a 5-PR series bringing `vi/` to parity with the English sources
at v2.1.316. The PRs merge cleanly in any order; suggested order is
09-advanced-features → 07/10 → 04/05, because 10-cli links to new 09
anchors and 04-subagents links to the new Agent View section in 10-cli.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
2026-11-12 11:10:15 +01:00
Luong NGUYEN c2f92c8fa7 feat(i18n): wire Persian (fa) into tooling and sync to v2.1.316 (#241)
Type: chore

## Summary

Follow-up to #208 (Persian translation). It wires `fa/` into the repo
tooling the same way #228 did for Korean, and syncs the translation from
v2.1.310 to v2.1.316.

## Changes

**Tooling** (`feat(i18n)`)
- `build_epub.py`: `--lang fa` builds `claude-howto-guide-fa.epub`.
- `build_website.py`: `--lang fa`; `fa` is in `EXCLUDE_DIRS`, so Persian
pages stay out of the English site.
- CI: the EPUB matrix in `test.yml` now includes `fa`. The
markdown-rendering docstring and test now list `fa`.
- Pre-commit: new `persian-markdown-lint`, `persian-cross-references`,
`persian-mermaid` and `persian-link-check` hooks. `persian-mermaid` is
added to the offline `SKIP=` lists in `.pre-commit-config.yaml`,
`CONTRIBUTING.md` and `CLAUDE.md`.
- `scripts/README.md`: usage text updated.
- Language switchers: `فارسی` added to `vi/`, `zh/`, `uk/`, `ja/` and
`ko/` READMEs and to the landing-page footer.

**Translation** (`docs(fa)`)
- Applies the English changes from #230 (v2.1.316) to the 15 affected
`fa/` files: 192 lines added, 104 removed.
- Moves the misplaced `دسترس‌پذیری (v2.1.310)` Monitor callout in
`fa/09-advanced-features/README.md` to the position it has in English.

## Verification

| Check | Result |
|---|---|
| `fa/` line counts, URLs and code-fence positions vs English `main` |
identical in all files |
| `pre-commit run --all-files`, including the new Persian hooks | pass |
| `pytest scripts/tests/` | 198 passed |
| ruff, mypy, bandit | clean |
| `build_epub.py --lang fa` + `check_epub_diagrams.py` | 61 diagrams, 0
placeholders |
| `build_website.py --lang fa` | builds; English site has no `fa/` pages
|

## Known limitations (not in this PR)

- The EPUB and website templates hard-code `lang="en"` and have no
`dir="rtl"`, so Persian pages render left-to-right. Fixing that means
passing the language into the HTML templates for every locale.
- `fa/.github/` has no `TESTING.md`, `SECURITY_REPORTING.md` or
`pull_request_template.md`; the other locales have all three.
2026-11-12 10:54:28 +01:00
Hassan BehtooeiandSolar Mini4 6d547a154e docs(i18n): add Persian (Farsi) translation (#208)
Type: docs

## Summary

This PR adds a complete Persian (فارسی) translation of the documentation
under `fa/`,
mirroring the English source tree one file for one, following the same
layout already
used by `ja/`, `zh/`, `uk/` and `vi/`.

It is documentation only — no code, scripts or build configuration are
changed.

## What's included

- All 95 Markdown documents under `fa/`, matching the English tree
file-for-file
- Translated GitHub templates under `fa/.github/` (issue templates, PR
template,
  security and testing docs)
- `fa/RELEASE_NOTES.md`, consistent with the other locales

## Translation policy

- **Translated:**&#8203; prose, headings, table headers and cells, list
items, blockquotes,
image alt text, Mermaid diagram labels, and `#` / `//` comments inside
code blocks
- **Kept verbatim:**&#8203; code, JSON/YAML keys and identifier values,
file paths, URLs,
shell commands, flags, environment variables, tool and model names,
version
  numbers, permission-rule syntax, and Markdown link targets
- **Anchors:**&#8203; in-page anchors are Persian, because GitHub
derives them from heading
text. They were generated from the translated headings and verified to
resolve.
- **Relative paths:**&#8203; shifted by one level (`../` → `../../`)
where the extra `fa/`
directory depth requires it, e.g. `LICENSE`, the language switcher, and
shared
  screenshots under `resources/`.

## Verification

- 95 files, line-for-line parity with the English source for every file
- 0 unclosed code fences
- 151 / 151 internal anchors resolve
- 284 / 285 relative links point to existing files — the single
exception is an
illustrative path inside prose that is also absent from the English
source
- No CJK, Hangul, Cyrillic, Thai or Devanagari characters outside code
fences,
except the language-switcher line, where each language name is
intentionally
  written in its own script

## Terminology

For consistency, recurring terms are translated as: agent → ایجنت,
subagent → زیرایجنت,
skill → مهارت, hook → هوک, plugin → پلاگین, slash command → دستور اسلش,
checkpoint → چک‌پوینت, session → نشست, prompt → پرامپت, context → زمینه,
sandbox → سندباکس, worktree → درخت کاری. Product and model names stay in
Latin script.

## Known limitation

`fa/03-skills/doc-generator/SKILL.md` is 3 lines shorter than the
English original.
That source file triggers a content-approval prompt in my environment
that I could
not clear, so I left it untouched rather than guessing at the missing
content.
I am happy to send a small follow-up PR for that one file.

## Request

Could you review and merge? I am glad to adjust terminology, revert any
file you would
rather keep in English, or split this into smaller commits if you prefer
a different
granularity.

---------

Co-authored-by: Solar Mini4 <solar@upstage.ai>
2026-11-12 10:24:00 +01:00
Logic769 2b530b7674 fix(scripts): keep combining marks in heading anchors (#226)
## Summary

`heading_to_anchor()` kept only Python `\w` characters plus spaces,
hyphens and U+200C, so combining marks (Unicode categories Mn, Mc, Me)
were dropped from heading anchors. GitHub keeps them in heading ids, so
a Persian heading such as `مجموعهٔ استاندارد ایموجی` (U+0654 ARABIC
HAMZA ABOVE) got an anchor without the mark. A link that matched GitHub
then failed the `cross-references` hook, while a link with the mark
removed passed even though it is broken on github.com.

The step-2 filter now keeps Mn/Mc/Me characters.
`scripts/build_website.py` carries its own copy of the function,
documented as mirroring the checker, and gets the identical change.

## Type of Change

- [x] Bug fix

## Changes

| File | Change |
|------|--------|
| `scripts/check_cross_references.py` | `heading_to_anchor`: the step-2
`re.sub` keeps characters whose category is in
`COMBINING_MARK_CATEGORIES` (Mn/Mc/Me) instead of dropping them, with a
comment explaining why |
| `scripts/build_website.py` | The same change in its own copy of
`heading_to_anchor` |
| `scripts/tests/test_check_cross_references.py` | U+0654 kept (Persian
from the issue); decomposed Latin, Arabic harakat and Devanagari marks
kept; U+FE0F still stripped because step 1 removes it; `main()` passes a
link that keeps the mark and reports a link without it |
| `scripts/tests/test_build_website.py` | U+0654 kept; website and
checker return the same anchor for Persian with a combining mark,
decomposed Latin and Devanagari headings |

## Verification

Before/after on the three headings named in the issue (U+0654 shown as
`\u0654`):

```text
مجموعهٔ استاندارد ایموجی
  old: مجموعه-...   (mark dropped)
  new: مجموعهٔ-...
فرادادهٔ YAML
  old: فراداده-yaml
  new: فرادادهٔ-yaml
پانوشت فرادادهٔ سند
  old: پانوشت-فراداده-سند
  new: پانوشت-فرادادهٔ-سند
```

No existing anchor moves. Comparing the old and new implementation over
every heading in the repo:

```bash
$ python ../backups/scan_anchor_diff.py      # old() copied from the pre-change code
md files: 478 headings: 13647 changed: 0
```

Tests:

```bash
$ python -m pytest scripts/tests/test_check_cross_references.py scripts/tests/test_build_website.py -q
85 passed, 2 warnings in 10.24s

$ python -m pytest scripts/tests/ -q
1 failed, 197 passed, 2 warnings in 13.63s
```

The one failure
(`test_build_epub.py::TestChapterCollector::test_path_mapping`) is
pre-existing and Windows-only: the test asserts the posix key
`01-test-chapter/README.md` while `ChapterCollector` builds
`01-test-chapter\\README.md` on Windows. That file is untouched by this
PR and the CI job runs on `ubuntu-latest`.

Lint, format, types and security:

```bash
$ ruff check scripts/
All checks passed!
$ ruff format --check scripts/
19 files already formatted
$ mypy scripts/ --ignore-missing-imports
scripts\sync_translations.py:84: error: ...  (2 pre-existing errors, file not touched)
$ bandit -c scripts/pyproject.toml -r scripts/ --exclude scripts/tests/
Total issues (by severity): 0
```

No `.md` files change in this PR, so the five Markdown hooks
(`markdown-lint`, `cross-references`, `mermaid-syntax`, `link-check`,
`markdown-rendering`) are unaffected; the `cross-references` logic they
call is what the new tests cover.

## Notes

The markers are kept for Mn, Mc and Me, matching what GitHub's slugger
keeps (`\p{Mark}`). Variation selectors (U+FE00–U+FE0F) are category Mn
but sit in the emoji ranges stripped in step 1, so emoji-prefixed ids
are unchanged — covered by
`test_heading_anchor_still_strips_em_dash_and_zero_width_joiner`.

Closes #223


[![](https://img.shields.io/badge/powered_by-dsh-4D6BFE?style=flat-square&logo=deepseek&logoColor=white)](https://github.com/deepseek-ai/deepseek-harness)
2026-11-03 10:18:42 +01:00
Luong NGUYEN b30a8f24f1 fix(scripts): fix mypy errors in sync_translations.py (#233)
Type: chore

## Summary

`mypy scripts/ --ignore-missing-imports` reported 2 errors in
`scripts/sync_translations.py:84`. mypy inferred `outdated` as
`list[dict[str, object]]`, so `outdated.sort(key=lambda x:
x["days_diff"])` failed type checking (`arg-type` and `return-value`).

- Annotate `outdated: list[dict[str, Any]] = []` and import `Any`. This
matches the function's existing `list[dict]` return type. Runtime
behavior is unchanged.

## Verification

- `mypy scripts/ --ignore-missing-imports`: no issues in 19 source files
(was 2 errors)
- `ruff check scripts/` and `ruff format --check scripts/`: clean
- `pytest scripts/tests/`: 188 passed
- `python scripts/sync_translations.py --help`: runs

🤖 Generated with [Claude Code](https://claude.com/claude-code)
2026-11-03 09:56:02 +01:00
Luong NGUYEN 19d2e2e828 feat(scripts): add 한국어 to landing page language links (#232)
Type: docs

## Summary

Follow-up to #228 and #231. The website landing page didn't link to the
Korean translation.

- `scripts/website_templates/landing.html.j2`: add `한국어`
(`ko/README.md`) to the footer Languages column, after Українська
- Bump the hero "Languages" stat from 5 to 6 (English plus vi, zh, ja,
uk, ko)

## Verification

- `pytest scripts/tests/test_build_website.py`: 63 passed

🤖 Generated with [Claude Code](https://claude.com/claude-code)
2026-11-03 00:00:47 +01:00
Luong NGUYEN ec571987f8 docs(i18n): add 日本語 and 한국어 to vi, zh, uk language switchers (#231)
Type: docs

## Summary

Follow-up to #228. The vi, zh and uk READMEs didn't link to the Japanese
or Korean translations.

- `vi/README.md`, `uk/README.md`: append `日本語` and `한국어` to the existing
switcher line
- `zh/README.md`: it had no switcher, so add one after the badges, in
the same format as uk

## Verification

- `markdownlint` on the three files: clean
- `check_cross_references.py`: 581 files, all valid

🤖 Generated with [Claude Code](https://claude.com/claude-code)
2026-11-02 23:52:46 +01:00
efbe356d08 docs(ko): Korean translation synced to v2.1.310 (supersedes #150) (#228)
## Summary

Adds a complete Korean translation under `ko/`, synced to **Claude Code
v2.1.310** (upstream `b968f42`), and wires Korean into the repo tooling
the same way Japanese is.

This builds on #150 by @minhee-seo (her original commit is kept, with
co-author credit) and addresses every point from your review there:

- [x] Version badges/footers now match English (v2.1.310), not v2.1.160
- [x] Permission mode rename `default` → `manual` (v2.1.200) — config
values copied exactly where English still shows `default`
- [x] `/agents` wizard section removed per v2.1.198 (ask Claude / edit
`.claude/agents/` directly)
- [x] New content since v2.1.160: `/dataviz`, `${CLAUDE_PROJECT_DIR}`,
Sonnet 5 / Opus 5.5 / Fable, 33 hook events, Mods, MCP WebSocket/Tasks,
and everything else through v2.1.310

## What's in it

**Translation (`ko/`)**
- 90 Markdown files mirroring the English tree, including files #150 was
missing or had left in English (`06-hooks/README.md`,
`claude_concepts_guide.md`, `CLAUDE.md`, `resources/*`, plugin READMEs)
- Every file has `i18n-source` / `i18n-source-sha` / `i18n-date` headers
(placed after frontmatter so example SKILL.md/agent files stay valid)
for future re-syncs
- `ko/TRANSLATION_NOTES.md`: glossary + style guide (합니다체, code/Mermaid
kept verbatim, comments translated)
- Stale non-Markdown copies from #150 (old scripts/JSON/workflows under
`ko/`) removed; docs link to the English originals, as `zh/` does

**Tooling** (mirrors the Japanese setup)
- `.pre-commit-config.yaml`: `korean-markdown-lint`,
`korean-cross-references`, `korean-mermaid`, `korean-link-check`
- `build_epub.py` / `build_website.py`: `--lang ko`; `ko` added to the
English site's excluded dirs (otherwise Korean pages would leak into the
English site)
- CI EPUB matrix + markdown-rendering scope include `ko`;
`CONTRIBUTING.md` / `CLAUDE.md` SKIP lists updated
- `한국어` added to the English and Japanese language switchers

## Verification

| Check | Result |
|---|---|
| Structure vs English (headings, code blocks, Mermaid, table rows, per
file) | 90/90 identical |
| Non-comment code lines identical to English | 90/90 |
| `markdownlint` (whole repo) | 0 issues |
| `check_cross_references.py` + cross-file anchor check | pass (3
anchors in `LEARNING-ROADMAP.md` → `README.md` are broken in English
too) |
| `check_mermaid.py --strict` | 351 blocks rendered |
| `check_links.py` | 237 external URLs reachable |
| `build_epub.py --lang ko` + `check_epub_diagrams.py` | 54 diagrams, 0
placeholders |
| `build_website.py --lang ko` | builds; English site contains no `ko/`
pages |
| pytest / ruff / mypy / bandit | pass (188 tests) |

An independent review pass (separate from the translation pass) checked
meaning, omissions, code fidelity and links on the largest modules; its
findings are fixed in the last commit.

Translation and sync were AI-assisted (Claude Code), following
`ko/TRANSLATION_NOTES.md`. Feedback from Korean readers is very welcome.

Supersedes #150.

---------

Co-authored-by: seominhee <minheee07@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Luong NGUYEN <luongnv89@gmail.com>
2026-11-02 23:41:23 +01:00
Nguyễn Văn Nam 5ac9ab4f4d fix(vi): correct Vietnamese spelling errors in translations (#229)
## Description
Fix Vietnamese spelling errors in the `vi/` translation: missing or
wrong diacritics, truncated words, swapped word order, and a stray
Chinese fragment. Prose only. No code, links, or anchors were changed.

## Type of Change
- [x] Documentation improvement

## Changes Made
- Truncated words restored: `Cụ Theo` → `Cụ Thể Theo`, `cách tiếp` →
`cách tiếp cận`, `Tính Nâng Cao` → `Tính Năng Nâng Cao`, `Khả Đọc` →
`Khả Năng Đọc`, `Nghiên` → `Nghiên cứu`, `Ủy Quy` → `Ủy Quyền`, `CLI
cốt` → `CLI cốt lõi`, `Khử Trùng Server` → `Khử Trùng Lặp Server`, …
- Wrong diacritics / letters: `Buột` → `Buộc`, `Ngọc` → `Ngữ`, `Vấn Đế`
→ `Vấn Đề`, `Truy Cấp` → `Truy Cập`, `Cải Tiện` → `Cải Tiến`, `Ứng Xuất`
→ `Ứng Xử`, `Hướng Dạng` → `Hướng Dẫn`, `Khía Cát` → `Khía Cạnh`, `Thực
Te` → `Thực Tế`, …
- Swapped word order: `gói đóng` → `đóng gói`
- Stray Chinese fragment: `bạn发现` → `bạn phát hiện`

## What to Review
Several changed headings (e.g. `Quy Tắc Cụ Thể Theo Đường Dẫn`, `Ủy
Quyền Tự Động`) change their auto-generated anchors. I checked that no
`#anchor` links in `vi/` point to them.

## Files Changed
19 files under `vi/`, 56 lines changed (+56/−56).

## Testing
- [x] Reviewed for typos and clarity
- [x] Checked links and references (no anchor targets affected)

## Checklist
- [x] Follows project structure and conventions
- [x] Commit message follows conventional commit format

🤖 Generated with [Claude Code](https://claude.com/claude-code)
2026-11-02 22:33:51 +01:00
Luong NGUYEN 11b2ae302a docs: sync to Claude Code v2.1.316 (#230)
Type: docs

## Summary

Syncs the tutorial, its vi/ja/zh/uk translations, and the two learning
skills to **Claude Code 2.1.316** (previous sync: v2.1.310, #209). The
audit covered the 2.1.311–2.1.316 changelog (Oct 26–31, 2026), the 151
official docs pages that changed since Oct 26, and news since then.

45 files changed. By priority: P0 3 · P1 41 · P2 5 · P3 33 (3 more
deferred) · P4 8.

## Notable fixes

- **Broken example (P0):** the `10-cli` CI review example used
`--max-turns 1`. The final reply now counts as a turn, so the run ends
with `error_max_turns` before writing a review. It now uses `--max-turns
5` (EN + vi/ja/uk).
- **Learning skills (P0):** the lesson-quiz L09 Q5 explanation said
`ultrathink` never changes the effort level, and a self-assessment
checkpoints line said outside edits are never touched by a restore. Both
are corrected. No graded answer changed, and all 100 `Review` pointers
still resolve. Versions bumped: lesson-quiz 1.6.4, self-assessment
2.5.7.
- **Ultra plan:** Max 20x was renamed Ultra on Oct 30, 2026, so Ultra is
added to every Pro/Max plan list.
- **Plugins:** examples move off the deprecated `claude-code-plugins`
demo marketplace to `claude-plugins-official`.
- **Models and effort:**
  - Opus 4.8 fast mode is marked deprecated (removal Nov 30, 2026).
  - `ultrathink` now raises its turn to `xhigh`.
- Effort precedence, `auto`/`unset`, and skill `effort` scope are
updated.
- **Behavior changes:**
  - Idle compaction runs after "about an hour".
- Critical-path `rm` adds
`CLAUDE_CODE_EVEN_MORE_DANGEROUSLY_SKIP_PERMISSIONS`, and the
`DISABLE_DANGEROUS_RM_TIMEOUT` description is fixed.
  - The `/permissions` tab is now "Recently blocked".
  - Up to 24 prompt/agent hooks run at once.
  - Blocked agent-team tasks can still be assigned.
- A checkpoint restore can overwrite outside edits to files the session
edited.
  - An npm 12 postinstall caveat is added.
  - The Desktop worktree claim is fixed.
- **Changelog-vs-docs conflicts (P2):** `safety_event` is no longer
sent, subagent `autoCompactWindow`, subagent token cost, CLAUDE.md
"architecture" advice, and the `bypassPermissions` wording.

Every changed file has a refreshed footer (Nov 1, 2026 / 2.1.316, with
localized labels in translations).

## Not in this PR

- Deferred P3s: mods render-failure note, a duplicate env-var group in
`09`, `permissions.blockWritesOutsideWorkingDirectories` (not in the
official docs yet).
- `**Compatible Models**` footers still list no 5.5 models. That is a
repo-wide convention left for a separate decision.

## Validation

`pre-commit run --all-files` cannot start on the authoring machine
because `python3.11` is not installed. I ran it with a config copy
pinned to `python3.12`, plus `scripts/check_mermaid.py --strict`:
- Every hook passed.
- 254 external URLs are reachable.
- Pele rendered all 286 Mermaid blocks.

The baseline before the edits was also all green.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
2026-11-02 06:48:55 +01:00
Luong NGUYEN b968f42986 fix(scripts): keep ZWNJ in heading anchors (#222)
Closes #219

## Summary

`heading_to_anchor()` in `scripts/check_cross_references.py` removed
U+200C ZERO WIDTH NON-JOINER (ZWNJ) from heading anchors, but GitHub
keeps it in heading ids. Persian uses ZWNJ inside ordinary words, so a
correct in-page link to a Persian heading failed the `cross-references`
hook and the "Cross-reference Check" CI job, while a link with the ZWNJ
removed passed the checker even though it is broken on github.com. The
checker now keeps U+200C. `scripts/build_website.py` has its own copy of
the function, documented as mirroring the checker, and gets the
identical change. All other characters are handled as before.

## Approach

Keep U+200C in heading anchors (checker plus website copy). The function
dropped ZWNJ in two places, so both change:

1. The step-1 class that strips `U+2000–U+206F` is split into
`U+2000–U+200B` and `U+200D–U+206F`, so it skips U+200C.
2. The step-2 filter `[^\w\s-]` becomes `[^\w\s\U0000200C-]`. ZWNJ is
category Cf, which neither `\w` nor `\s` matches, so without this step 2
would still remove it.

ZWJ (U+200D), the em dash and every other General Punctuation character
are still stripped.

## Decision Record

- **Root cause:** `heading_to_anchor()` removes U+200C twice: the step-1
character class strips all of U+2000–U+206F (General Punctuation, which
contains ZWNJ), and the step-2 `[^\w\s-]` filter strips any Cf
character. GitHub keeps ZWNJ in heading ids. Checked against the
rendered `fa/STYLE_GUIDE.md` on PR #208's branch: 24 of its 62 distinct
heading ids (48 of the 124 `user-content-` ids) contain U+200C, e.g.
`نام‌گذاری-فایل-و-پوشه`. Before this change the checker's anchors missed
27 of those 62 ids, 24 of them because of ZWNJ.
- **Options considered:** Option 1 — Keep U+200C in heading anchors
(checker plus website copy)
- **Options rejected:** n/a — trivial change, direct plan (light
profile)
- **Selected option:** Option 1 — Keep U+200C in heading anchors
(checker plus website copy)
- **Residual risk:**
- **Only U+200C changes.** The rendered ids are evidence for ZWNJ and
the em dash only. On the rendered `CHANGELOG.md` on `main`, all 96
heading ids (19 with an em dash) match both the old and the new output.
ZWJ (U+200D) and the rest of U+2000–U+206F are still stripped, because
no rendered page here shows GitHub keeping them.
- **U+0654 is still dropped (out of scope).** U+0654 ARABIC HAMZA ABOVE
is a combining mark. Python's `\w` drops it but GitHub keeps it. With
this change, 59 of the 62 headings in `fa/STYLE_GUIDE.md` match GitHub's
ids, and the 3 that still differ all contain U+0654. Links to those
headings will still disagree with GitHub. This needs a separate issue.
- **PR #208 must put the ZWNJ back.** That branch removed the ZWNJ from
78 anchors (c890c24) to pass the old checker. Once this merges, those
ZWNJ-less links are reported as broken, which is correct (they are
broken on GitHub), so they need the ZWNJ restored.
- **Website build and Persian.**
`scripts/build_website.py:heading_to_anchor` had the same ZWNJ
stripping. It gets the identical change because `scripts/README.md` says
the website uses "the exact algorithm in
`check_cross_references.heading_to_anchor`". Also, the English website
build excludes `vi/`, `zh/`, `ja/` and `uk/` but not `fa/`, so once
`fa/` lands its pages would be built with ids missing the ZWNJ while
their links keep it. `fa` is not a website locale (`--lang` choices: en,
vi, zh, ja, uk). Whether `fa/` should be excluded from the English build
or added as a locale is not part of this fix.
- **Effort profile:** light — fast path (pre-work Effort S); synthesis
skipped, QA capped at 1 cycle
- **Reproduction:** `python -m pytest
scripts/tests/test_check_cross_references.py
scripts/tests/test_build_website.py::TestHeadingToAnchor -q` confirmed
red on unmodified code for the stated reason (`assert
'نامگذاری-فایل-و-پوشه' == 'نام‌گذاری-فایل-و-پوشه'`; main() returned 1
for the ZWNJ link and 0 for the ZWNJ-less link; 4 failed) → regression
tests
`scripts/tests/test_check_cross_references.py::test_heading_anchor_keeps_zero_width_non_joiner`,
`::test_in_page_link_keeping_zwnj_passes`,
`::test_in_page_link_missing_zwnj_is_reported`

Analyzed at: `main @ 9c44df1` (2026-10-28)

## Changes

| File | Change |
|------|--------|
| `scripts/check_cross_references.py` | `heading_to_anchor`: skip U+200C
in the step-1 strip range and keep it in the step-2 filter, with a
comment explaining why |
| `scripts/build_website.py` | The same change in its own copy of
`heading_to_anchor` |
| `scripts/tests/test_check_cross_references.py` | ZWNJ kept; em dash
and ZWJ still stripped; vi/zh/uk/ja anchors unchanged (parametrized);
`main()` passes a link that keeps the ZWNJ and reports a link without it
|
| `scripts/tests/test_build_website.py` | ZWNJ kept; website and checker
return the same anchor for Persian, em-dash, ZWJ and Vietnamese headings
|

## Test Results

- Unit tests: 188 passed (`pytest scripts/tests`; 13 new cases)
- Integration tests: 2 `main()`-level cases included in the count above
- E2e tests: skipped (no e2e framework)
- Build: `pre-commit run --all-files` passed, with
`SKIP=mermaid,vietnamese-mermaid,japanese-mermaid` (a local pre-commit
problem, #210/#211, so the Mermaid hooks did not run; no Mermaid or
Markdown files changed). `ruff check`, `ruff format --check` and
`bandit` are clean. `mypy` reports 2 errors in
`scripts/sync_translations.py:84`, a file this PR does not change; the
`mypy-type-check` hook passes.
- QA cycles: 1
- Test integrity: removed or weakened: none (the existing
`TestHeadingToAnchor` and checker tests pass unedited)

## Acceptance Criteria Verification

| Criterion | Status | Evidence |
|-----------|--------|----------|
| For a heading that contains U+200C, the checker's anchor matches
GitHub's rendered heading id, ZWNJ included | pass | Verified red:
reproduction command above → fixed →
`test_heading_anchor_keeps_zero_width_non_joiner`. All 24 ZWNJ headings
of the rendered `fa/STYLE_GUIDE.md` (#208 branch) now match GitHub's
ids. Sensitive: the test fails when either half of the fix is reverted,
then passes again once restored |
| An in-page link whose anchor keeps the ZWNJ passes the
`cross-references` hook and the "Cross-reference Check" CI job | pass |
Verified red: reproduction command above → fixed →
`test_in_page_link_keeping_zwnj_passes` (`main()` == 0). The hook and
the CI job both run this same `main()`. Sensitive: fails when either
half of the fix is reverted |
| A link whose anchor has the ZWNJ removed is reported as broken | pass
| Verified red: reproduction command above → fixed →
`test_in_page_link_missing_zwnj_is_reported` (`main()` == 1, "broken
anchor"). Sensitive: fails when either half of the fix is reverted |
| Existing locales (vi, zh, uk, ja) still pass | pass |
`test_heading_anchor_unchanged_for_existing_locales` (vi/zh/uk/ja). No
`.md` in the repo contains U+200C, and none of the repo's 13,666
headings gets a different anchor. The `cross-references`,
`vietnamese-cross-references` and `japanese-cross-references` hooks
pass. Sensitive: a broader fix that also keeps U+2000–U+206F fails the
em-dash, ZWJ and ja cases |
2026-10-29 01:16:48 +01:00
Luong NGUYEN 9c44df16ee docs(CLAUDE): point CLAUDE.md at committed files only (#215) (#218)
Closes #215

## Summary

`CLAUDE.md` sent contributors and learners to two paths that a fresh
clone does not contain: `.claude/CLAUDE.md` (gitignored by
`.gitignore:47`, never tracked) for "stack/commands", and `openspec/`
(gitignored by `.gitignore:81`) in the Architecture map. The stack/setup
pointer now links to the committed `CONTRIBUTING.md` section *3. Set Up
Your Environment*. The `openspec/` bullet is gone, and the learner note
now says `CLAUDE.local.md` is a file the learner creates. Every path
`CLAUDE.md` references is now tracked or clearly framed as local.
`.gitignore` is unchanged.

## Approach

Direct minimal plan (light profile), `CLAUDE.md` only. Line 5 replaces
the backticked `.claude/CLAUDE.md` with relative links to
`CONTRIBUTING.md#3-set-up-your-environment` and `STYLE_GUIDE.md`.
`scripts/check_cross_references.py` strips inline code spans, so
backticked paths were never validated. Real links are validated, so the
cross-references hook now guards this pointer. The day-to-day commands
stay in `CLAUDE.md`'s own *Critical commands* section. The `openspec/`
Architecture-map bullet is removed. In *If the user is learning*, only
the `CLAUDE.local.md` wording changed.

## Decision Record

- **Root cause:** f925478 condensed `CLAUDE.md` and moved its
stack/commands content into `.claude/CLAUDE.md`, which `.gitignore`
excludes, so that content was never committed. 31e779c untracked
`openspec/` but left the Architecture-map entry. Both references were
backticked inline code, which the cross-references hook skips, so
neither failure was caught.
- **Options considered:** Option 1 — repoint/remove the references in
`CLAUDE.md` (direct minimal plan, light profile)
- **Options rejected:** n/a — trivial change, direct plan (light
profile). Un-ignoring `.claude/CLAUDE.md`/`openspec/` was ruled out:
they are local maintainer files on purpose.
- **Selected option:** Option 1 — repoint/remove `CLAUDE.md` path
references
- **Residual risk:** The `#3-set-up-your-environment` anchor is not
validated by the hook (it checks that the target file exists, not
anchors in other files). It was checked by hand against the checker's
`heading_to_anchor`. Renaming that heading would break the anchor
silently. Out of scope: the `CONTRIBUTING.md` hook table still lists
`build-epub` rather than `markdown-rendering`.
- **Effort profile:** light — fast path (pre-work Effort S); synthesis
skipped, QA capped at 1 cycle
- **Reproduction:** `for p in .claude/CLAUDE.md openspec/; do git
ls-files -- "$p" | head -1; done; git check-ignore -v .claude/CLAUDE.md
openspec/` confirmed red for the stated reason (both untracked, matched
by `.gitignore:47` and `.gitignore:81`) → regression test "manual — no
seam" (the cross-references hook now guards the line-5 links)

Analyzed at: `fix/215-claude-md-references-to-gitignored-files @
48a8a40` (2026-10-28)

## Changes

| File | Change |
|------|--------|
| `CLAUDE.md` | Line 5: link to
`CONTRIBUTING.md#3-set-up-your-environment` + `STYLE_GUIDE.md` instead
of the gitignored `.claude/CLAUDE.md`. Drop the `openspec/` bullet. Say
that `CLAUDE.local.md` is learner-created |

## Test Results

- Unit tests: 175 passed (`pytest scripts/tests -q`)
- Integration tests: skipped (none for docs)
- E2e tests: skipped (none)
- Build: passed (`pre-commit run --all-files`: all hooks passed;
`mermaid`, `vietnamese-mermaid`, `japanese-mermaid` skipped locally via
`SKIP=`, no diagram changed; EPUB build not triggered: `test.yml` only
runs on `scripts/**` and dependency changes)
- QA cycles: 1
- Test integrity: none removed or weakened

## Acceptance Criteria Verification

| Criterion | Status | Evidence |
|-----------|--------|----------|
| Every file or directory path referenced in `CLAUDE.md` exists in a
fresh clone, or the reference has been removed | pass | Verified red:
`git ls-files`/`git check-ignore` on `.claude/CLAUDE.md`, `openspec/` →
fixed → manual repro, no seam. All remaining paths are in `git
ls-files`. `CLAUDE.local.md` and the venv dirs are framed as
user-created/local |
| The stack/commands guidance a contributor needs can be reached from
committed files | pass | `CLAUDE.md:5` → `CONTRIBUTING.md:69` *3. Set Up
Your Environment* (uv, Node.js >= 20, pre-commit); commands in
`CLAUDE.md` *Critical commands*. Sensitive: `check_cross_references.py`
fails with link target mutated to `CONTRIBUTNG.md` → restored green |
| In a fresh clone, `CLAUDE.md` no longer points to `.claude/CLAUDE.md`
or `openspec/` while those paths are missing | pass | `grep -n
'\.claude/CLAUDE\.md\|openspec' CLAUDE.md` → no match |
| `pre-commit run --all-files` passes on the change | pass | Exit 0. The
3 Mermaid hooks were skipped locally (`SKIP=`, local pre-commit issues
#210/#211); no Mermaid diagram changed, and CI runs them |
2026-10-29 00:49:25 +01:00
Luong NGUYEN 3e29d0fcfb fix(memory): describe CLAUDE.local.md as supported in translations (#216) (#217)
Closes #216

## Summary

Five translated passages still said `CLAUDE.local.md` was missing from
the official docs and might be a legacy feature. This contradicts the
English lesson and https://code.claude.com/docs/en/memory. The PR
rewrites only those five sentences and table cells so each one says what
`02-memory/README.md` says: `CLAUDE.local.md` is officially supported,
holds personal project-specific preferences, lives at the project root,
loads alongside `CLAUDE.md`, and belongs in `.gitignore`.

## Approach

Minimal diff: one line per file, in each file's existing wording,
terminology and table format (for example, `uk/CATALOG.md` keeps its
spelling "проект"). No sections were retranslated. Footers were not
bumped, because the repo bumps them only on sync runs (#198 is an
example).

## Decision Record

- **Root cause:** The vi/zh/uk/ja translations were made while
`CLAUDE.local.md` was briefly missing from the official memory page.
They kept the "not in the official docs as of March 2026, may be legacy"
caveat after the English lesson and `CATALOG.md` were corrected.
`uk/02-memory/README.md` and `ja/02-memory/README.md` had already been
fixed. `vi/02-memory/README.md` and all four translated `CATALOG.md`
rows had not.
- **Options considered:** Option 1 — fix only the five stale passages;
Option 2 — also extend the shortened `zh/02-memory/README.md` with a
`CLAUDE.local.md` note
- **Options rejected:** Option 2 — `zh/02-memory/README.md` makes no
wrong claim about `CLAUDE.local.md`; it just never describes it. Filling
that in means retranslating a section, which is outside this issue's
minimal-diff scope.
- **Selected option:** Option 1 — fix only the five stale passages
- **Residual risk:** `zh/02-memory/README.md` is still a shortened
translation with no `CLAUDE.local.md` note. It is incomplete, not wrong.
- **Effort profile:** light — fast path (pre-work Effort S); synthesis
skipped, QA capped at 1 cycle
- **Reproduction:** `grep -rn "local\.md" vi zh uk ja | grep -iE
"legacy|レガシー|遗留|không được đề cập"` confirmed red on `48a8a40` (5 hits,
the exact locations in the issue) for the stated reason → 0 hits after
the fix (manual — no seam; docs-only change)

Analyzed at: `fix/216-translations-that-call-claude-local-md @ 48a8a40`
(2026-10-28)

## Changes

| File | Change |
|------|--------|
| `vi/02-memory/README.md` | Replace the "not in the official docs /
legacy" note with the supported-feature note mirroring the English line
233 |
| `vi/CATALOG.md` | Rewrite the `CLAUDE.local.md` row description
(supported, personal project preferences, loads with `CLAUDE.md`, add to
`.gitignore`) |
| `zh/CATALOG.md` | Same row fix in Chinese |
| `uk/CATALOG.md` | Same row fix in Ukrainian |
| `ja/CATALOG.md` | Same row fix in Japanese |

## Test Results

- Unit tests: 175 passed (`pytest scripts/tests -q`)
- Integration tests: skipped
- E2e tests: skipped
- Build: passed — `pre-commit run --all-files` passed every hook
(markdown-lint, cross-references, link-check, markdown-rendering, plus
the Vietnamese and Japanese variants). The three mermaid hooks were
skipped locally (`SKIP=mermaid,vietnamese-mermaid,japanese-mermaid`)
because local pre-commit is broken (#210, #211). This PR changes no
diagram.
- QA cycles: 1 (fresh reviewer: PASS, 0 findings)
- Test integrity: removed or weakened: none

## Acceptance Criteria Verification

| Criterion | Status | Evidence |
|-----------|--------|----------|
| No translated page describes `CLAUDE.local.md` as unofficial, absent
from the official docs, or legacy, including the five reported locations
| pass | Verified red: `grep -rn "local\.md" vi zh uk ja \| grep -iE
"legacy\|レガシー\|遗留\|không được đề cập"` → 5 hits on `48a8a40` → fixed → 0
hits on this branch (manual repro, no seam). Every remaining vi/zh/uk/ja
mention was checked by hand. |
| Every translation describes `CLAUDE.local.md` the same way as
`02-memory/README.md`: fully supported, personal project-specific
preferences, add to `.gitignore` | pass | `vi/02-memory/README.md:252`,
`vi/CATALOG.md:430`, `zh/CATALOG.md:434`, `uk/CATALOG.md:440`,
`ja/CATALOG.md:442` now say this. `uk/02-memory/README.md:243` and
`ja/02-memory/README.md:244` already did. Wording was checked against
https://code.claude.com/docs/en/memory. `zh/02-memory/README.md` has no
`CLAUDE.local.md` description at all (see Residual risk). |
| `pre-commit run --all-files` passes on the edited translated pages |
pass | `pre-commit run --all-files` exits 0. Mermaid hooks were skipped
locally (#210/#211); no diagrams changed. |
2026-10-29 00:48:23 +01:00
Lukasandluongnv89 48a8a40f3b docs(CLAUDE): tell Claude the user may be a learner, not a contributor (#214)
## What

- `CLAUDE.md`: new **If the user is learning** section. Unless the user
asks for a change to the repo, Claude treats the rules as maintainer
conventions, not the user's preferences, and points them to
`CLAUDE.local.md`. Once they ask for a change, commit or PR, every rule
applies in full.
- `.gitignore`: add `CLAUDE.local.md`, so learners can use it without a
dirty `git status`.

## Why

Learners cloning the repo to run `/self-assessment` or `/lesson-quiz`
currently get steered toward maintainer work (lesson edits, CLAUDE.md
fixes, commit-rule hooks).

## Checks

`pre-commit run --files CLAUDE.md .gitignore` passes. Mermaid hooks
skipped: no diagrams changed.

Closes #213

---------

Co-authored-by: luongnv89 <luongnv89@users.noreply.github.com>
2026-10-28 23:52:41 +01:00
Luong NGUYEN cd3d4ebaf6 chore(idd): migrate .gitissue.yml to .idd.yml (#212)
Type: chore

## Summary

Moves the repo's IDD configuration from the legacy `.gitissue.yml` to
`.idd.yml`, generated by `/init-idd` on its merge path.

- **`.idd.yml` (new):** the docs-PR traceability exemption is kept
exactly as it was (`review.traceability_exempt_pattern` and
`review.traceability_exempt_labels`). The detected stack defaults are
added: Python/pytest for `scripts/`, a medium-sized repo, the existing
`.github/ISSUE_TEMPLATE/`, `resolve.approval_gate: auto`, `auto_test:
true` (300 s), `review.auto_merge: false`, `check_ci: true`,
`max_cycles: 3`, autopilot `balanced` with `max_parallel: 1`, and
`triage.stale_threshold_days: 14`.
- **`.gitignore`:** ignores `.idd/`, mirroring the existing `.gitissue/`
entry; this also covers `.idd/cache/`.
- **`.gitissue.yml`:** removed, because `.idd.yml` replaces it.

Why: the IDD skills couldn't read the legacy file on hosts without
PyYAML (`gi-config.py` exit 4) and fell back to defaults. `.idd.yml` is
the current config name.

Related repo setting, already applied: merges are now squash-only (merge
commits and rebase merges are off), and the squash commit uses the PR
title and body (`PR_TITLE` / `PR_BODY`), as IDD's durable-memory binding
requires.

## Verification

- `.idd.yml` parses with PyYAML 6.0.3, and the preserved `review.*`
values compare equal to the old `.gitissue.yml`.
- No docs or scripts were changed.
2026-10-27 07:49:36 +01:00
Luong NGUYEN ba721a3abc docs: sync to Claude Code v2.1.310 (#209)
Type: docs

## Summary

Syncs the tutorials, translations, and learning skills from Claude Code
v2.1.302 to **v2.1.310**: the 2.1.303–2.1.310 changelog plus the
official docs pages reworded since Oct 18. 64 files: English 17, ja 13,
uk 12, vi 10, zh 7, learning skills 5.

**Breaking (P0)**
- `claude ultrareview` CI example: needs workspace trust since v2.1.309,
so the copy-paste step always failed. It now passes `--trust-workspace`,
and the exit-code note is corrected (1 = failed or untrusted, not
"findings reported").
- Quiz Lesson 08 Q4 graded an answer that said all Bash file changes
escape checkpoints. Rewritten per the current rule: files Claude already
edited are restored even after later Bash changes; `sed -i` counts as
Bash since v2.1.309. `Correct` stays B.

**Outdated (P1)**
- Tool search is on behind a custom `ANTHROPIC_BASE_URL` gateway since
v2.1.304 (05-mcp said the reverse; 10-cli said off on Vertex).
- Fork mode is on everywhere since v2.1.302;
`CLAUDE_CODE_FORK_SUBAGENT=0` turns it off. A plan-mode parent keeps
subagents in plan mode; teammate plans are auto-approved.
- `claude -p` / Agent SDK runs with no permission mode start in Manual
mode and deny calls that need approval.
- Routines are now "cloud scheduled tasks (formerly routines)"; `/loop`
tasks are session-scoped.
- Checkpoints: Bash changes to already-edited files are tracked;
subagent edits to those files are restored.
- `axScreenReader` is honored only from user, managed or `--settings`
files since v2.1.305.
- Hooks `"defer"` ends the turn and works only with `-p`.
- Managed CLAUDE.md can't be skipped with `claudeMdExcludes`, but a
session with CLAUDE.md loading off skips it; on-demand CLAUDE.md/rules
files are truncated past a per-file limit since v2.1.309.
- `CLAUDE_CODE_AUTO_MODE_MODEL=claude-sonnet-5-5` was silently ignored;
now `claude-sonnet-4-6`. Desktop PR toggles renamed **Auto-fix** /
**Merge when ready**.

**Conflicts resolved (P2)**
- `claude -p "Run all tests…"` examples append `--permission-mode auto`
(QUICK_REFERENCE gets a comment pointing to `--allowedTools` instead).
- DBHub: README template list and the 09 `mcp-postgres` example point
`DATABASE_URL` at a SELECT-only user; JSON templates unchanged.
- "Always in the background" in desktop/VS Code → "while fork mode is on
(the default)"; critical-path `rm` isn't sent to the classifier since
v2.1.281.

**New (P3)**, each a row or a sentence beside existing siblings, English
only:
- New `###` sections: "Let Claude Wait for a Subagent" (04), "MCP Tasks
(public beta, v2.1.304+)" (05), "Plugin Shows Version `unknown`" (07).
- Commands: `/schedule`, `/auto-mode-setup`, `/artifacts` keys,
`/claude-api api-version` / `managed-agents-secure`, `/design consent` /
`revoke`, `/usage` fix shortcut, `/doctor` Usage check.
- v2.1.304–2.1.310 env vars, settings, limits, OTel events, monitor
availability, mods API notes, MCP timeouts and retry hints.

**Learning skills**
- lesson-quiz 1.6.3: L08 Q4 (above); explanations for L02 Q1/Q9, L04
Q6/Q10, L05 Q3, L09 Q6/Q9; README fences get `text`. No `Correct` letter
or Review pointer changed.
- self-assessment 2.5.6: Checkpoints, CLI, MCP and Memory
recommendations, edited identically in `SKILL.md` Step 4 and
`topic-recommendations.md`. No scoring change.

**Please review**
- New ja, zh and uk wording would benefit from a native-speaker read.

**Not in this PR**
- Example plugins whose hook/MCP files never load; `/advisor` on Claude
Platform on AWS (docs still contradict the changelog); 21 undocumented
commands and the translation backfill.
- Translated QUICK_REFERENCE files still use `claude --enable-auto-mode
-p`.
- The "20 bundled skills" count in CATALOG.md and 01-slash-commands is
now two short of its table.

## Test plan

- [x] `pre-commit run --all-files`: all hooks pass, same as the pre-edit
baseline. Run with a config copy pinned to `python3.12` because
`.pre-commit-config.yaml` pins `python3.11`, which this machine lacks;
Mermaid hooks skipped there.
- [x] `python scripts/check_mermaid.py --strict`: Pele rendered 286
blocks.
- [x] link-check: 247 external URLs reachable.
- [x] Every changed file carries the 2.1.310 footer (localized labels
and dates in translations); both `SKILL.md` versions bumped.

🤖 Generated with [Claude Code](https://claude.com/claude-code)


## Review follow-ups

Two `issue-pr-review --review-only` rounds found nothing blocking. The
nits they raised were fixed on this branch:

- 8b5a5e3: `--permission-mode auto` on the headless "Run all tests"
examples (en/ja/uk/vi 09); ultrareview exit code 130 (10-cli); fork-mode
wording in 04-subagents; MCP-task requirements for non-interactive runs
(05-mcp).
- d0daa29: split the semicolon chains in 04-subagents and 05-mcp; the
QUICK_REFERENCE CI comment now points to `--permission-mode auto` (all 5
languages); zh 09 headless example.

Local pre-commit tooling gaps found during review: #210 and #211.
2026-10-27 07:28:59 +01:00
Luong NGUYEN 188f468893 docs(mcp): make the database MCP example read-only by default (#200)
* docs(mcp): make the database MCP example read-only by default

- add a warning and read-only setup (SELECT-only user + dbhub.toml) to the
  database example in 05-mcp/README.md and its ja, uk, vi translations
- drop the database MCP example from the ja, uk, zh concepts guides to
  match the English guide

Closes #199

* fix(mcp): address review feedback (#199)
2026-10-20 14:23:11 +02:00
Parman MohammadalizadehandLuong NGUYEN ca57ef17c4 docs: resolve cross-page contradictions left after the v2.1.302 sync (#198)
* docs: resolve cross-page contradictions left after the v2.1.302 sync

- /code-review rows now say Claude can start it on its own since v2.1.246
- drop exact bundled-skill counts that did not match the lists beside them
- replace /plugin install pr-review with claude --plugin-dir ./07-plugins/pr-review
- replace the nonexistent server-database package in translated concepts guides

Fixes #196

* docs: drop remaining exact bundled-skill counts in translations

Refs #196

---------

Co-authored-by: Luong NGUYEN <luongnv89@gmail.com>
2026-10-20 13:51:52 +02:00
Luong NGUYEN 0e0115935d refactor(scripts): replace Mermaid.js with Pele for diagrams (#197)
* refactor(website): render diagrams with pinned pele bundle (#195)

* refactor(ci): validate diagrams with pele and fail when missing (#195)

* refactor(epub): render diagrams as flattened pele svg (#195)

* docs: document pele diagram rendering and node 20 setup (#195)

* test(epub): assert numbered labels reach pele unescaped (#195)

* fix(scripts): address review feedback (#195)

* fix(website): keep pele zoom controls off diagram labels (#195)

Pele (zoom: 'auto') draws an opaque zoom box over the top-right corner
of every diagram it shrinks to fit, which hid labels. When that box is
shown, div.mermaid now gets top padding so the diagram starts below it.
Top room rather than side room: Pele lays diagrams out to the content
width, so side padding would shrink them further and re-lay them out.

Zoom also makes each shrunk diagram a tab stop, but the SVG had no
accessible name. Name every SVG Pele draws after the nearest heading
plus its diagram kind ("Architecture - flowchart"). Pele draws a new
<svg> on resize and font load, so the name is set in onRender. SVGs
named by accTitle keep their own name.

* fix(scripts): load the cached pele bundle as ESM on node 20 (#195)

pele_render.mjs imports Pele's ES module build, dist/pele.js, which was
cached as a bare pele.js with no package.json "type": "module" beside
it. Node.js 20.0-20.18 and 22.0-22.6 have no ESM syntax detection, so
they load that file as CommonJS and crash on `export`, failing
check_mermaid.py and build_epub.py on a supported Node.

Cache dist/pele.js as pele.mjs (the same sha256-pinned file) and hand
that path to the helper, so every Node.js >= 20 loads it as an ES
module. A cache holding only pele.js downloads and verifies pele.mjs
once. A test turns off syntax detection to reproduce the old Node
behaviour on newer Node.
2026-10-19 14:17:01 +02:00
Luong NGUYEN 232591b2a8 docs: sync to Claude Code v2.1.302 (#194)
* docs: sync to Claude Code v2.1.302

Release changes (v2.1.301-2.1.302): fork subagents on by default in claude -p, the Agent SDK, desktop and VS Code (CLAUDE_CODE_FORK_SUBAGENT=0 turns them off); claude -p / SDK sessions with no permission mode start in default on third-party providers, with telemetry off or on a fresh install; at most 12 prompt/agent hooks of one event run at once; new CLAUDE_CODE_AUTO_MODE_MODEL and CLAUDE_CODE_RETRY_WATCHDOG_MAX_USAGE_LIMIT_WAIT_MS; /config Idle compaction row; vim % motion; tool_decision OTel attributes; fable/best fallback; 64-argument limit; hook ask prompts name their plugin or skill; PowerShell finds plugin bin/; mod Input rows. Also: standalone Claude Design closes Dec 14, 2026; Sonnet 4.5 retires Nov 30, 2026; managed Code Review GA; npm install marked deprecated per the official README.

Verified drift fixes (each checked against code.claude.com): hook handler JSON shapes, prompt-hook response schema, exec/HTTP/mcp_tool hook fields; GitHub MCP URL (api.githubcopilot.com) and token; nonexistent @modelcontextprotocol/server-database; plugin layout, marketplace, userConfig, strictKnownMarketplaces, blockedMarketplaces and enabledPlugins shapes; nonexistent deniedPlugins, autoCheckpoint, planning.*/extendedThinking.* keys; invented 09 settings schema; claude -p JSON output jq paths; subagent forks via subagent_type "fork" not context: fork; --agents priority; MCP default scope; command descriptions; rewind menu has six options; broken nested code fence in 07-plugins. Shipped hook scripts: pre-commit.sh reads stdin and only gates git commit; validate-prompt.sh uses hookSpecificOutput; session-end.sh no longer reads /dev/tty. Fixes mirrored into vi/ja/zh/uk where the same claim existed.

Learning skills: quiz Lesson 05 Q2 option B (GitHub MCP URL; Correct letter unchanged), explanations for L02 Q2, L04 Q6/Q9, L09 Q1, L07 Q2 wording; self-assessment wording in paired files; lesson-quiz 1.6.2, self-assessment 2.5.5.

* fix(hooks): parse pre-commit.sh hook input with sed instead of jq

* fix(mcp): restore DATABASE_URL expansion and align MCP env var setup

* fix(mcp): align QUICK_REFERENCE GitHub token and Example 2 DATABASE_URL setup
2026-10-19 09:56:39 +02:00
Luong NGUYEN f24cc80842 docs: sync to Claude Code v2.1.300 (#193)
* docs: sync to Claude Code v2.1.300

Release changes (v2.1.299-2.1.300): remove --sandbox/--no-sandbox (gone from claude remote-control; never main-CLI flags); updatedInput validation; UserPromptSubmit runs before skill/command expansion; MCP permission rules and agent tools: match only the named server; MCP description limits (4,096 / 16,384, first-party exemption); transcripts record system prompts; idle compaction, idleCompaction setting and new env vars; plugin eval --disallow-tools; mods Text props (bold deprecated); agent view /effort and /fast.

Verified drift fixes: nonexistent /task, /session, /todo, /worktree commands and claude web; agent-teams env var; invalid plugin monitors and CLAUDE_PLUGIN_DATA hook examples; hook-events table, skill hook scope and once; skillOverrides; claude agents opens agent view; notify-team.sh git push filter; validate-prompt.sh prompt field; native installer recommended; prompt-cache TTL defaults; fast-mode models; /undo is a /rewind alias; CATALOG field rows and bundled skills; remove ignored name: from plugin command templates. Fixes mirrored into vi/ja/zh/uk where the same claim existed.

Learning skills: rescope quiz Lesson 03 Q8 to the Agent Skills spec, fix self-assessment Round 2 Option 4 and Round 4 Option 2, refresh explanations and a Review pointer; lesson-quiz 1.6.1, self-assessment 2.5.4.

* fix(hooks): match git push anywhere in notify-team.sh command
2026-10-15 22:23:05 +02:00
Luong NGUYEN 065ab3734f docs: sync to Claude Code v2.1.296 (#192)
Haiku 5.5 is now the haiku alias on the Anthropic API (v2.1.293): add it to the closed model lists for thinking, effort, auto-mode eligibility, and the lean system prompt, plus table rows.

Also: claude project purge renamed to claude purge; background-command time limit is unattended-only; rules and nested CLAUDE.md load on Write/Edit and single-file Bash reads; claude plugin install --marketplace on the CLI; WebSearch budget refill; 1,536-character skill-listing cap; MCP description limits; new Mods section, hooks onFailure, subagent autoCompactWindow, new env vars.

Learning skills: fix quiz Lesson 02 Q10 answer options (--add-dir alone does not load CLAUDE.md), reword Lesson 10 Q8 to one correct answer, refresh explanations; lesson-quiz 1.6.0, self-assessment 2.5.3.
2026-10-11 00:23:29 +02:00
Luong NGUYEN 556af8d523 docs: sync to Claude Code v2.1.285 (#188)
* docs: sync to Claude Code v2.1.285

Audit against Claude Code 2.1.284-2.1.285 (baseline 2.1.283).

- P0: quiz L07 Q6 graded a nonexistent `/plugin install github:` form
- P1: Ultracode is a separate /effort toggle (no longer forces xhigh);
  interactive sessions start in auto mode on every plan and provider;
  `claude mcp list` shows ws servers; MCP_STARTUP_WAIT_MS=0 still waits
  for --allowedTools servers; skill effort rule includes Sonnet 5.5;
  github: install syntax fixed (5 langs); README version; quiz fixes
- P2/P3 (approved): -p/Python SDK start rule, Enabling Auto Mode block,
  auto-mode model lists, Sonnet 5.5, plugin configure, background
  command time limit, --desktop, new env vars, symlinked-rule approval
- lesson-quiz 1.5.0, self-assessment 2.5.2

* fix(docs): address review feedback — align Sonnet 5.5 effort/thinking enumerations
2026-09-30 14:33:22 +02:00
Luong NGUYEN 4f5703855c feat(website): add landing page with interactive learning roadmap (#185)
* feat(website): add landing page with interactive learning roadmap

The site home was the rendered README, which neither sells the guide nor
helps learners track where they are. The new landing page explains the
value vs the official docs and turns the curriculum into a checklist
roadmap (10 modules, 60 lessons) with progress saved in localStorage.

- README now renders to guide.html; landing is index.html (English only,
  since translated anchors differ)
- roadmap.json is validated at build time: every lesson heading must
  resolve to an anchor, so doc drift fails the build
- light/dark theme toggle shared with the docs pages
- vendor Fraunces + Manrope; font CSS cache keyed on the request URL
- pin build_website.py PEP 723 deps to requirements.txt: markdown 3.11
  mis-parses `</dev/tty>` in a code span and silently truncated the
  rendered hooks page

* fix(website): address landing page review findings
2026-09-26 13:14:55 +02:00
Luong NGUYEN c777d43e5a docs: sync to Claude Code v2.1.283 (#184)
* docs: sync to Claude Code v2.1.283

Audit the tutorial against Claude Code 2.1.280-2.1.283 (baseline 2.1.278;
2.1.279 was never published) and fix claims that are now false.

- P0: /agents shown as a working command (5 languages); 10-cli and concepts
  guide model tables naming Sonnet 5 / Opus 5 as defaults (Opus 5.5 since
  v2.1.280); two quiz answer keys (L10 Q5, L01 Q9)
- P1: Opus 5.5 effort/fast/model defaults; send now backgrounds tools;
  cmd is not an alias of meta; AGENTS.md provider caveat lifted in 2.1.281;
  Ctrl+X Ctrl+K replaces Ctrl+F; MCP tool search on by default; quoted
  ${CLAUDE_PLUGIN_ROOT}; --system-prompt-file works interactively;
  CLAUDE_CODE_AUTO_MODE_SERVER scope; quiz and self-assessment fixes
- P2/P3 (approved): auto-mode start on third-party/telemetry-off, agent hooks
  on PermissionRequest, rm 2-minute auto-deny, Opus 5.5 always thinks,
  new settings and plugin validate checks

lesson-quiz 1.3.0 -> 1.4.0, self-assessment 2.5.0 -> 2.5.1.
Footers refreshed to 2.1.283 on every touched file.

* fix(subagents): replace remaining /agents instructions in translated lessons
2026-09-26 08:56:48 +02:00
Luong NGUYEN 8aeb5a72dc docs: sync to Claude Code v2.1.278 (#183)
* docs: sync to Claude Code v2.1.278

Type: docs

Audit of the tutorial against Claude Code 2.1.278 (repo baseline was
2.1.263). Fixes claims the repo asserts that are now false; new-feature
coverage is English-only.

P0 - the repo stated the opposite of current behavior:
- AGENTS.md: the claude-md skill said Claude Code "does not read
  AGENTS.md directly" in all 5 languages. It has since v2.1.277, when no
  CLAUDE.md exists at or above the working directory.
- /output-style: listed as "Removed in v2.1.91" in 5 languages and in
  09-advanced-features. Re-added in v2.1.269; row moved out of the
  Deprecated Commands table.
- Permission rules: setup-auto-mode-permissions.py seeded Write(*),
  Glob(*) and NotebookEdit(*), which Claude Code accepts but never
  consults and warns about at startup. Removed; same fix in the
  config-examples.json profile and the 06/09 category tables.
- taskOutputMaxChars: documented as live. The TaskOutput tool was
  removed in v2.1.278 and the key is inert.

P1:
- Dynamic workflow "medium" guideline is fewer than 10 agents, not 15;
  the default is small on Pro plans since v2.1.271.
- Todo-tool availability restated as the official allowlist (Claude 3.x,
  Opus 4-4.7, Sonnet 4-4.6, Haiku 4.5) instead of a denylist; 23 sites
  across 5 languages.
- Memory hierarchy now notes the AGENTS.md fallback.
- Auto-mode classifier cost qualified: not charged on Enterprise plans
  and Claude API accounts since v2.1.278.

P3 (English only): full AGENTS.md section in 02-memory; omitClaudeMd
subagent field; plugin eval / --json / --accept-command / --marketplace;
maxEffortLevel, bashEditDiffEnabled, syncClaudeAi*, 4 env vars,
--system-prompt-snapshot, --plugin-dir folders; send-now key and Monitor
deadlines; checkpoints subagent-edit limitation.

Learning skills audited clean: 100 quiz questions and 100 Review
pointers all valid, 20 self-assessment options correctly mapped.

Cross-file anchors: 15 broken before, 15 after, 0 introduced.

* docs: address review — stale version stamps, /output-style re-add, permission tables
2026-09-20 01:15:34 +02:00
Luong NGUYEN 97bfb0685e docs: sync to Claude Code v2.1.263 (#181)
Audit against the 2.1.258-2.1.263 delta and current official docs.

The release delta produced one contradiction: keybindingFlavor was
deprecated to a no-op in v2.1.261, but 10-cli and 09-advanced-features
still documented it as selecting between "classic" and "readline" with
classic as the default. Readline conventions are now unconditional.

Re-reading the enterprise MCP section against the current managed-mcp
docs found it structurally wrong, independent of the delta:

- allowedMcpServers, deniedMcpServers and allowAllClaudeAiMcps were
  presented as fields of managed-mcp.json. They are settings keys;
  managed-mcp.json holds an mcpServers map in .mcp.json format.
- Linux and Windows deployment paths were per-user (~/.config/ClaudeCode,
  %APPDATA%) where the real ones are system paths. An admin deploying to
  the documented path got no enforcement.
- The denylist example used serverName "untrusted-*". Name matching is
  exact and never expands wildcards, so that pattern blocks nothing.
- Allow/deny entries paired two keys in one object and wrote
  serverCommand as a bare string; both forms are invalid.

Mirrored into vi, ja and uk. zh has no enterprise MCP section.

Also removed a claim in 09-advanced-features and 10-cli that the settings
reference does not list modelPricing. It documents it, along with every
other key in that table.

New in this release range: /skill-doctor, /diff fullscreen panel,
/advisor text form and /reload-plugins in headless sessions,
managedMcpServers, --permission-prompts none,
--append-subagent-system-prompt-file, bashOutputMaxChars,
taskOutputMaxChars, and claude plugin validate --json.

Validation: pre-commit run --all-files, 23/23 hooks pass.

Claude-Session: https://claude.ai/code/session_01PAXabzMfDJxom9JPXtkK5o
2026-09-06 11:04:12 +02:00