Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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> or unicode-bidi: isolate; set dir="ltr" on code blocks, URLs, emails and phone numbers.
  • Fonts: Vazirmatn (open, Google Fonts), plus a Latin pairing; set font-feature-settings only 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 xepersian package.

5. Dates (Jalali / Solar Hijri)

  • JavaScript: new Intl.DateTimeFormat('fa-IR-u-ca-persian', {dateStyle: 'full'}).format(date).
  • Python: jdatetime or persiantools (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) or parsivar. 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.

Полный SKILL.md на GitHub

Установить persian-language-pro в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

LICENSESOURCE.mdTRUST.auto.yaml

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), без исполняемых скриптов.

Похожие скиллы

Сравнить persian-language-pro с