Commit Graph
288 Commits
Author SHA1 Message Date
Luong NGUYEN 9da86c2121 Merge remote-tracking branch 'origin/main' into docs/sync-claude-code-2.1.322 2026-11-12 11:53:11 +00:00
Luong NGUYEN ad688e9989 docs: align model and effort lists with model-config (v2.1.322 sync) 2026-11-12 11:53:04 +00: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 62352e39d2 docs: add Fable models to the effort-level bullet in 09 2026-11-12 11:35:18 +00:00
Luong NGUYEN c951804fd8 docs: address review of v2.1.322 sync 2026-11-12 11:31:46 +00:00
Luong NGUYEN 88829d8cfb Merge branch 'main' into docs/sync-claude-code-2.1.322 2026-11-12 12:12:36 +01:00
Luong NGUYEN d80c5fe7ac docs: sync to Claude Code v2.1.322
Type: docs

Sync the tutorial, its translations and root docs to Claude Code
2.1.322 (range 2.1.317-2.1.322). P1 fixes (Fable 5.2, fast mode on
Fable 5.2, scheduled-task expiry/restore/jitter, subagent effort on
another model, Ask-each-time subagents, -p background time limit,
mods in auto/bypass/dontAsk) are mirrored to vi/ja/uk/ko/fa where the
text exists. P3 additions are English only. Six P2 docs-vs-changelog
conflicts are left for maintainer decision.

