persian-language-pro
БесплатноБез исполняемых скриптовНе проверенExpert Persian (Farsi) writing, editing, translation and engineering: standard orthography and ZWNJ, Persian vs Arabic characters and digits, RTL web and…
от jiayaoqijia★ 81 звезда на GitHubОб этом скилле
Persian Language Pro
Persian is used by 110+ million people, yet almost no agent skills cover it. This skill makes Persian output correct, natural and machine-safe.
1. Orthography (Academy of Persian Language and Literature rules)
- ZWNJ (نیمفاصله, U+200C) joins without connecting:
میروم،نمیدانم،کتابها،خانهای،بزرگتر،بزرگترین،آنها،دانشگاهها. Never a full space and never stuck together (میروم,کتابهاare wrong in formal text). - Use Persian letters, not Arabic look-alikes:
یU+06CC (notيU+064A),کU+06A9 (notكU+0643). Mixed letters break search and sorting; normalise them. - Digits: Persian
۰۱۲۳۴۵۶۷۸۹(U+06F0–06F9) in Persian prose; never Arabic-Indic٠١٢٣٤٥٦٧٨٩(U+0660–0669). Keep Latin digits inside code, URLs, version numbers, phone fields that machines parse. - Punctuation:
،؛؟and guillemets«»for quotes. No space before punctuation, one space after. - Ezafe: write
یafter silent h with ZWNJ only where standard (خانهی منorخانهٔ من; pick one style per document and keep it). - Tanvin and Arabic diacritics only in loanwords where standard (
حتماً،اصلاً).
2. Natural style
- Choose the register first: formal written (
میباشد→ preferاست), neutral, or conversational (میخوام،نمیدونم). Do not mix registers in one text. - Prefer Persian words when they are natural and common (
رایانهvsکامپیوتر: follow what the audience uses; for tech audiences common English loans are fine). - Avoid literal translation: restructure English sentences (Persian is SOV, verb last), drop needless
توسطpassives (توسط تیم انجام شد→تیم انجام داد), avoid chains ofکه. - Remove AI-sounding filler: no stacked adjectives, no
در دنیای امروز, no closing summaries that repeat the text.
3. Translation
- Translate meaning, register and terminology, not words. Keep names, numbers, units and code unchanged; convert dates and currencies only if asked.
- Keep a glossary for recurring terms and reuse it. Flag terms with no settled Persian equivalent and give the English in parentheses once.
4. RTL engineering
- HTML:
<html lang="fa" dir="rtl">; use CSS logical properties (margin-inline-start,padding-inline-end,text-align: start) instead of left/right. - Mixed Persian and English or numbers: wrap the foreign run in
<bdi>orunicode-bidi: isolate; setdir="ltr"on code blocks, URLs, emails and phone numbers. - Fonts: Vazirmatn (open, Google Fonts), plus a Latin pairing; set
font-feature-settingsonly if needed; line-height 1.7–1.9 for body text. - Icons with direction (arrows, back/next, progress) must be mirrored; logos, media controls and clocks are not.
- Inputs:
inputmode="numeric"and accept both Persian and Latin digits, normalise before storing. - Documents: Word/Docs paragraph direction RTL; LaTeX with XeLaTeX and the
xepersianpackage.
5. Dates (Jalali / Solar Hijri)
- JavaScript:
new Intl.DateTimeFormat('fa-IR-u-ca-persian', {dateStyle: 'full'}).format(date). - Python:
jdatetimeorpersiantools(JalaliDate.today(), conversion both ways). - Year starts at Nowruz (March 20/21). Weekend is Friday (and often Thursday afternoon). Store dates in UTC/ISO internally; convert only for display.
6. Search and NLP
- Normalise before indexing and searching: Arabic → Persian letters, digits, remove kashida
ـand diacritics, unify ZWNJ/space variants, soمیروم,می رومandمیرومall match. - Python NLP:
hazm(normaliser, tokenizer, lemmatizer, POS) orparsivar. For embeddings choose multilingual models tested on Persian. - Sorting: Persian alphabetical order differs from Unicode order (پ، چ، ژ، گ); use locale-aware collation (
Intl.Collator('fa'), ICU).
7. Final check before delivering Persian text
- No Arabic
ي/ك, no Arabic-Indic digits. - ZWNJ in
می،ها،تر/ترین،ای. - One register throughout; reads like a native writer, not a translation.
- Mixed-direction runs isolated; numbers and code display correctly.
Verified tooling
Runnable: python3 tools/persian_lint.py --text "…" lints Persian text for Arabic ye and kaf, Arabic-Indic digits, missing zero-width non-joiner on the mi/nemi prefix and the ha plural, spacing around Persian punctuation, and Latin commas in Persian text. --fix repairs them. 7 labelled cases, 0 mismatches, and every fix is checked for idempotence.
Установить persian-language-pro в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл persian-language-pro?
Expert Persian (Farsi) writing, editing, translation and engineering: standard orthography and ZWNJ, Persian vs Arabic characters and digits, RTL web and documents, Jalali dates, Persian NLP and search. Use for any Persian text, Farsi UI, RTL layout or Iranian date.
Как установить скилл persian-language-pro?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл persian-language-pro запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic