Type: docs Makes the version stamps, Compatible Models footers and locale README badges say only what has been checked. Every claim below was checked against `https://code.claude.com/docs/en/<page>.md` or the raw changelog (2.1.303–2.1.322), not written from memory. ## Part A: English footers at 2.1.310 / 2.1.302 Each file's behavioural claims were checked against every changelog entry after its stamp, up to 2.1.322, and against the current docs. A stamp moves only when every claim checks out. | File | Claims checked | Fixes | Sources | New stamp | |---|---|---|---|---| | `INDEX.md` | ~75: AGENTS.md rule (v2.1.277); skill/agent/MCP install paths; `/mcp__github__list_prs`; 5 hook types, 33 events, task-tool model note; `--plugin-dir`; checkpoint menu (6 options); `/workflows`, ultracode (v2.1.284), size guideline; 6 permission modes; `/loop` and the cron tools; Chrome; Remote Control; `SendMessage`/`ListAgents`/`notify_when_idle`; CLI flags | 1. Workflow size: medium aims for fewer than 10 agents only since v2.1.271 (15 before), and the default is small on a Pro plan. 2. dontAsk: file reads inside the working directories also run, as do *most* calls a `permissions.allow` rule or a `PreToolUse` hook approves (neither can approve critical-path `rm`/`rmdir` or network-path reads), and an installed mod can approve some calls. No version is given: the changelog doesn't say when a mod's `tool.check` allow arrived (it is already referenced in 2.1.290, 2.1.292 and 2.1.299). 3. `SendMessage` also reaches sessions on other machines and in the cloud, from a session connected to Remote Control with a claude.ai sign-in; a cloud session can't answer with `SendMessage`. The L383 use-case column now says the same. 4. The `--model` list adds the Fable models. 5. Plan mode: "Read-only analysis" → researches and proposes, runs shell commands to explore, edits blocked until the plan is approved. | [workflows#set-a-size-guideline](https://code.claude.com/docs/en/workflows#set-a-size-guideline) ("The default is `medium`, or `small` when you're signed in on a Pro plan with Claude Code v2.1.271 or later"); CL 2.1.219 ("aim for fewer than 15 agents"), CL 2.1.271 ("lowered the medium size guideline from 15 to 10 agents"); [permission-modes](https://code.claude.com/docs/en/permission-modes#allow-only-pre-approved-tools-with-dontask-mode) ("a mod you installed can still approve some of those calls"; "Claude still runs … file reads inside your working directories and read-only Bash commands"; "It also denies the built-in `AskUserQuestion` tool even if your allow rules match it"; "An allow rule or `PreToolUse` hook can't approve these: Recognized `rm` and `rmdir` critical-path removals … Reads from a network path"); CL 2.1.292 ("Fixed a plugin's `tool.check` hook answering allow running a tool…"), CL 2.1.299 ("…that a `PreToolUse` hook or a mod's `tool.check` hook allowed"); [permission-modes#analyze-before-you-edit-with-plan-mode](https://code.claude.com/docs/en/permission-modes#analyze-before-you-edit-with-plan-mode) ("Claude reads files, runs shell commands to explore, and writes a plan, but does not edit your source. Except in interactive terminal sessions with bypass permissions available, edits stay blocked until you approve the plan."); [cross-session-messaging](https://code.claude.com/docs/en/cross-session-messaging) ("reach your sessions on other machines or in the cloud"; "from a session that is connected to Remote Control, which needs a claude.ai sign-in"; "A cloud session … can't use `SendMessage` to answer a message from another machine"); model-config. The "device card" line checked out against [whats-new/2026-w34](https://code.claude.com/docs/en/whats-new/2026-w34). | **2.1.322** | | `LEARNING-ROADMAP.md` | 33 hook events / 5 types; 6 built-in subagents (Explore, Plan, General-purpose, claude, statusline-setup, claude-code-guide); 60+ commands (commands page has 121 rows); `/design` (v2.1.265); `/plan`, `/rewind`, `/loop 5m`, `/schedule`; 6 permission modes (Manual since v2.1.200); Alt+T; skill `effort`/`shell`; plugin `workflows`/`channels`/`dependencies`; agent-teams env var; `claude mcp add --transport http`; `-r`, `--max-turns`, `--output-format json`; all 17 source links resolve | 1. Remote Control: "generally available" → "out of research preview", the docs' own wording. 2. Extended thinking (L368, Exercise 3, checklist): Opus 5.5, Sonnet 5.5, Haiku 5.5 and the Fable models always use extended thinking, so the exercise uses `/effort` and scopes Alt+T / Option+T to models that allow turning thinking off. 3. Exercise 4: checkpoints are automatic and unnamed, so step 1 no longer creates a named "Clean state" checkpoint and step 5 says which one to `/rewind` to. | [whats-new/2026-w34](https://code.claude.com/docs/en/whats-new/2026-w34): "Any machine running `claude remote-control` now shows up as a device card at the top of the Code tab in the Claude app. Remote Control is also out of research preview."; [interactive-mode](https://code.claude.com/docs/en/interactive-mode): Alt+T "Has no effect on Opus 5.5, Sonnet 5.5, Haiku 5.5, or the Fable models, which always use extended thinking."; [model-config](https://code.claude.com/docs/en/model-config): "the effort level is the primary control for how much thinking happens"; [checkpointing](https://code.claude.com/docs/en/checkpointing): "Every prompt you send that starts a turn creates a new checkpoint" | **2.1.322** | | `resources.md` | Adaptive reasoning on Opus 4.7+, Sonnet 5+, Haiku 5.5 and the Fable models; permission modes; 33 hook events; `/loop` and cron; 7 memory tiers; Chrome; keybinding chords; Code Review; Monitor (2.1.98); `/goal` and `claude agents` (2.1.139); `--json` (2.1.145); all links | none needed | model-config, hooks, memory, agent-view, changelog | **stays 2.1.310**: L253 gives `/run`, `/verify`, `/run-skill-generator` as "(v2.1.145+)". Neither the changelog, the v2.1.145 release notes, the skills/commands docs nor the what's-new pages for weeks 19–22 give a version. | | `03-skills/claude-md/SKILL.md` | `name`/`description` frontmatter, `$ARGUMENTS`; CLAUDE.md locations and loading; "under 200 lines"; AGENTS.md gates (v2.1.277, v2.1.281), blocking files, `/config` Project instructions values and default; `@AGENTS.md`/symlink fallback; `.claude/agents/` | L196: the list of cases where AGENTS.md isn't read now includes a disabled built-in plugin, and limits the upgrade case to "in some cases" after upgrading from v2.1.276 or earlier | [memory#when-agents-md-support-is-unavailable](https://code.claude.com/docs/en/memory#when-agents-md-support-is-unavailable): "You used `/plugin` to disable the built-in plugin that reads `AGENTS.md`"; "In some cases, it's your first session after you upgrade from v2.1.276 or earlier" | **stays 2.1.302**: no primary source states L24 ("~150-200 instructions", "system prompt already uses ~50") or L214 (the system reminder says CLAUDE.md "may or may not be relevant") | | `07-plugins/devops-automation/README.md` | `--plugin-dir` install; commands; agents; hooks; MCP; workflow; source URLs (all 200) | none: the stale claims need a design decision (below) | [plugins/components](https://code.claude.com/docs/en/plugins/components): "Save a command at `commands/<file>.md` and it becomes `/<plugin>:<file>`"; [plugins-reference](https://code.claude.com/docs/en/plugins-reference) standard layout: "Hooks \| `hooks/hooks.json`", "MCP servers \| `.mcp.json`" | **stays 2.1.302**: bare `/deploy`, `/rollback`, `/status` (`/status` is also a built-in), `/incident`; `hooks/*.js` are never registered (no `hooks/hooks.json`); `mcp/kubernetes-config.json` never loads (no `.mcp.json` or `mcpServers`) | | `07-plugins/documentation/README.md` | same | none | same | **stays 2.1.302**: bare command names; `mcp/github-docs-config.json` never loads, so the `GITHUB_TOKEN` setup has no effect | | `07-plugins/pr-review/README.md` | same | none | same | **stays 2.1.302**: bare command names; `hooks/pre-review.js` is not registered; `mcp/github-config.json` never loads | No changelog entry from 2.1.303 to 2.1.322 touched the plugin READMEs or SKILL.md. Their problems predate the stamps, and #209 already listed the hook/MCP files that never load. **Locale copies:** the same factual fixes went into every locale with the same sentence. That's dontAsk and plan mode in all six INDEX files; workflow size in fa and ko; `SendMessage` and the use-case column in fa and ko; the `--model` list in fa and ko; "generally available" in fa and ko LEARNING-ROADMAP; the extended-thinking exercise/checklist and the checkpoint exercise in all six LEARNING-ROADMAP copies; the AGENTS.md cases in all six SKILL.md copies. Locale stamps were not bumped. INDEX and LEARNING-ROADMAP stay at 2.1.310 in every locale, and the SKILL.md copies keep their footers. ## Part B: Compatible Models footers The new list is **Claude Fable 5.2, Claude Fable 5.1, Claude Fable 5, Claude Opus 5.5, Claude Opus 5, Claude Sonnet 5.5, Claude Sonnet 5, Claude Sonnet 4.6, Claude Opus 4.8, Claude Haiku 5.5, Claude Haiku 4.5**. It is used on root docs and module pages alike, and it's the README FAQ's list, so the footers and the FAQ no longer disagree. Why one list for both file types: STYLE_GUIDE's footer rule ("List all compatible models") applies to both. A shorter "current models only" list on module pages would break that rule. Justification from [model-config](https://code.claude.com/docs/en/model-config): - **Current models:** "| Anthropic API | Opus 5.5 | Sonnet 5.5 | Haiku 5.5 |"; "the `fable` alias resolves to Fable 5 in Claude apps gateway sessions and to Fable 5.2 everywhere else"; "Fable 5.2 requires Claude Code v2.1.321 or later". - **Older models still in use:** - "**Fable 5.1 or Fable 5**: select it by model ID." - "| Claude Platform on AWS | Opus 5.5 | Sonnet 4.6 | Haiku 4.5 |". - "biology-flagged requests re-run on Opus 5, and cybersecurity-flagged requests re-run on Opus 4.8". - "**Sonnet 5.5**: cybersecurity-flagged requests re-run on Sonnet 5." - **None are retired.** The [models overview](https://platform.claude.com/docs/en/about-claude/models/overview) that model-config links marks only Opus 4.1, Opus 4 and Sonnet 4 as "retired". All eleven listed models appear there without that mark. Scope: 336 lines in 331 files. The changed lines are the `**Compatible Models**` lines (92, some of them in locale files) and every localized label (`호환 모델`, `مدلهای سازگار`, `Các Mô Hình Tương Thích`, `Сумісні моделі`, `対応モデル`, `互換モデル`, `兼容模型`), plus the italic `*対応:…*` / `*Для …*` / `*适用于 …*` lines in the ja/uk/zh concepts guides. Labels, separators (`, ` `、` `، `) and locale stamps are unchanged. The README FAQ lines and the 05-mcp `tool_reference` note are not footers and were left alone. The footer lines of `CHANGELOG.md`, `fa/CHANGELOG.md` and `ko/CHANGELOG.md` also carry the new list; only the footer line changed, not the entries. ## Part C: locale README badges Real state: the newest version that most (more than half) of the locale's ten module READMEs carry or exceed, backed by the sync commit that brought them there. A badge is marked **(partial)** when one or more of the locale's module READMEs has no version footer (never synced since its first translation), or when the locale is a condensed translation. A module synced to an older version than the badge doesn't make it partial on its own; the majority rule above already covers that. Only zh meets the rule (02-memory and 05-mcp have no footer, and #247 calls zh condensed). | Locale | Old badge / "latest" | Evidence | New | |---|---|---|---| | ja | 2.1.119 (badge, "latest", FAQ) | module footers: 3×2.1.322, 5×2.1.316, 1×2.1.310, 1×2.1.302; 8/10 ≥ 2.1.316 (#230); #247 carried only the sections ja has | **2.1.316** (Oct 2026) | | uk | 2.1.112 (FAQ line; no badge) | 3×2.1.322, 4×2.1.316, 1×2.1.310, 2×2.1.302; 7/10 ≥ 2.1.316 (#230) | **2.1.316** (Oct 2026) | | zh | 2.1.112 (badge, "latest", FAQ) | 2.1.316, 2.1.310 ×2, 2.1.302 ×2, 2.1.300 ×2, 2.1.278; 02 and 05 have no footer (untouched since the first translation); 7/10 ≥ 2.1.300 (#193); #247 was "condensed", model lists only | **2.1.300 (partial)** (Oct 2026): the badge, "latest" and FAQ lines say zh is condensed and that 02-memory and 05-mcp haven't been synced since the April 2026 translation | | ko | 2.1.310 | 5×2.1.322, 5×2.1.310; #228 synced ko to 2.1.310, and #247 says 2.1.316 "was not backfilled" | **2.1.310** (unchanged) | | fa | 2.1.310 | 5×2.1.322, 5×2.1.316; #241 "syncs the translation from v2.1.310 to v2.1.316"; #247 carried only the 2.1.322 P1 changes | **2.1.316** (Oct 2026) | | vi | none (README has no badge or version line) | 4×2.1.322, 6×2.1.316 | no change | Months come from the docs changelog: 2.1.300 was released October 14, 2026 and 2.1.316 October 31, 2026. The README *footers* in fa/ja/ko/uk/zh stay at 2.1.322: #247 checked those files themselves, while the badge describes the whole locale. ## Deliberately left - **Stamps not bumped:** `resources.md` (2.1.310), `03-skills/claude-md/SKILL.md` and the three plugin READMEs (2.1.302), for the reasons in the Part A table. - **Example plugins:** the fix is a design choice between wiring up `hooks/hooks.json` / `.mcp.json` and rewording the READMEs, and renaming commands to `/<plugin>:<name>` touches seven languages plus `07-plugins/README.md` (bare `/review-pr`). It needs a follow-up issue. - **Same unverifiable version elsewhere:** `03-skills/README.md` also said `/run-skill-generator` is v2.1.145+. Handled by #262, now merged into this branch from `main`. - **Older `--model` lists:** ja/uk/vi/zh INDEX have pre-5.x lists (e.g. "Sonnet 4.6, Opus 4.7, Haiku 4.5"). That isn't the English sentence, so it belongs to a locale sync. ## Follow-ups - **LEARNING-ROADMAP `/effort` line (review r3 N13):** line 368 can read as if `/effort` applies only to the models that always use extended thinking; per model-config's effort table it also works on Opus 5, Sonnet 5 and Opus 4.8. Not wrong; clarify in the next pass. - **Compatible Models scope (review S3):** Opus 4.6 is Microsoft Foundry's current `opus`, and Sonnet 4.5 is the current `sonnet` on Bedrock, Google Cloud's Agent Platform and Foundry (deprecated, retiring Nov 30, 2026), per model-config's alias table. Both are still in use, so either add them to the FAQ and every footer (Sonnet 4.5 marked deprecated), or define the list's scope in STYLE_GUIDE (e.g. the models the aliases resolve to on the Anthropic API plus older models in active use) and cite the deprecations table. - **Model order (review N8):** the list puts Opus 4.8 after Sonnet 4.6. Grouping by family (Fable, Opus 5.5/5/4.8, Sonnet, Haiku) would read better; the order is shared by STYLE_GUIDE, the FAQ and every footer, so change it everywhere at once. - **Example plugins:** the follow-up issue proposed above. ## Validation - `SKIP=mermaid,vietnamese-mermaid,japanese-mermaid,korean-mermaid,persian-mermaid pre-commit run --files <338 changed files>`: every hook passes, including link-check (246 URLs per language). The Mermaid hooks can't install here (`language: node must have package.json or additional_dependencies`, the same failure #247 reported). `python scripts/check_mermaid.py --strict` was run directly instead: Pele 1.6.0 rendered all 416 blocks. - `python scripts/check_cross_references.py`: all valid (674 files). - Review fix round 1 (18 files): the same `pre-commit run --files` passes every hook (Mermaid hooks skipped as above; no Mermaid block was touched), and the cross-reference check is still valid after merging `main`. - Review fix round 2 (14 files: the extended-thinking wording in all 7 LEARNING-ROADMAP files, the dontAsk line in all 7 INDEX files): `pre-commit run --files` passes every hook (Mermaid hooks skipped; no Mermaid block touched), and the cross-reference check is valid (674 files) after merging `main` again (#257). - Pre-push secret scan: it flagged `06-hooks/README.md:1683` (en, fa, vi), a false positive. The `sk-…{20,}` pattern matches the docs anchor `hooks#pretooluse-ask-decisions-in-auto-mode`, which has been on `main` since11b2ae3(en),c2f92c8(fa) and8de1820(vi), and is not on a line this PR changes. The PR's added lines have no secret-pattern matches. Closes #256
22 KiB
فهرست منابع خوب
مستندات رسمی
| منبع | توضیح | لینک |
|---|---|---|
| مستندات Claude Code | مستندات رسمی Claude Code | code.claude.com/docs/en/overview |
| مستندات Anthropic | مستندات کامل Anthropic | docs.anthropic.com |
| پروتکل MCP | مشخصات پروتکل Model Context | modelcontextprotocol.io |
| سرورهای MCP | پیادهسازیهای رسمی سرور MCP | github.com/modelcontextprotocol/servers |
| کتاب آشپزی Anthropic | نمونههای کد و آموزشها | github.com/anthropics/anthropic-cookbook |
| مهارتهای Claude Code | مخزن مهارتهای جامعه | github.com/anthropics/skills |
| تیمهای ایجنت | هماهنگی و همکاری چندایجنتی | code.claude.com/docs/en/agent-teams |
| وظایف زمانبندیشده | وظایف تکراری با /loop و cron | code.claude.com/docs/en/scheduled-tasks |
| یکپارچگی Chrome | خودکارسازی مرورگر | code.claude.com/docs/en/chrome |
| کلیدبایندها | سفارشیسازی میانبرهای صفحهکلید | code.claude.com/docs/en/keybindings |
| برنامه دسکتاپ | برنامه دسکتاپ بومی | code.claude.com/docs/en/desktop |
| کنترل از راه دور | کنترل جلسه از راه دور | code.claude.com/docs/en/remote-control |
| حالت خودکار | مدیریت خودکار اجازه | code.claude.com/docs/en/permissions |
| کانالها | ارتباط چندکاناله | code.claude.com/docs/en/channels |
| دیکته صوتی | ورودی صوتی برای Claude Code | code.claude.com/docs/en/voice-dictation |
| بازبینی کد | بازبینیهای درخواست pull مدیریتشده از طریق Claude GitHub App (Team و Enterprise) | code.claude.com/docs/en/code-review |
بلاگ مهندسی Anthropic
| مقاله | توضیح | لینک |
|---|---|---|
| اجرای کد با MCP | چگونه با استفاده از اجرای کد، اضافهبار زمینه MCP را حل کنیم — کاهش ۹۸.۷ درصدی توکن | anthropic.com/engineering/code-execution-with-mcp |
تسلط بر Claude Code در ۳۰ دقیقه
ویدیو: https://www.youtube.com/watch?v=6eBSHbLKuN0
همه نکات
-
کاوش ویژگیهای پیشرفته و میانبرها
- بهطور منظم ویژگیهای جدید ویرایش کد و زمینه Claude را در یادداشتهای انتشار آنها بررسی کنید.
- میانبرهای صفحهکلید را یاد بگیرید تا سریع بین نمای چت، فایل و ویرایشگر جابهجا شوید.
-
راهاندازی کارآمد
- جلسات خاص پروژه با نامها/توضیحات واضح برای بازیابی آسان ایجاد کنید.
- فایلها یا پوشههای پراستفاده را پین کنید تا Claude هر زمان به آنها دسترسی داشته باشد.
- یکپارچگیهای Claude (مثلاً GitHub، IDEهای محبوب) را برای تسریع فرآیند کدنویسی تنظیم کنید.
-
پرسوپاسخ کارآمد پایگاه کد
- از Claude سوالات دقیق درباره معماری، الگوهای طراحی و ماژولهای خاص بپرسید.
- از ارجاعات فایل و خط در سوالات خود استفاده کنید (مثلاً "منطق در
app/models/user.pyچه کاری انجام میدهد؟"). - برای پایگاههای کد بزرگ، یک خلاصه یا manifest ارائه دهید تا Claude تمرکز کند.
- نمونه پرامپت: "میتوانی جریان احراز هویت پیادهسازیشده در src/auth/AuthService.ts:45-120 را توضیح دهی؟ چگونه با middleware در src/middleware/auth.ts یکپارچه میشود؟"
-
ویرایش و بازطراحی کد
- از کامنتهای درونخطی یا درخواستها در بلوکهای کد برای دریافت ویرایشهای متمرکز استفاده کنید ("این تابع را برای وضوح بازطراحی کن").
- مقایسه side-by-side قبل/بعد درخواست کنید.
- اجازه دهید Claude پس از ویرایشهای بزرگ، تست یا مستندات تولید کند برای اطمینان از کیفیت.
- نمونه پرامپت: "تابع getUserData در api/users.js را بازطراحی کن تا به جای promises از async/await استفاده کند. مقایسه قبل/بعد به من نشان بده و تستهای واحد برای نسخه بازطراحیشده تولید کن."
-
مدیریت زمینه
- کد/زمینه جایگذاریشده خود را فقط به موارد مرتبط برای وظیفه فعلی محدود کنید.
- از پرامپتهای ساختاریافته ("این فایل A است، این تابع B است، سوال من X است") برای بهترین عملکرد استفاده کنید.
- فایلهای بزرگ را در پنجره پرامپت حذف یا جمع کنید تا از عبور از محدودیتهای زمینه جلوگیری شود.
- نمونه پرامپت: "این مدل User از models/User.js و تابع validateUser از utils/validation.js است. سوال من: چگونه میتوانم اعتبارسنجی ایمیل را اضافه کنم و سازگاری با نسخه قبلی را حفظ کنم؟"
-
یکپارچهسازی ابزارهای تیم
- جلسات Claude را به مخازن و مستندات تیم خود متصل کنید.
- از قالبهای داخلی استفاده کنید یا قالبهای سفارشی برای وظایف مهندسی تکراری ایجاد کنید.
- با به اشتراکگذاری رونوشتهای جلسه و پرامپتها با همتیمیها همکاری کنید.
-
افزایش عملکرد
- دستورالعملهای واضح و هدفمحور به Claude بدهید (مثلاً "این کلاس را در پنج نکته خلاصه کن").
- کامنتها و کدهای تکراری غیرضروری را از پنجرههای زمینه حذف کنید.
- اگر خروجی Claude از مسیر خارج شد، زمینه را بازنشانی کنید یا سوالات را بازنویسی کنید برای همراستایی بهتر.
- نمونه پرامپت: "کلاس DatabaseManager در src/db/Manager.ts را در پنج نکته خلاصه کن، با تمرکز بر مسئولیتهای اصلی و متدهای کلیدی."
-
نمونههای استفاده عملی
- اشکالزدایی: خطاها و stack trace را جایگذاری کنید، سپس علل و راهحلهای ممکن را درخواست کنید.
- تولید تست: تستهای property-based، واحد یا یکپارچگی برای منطق پیچیده درخواست کنید.
- بازبینیهای کد: از Claude بخواهید تغییرات پرخطر، موارد لبه یا code smell را شناسایی کند.
- نمونه پرامپتها:
- "این خطا را دریافت میکنم: 'TypeError: Cannot read property 'map' of undefined at line 42 in components/UserList.jsx'. stack trace و کد مرتبط اینجاست. چه چیزی باعث این میشود و چگونه میتوانم آن را اصلاح کنم؟"
- "تستهای واحد جامع برای کلاس PaymentProcessor تولید کن، شامل موارد لبه برای تراکنشهای ناموفق، timeout و ورودیهای نامعتبر."
- "این diff درخواست pull را بازبینی کن و مسائل امنیتی بالقوه، گلوگاههای عملکرد و code smell را شناسایی کن."
-
خودکارسازی خط لوله کاری
- وظایف تکراری (مثل قالببندی، پاکسازی و تغییر نام تکراری) را با استفاده از پرامپتهای Claude اسکریپت کنید.
- از Claude برای پیشنویس توضیحات PR، یادداشتهای انتشار یا مستندات بر اساس diff کد استفاده کنید.
- نمونه پرامپت: "بر اساس git diff، یک توضیحات PR دقیق با خلاصه تغییرات، فهرست فایلهای تغییریافته، مراحل تست و تأثیرات احتمالی ایجاد کن. همچنین یادداشتهای انتشار برای نسخه 2.3.0 تولید کن."
نکته: برای بهترین نتایج، چندین مورد از این شیوهها را ترکیب کنید — با پین کردن فایلهای حیاتی و خلاصه کردن اهداف خود شروع کنید، سپس از پرامپتهای متمرکز و ابزارهای بازطراحی Claude برای بهبود تدریجی پایگاه کد و خودکارسازی خود استفاده کنید.
خط لوله کاری پیشنهادی با Claude Code
خط لوله کاری پیشنهادی با Claude Code
برای یک مخزن جدید
-
راهاندازی مخزن و یکپارچگی Claude
- مخزن جدید خود را با ساختار ضروری راهاندازی کنید: README، LICENSE، .gitignore، کانفیگهای ریشه.
- یک فایل
CLAUDE.mdایجاد کنید که معماری، اهداف سطح بالا و راهنماییهای کدنویسی را توصیف کند. - Claude Code را نصب کرده و به مخزن خود لینک کنید برای پیشنهادهای کد، ساختار تست و خودکارسازی خط لوله کاری.
-
استفاده از حالت Plan و مشخصات
- از حالت plan (
shift-tabیا/plan) برای پیشنویس یک مشخصات دقیق قبل از پیادهسازی ویژگیها استفاده کنید. - از Claude پیشنهادهای معماری و چیدمان اولیه پروژه بخواهید.
- یک توالی پرامپت واضح و هدفمحور داشته باشید — برای طرحهای کامپوننت، ماژولهای اصلی و مسئولیتها سوال کنید.
- از حالت plan (
-
توسعه تکراری و بازبینی
- ویژگیهای اصلی را در قطعات کوچک پیادهسازی کنید، و از Claude برای تولید کد، بازطراحی و مستندسازی پرامپت بگیرید.
- پس از هر افزایش، تستهای واحد و مثالها درخواست کنید.
- یک فهرست وظایف در حال اجرا در CLAUDE.md نگه دارید.
-
خودکارسازی CI/CD و استقرار
- از Claude برای ساخت GitHub Actions، اسکریپتهای npm/yarn یا خط لولههای استقرار استفاده کنید.
- خط لولهها را با بهروزرسانی CLAUDE.md و درخواست کامندها/اسکریپتهای مربوطه بهراحتی تطبیق دهید.
graph TD
A[Start New Repository] --> B[Initialize Repository Structure]
B --> C[Create README, LICENSE, .gitignore]
C --> D[Create CLAUDE.md]
D --> E[Document Architecture & Guidelines]
E --> F[Install & Link Claude Code]
F --> G[Enter Plan Mode]
G --> H[Draft Feature Specification]
H --> I[Get Architecture Suggestions]
I --> J[Define Components & Modules]
J --> K[Implement Feature Chunk]
K --> L[Generate Code with Claude]
L --> M[Request Unit Tests]
M --> N[Review & Refactor]
N --> O{More Features?}
O -->|Yes| K
O -->|No| P[Update Task List in CLAUDE.md]
P --> Q[Setup CI/CD Pipeline]
Q --> R[Scaffold GitHub Actions]
R --> S[Create Deployment Scripts]
S --> T[Test Automation]
T --> U[Repository Ready]
style A fill:#e1f5fe,stroke:#333,color:#333
style G fill:#fff9c4,stroke:#333,color:#333
style K fill:#e8f5e9,stroke:#333,color:#333
style Q fill:#f3e5f5,stroke:#333,color:#333
style U fill:#e8f5e9,stroke:#333,color:#333
برای یک مخزن موجود
-
راهاندازی مخزن و زمینه
CLAUDE.mdرا اضافه یا بهروزرسانی کنید تا ساختار مخزن، الگوهای کدنویسی و فایلهای کلیدی را مستند کنید. برای مخازن legacy، ازCLAUDE_LEGACY.mdاستفاده کنید که فریمورکها، نقشه نسخهها، دستورالعملها، اشکالها و یادداشتهای ارتقا را پوشش میدهد.- فایلهای اصلی که Claude باید برای زمینه استفاده کند را پین یا برجسته کنید.
-
پرسوپاسوهای زمینهای کد
- از Claude برای بازبینیهای کد، توضیحات اشکال، بازطراحی یا برنامههای مهاجرت با ارجاع به فایلها/توابع خاص بخواهید.
- مرزهای صریح به Claude بدهید (مثلاً "فقط این فایلها را تغییر بده" یا "بدون وابستگی جدید").
-
مدیریت Branch، Worktree و چندجلسهای
- از چندین git worktree برای ویژگیها یا رفع اشکال ایزوله استفاده کنید و جلسات جداگانه Claude برای هر worktree راهاندازی کنید.
- تبها/پنجرههای ترمینال را بر اساس شاخه یا ویژگی سازماندهی کنید برای خط لولههای کاری موازی.
-
ابزارهای تیم و خودکارسازی
- کامندهای سفارشی را از طریق
.claude/commands/برای یکپارچگی بینتیمی همگام کنید. - وظایف تکراری، ایجاد PR و قالببندی کد را از طریق دستورهای اسلش یا هوکهای Claude خودکارسازی کنید.
- جلسات و زمینه را با اعضای تیم به اشتراک بگذارید برای عیبیابی و بازبینی مشترک.
- کامندهای سفارشی را از طریق
graph TD
A[Start with Existing Repository] --> B{Legacy Codebase?}
B -->|Yes| C[Create CLAUDE_LEGACY.md]
B -->|No| D[Create/Update CLAUDE.md]
C --> E[Document Frameworks & Version Maps]
D --> F[Document Structure & Patterns]
E --> G[Pin Key Files for Context]
F --> G
G --> H[Identify Task Type]
H --> I{Task Category}
I -->|Bug Fix| J[Ask Claude for Bug Analysis]
I -->|Code Review| K[Request Code Review]
I -->|Refactor| L[Plan Refactoring Strategy]
I -->|Migration| M[Create Migration Plan]
J --> N[Set Explicit Boundaries]
K --> N
L --> N
M --> N
N --> O{Multiple Features?}
O -->|Yes| P[Create Git Worktrees]
O -->|No| Q[Work on Main Branch]
P --> R[Launch Separate Claude Sessions]
R --> S[Organize Terminal Tabs]
Q --> S
S --> T[Setup Team Automation]
T --> U[Sync .claude/commands/]
U --> V[Configure Slash Commands]
V --> W[Setup Hooks for Automation]
W --> X[Share Session Context with Team]
X --> Y{More Tasks?}
Y -->|Yes| H
Y -->|No| Z[Workflow Complete]
style A fill:#e1f5fe,stroke:#333,color:#333
style C fill:#fce4ec,stroke:#333,color:#333
style D fill:#fff9c4,stroke:#333,color:#333
style P fill:#e8f5e9,stroke:#333,color:#333
style T fill:#f3e5f5,stroke:#333,color:#333
style Z fill:#e8f5e9,stroke:#333,color:#333
نکات:
- هر ویژگی یا رفع جدید را با یک مشخصات و پرامپت حالت plan شروع کنید.
- برای مخازن legacy و پیچیده، راهنماییهای دقیق را در CLAUDE.md/CLAUDE_LEGACY.md ذخیره کنید.
- دستورالعملهای واضح و متمرکز بدهید و کار پیچیده را به برنامههای چندمرحلهای تقسیم کنید.
- بهطور منظم جلسات را پاک کنید، زمینه را هرس کنید و worktreeهای تکمیلشده را حذف کنید تا از شلوغی جلوگیری شود.
این مراحل توصیههای اصلی برای خط لولههای کاری روان با Claude Code در پایگاههای کد جدید و موجود را نشان میدهد.
ویژگیها و قابلیتهای جدید
منابع ویژگیهای کلیدی
| ویژگی | توضیح | بیشتر بدانید |
|---|---|---|
| حافظه خودکار | Claude بهطور خودکار ترجیحات شما را بین جلسهها یاد میگیرد و به یاد میسپارد | راهنمای حافظه |
| کنترل از راه دور | یک جلسه محلی Claude Code را از تلفن، مرورگر یا برنامه Claude ادامه دهید | ویژگیهای پیشرفته |
| جلسات وب | به Claude Code از طریق رابطهای مبتنی بر مرورگر برای توسعه از راه دور دسترسی پیدا کنید | مرجع CLI |
| برنامه دسکتاپ | برنامه دسکتاپ بومی برای Claude Code با رابط کاربری بهبودیافته | مستندات Claude Code |
| تفکر گسترشیافته | تغییر استدلال عمیق از طریق Alt+T/Option+T؛ Opus 4.7+، Sonnet 5+، Haiku 5.5 و Fable همیشه از استدلال تطبیقی استفاده میکنند، بنابراین یک بودجه ثابت MAX_THINKING_TOKENS اعمال نمیشود (عمق را با /effort کنترل کنید) |
ویژگیهای پیشرفته |
| حالتهای اجازه | کنترل دقیق: manual (قبلاً default)، acceptEdits، plan، auto، dontAsk، bypassPermissions | ویژگیهای پیشرفته |
| حافظه ۷ سطحی | Managed Policy، Project، Project Rules، User، User Rules، Local، Auto Memory | راهنمای حافظه |
| رویدادهای هوک | ۳۳ رویداد: PreToolUse، PostToolUse، PostToolUseFailure، Stop، StopFailure، SubagentStart، SubagentStop، Notification، Elicitation و بیشتر | راهنمای هوکها |
| تیمهای ایجنت | هماهنگی چندین ایجنت که روی وظایف پیچیده با هم کار میکنند | راهنمای زیرایجنتها |
| وظایف زمانبندیشده | وظایف تکراری را با /loop و ابزارهای cron تنظیم کنید |
ویژگیهای پیشرفته |
| یکپارچگی Chrome | خودکارسازی مرورگر در Chrome خود از طریق افزونه Claude in Chrome | ویژگیهای پیشرفته |
| سفارشیسازی صفحهکلید | سفارشیسازی کلیدبایندها شامل توالی chord | ویژگیهای پیشرفته |
| ابزار Monitor | تماشای جریان stdout یک کامند پسزمینه و واکنش به رویدادها به جای polling (v2.1.98+) | ویژگیهای پیشرفته |
| حالت /goal | ثبت یک شرط تکمیل سطح جلسه؛ Claude تا برآورده شدن آن به کار ادامه میدهد (v2.1.139+) | دستورهای اسلش |
| claude agents (نمای ایجنت) | فهرستبندی، بررسی و از سرگیری ایجنتهای پسزمینه از ترمینال؛ --json برای خروجی قابلخواندن توسط ماشین (v2.1.139+، --json در v2.1.145 اضافه شد) |
code.claude.com/docs/en/agent-view |
| /run, /verify, /run-skill-generator | مهارتهای بستهبندیشده برای راهاندازی پروژه، تأیید کارکرد رفع و تولید مهارتهای run/verify خاص پروژه | راهنمای مهارتها |
آخرین بهروزرسانی: ۲۶ اکتبر ۲۰۲۶ نسخه Claude Code: 2.1.310 منابع:
- https://code.claude.com/docs/en/overview
- https://code.claude.com/docs/en/changelog
- https://code.claude.com/docs/en/agent-view
- https://code.claude.com/docs/en/permission-modes
- https://github.com/anthropics/claude-code/releases/tag/v2.1.144
- https://github.com/anthropics/claude-code/releases/tag/v2.1.145
- https://code.claude.com/docs/en/model-config
- https://code.claude.com/docs/en/chrome
- https://code.claude.com/docs/en/remote-control
- https://code.claude.com/docs/en/code-review
- https://code.claude.com/docs/en/scheduled-tasks
- https://code.claude.com/docs/en/permission-modes#available-modes مدلهای سازگار: 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