Validation: pre-commit run --all-files passes with
SKIP=mermaid,vietnamese-mermaid,japanese-mermaid,korean-mermaid,persian-mermaid
because the `language: node` mermaid hooks fail to install locally
(pre-commit 4.7.0: "must have package.json or additional_dependencies").
scripts/check_mermaid.py --strict was run directly instead: Pele
rendered all 416 Mermaid blocks.
2026-11-12 11:10:12 +00: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
Luong NGUYEN 1e16914a8d docs: sync to Claude Code v2.1.257 (#180)
* docs: sync to Claude Code v2.1.257

Audit against Claude Code v2.1.257 (repo baseline was v2.1.245, 12 releases
behind). Facts verified against the official docs and cross-checked against
the locally installed 2.1.257 binary.

Critical (P0):
- lesson-quiz L06 Q9 asked how many hook events exist, offering 16/25/31/40.
  With the real answer now 33, no option was correct. Option C 31 -> 33;
  answer letter unchanged.
- 03-skills taught SKILL.md `name`/`description` as required. Official docs
  now state all frontmatter fields are optional and `name` defaults to the
  directory name. Corrected in all five languages.

Hook events 31 -> 33 (PreModelSwitch/PostModelSwitch, v2.1.251) across 30
occurrences in 22 files, including three that read 25. Delta proved by
set-diff against the official event table: no phantom events. Both events
added to the 06-hooks tables with matcher, blocking behavior and 30s timeout,
plus detailed per-event sections.

CLI corrections verified against the binary:
- `claude plugin tag` takes a path, not a version
- `claude plugin init` / `validate` require their arguments
- `plugin init` scaffolds at ~/.claude/skills/<name>/, not project-local
- `--channels` entries must be tagged plugin:<name>@<marketplace>
- `--remote` is a deprecated alias for `--cloud`
- no `claude remote-control` subcommand exists, only the --remote-control flag

Also: CATALOG summary-table totals recomputed in all five languages (column 4
is a derived total, so the count change invalidated it); stale Opus 4.6/4.7
rosters aligned to canonical; self-assessment Advanced Features rescored 0-3
to stop a real gap being graded as mastery; 9 dangling quiz Review pointers
repaired; new features documented (--restricted, Fable 5.1,
experimental.cacheTtl, CLAUDE_CODE_SUBAGENT_MODEL_FORCE).

Deliberately out of scope: pre-existing translation staleness whose fix is
translation authorship rather than correction (ja/uk April-2026 root-doc
bodies, zh stubs, vi/README stub, translated CATALOG "New Features").

Claude-Session: https://claude.ai/code/session_01128xfEd8W7c2cMRw6N7uiF

* fix(hooks): complete the 31 → 33 hook-event propagation across all languages

The v2.1.257 sync bumped the hook-event count in the lesson and catalog
summaries but left 14 files still asserting 31, four of which the same
commit restamped 2.1.257. It also bumped the prose count in
claude_concepts_guide.md without adding the two rows, making that file
contradict itself where it had been internally consistent before.

Adds PreModelSwitch and PostModelSwitch (v2.1.251) everywhere an
exhaustive enumeration exists, and corrects the count wherever a list is
deliberately partial:

- README.md / INDEX.md in en, ja, zh, uk and vi/INDEX.md — count 31 → 33
  and both events added to the lifecycle group
- resources.md in all five languages — count only; these lists end in
  "and more" and are partial by design
- claude_concepts_guide.md — the two missing table rows

Also brings every hook-event table up to the 33 its own summary row
claims. The English CATALOG.md listed 29; the translated catalogs listed
25 and the ja/uk concept guides 27 and 28. Completing them required
translating six events that had never reached the mirrors: Setup,
UserPromptExpansion, PermissionDenied, PostToolBatch, MessageDisplay and
DirectoryAdded.

Summary-table arithmetic is untouched — those columns count example
scripts, not events.

Verified: no stale count survives outside CHANGELOG history, every
exhaustive enumeration lists exactly 33, and pre-commit passes 23/23.

Claude-Session: https://claude.ai/code/session_01UXmqJZNk1BR4uerJA85NiW
2026-09-02 10:35:08 +02:00
Luong NGUYEN 28149a85fc docs: sync to Claude Code v2.1.245 (#177)
* docs: sync to Claude Code v2.1.245

Sync the tutorial, its four translations, and both learner-facing skills
against Claude Code v2.1.245 (was anchored at v2.1.235).

The graded material turned out to be staler than the tutorials it grades.
The lesson READMEs already said "31 hook events", "six rewind options" and
"six permission modes"; the quiz and self-assessment still said 25, 5 and 5,
so learners were scored against a wrong answer and then sent to a lesson
that contradicted it. Seven such claims are fixed here.

Two long-standing doc defects were also verified against official docs:

- Hook default timeout was documented as 60 seconds. It is 600 for
  command/http/mcp_tool (30 for prompt, 60 for agent), with per-event
  overrides. Wrong in five places.
- Skill precedence was documented as enterprise > project > personal. The
  official order is enterprise > personal > project. question-bank.md
  Lesson 03 Q9 already graded the correct order, so the lesson had been
  contradicting its own quiz.

Fixed
- Hook default timeout 60s -> 600s, with per-event overrides
- Skill precedence: project and personal were swapped
- Memory "overrides root CLAUDE.md" -> concatenation model (last holdouts
  after the quiz was aligned in #164)
- permissionMode frontmatter omitted `auto` (English + vi/ja/uk); the quiz
  was right and the docs were wrong
- Built-in subagent `Bash` no longer exists upstream -> renamed to `claude`
- `/undo` is absent from the official commands reference -> marked deprecated
- `backgroundTasks` settings block was fabricated -> replaced with
  CLAUDE_CODE_DISABLE_BACKGROUND_TASKS and the concurrency env var
- Plugin manifest field is `lspServers`, not inline `lsp`
- vi/05-mcp documented `claude mcp add --transport ws`, which upstream
  explicitly does not support
- Self-assessment could never reach its own maximum score: rounds cap at
  4+4+4+3+4 = 19, not 20
- 13 dangling quiz `Review:` pointers, two of which named another lesson
- Skill description cap: 1024 chars -> 1,536 combined with `when_to_use`

Added
- WebSocket (`ws`) MCP transport, undocumented until now
- Concise output style (v2.1.237), a fifth built-in
- modelPicker, promptCacheTtl, subagentPromptCacheTtl, modelPricing,
  keybindingFlavor settings
- ANTHROPIC_DEFAULT_MODEL env var
- Hook `async`, `asyncRewake`, `shell`, `statusMessage`, `retry` keys;
  `agent` type marked experimental
- /design canvas, Remote Control out of research preview, notify_when_idle,
  plugin manifest fields (workflows, channels, dependencies, outputStyles)

Deferred deliberately: the reserved `synced` skills folder, and a bulk
footer stamp across the translations. zh/ carries none of the P0 claims
(it is abridged upstream of this run), so it has no P0 sub-tasks rather
than fabricated English.

Mermaid validation did not run in this environment (mmdc absent); CI covers it.

* fix(docs): propagate v2.1.245 corrections to CATALOG, translations, and stale enumerations

* fix(docs): propagate built-in subagent rename to uk/vi/zh CATALOG and zh lesson
2026-08-26 07:20:04 +02:00
HuberttFox 1c04dbf88e fix(lesson-quiz): align checkpoints quiz answers with v2.1.220 README (#166) 2026-08-19 10:58:30 +02:00
HuberttFox 012453f818 fix(lesson-quiz): align memory quiz answers with the concatenation model (#164)
Lesson 02 bank contradicted 02-memory/README.md in three places:
- Q1 framed memory as a strict 7-level override hierarchy; CLAUDE.md files
  are concatenated into context, not overriding each other.
- Q3 answered @path import max depth as 5; docs say four hops.
- Q9 taught that higher tiers always take precedence; load order sets
  position in context, not precedence. Managed Policy is the only special
  case: it loads first and cannot be excluded.

Verified against https://code.claude.com/docs/en/memory at v2.1.235.

Closes #163
2026-08-19 10:39:21 +02:00
Luong NGUYEN da6e09e798 docs: sync to Claude Code v2.1.235 (#174)
* docs: sync to Claude Code v2.1.235

Syncs the tutorial repo from v2.1.233 to v2.1.235, fixes a fabricated
plugin-command reference and a wrong lesson-quiz answer, closes translation
fan-out gaps, and documents six new features from v2.1.234/v2.1.235.

* docs(slash-commands): scope v2.1.234 dialog-command claims to the fullscreen TUI

The v2.1.234 changelog carries two separate entries: /permissions opening
mid-turn unconditionally, and the /add-dir, /autocompact, /theme, /help,
/config and /advisor dialogs opening mid-turn in the fullscreen TUI. The
sync flattened both into one unqualified bullet, so a reader on the default
renderer would find the described behavior absent.

Also corrects the CATALOG usage-limit auto-continue row, which described an
on-by-default feature as opt-in ("Enable via /config"); the changelog says
"turn it off in /config".

* docs(advanced-features): correct spellcheck value shape, default, and scope

settings.md documents `spellcheck` as object-valued
(`{"enabled": true, "language": "en_GB"}`) and read from user settings, the
--settings flag, and managed settings only; interactive-mode.md adds that it
is off by default and needs aspell, hunspell, or ispell on PATH. CATALOG told
readers to set a bare `"spellcheck": true`, and both settings tables sit under
preambles promising project-scope settings work, which for this key they do
not.

Also repoints CATALOG's hook-configuration example at pre-tool-check.sh; the
table rename left the example on validate-bash.py, which is not in 06-hooks/.

* docs(plugins): drop the unsupported claim that /plugin update does not exist

The sync asserted "Updating is CLI-only — there is no `/plugin update` slash
command". The plugins reference contradicts that: it refers to running
`/plugin update` twice in present tense (the cache-key section, and the
explicit-version row that says `/plugin update` reports "already at the
latest version"). The v2.1.235 binary carries no `/plugin update` string and
its own update notices point at `claude plugin update <name>` in a terminal,
so the sources conflict and neither absolute is safe to teach.

Recommends the CLI form on its documented merits instead of asserting a
negative. Mirrored to vi/ja/zh/uk and to the lesson-quiz Q8 explanation,
which taught the same false negative. Q8's correct answer is unchanged.

* docs(advanced-features): complete the v2.1.234 env-var fan-out and 04 TOC (#175)

The env-var block was still headed (v2.1.221-v2.1.233) and omitted both
variables v2.1.234 added: CLAUDE_CODE_PROJECT_DIR_NAME, which had reached
only 10-cli and CATALOG, and CLAUDE_CODE_GOAL_CHECKIN_MINUTES, which was in
prose and a CATALOG row but no env-var table.

Also adds the one missing 04-subagents TOC entry: Additional Resources was
the only H2 without one, leaving the reconciled TOC at 26 of 27 sections.
2026-08-19 08:43:15 +02:00
Luong NGUYEN deb7e5c710 docs: sync to Claude Code v2.1.233 (#168)
* docs: sync to Claude Code v2.1.233

Bring the tutorial from the v2.1.220 baseline up to v2.1.233 (13 releases)
per update-plan-2026-08-15.md.

Corrections:
- Remove /ultraplan (removed in v2.1.222); point at plan mode instead
- Drop the 200-subagent-per-session cap and CLAUDE_CODE_MAX_SUBAGENTS_PER_SESSION
  (cap removed in v2.1.224)
- Note TaskCompleted/TaskCreated only fire when todo tools are enabled

Updates:
- /review documented as an alias of /code-review (v2.1.223)
- fork subagents default to interactive (v2.1.232)
- ultrareview v2.1.227 floor, --post/--no-post
- GitLab MR support for -w/--worktree and Agent View

New sections:
- Cross-session messaging (ListAgents, SendMessage, crossSessionInbound)
- Sandbox credential masking (v2.1.221, v2.1.224)
- Trust and permission scoping
- archive and command plugin sources, conditional plugin activation
- claude self-hosted-runner, 7 new env vars

Translations (vi/ja/zh/uk) mirrored where the corresponding pages exist.
Every modified file carries the 2.1.233 metadata footer; files already at
2.1.220 with no content change were left alone.

* docs: address review findings from the v2.1.233 sync

- Mirror the /review alias correction (v2.1.223) into vi/ja/uk/zh
  01-slash-commands: add the live alias row, drop the stale row from the
  deprecated table, and rewrite the history bullet. All four still called
  /review deprecated in favour of a code-review plugin while carrying a
  2.1.233 stamp.
- Rewrite the 10-cli CLAUDE_CODE_FORK_SUBAGENT row to agree with
  04-subagents: fork mode is on by default in interactive sessions on every
  build since v2.1.232; the variable enables it where it is off by default.
- Remove a stray blank line that split the 10-cli environment-variable
  table, leaving the seven new v2.1.221-v2.1.233 rows without a delimiter
  row and rendering them as literal pipe text.
- Add the todo-tools caveat to the TaskCompleted row alongside TaskCreated
  in claude_concepts_guide, uk/ja concepts guides, and the uk/vi/zh/ja
  CATALOGs.
- Fix the ja 07-plugins and 09-advanced-features footers, which paired a
  2.1.233 version stamp with an April 24 last-updated date.

* docs(subagents): correct the stale fork-subagent claim in ja pages (#171)

ja/10-cli and ja/04-subagents both stated that CLAUDE_CODE_FORK_SUBAGENT
only enables forked subagents on external builds (Bedrock, Vertex,
Foundry) with no effect on the Anthropic API. That was true at v2.1.117
but has been wrong since v2.1.232: fork mode is on by default in
interactive sessions on every build, first-party or not, and the variable
now turns it on where it is off by default (claude -p, the Agent SDK, or
Claude Code older than v2.1.232).

Both pages remain stamped 2.1.119 on purpose. Only the individual claim
was verified and corrected; bumping the page stamp would assert a
whole-page verification that has not been done. Do not bump these stamps
without a full resync of the pages.
2026-08-17 12:44:44 +07:00
Luong NGUYEN 4f3fa85d7e docs: follow-ups from the v2.1.220 accuracy review (#161)
* fix(ci): move the EPUB build out of pre-commit into CI

The build-epub hooks called scripts/build_epub.py, which raises when the
mmdc binary is missing, while check_mermaid.py skips with a warning in the
same situation. On arm64 — where @mermaid-js/mermaid-cli has no working
build — that made 'pre-commit run --all-files' impossible to satisfy for a
docs-only change without --no-verify.

Remove the build-epub, vietnamese-build-epub and japanese-build-epub hooks
and widen the CI build-epub job to a language matrix so PR-time coverage is
not reduced: it previously built en only, and now builds en, vi, zh and ja.
zh was covered by neither the hooks nor this job, so a broken zh diagram
could only surface at release time.

Closes #156

* docs: replace the stale Kroki narrative with local mmdc rendering

Commit e76bbe4 swapped the Kroki HTTP dependency for local mmdc rendering
but left the docs describing the old design. The claim appeared in seven
live files, not the two originally reported: CLAUDE.md, scripts/README.md
and their ja/uk/vi copies.

Also corrects what the same staleness dragged along:
- scripts/README.md documented --timeout and --max-concurrent, which no
  longer exist, and omitted --mmdc-path, --lang and --puppeteer-config
- 'Async concurrent fetching' described a render_all() that is now a plain
  sequential loop with a dedupe cache
- the network-error/rate-limiting troubleshooting entries are replaced with
  the failures that actually occur now (missing mmdc, Chromium sandbox)

CHANGELOG entries recording the Kroki-to-mmdc switch are left alone; they
describe the past accurately.

Closes #157

* fix(scripts): make the ruff config match files that exist

Ruff resolves include/per-file-ignores patterns relative to the directory
holding pyproject.toml. Since the config lives in scripts/, the pattern
"scripts/**/*.py" meant scripts/scripts/**/*.py, which matches nothing —
'ruff check scripts/' printed 'warning: No Python files found under the
given path(s)' and then 'All checks passed!'. per-file-ignores had the same
mistake. Both are now relative to scripts/, so ruff sees all 14 files.

This silently disabled the pre-commit ruff hooks too, not just the
documented command, and two test files had drifted out of format as a
result. Reformatting them exposed a second problem: the pre-commit hook
pinned ruff v0.8.2 while the CI lint job installs unpinned latest and this
venv has 0.15.10. The versions disagree on formatting, so each reverted the
other's output, and CI would have started failing on a file the local hook
kept rewriting. Bump the hook pin and the requirements-dev floor to 0.15.10
so all three agree.

Verified: 'pre-commit run --all-files' is stable across consecutive runs,
'ruff format --check scripts/' and 'ruff check scripts/' both pass, 92
tests pass.

Closes #160

* docs: point localized module links at their own trees

Files at the root of a language directory used ../NN-module/, which from
uk/CATALOG.md resolves to the English 05-mcp/ at the repo root rather than
uk/05-mcp/. Readers following a count stated about the localized tree
landed in the English one. The link checker never caught it because the
English target does exist.

Files one level deeper (uk/04-subagents/README.md and friends) were already
correct — ../06-hooks/ from there resolves to uk/06-hooks/ — so this is
scoped to the 7 depth-1 files that actually escape: CATALOG.md in uk, vi,
ja and zh, LEARNING-ROADMAP.md in uk and vi, and ja/claude_concepts_guide.md.
119 links in total.

The ../NN- occurrences left in STYLE_GUIDE.md and TRANSLATION_NOTES.md are
inside fenced examples showing what a module page should contain, where the
../ form is the correct convention. All 119 rewritten targets were verified
to exist.

Closes #158

* docs(hooks): stop conflating hook types with hook event categories

'**Hook Types** (5 types, 31 events)' sat above four bullets, so the count
read as wrong. It was not — the two numbers describe different axes that
had been merged into one label.

06-hooks/README.md:126 documents five hook *types*: command, http, prompt,
mcp_tool and agent. Those describe how a hook runs. The four bullets are
event *categories* — Tool, Session, Task, Lifecycle — holding 31 events
(6+7+6+12), and describe when it runs.

Split the label so each number belongs to the axis it counts, in all nine
affected files: README.md and INDEX.md plus the ja, uk, vi and zh copies.
QUICK_REFERENCE.md and LEARNING-ROADMAP.md already stated '5 types' with
the handler names attached and needed no change.

Closes #159

* chore(scripts): drop the unused httpx dependency

httpx was the HTTP client for Kroki rendering. Nothing has imported it
since e76bbe4 moved diagram rendering to a local mmdc subprocess —
check_links.py, the only other network caller, uses stdlib urllib.request.
The PEP 723 blocks in build_epub.py and build_website.py had already
dropped it; only the manifests and docs still declared it.

Removes it from requirements.txt, pyproject.toml dependencies, the
dependency tables and uv --with lines in scripts/README.md and its ja/uk
copies, and the .cspell.json word list. Also drops the B113 bandit
suppression, which existed solely for an httpx timeout false positive —
bandit reports no issues without it.

Also corrects two Requirements lines missed in the previous pass: the ja
and uk script READMEs still listed an internet connection rather than mmdc.

Note: tenacity is now dead for the same reason and is left in place.

* chore(scripts): drop the unused tenacity dependency

Nothing imports tenacity — the retry logic it was added for went away
with the Kroki HTTP fetching in e76bbe4. It was still declared in
requirements.txt, pyproject.toml, both `uv run --with` lines and all
three dependency tables.

* docs(i18n): sync the localized pre-commit check lists

The ja/uk/vi CLAUDE.md files still listed build-epub as pre-commit
check #5, stale since 6da8184 moved the EPUB build to CI. They also
omitted markdown-rendering, and the ja/uk stated counts disagreed with
their own lists. Now matches the English CLAUDE.md.

* fix(scripts): silence PLR0917 now stable in ruff 0.16

CI installs the latest ruff (uv pip install ruff, unpinned), and 0.16.1
promoted too-many-positional-arguments from preview to stable, hard-failing
the Code Quality check on build_epub.py's long-signature draw/helper
functions. These sit in the same family as PLR0913, which is already
ignored. Add PLR0917 so the local 0.15.10 pin and unpinned CI lint agree
again.
2026-08-06 07:58:46 +07:00
Luong NGUYEN b9a973bf32 docs: accuracy pass against Claude Code v2.1.220 (#155)
Internal accuracy pass against v2.1.220 — no missing upstream features, but broken example code, disagreeing counts, and metadata drift.

Functional fixes: pre-commit.sh now exits 2 so it actually blocks; dependency-check.sh reads file_path from stdin JSON instead of $1; database-mcp.json uses ${DATABASE_URL}; broken fences repaired; three command templates had invalid skill names.

Factual corrections: /fork and /subtask unswapped and /subtask added; /fewer-permission-prompts; permissions.defaultMode; dontAsk/auto unreversed; 31 hook events verified name-by-name; subagent depth 3; skill precedence enterprise > project > personal; /output-style removed not deprecated; permissionDecision gained defer.

Follow-up review fixed defects the pass left behind: zh/vi headers claiming 31 events above 25-name lists, a surviving hardcoded DB credential in the MCP README examples, an unbalanced fence swallowing a metadata footer, and non-canonical tool names. All four translated CATALOG summary tables were recounted so their arithmetic holds.

Full detail in CHANGELOG.md under v2.1.220-r2.
2026-08-04 15:41:12 +07:00