Files
Luong NGUYEN b5548c6b9f docs: sync to Claude Code v2.1.322 (#247)
Type: docs

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

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

## P1: outdated claims (mirrored to translations)

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

## P3: additions (English only)

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

## P4: cosmetic

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

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

## Translation coverage

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

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

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

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

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

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

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

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

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

## Learner skills

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

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

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

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

## Needs maintainer decision (P2, not applied)

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

## Follow-ups (separate PRs)

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

## Validation

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

## Sources

- https://raw.githubusercontent.com/anthropics/claude-code/main/CHANGELOG.md (2.1.317–2.1.322) and https://code.claude.com/docs/en/changelog
- https://www.npmjs.com/package/@anthropic-ai/claude-code
- https://code.claude.com/docs/en/model-config
- https://code.claude.com/docs/en/fast-mode
- https://code.claude.com/docs/en/scheduled-tasks
- https://code.claude.com/docs/en/remote-control
- https://code.claude.com/docs/en/errors
- https://code.claude.com/docs/en/settings-reference#permissions-denyinsteadofprompting
- https://code.claude.com/docs/en/env-vars
- https://code.claude.com/docs/en/hooks
- https://code.claude.com/docs/en/agent-sdk/hooks
- https://code.claude.com/docs/en/tools-reference
- https://code.claude.com/docs/en/plugins/mods/create
- https://code.claude.com/docs/en/plugins/org
- https://code.claude.com/docs/en/skills
- https://code.claude.com/docs/en/commands
- https://code.claude.com/docs/en/vs-code
- https://code.claude.com/docs/en/agent-view
- https://code.claude.com/docs/en/mcp
- https://code.claude.com/docs/en/permissions
- https://code.claude.com/docs/en/permission-modes
- https://code.claude.com/docs/en/cli-reference
2026-11-12 13:02:46 +01:00
..

Claude How To

GitHub Stars GitHub Forks License: MIT Version Claude Code

🌐 Language / Ngôn ngữ / 语言 / Мова / 言語 / 언어: English | Tiếng Việt | 中文 | Українська | 日本語 | 한국어 | فارسی

Claude Code を週末でマスターする

claude と打ち込むだけの段階から、エージェント、フック、スキル、MCP サーバを束ねる段階へ。視覚的なチュートリアル、コピペで使えるテンプレート、ガイド付き学習パスで導く。

15 分で始める | 自分のレベルを見つける | 機能カタログを見る


目次


課題

Claude Code をインストールし、いくつかプロンプトを実行した。次は何をすべきか。

  • 公式ドキュメントは機能を説明するが、組み合わせ方は示さない。 スラッシュコマンドの存在は知っていても、フック、メモリ、サブエージェントと連携させて、本当に時間を節約するワークフローに組み立てる方法は分からない。
  • 明確な学習パスがない。 MCP をフックの前に学ぶべきか。スキルをサブエージェントの前に学ぶべきか。結局すべてを流し読みして、何一つマスターできない。
  • 例題が基本的すぎる。 「hello world」のスラッシュコマンドでは、メモリを使い、専門エージェントに委譲し、セキュリティスキャンを自動実行する本番品質のコードレビューパイプラインは作れない。

Claude Code の力の 90% を眠らせたままで、しかも自分が何を知らないかすら分かっていない状態である。


Claude How To が解決する方法

これは単なる機能リファレンスではない。構造化された、視覚的な、サンプル駆動のガイド であり、Claude Code の各機能の使い方を、今日プロジェクトにそのままコピーして使える実践テンプレートとともに教える。

公式ドキュメント 本ガイド
形式 リファレンスドキュメント Mermaid 図つきの視覚的チュートリアル
深さ 機能の説明 内部の動作原理
例 基本的なスニペット すぐ使える本番品質テンプレート
構造 機能別の編成 段階的な学習パス(初級から上級まで)
オンボーディング 自己学習 所要時間つきガイド付きロードマップ
自己評価 なし 弱点を見つけて個別パスを構築するインタラクティブ・クイズ

得られるもの

  • 10 個のチュートリアルモジュール:スラッシュコマンドからカスタムエージェントチームまで、Claude Code の全機能を網羅
  • コピペ可能な設定:スラッシュコマンド、CLAUDE.md テンプレート、フックスクリプト、MCP 設定、サブエージェント定義、フルプラグインバンドル
  • Mermaid 図 で各機能の内部動作を可視化し、「どう」だけでなく「なぜ」を理解できる
  • ガイド付き学習パス によって 11〜13 時間で初級者からパワーユーザーまで到達できる
  • 組み込みの自己評価:Claude Code 内で /self-assessment または /lesson-quiz hooks を実行して弱点を特定できる

学習パスを始める ->


仕組み

1. 自分のレベルを見つける

自己評価クイズ を受けるか、Claude Code 内で /self-assessment を実行する。すでに知っていることに基づいた個別ロードマップが得られる。

2. ガイド付きパスを進む

10 モジュールを順に進める。各モジュールは前のモジュールの上に積み上がる。学びながら、テンプレートをそのままプロジェクトにコピーする。

3. 機能を組み合わせてワークフローにする

真の力は機能の組み合わせにある。スラッシュコマンド、メモリ、サブエージェント、フックを連携させて、コードレビュー、デプロイ、ドキュメント生成を自動化するパイプラインの作り方を学ぶ。

4. 理解度を試す

各モジュールの後に /lesson-quiz [トピック] を実行する。クイズが見落とした箇所を特定するため、弱点をすばやく埋められる。

15 分で始める


開発者に信頼されている

  • GitHub スター:日常的に Claude Code を使う開発者から
  • フォーク:自チームのワークフローに合わせて応用するチームから
  • 積極的にメンテナンス:Claude Code のリリースに同期(最新は v2.1.119、2026 年 4 月)
  • コミュニティ駆動:実際の運用設定を共有する開発者からのコントリビュート

Star History Chart


どこから始めればよいか分からない?

自己評価を受けるか、レベルを選ぶ。

レベル できること スタート地点 所要時間
初級 Claude Code を起動して対話 スラッシュコマンド 約 2.5 時間
中級 CLAUDE.md とカスタムコマンドを使う スキル 約 3.5 時間
上級 MCP サーバとフックを設定する 高度な機能 約 5 時間

全 10 モジュールの完全学習パス:

順序 モジュール レベル 所要時間
1 スラッシュコマンド 初級 30 分
2 メモリ 初級+ 45 分
3 チェックポイント 中級 45 分
4 CLI 基礎 初級+ 30 分
5 スキル 中級 1 時間
6 フック 中級 1 時間
7 MCP 中級+ 1 時間
8 サブエージェント 中級+ 1.5 時間
9 高度な機能 上級 2〜3 時間
10 プラグイン 上級 2 時間

完全学習ロードマップ ->


15 分で始める

インストールに関する注記:v2.1.113 以降、Claude Code はプラットフォーム別のネイティブバイナリ(macOS / Linux / Windows)として配布される。推奨のインストール方法はネイティブインストーラー(curl -fsSL https://claude.ai/install.sh | bash)である。公式 README では npm によるインストールは非推奨とされているため、ネイティブインストーラー、Homebrew(brew install --cask claude-code)または WinGet(winget install Anthropic.ClaudeCode)を推奨する。参考までに、npm install -g @anthropic-ai/claude-code はインストール時にプラットフォーム別のオプション依存関係を通じて同じネイティブバイナリを取得する。v2.1.116 以降、ダウンロード元は https://downloads.claude.ai/claude-code-releases であり、企業プロキシではこのホストを許可リストに加える必要がある。

# 1. ガイドをクローン
git clone https://github.com/luongnv89/claude-howto.git
cd claude-howto

# 2. 最初のスラッシュコマンドをコピー
mkdir -p /path/to/your-project/.claude/commands
cp 01-slash-commands/optimize.md /path/to/your-project/.claude/commands/

# 3. 試す — Claude Code で次を入力:
# /optimize

# 4. 次に進みたければ、プロジェクトメモリを設定:
cp 02-memory/project-CLAUDE.md /path/to/your-project/CLAUDE.md

# 5. スキルをインストール:
cp -r 03-skills/code-review-specialist ~/.claude/skills/

フルセットアップが必要なら、1 時間で必要な設定 はこちら。

# スラッシュコマンド (15 分)
cp 01-slash-commands/*.md .claude/commands/

# プロジェクトメモリ (15 分)
cp 02-memory/project-CLAUDE.md ./CLAUDE.md

# スキルをインストール (15 分)
cp -r 03-skills/code-review-specialist ~/.claude/skills/

# 週末ゴール: フック、サブエージェント、MCP、プラグインを追加
# ガイド付きセットアップは学習パスに従う

完全インストールリファレンスを見る


何が作れるか

ユースケース 組み合わせる機能
自動コードレビュー スラッシュコマンド + サブエージェント + メモリ + MCP
チームオンボーディング メモリ + スラッシュコマンド + プラグイン
CI/CD 自動化 CLI リファレンス + フック + バックグラウンドタスク
ドキュメント生成 スキル + サブエージェント + プラグイン
セキュリティ監査 サブエージェント + スキル + フック(読み取り専用モード)
DevOps パイプライン プラグイン + MCP + フック + バックグラウンドタスク
複雑なリファクタリング チェックポイント + プランニングモード + フック

FAQ

無料か? そう。MIT ライセンスで永遠に無料。個人プロジェクト、業務、チームで自由に使える。ライセンス表記の同梱以外に制約はない。

メンテナンスされているか? 積極的に。本ガイドは Claude Code のリリースごとに同期される。現行バージョンは v2.1.119(2026 年 4 月)で、Claude Code 2.1+ と互換。

公式ドキュメントとの違いは? 公式ドキュメントは機能リファレンスである。本ガイドは図、本番品質テンプレート、段階的な学習パスを備えたチュートリアルである。両者は補完関係にある。学ぶときはここから始め、具体的な仕様が必要なときに公式を参照するとよい。

全部進めるのにどれくらいかかるか? 完全パスで 11〜13 時間。ただし 15 分で即座に価値が得られる。スラッシュコマンドのテンプレートをコピーして試すだけでよい。

Claude Sonnet / Haiku / Opus と一緒に使えるか? 使える。すべてのテンプレートは Claude Fable 5.2、Claude Fable 5.1、Claude Fable 5、Claude Opus 5.5、Claude Opus 5、Claude Sonnet 5.5、Claude Sonnet 5、Claude Sonnet 4.6、Claude Opus 4.8、Claude Haiku 5.5、Claude Haiku 4.5 で動作する。

コントリビュートできるか? もちろん。ガイドラインは CONTRIBUTING.md を参照。新しい例、バグ修正、ドキュメント改善、コミュニティテンプレートを歓迎する。

オフラインで読めるか? 読める。uv run scripts/build_epub.py を実行すれば、すべてのコンテンツとレンダリング済みの図を含む EPUB 電子書籍が生成される。


今日から Claude Code をマスターし始める

すでに Claude Code はインストール済みのはず。あとは使いこなし方を知るだけで、生産性が 10 倍になる。本ガイドはそこに到達する構造化されたパス、視覚的な解説、コピペで使えるテンプレートを提供する。

MIT ライセンス。永遠に無料。クローンして、フォークして、自分のものにしてほしい。

学習パスを始める -> | 機能カタログを見る | 15 分で始める


クイックナビゲーション — 全機能
機能 説明 フォルダ
機能カタログ インストールコマンド付き完全リファレンス CATALOG.md
スラッシュコマンド ユーザーが実行するショートカット 01-slash-commands/
メモリ 永続的なコンテキスト 02-memory/
スキル 再利用可能な機能 03-skills/
サブエージェント 専門特化した AI アシスタント 04-subagents/
MCP プロトコル 外部ツールアクセス 05-mcp/
フック イベント駆動の自動化 06-hooks/
プラグイン バンドルされた機能 07-plugins/
チェックポイント セッションのスナップショットと巻き戻し 08-checkpoints/
高度な機能 プランニング、思考、バックグラウンドタスク 09-advanced-features/
CLI リファレンス コマンド、フラグ、オプション 10-cli/
ブログ記事 実際の利用例 Blog Posts
機能比較
機能 起動方法 永続性 適している用途
スラッシュコマンド 手動 (/cmd) セッション内のみ クイックショートカット
メモリ 自動ロード セッション横断 長期的な学習
スキル 自動起動 ファイルシステム 自動化ワークフロー
サブエージェント 自動委譲 コンテキスト分離 タスク分散
MCP プロトコル 自動問い合わせ リアルタイム ライブデータアクセス
フック イベントトリガー 設定値で永続化 自動化と検証
プラグイン 1 コマンド 全機能を含む 完全なソリューション
チェックポイント 手動 / 自動 セッション単位 安全な実験
プランニングモード 手動 / 自動 計画フェーズ 複雑な実装
バックグラウンドタスク 手動 タスク存続期間 長時間処理
CLI リファレンス ターミナルコマンド セッション / スクリプト 自動化とスクリプト
インストール早見表
# Slash Commands
cp 01-slash-commands/*.md .claude/commands/

# Memory
cp 02-memory/project-CLAUDE.md ./CLAUDE.md

# Skills
cp -r 03-skills/code-review-specialist ~/.claude/skills/

# Subagents
cp 04-subagents/*.md .claude/agents/

# MCP
claude mcp add --transport http github https://api.githubcopilot.com/mcp/ --header "Authorization: Bearer YOUR_GITHUB_PAT"

# Hooks
mkdir -p ~/.claude/hooks
cp 06-hooks/*.sh ~/.claude/hooks/
chmod +x ~/.claude/hooks/*.sh

# Plugins(リポジトリのルートからローカルプラグインを読み込む)
claude --plugin-dir ./07-plugins/pr-review

# Checkpoints (自動有効、設定で調整)
# 08-checkpoints/README.md を参照

# Advanced Features (設定で調整)
# 09-advanced-features/config-examples.json を参照

# CLI Reference (インストール不要)
# 利用例は 10-cli/README.md を参照
01. スラッシュコマンド

配置場所:01-slash-commands/

概要:Markdown ファイルとして保存される、ユーザーが実行するショートカット

例:

  • optimize.md — コード最適化分析
  • pr.md — プルリクエスト準備
  • generate-api-docs.md — API ドキュメント生成

インストール:

cp 01-slash-commands/*.md /path/to/project/.claude/commands/

使い方:

/optimize
/pr
/generate-api-docs

詳しく学ぶ:Discovering Claude Code Slash Commands

02. メモリ

配置場所:02-memory/

概要:セッションをまたいで保持される永続的なコンテキスト

例:

  • project-CLAUDE.md — チーム共通のプロジェクト規約
  • directory-api-CLAUDE.md — ディレクトリ固有のルール
  • personal-CLAUDE.md — 個人の好み

インストール:

# プロジェクトメモリ
cp 02-memory/project-CLAUDE.md /path/to/project/CLAUDE.md

# ディレクトリメモリ
cp 02-memory/directory-api-CLAUDE.md /path/to/project/src/api/CLAUDE.md

# 個人メモリ
cp 02-memory/personal-CLAUDE.md ~/.claude/CLAUDE.md

使い方:Claude が自動的に読み込む

03. スキル

配置場所:03-skills/

概要:指示書とスクリプトを備えた、再利用可能で自動起動される機能

例:

  • code-review/ — スクリプトつきの包括的なコードレビュー
  • brand-voice/ — ブランドボイスの一貫性チェッカー
  • doc-generator/ — API ドキュメント生成

インストール:

# 個人スキル
cp -r 03-skills/code-review-specialist ~/.claude/skills/

# プロジェクトスキル
cp -r 03-skills/code-review-specialist /path/to/project/.claude/skills/

使い方:関連する場面で自動的に起動される

04. サブエージェント

配置場所:04-subagents/

概要:分離されたコンテキストとカスタムプロンプトを持つ、専門特化した AI アシスタント

例:

  • code-reviewer.md — 包括的なコード品質分析
  • test-engineer.md — テスト戦略とカバレッジ
  • documentation-writer.md — 技術ドキュメント作成
  • secure-reviewer.md — セキュリティ重視のレビュー(読み取り専用)
  • implementation-agent.md — 機能の完全実装

インストール:

cp 04-subagents/*.md /path/to/project/.claude/agents/

使い方:メインエージェントが自動的に委譲する

05. MCP プロトコル

配置場所:05-mcp/

概要:外部ツールや API にアクセスするための Model Context Protocol

例:

  • github-mcp.json — GitHub 連携
  • database-mcp.json — データベースクエリ(DATABASE_URL には SELECT 専用ユーザーを指定する。読み取り専用の設定 を参照)
  • filesystem-mcp.json — ファイル操作
  • multi-mcp.json — 複数の MCP サーバ

インストール:

# 環境変数を設定
export DATABASE_URL="postgresql://..."

# CLI で MCP サーバを追加
claude mcp add --transport http github https://api.githubcopilot.com/mcp/ --header "Authorization: Bearer YOUR_GITHUB_PAT"

# またはプロジェクト .mcp.json に手動追加 (例は 05-mcp/ を参照)

使い方:設定後、MCP ツールは自動的に Claude から利用可能になる

06. フック

配置場所:06-hooks/

概要:Claude Code のイベントに応じて自動実行されるイベント駆動シェルコマンド

例:

  • format-code.sh — 書き込み後にコードを自動整形
  • pre-commit.sh — コミット前にテストを実行
  • security-scan.sh — セキュリティ問題のスキャン
  • log-bash.sh — すべての bash コマンドをログに記録
  • validate-prompt.sh — ユーザープロンプトを検証
  • notify-team.sh — イベント発生時の通知送信

インストール:

mkdir -p ~/.claude/hooks
cp 06-hooks/*.sh ~/.claude/hooks/
chmod +x ~/.claude/hooks/*.sh

~/.claude/settings.json でフックを設定する:

{
  "hooks": {
    "PostToolUse": [
      {
        "matcher": "Write",
        "hooks": [
          { "type": "command", "command": "~/.claude/hooks/format-code.sh" },
          { "type": "command", "command": "~/.claude/hooks/security-scan.sh" }
        ]
      }
    ]
  }
}

使い方:イベント発生時にフックが自動実行される

フックの種類(5 種):command、http、prompt、mcp_tool、agent — フックの実行方式。

フックイベント(33 件、4 カテゴリ)— 実行タイミング:

  • ツール系フック:PreToolUse、PostToolUse、PostToolUseFailure、PostToolBatch、PermissionRequest、PermissionDenied
  • セッション系フック:SessionStart、Setup、SessionEnd、Stop、StopFailure、SubagentStart、SubagentStop
  • タスク系フック:UserPromptSubmit、UserPromptExpansion、MessageDisplay、TaskCompleted、TaskCreated、TeammateIdle(TaskCompleted と TaskCreated は todo ツールが有効なときのみ発火 — Claude 3.x、Opus 4〜4.7、Sonnet 4〜4.6、Haiku 4.5 でのみデフォルト有効。CLAUDE_CODE_ENABLE_TODO_TOOLS=1 で復活)
  • ライフサイクル系フック:ConfigChange、CwdChanged、DirectoryAdded、FileChanged、PreCompact、PostCompact、PreModelSwitch、PostModelSwitch、WorktreeCreate、WorktreeRemove、Notification、InstructionsLoaded、Elicitation、ElicitationResult
07. プラグイン

配置場所:07-plugins/

概要:コマンド、エージェント、MCP、フックをまとめたバンドル

例:

  • pr-review/ — 完全な PR レビューワークフロー
  • devops-automation/ — デプロイと監視
  • documentation/ — ドキュメント生成

インストール:

# リポジトリのルートから実行(このリポジトリにはマーケットプレイスがないため /plugin install は使えない)
claude --plugin-dir ./07-plugins/pr-review
claude --plugin-dir ./07-plugins/devops-automation
claude --plugin-dir ./07-plugins/documentation

使い方:バンドルされたスラッシュコマンドや機能を利用する

08. チェックポイントと巻き戻し

配置場所:08-checkpoints/

概要:会話の状態を保存し、過去地点に巻き戻して別のアプローチを試す機能

主要概念:

  • チェックポイント:会話状態のスナップショット
  • 巻き戻し:以前のチェックポイントへ戻る
  • 分岐点:同じチェックポイントから複数のアプローチを試す

使い方:

# チェックポイントはユーザープロンプトのたびに自動作成される
# 巻き戻しは Esc を 2 回押すか、次を実行:
/rewind

# 6 つの選択肢から選ぶ:
# 1. コードと会話を復元
# 2. 会話のみ復元
# 3. コードのみ復元
# 4. ここから要約
# 5. ここまでを要約
# 6. やめる

ユースケース:

  • 複数の実装アプローチを試す
  • ミスからのリカバリ
  • 安全な実験
  • 代替案の比較
  • 異なる設計の A/B テスト
09. 高度な機能

配置場所:09-advanced-features/

概要:複雑なワークフローと自動化のための高度な機能

含まれる機能:

  • プランニングモード — コーディング前に詳細な実装計画を作成
  • 拡張思考(Extended Thinking) — 複雑な問題に対する深い推論(Alt+T / Option+T で切り替え)
  • バックグラウンドタスク — ブロックなしに長時間処理を実行
  • 権限モード — default、acceptEdits、plan、dontAsk、bypassPermissions
  • ヘッドレスモード — CI/CD で Claude Code を実行:claude -p "Run tests and generate report" --permission-mode auto
  • セッション管理 — /resume、/rename、/fork、claude -c、claude -r
  • 設定 — ~/.claude/settings.json で挙動をカスタマイズ

完全な設定例は config-examples.json を参照。

10. CLI リファレンス

配置場所:10-cli/

概要:Claude Code のコマンドラインインターフェース完全リファレンス

簡単な例:

# 対話モード
claude "explain this project"

# 印字モード (非対話)
claude -p "review this code"

# ファイル内容を処理
cat error.log | claude -p "explain this error"

# スクリプト向け JSON 出力
claude -p --output-format json "list functions"

# セッション再開
claude -r "feature-auth" "continue implementation"

ユースケース:CI/CD パイプライン統合、スクリプト自動化、バッチ処理、複数セッションのワークフロー、カスタムエージェント設定

ワークフロー例

完全なコードレビューワークフロー

# 利用機能: スラッシュコマンド + サブエージェント + メモリ + MCP

User: /review-pr

Claude:
1. プロジェクトメモリ (コーディング規約) を読み込む
2. GitHub MCP 経由で PR を取得
3. code-reviewer サブエージェントに委譲
4. test-engineer サブエージェントに委譲
5. 知見を統合
6. 包括的なレビューを提供

ドキュメント自動生成

# 利用機能: スキル + サブエージェント + メモリ

User: "auth モジュールの API ドキュメントを生成して"

Claude:
1. プロジェクトメモリ (ドキュメント規約) を読み込む
2. ドキュメント生成リクエストを検知
3. doc-generator スキルを自動起動
4. api-documenter サブエージェントに委譲
5. 例つきの包括的なドキュメントを作成

DevOps デプロイ

# 利用機能: プラグイン + MCP + フック

User: /deploy production

Claude:
1. デプロイ前フックを実行 (環境を検証)
2. deployment-specialist サブエージェントに委譲
3. Kubernetes MCP 経由でデプロイ実行
4. 進捗を監視
5. デプロイ後フックを実行 (ヘルスチェック)
6. ステータスを報告
ディレクトリ構造
├── 01-slash-commands/
│   ├── optimize.md
│   ├── pr.md
│   ├── generate-api-docs.md
│   └── README.md
├── 02-memory/
│   ├── project-CLAUDE.md
│   ├── directory-api-CLAUDE.md
│   ├── personal-CLAUDE.md
│   └── README.md
├── 03-skills/
│   ├── code-review/
│   │   ├── SKILL.md
│   │   ├── scripts/
│   │   └── templates/
│   ├── brand-voice/
│   │   ├── SKILL.md
│   │   └── templates/
│   ├── doc-generator/
│   │   ├── SKILL.md
│   │   └── generate-docs.py
│   └── README.md
├── 04-subagents/
│   ├── code-reviewer.md
│   ├── test-engineer.md
│   ├── documentation-writer.md
│   ├── secure-reviewer.md
│   ├── implementation-agent.md
│   └── README.md
├── 05-mcp/
│   ├── github-mcp.json
│   ├── database-mcp.json
│   ├── filesystem-mcp.json
│   ├── multi-mcp.json
│   └── README.md
├── 06-hooks/
│   ├── format-code.sh
│   ├── pre-commit.sh
│   ├── security-scan.sh
│   ├── log-bash.sh
│   ├── validate-prompt.sh
│   ├── notify-team.sh
│   └── README.md
├── 07-plugins/
│   ├── pr-review/
│   ├── devops-automation/
│   ├── documentation/
│   └── README.md
├── 08-checkpoints/
│   ├── checkpoint-examples.md
│   └── README.md
├── 09-advanced-features/
│   ├── config-examples.json
│   ├── planning-mode-examples.md
│   └── README.md
├── 10-cli/
│   └── README.md
└── README.md (このファイル)
ベストプラクティス

推奨事項

  • スラッシュコマンドからシンプルに始める
  • 機能を段階的に追加する
  • メモリにチーム規約を入れる
  • 設定はまずローカルで試す
  • カスタム実装をドキュメント化する
  • プロジェクト設定をバージョン管理する
  • プラグインをチームで共有する

避けるべきこと

  • 重複した機能を作らない
  • 認証情報をハードコードしない
  • ドキュメント化を省略しない
  • 単純なタスクを過度に複雑にしない
  • セキュリティのベストプラクティスを無視しない
  • 機密データをコミットしない
トラブルシューティング

機能が読み込まれない

  1. ファイルの配置場所と命名を確認
  2. YAML フロントマターの構文を確認
  3. ファイル権限を確認
  4. Claude Code のバージョン互換性を確認

MCP 接続失敗

  1. 環境変数を確認
  2. MCP サーバのインストールを確認
  3. 認証情報をテスト
  4. ネットワーク接続を確認

サブエージェントに委譲されない

  1. ツール権限を確認
  2. エージェント説明文の明確さを確認
  3. タスクの複雑度を確認
  4. エージェント単体でテスト
テスト

このプロジェクトには包括的な自動テストが含まれる。

  • ユニットテスト:pytest を使った Python テスト(Python 3.10、3.11、3.12)
  • コード品質:Ruff によるリンティングとフォーマット
  • セキュリティ:Bandit による脆弱性スキャン
  • 型チェック:mypy による静的型解析
  • ビルド検証:EPUB 生成のテスト
  • カバレッジ計測:Codecov 統合
# 開発依存関係をインストール
uv pip install -r requirements-dev.txt

# 全ユニットテストを実行
pytest scripts/tests/ -v

# カバレッジレポートつきでテスト実行
pytest scripts/tests/ -v --cov=scripts --cov-report=html

# コード品質チェック
ruff check scripts/
ruff format --check scripts/

# セキュリティスキャン
bandit -c pyproject.toml -r scripts/ --exclude scripts/tests/

# 型チェック
mypy scripts/ --ignore-missing-imports

main/develop への push および main への PR で自動的にテストが実行される。詳細は TESTING.md を参照。

EPUB 生成

本ガイドをオフラインで読みたい場合は EPUB 電子書籍を生成する。

uv run scripts/build_epub.py

これによりレンダリング済み Mermaid 図を含む全コンテンツの claude-howto-guide.epub が作成される。

詳細なオプションは scripts/README.md を参照。

コントリビュート

問題を見つけた、もしくは例を提供したい場合は歓迎する。

詳細なガイドラインは CONTRIBUTING.md を参照:

  • コントリビュートの種類(例、ドキュメント、機能、バグ、フィードバック)
  • 開発環境のセットアップ方法
  • ディレクトリ構造とコンテンツ追加方法
  • 執筆ガイドラインとベストプラクティス
  • コミットおよび PR プロセス

コミュニティ標準:

セキュリティ問題の報告

セキュリティ脆弱性を発見した場合は、責任ある形で報告してほしい。

  1. GitHub のプライベート脆弱性報告を使う:https://github.com/luongnv89/claude-howto/security/advisories
  2. または .github/SECURITY_REPORTING.md で詳細手順を読む
  3. セキュリティ脆弱性については 公開 issue を立てない

クイックスタート:

  1. リポジトリをフォークしてクローン
  2. 内容が分かるブランチ名を作る(add/feature-name、fix/bug、docs/improvement など)
  3. ガイドラインに沿って変更を加える
  4. 明確な説明をつけてプルリクエストを送る

助けが必要なら? issue かディスカッションを立てれば、プロセスを案内する。

追加リソース

コントリビュート

コントリビュートを歓迎する。始め方の詳細は Contributing Guide を参照。


ライセンス

MIT License — LICENSE を参照。利用、変更、再配布は自由。唯一の条件はライセンス表記の同梱である。


最終更新:2026 年 11 月 12 日 Claude Code バージョン:2.1.322 情報源: