Files
claude-howto/fa/07-plugins/documentation
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:**​ prose, headings, table headers and cells, list
items, blockquotes,
image alt text, Mermaid diagram labels, and `#` / `//` comments inside
code blocks
- **Kept verbatim:**​ 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:**​ 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:**​ 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
..

Claude How To

پلاگین مستندسازی

تولید و نگهداری جامع مستندات برای پروژه شما.

امکانات

✅ تولید مستندات API ✅ ایجاد و به‌روزرسانی README ✅ هماهنگ‌سازی مستندات ✅ بهبود کامنت‌های کد ✅ تولید نمونه

نصب

claude --plugin-dir ./07-plugins/documentation

محتویات

دستورات Slash

  • /generate-api-docs - تولید مستندات API
  • /generate-readme - ایجاد یا به‌روزرسانی README
  • /sync-docs - هماهنگ‌سازی مستندات با تغییرات کد
  • /validate-docs - اعتبارسنجی مستندات

subagentها

  • api-documenter - متخصص مستندسازی API
  • code-commentator - بهبود کامنت‌های کد
  • example-generator - ایجاد نمونه‌های کد

قالب‌ها

  • api-endpoint.md - قالب مستندسازی endpoint API
  • function-docs.md - قالب مستندسازی تابع
  • adr-template.md - قالب ثبت تصمیم معماری

سرورهای MCP

  • یکپارچه‌سازی GitHub برای هماهنگ‌سازی مستندات

استفاده

تولید مستندات API

/generate-api-docs

ایجاد README

/generate-readme

هماهنگ‌سازی مستندات

/sync-docs

اعتبارسنجی مستندات

/validate-docs

نیازمندی‌ها

  • Claude Code 2.1+
  • دسترسی GitHub (اختیاری)

گردش‌کار نمونه

کاربر: /generate-api-docs

Claude:
۱. اسکن همه endpointهای API در /src/api/
۲. واگذاری به subagent api-documenter
۳. استخراج امضای توابع و JSDoc
۴. سازمان‌دهی بر اساس ماژول/endpoint
۵. استفاده از قالب api-endpoint.md
۶. تولید مستندات جامع markdown
۷. شامل نمونه‌های curl، JavaScript و Python

نتیجه:
✅ مستندات API تولید شد
📄 فایل‌های ایجاد‌شده:
   - docs/api/users.md
   - docs/api/auth.md
   - docs/api/products.md
📊 پوشش: ۲۳/۲۳ endpoint مستندسازی شد

استفاده از قالب‌ها

قالب endpoint API

برای مستندسازی endpointهای REST API با نمونه‌های کامل استفاده کنید.

قالب مستندسازی تابع

برای مستندسازی توابع/متدهای فردی استفاده کنید.

قالب ADR

برای ثبت تصمیمات معماری استفاده کنید.

پیکربندی

تنظیم GitHub token برای هماهنگ‌سازی مستندات:

export GITHUB_TOKEN="your_github_token"

بهترین روش‌ها

  • مستندات را نزدیک کد نگه دارید
  • مستندات را با تغییرات کد به‌روزرسانی کنید
  • نمونه‌های کاربردی ارائه دهید
  • به‌طور منظم اعتبارسنجی کنید
  • برای یکپارچگی از قالب‌ها استفاده کنید

آخرین به‌روزرسانی: ۱۸ اکتبر ۲۰۲۶ نسخه Claude Code: 2.1.302 منابع: