Logo von Persian Writing

Persian Writing

Community
ali2000hos
persian-writing

Write natural, human-sounding Persian (Farsi) and build correct right-to-left Persian deliverables. Use for ANY task involving Persian text or an Iranian audience: writing, editing, translating, humanizing, SEO content and copywriting (سئو، کپی‌رایتینگ، لندینگ), academic papers/theses, and Persian output in Word/.docx, PDF, PowerPoint, HTML, Excel, images/posters, emails, social posts. Covers register detection (رسمی/اداری/محاوره/علمی — errors here are costly), Persian AI-tell removal, orthography (نیم‌فاصله/ZWNJ، اعداد فارسی، «گیومه»), cleanup and spell-check (ویرایش، پاکسازی — bundled paknevis+davat toolkit), RTL layout/pagination fixes, and Persian fonts (Vazirmatn bundled). Trigger whenever you see Persian/Arabic script or words like فارسی, Farsi, Persian, Iran, RTL, راست‌چین, نیم‌فاصله, ویرایش, مقاله, پایان‌نامه, سئو, کپشن, Vazirmatn — even if the user never mentions this skill.

Übersicht

Herausgeberali2000hos
Repositorypersian-writing
Skill-Namepersian-writing
Sterne
391
Forks
26
Mitgelieferte Dateien
42
Links
  • Anweisungen in Markdown

    Eine SKILL.md-Datei, die das Modell bei Bedarf lädt. So werden nur dann Token verbraucht, wenn eine Anfrage tatsächlich dazu passt.

  • Funktioniert mit jedem LLM

    KI-Skills bestehen aus reinem Markdown, nicht aus anbieterspezifischem Code. Daher funktionieren sie mit GPT, Claude, Gemini, Grok oder einem lokalen Modell.

  • Mitgelieferte Dateien: 42

    Skripte, Vorlagen und Referenzmaterial, die das Modell bei der Arbeit lesen kann. Die Dateien sind schreibgeschützt und werden niemals ausgeführt.

  • Open Source

    Von ali2000hos auf GitHub veröffentlicht. Prüfen Sie vor der Installation die Quelldateien.

Installation

Installieren Sie den KI-Skill Persian Writing in TypingMind, um ihn mit jedem LLM zu nutzen, oder fügen Sie ihn einem anderen Agenten hinzu, der SKILL.md lesen kann.

1

In TypingMind installieren

TypingMind installiert einen Skill direkt aus seinem GitHub-Ordner. Dabei liest die App SKILL.md, bündelt die Ressourcendateien und speichert das Ergebnis lokal.

  1. Öffnen Sie die App und gehen Sie zu Plugins → Skills.
  2. Wählen Sie „Von GitHub installieren“.
  3. Fügen Sie die unten angegebene URL des Skill-Ordners ein und bestätigen Sie.
    https://github.com/ali2000hos/persian-writing/tree/main
  4. Aktivieren Sie den Skill in jedem Chat, in dem er verfügbar sein soll.
Plugins → Skills → Skill hinzufügen → Über GitHub-URL. Fügen Sie dann die Ordner-URL ein und klicken Sie auf „Weiter“.
2

In einem anderen Agenten installieren

Jeder Agent, der das Agent-Skills-Format unterstützt, kann diesen Skill nutzen. Kopieren Sie den Ordner in das Skill-Verzeichnis des jeweiligen Agenten.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ali2000hos/persian-writing.git \
  .claude/skills/persian-writing
Starten Sie Claude Code nach dem Kopieren neu, damit der neue Skill erkannt wird.

In TypingMind verwenden

Aktivieren Sie Persian Writing in einem beliebigen Chat in TypingMind. Den Rest übernimmt das Modell. Name und Beschreibung des Skills stehen im System-Prompt. Sobald eine Anfrage passt, lädt das Modell selbstständig die vollständigen Anweisungen — Sie müssen den Skill nie manuell aufrufen, und er verbraucht erst Token, wenn er tatsächlich genutzt wird.

Das Modell lädt Persian Writing automatisch, sobald eine passende Anfrage gestellt wird.

Funktioniert mit jedem KI-Modell

KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher ist Persian Writing nicht an das Modell gebunden, für das der Skill geschrieben wurde. Installieren Sie ihn einmal in TypingMind und nutzen Sie ihn mit GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder einem selbst betriebenen lokalen Modell — alles mit Ihren eigenen API-Schlüsseln.

  • Wird nur bei Bedarf geladen

    Der System-Prompt enthält nur den Namen und die Beschreibung. Die Anweisungen werden bei der ersten passenden Anfrage geladen. Ein ungenutzter Skill verursacht daher keine Kosten.

  • Modell im laufenden Chat wechseln

    Da der Skill aus Anweisungen statt aus Code besteht, funktioniert er auch nach einem Modellwechsel — das nächste Modell liest dieselbe SKILL.md-Datei.

Skill-Anweisungen

Dies ist der Inhalt von SKILL.md, den das Modell lädt. Lesen Sie ihn vor der Installation — ein Skill besteht aus Anweisungen, denen Ihr Modell folgt.

Persian Writing & RTL Documents

Two failure modes make Persian output look machine-made, and they are independent:

  1. The prose sounds like AI. Technically correct, but stiff, کتابی, inflated — no Iranian would write it that way.
  2. The layout betrays the text. Persian rendered left-aligned, Arabic ي/ك glyphs, Latin digits breaking RTL flow, headings orphaned at page bottoms, fonts falling back to DejaVu.

Fixing one without the other still produces something a native reader screenshots and laughs at. This skill fixes both. Work through the two checklists below, and read the reference file for your output format before generating anything.

Step 0: Route by task

TaskRead
Any Persian prose (always)references/writing-style.md
Mechanical correctness (always)references/orthography.md
Academic: paper, thesis, report, مقاله/پایان‌نامهreferences/academic.md
Educational/technical content, docs, product pages, how-toreferences/content-structures.md
Telegram, Instagram, captions, carousels, reels, storiesreferences/social-channels.md
SEO content, blog for search, landing/ad copy, کپشن فروشreferences/seo-copywriting.md
Cleanup/normalize/spell-check existing text (ویرایش، پاکسازی)references/cleanup/paknevis-rules.md + usage-patterns.md
Choosing/embedding fontsreferences/fonts.md
Word/.docx or docx→PDFreferences/docx-pdf.md
PowerPoint/.pptxreferences/pptx.md
HTML, email templates, HTML→PDFreferences/html-css.md
Images/posters (PIL), new PDFs (reportlab), Excelreferences/format-skills-fa.md

Visual neutrality — read before copying any code example. This skill styles NOTHING. It governs direction, spacing, fonts-for-shaping and text — never colors, accent bars, card backgrounds, or a house look. Every hex, border, and fill in the code examples is a stand-in written in plain grey/black; they exist to show WHERE a property goes, not what value to use. Default output is black text on default background, no accent color. Take colors and visual form ONLY from: the user's explicit request, an attached brand/theme skill, or an input template being matched. Absent those, do not invent a palette and do not carry one over from example to example — unstyled is the correct default, and a surprise purple heading is a bug.

This skill composes with the general docx/pptx/pdf skills: those handle file mechanics; this one overrides and extends them for Persian. When both disagree about RTL behavior, this skill wins — its rules come from debugging real Persian documents. If another active skill or the user specifies particular fonts or colors, those win on aesthetics; this skill still governs RTL mechanics and orthography. This skill itself is brand-neutral: colors in the code examples are placeholders, and Vazirmatn is just the default font, not a requirement.

Writing: the five-second summary

Full guide in references/writing-style.md. The core moves:

  1. Detect register before writing a word — a register error is the costliest mistake this skill can make. Follow the 6-step detection procedure in writing-style.md Part 1. The core rules: classify the DELIVERABLE, not the tone the user typed in (a casual «یه پروپوزال بنویس» still needs a formal proposal); when the text goes to a third party and signals conflict, ask ONE short question instead of guessing; no signal at all → formal-but-human.
    • Proposal, invoice, report, official email, website copy → formal-but-human: full written forms (می‌شود نه میشه), شما, zero slang — but است نه می‌باشد, short sentences, concrete claims. Human ≠ خودمونی: proposals/contracts keep formal vocabulary (no «جور است»-style idioms); warmth comes from clarity, numbers, and one warm closing line (writing-style.md, "warmth trap").
    • نامه اداری → formal + letter conventions (honorifics, «با سلام و احترام؛» — writing-style.md).
    • Instagram/Telegram, chat, friendly email → colloquial written Persian (محاوره‌نویسی): میشه، می‌خوام، رو، particles like دیگه/که/مگه.
    • Blog, newsletter → between: written forms, warm direct voice.
    • Paper, thesis, university report → academic (نگارش علمی): measured, hedged, passive acceptable, zero تعارف — read references/academic.md.
    • SEO/sales copy → register per artifact as above, plus references/seo-copywriting.md.
  2. Ban the bureaucratic tells: می‌باشد، لازم به ذکر است، در راستای، از اهمیت ویژه‌ای برخوردار است، نقش بسزایی ایفا می‌کند.
  3. Ban the AI tells: em dashes (—), rule-of-three triads (سریع، آسان و مطمئن), نه تنها ... بلکه, tacked-on «که نشان‌دهنده‌ی ... است», vague «کارشناسان معتقدند», generic «در دنیای امروز» openers, «در نهایت می‌توان گفت» closers.
  4. Hold one point of view. Explain facts impersonally, address the reader directly (the verb carries it — don't repeat «شما»), and use «ما» only for what the organization actually did or is responsible for. Sliding between the three inside one section is the most common flaw in Persian brand content — content-structures.md §1.
  5. Separate teaching from selling. The explanation must be worth reading without buying anything: state the problem before the product, never hide the main answer, tie each feature to a checkable result, and never delete limitations or prerequisites — they are what make the rest believable.
  6. Claim only what the source supports. Distinguish واقعیت / نظر / پیش‌بینی / ادعا; never invent a statistic, version, price, or quote to fill a section; surface contradictions instead of silently resolving them; ask one question rather than guessing (content-structures.md §3). When paraphrasing a paper (thesis chapters especially), change only wording and structure: add no inference or bridging link, keep every qualifier (حدود، عمدتاً، ممکن است، تا، حداقل، معنادار) and every number exactly as the source states it, and mark the researcher's own reasoning «این بخش در مقاله وجود ندارد» instead of folding it in (academic.md §5.5).
  7. The native test: would an Iranian screenshot this as «متن هوش مصنوعی»? If yes, rewrite before delivering. Two properties cause most of it: predictability (the expected collocation every time — اهمیتِ ویژه، نقشِ بسزا) and uniformity (every sentence 15–20 words, every paragraph the same weight). Real specifics create real variation; fa_lint.py --check --rhythm flags flat rhythm, but lexical tells matter far more — writing-style.md §3.5. The goal is prose that is genuinely better, not prose tuned to a detector: AI detectors are unreliable and falsely flag second-language writers at very high rates, and this skill never helps disguise authorship (§3.6).
  8. Numbers, punctuation, spacing must be Persian — next section.

Orthography: non-negotiables

Full rules in references/orthography.md. These apply to every deliverable:

  1. ZWNJ (نیم‌فاصله, U+200C) — می‌شود نه می شود؛ کتاب‌ها نه کتاب ها؛ بزرگ‌تر، خانه‌ام، به‌عنوان. In code: ‌ or HTML ‌.
  2. Persian characters only: ی (U+06CC) not ي، ک (U+06A9) not ك.
  3. Persian digits ۰۱۲۳۴۵۶۷۸۹ inside Persian text. Latin digits stay in URLs, emails, codes, version numbers. Never Arabic-Indic ٤٥٦ forms.
  4. Persian punctuation: ، ؛ ؟ and «گیومه» for quotes. No space before, one after. 4b. هکسره — never write the ezafe kasre as «ـه»: «کتابِ من»، not «کتابه من». The «ـه» ending is only the colloquial «است» («این کتابه» = این کتاب است). Test by substituting «است»; if the sentence breaks, you need a kasre. Iranians treat this error as a mark of carelessness — orthography.md §5.1.
  5. No em/en dashes in Persian prose — use «،» or restructure.
  6. Never letter-space Persian (it breaks letter joining), never fake bold/italic.
  7. Never start a Persian line with a Latin word. Chat apps, GitHub, Telegram and most editors set each paragraph's direction from its FIRST letter, so «React یک کتابخانه است.» renders left-to-right — wrong alignment, the period on the wrong side, words scrambled. This covers every sentence, bullet, heading, table cell and caption. Lead with a Persian word instead: «کتابخانه‌ی React…»، «ابزار Docker…»، «دستور npm install…». For plain-text output where a line must open with a name, persian_cleanup.py --bidi adds an invisible direction mark. Full rules: orthography.md §9.

Two scripts enforce this mechanically — use both before delivering Persian text:

bash
# 1. FIX: paknevis-style editorial pass (ZWNJ, chars, digits, punctuation, گیومه)
python3 scripts/persian_cleanup.py --edit --in text.md --out text.md
# 2. LINT: report what still needs contextual judgment (dashes, میشود forms,
#    fake tanvin, register issues) — fix these by hand
python3 scripts/fa_lint.py --check text.md

--edit is safe on structured files. Fenced code blocks, inline code and table rows are lifted out before processing and restored byte-identical, and leading indentation is never collapsed. This matters because Persian typography rules are correct for prose and destructive in code: they would turn "text" into «text», rewrite ASCII digits as Persian, and flatten the spacing a table's columns rely on. Pass protect_code=False (Python API) only if you truly want those rules applied everywhere. Keep the file in version control either way — the tool is careful, not omniscient.

persian_cleanup.py is a full toolkit (paknevis + davat merged): aggressive cleaning for NLP (--preset persian), single functions (--fn convert_digits), spell-check against the bundled 453K-word frequency dictionary (--edit --spellcheck), custom pipelines. Persian «ویرایش» requests → --edit (conservative, content preserved); «پاکسازی/نرمالایز» → --preset persian (strips links/mentions/emojis). Details: references/cleanup/. Note: --edit applies the خانهٔ ezafe style; drop fix_ezafe from --steps to keep خانه‌ی.

Fonts

Bundled in assets/fonts/ (SIL OFL — free for commercial use):

  • Vazirmatn — the default for everything: body, UI, documents. 9 weights.
  • Lalezar — display font for headlines, covers, posters. One weight; never body.

Other families (Shabnam, Sahel, Samim, Parastoo, Tanha, Gandom) and pairing advice: references/fonts.md. In offline sandboxes only bundled fonts exist — scripts/download_fonts.py works only where GitHub is reachable.

Before any docx→PDF or pptx→PDF conversion, install the fonts:

bash
bash scripts/install_fonts.sh   # copies assets/fonts → ~/.fonts, runs fc-cache
fc-list | grep -i vazir         # verify — else LibreOffice silently falls back

Skipping this is the #1 cause of broken Persian PDFs: conversion "succeeds" but every glyph is DejaVu tofu or disconnected letters.

Documents: the rules that always apply

Format-specific recipes live in the reference files. The universal ones:

  1. RTL means START, not RIGHT. In OOXML, with bidirectional: true, AlignmentType.RIGHT renders at the visual left. Always align START.
  2. Every Persian run: rightToLeft: true + font with hint: "cs" (Complex Script).
  3. Every section: bidi: true. Tables that must flow right-to-left: visuallyRightToLeft: true.
  4. Persian digits in numbered content — a Latin "1." flips the paragraph LTR. Corollary for docx: never use the built-in List Number/List Bullet styles. Their markers live in numbering.xml, which has no bidi and renders Latin 1. on the wrong side plus an OpenSymbol bullet that breaks font embedding. Write markers as ordinary runs («۱. », «• ») — docx-pdf.md §6.1.
  5. Fix the document defaults before adding content. python-docx starts from a Latin template: styles.xml has no Persian font and Word's Heading styles carry a blue color you never asked for. Run persianize_styles(doc) from docx-pdf.md §6.1 immediately after Document(). Headers/footers are separate XML parts and need the RTL treatment applied to them directly.
  6. Pagination: headings get keepNext + keepLines (no orphan headings); cards/boxes go inside a single-cell table with cantSplit: true (never split across pages); no separator after the last list item; no stray PageBreak before a section break (blank pages).
  7. Symbols: Persian fonts miss many glyphs. In bundled Vazirmatn/Lalezar only • and · are verified; ▪ ■ ✓ ✕ ● ◆ ⊙ fall back to DejaVu. For any other symbol/font, check the cmap first (fonts.md shows how).

Verify before delivering

Two gates. Check the .docx BEFORE converting (catches what code review can't), then check the PDF:

bash
# 1. DOCX: package integrity FIRST (a file Word won't open can't be RTL-checked),
#    then section bidi, jc=right traps, cs fonts, list numbering, heading colors.
#    --fix repairs missing <w:bidi/>; --sanitize strips the Word-for-Mac template
#    artifacts python-docx inherits (the classic "file is corrupt" fingerprint).
python3 scripts/verify_docx.py output.docx --expect-font Vazirmatn --fix --sanitize

# 2. PDF: fallback fonts, blank pages, template leaks, Arabic chars
python3 scripts/verify_pdf.py output.pdf --expect-font Vazirmatn

verify_docx.py exists because setting an RTL flag and that flag reaching the XML are different things: libraries drop bidi from section properties, and OOXML requires <w:bidi/> to be the FIRST child of <w:sectPr> — appended anywhere else, renderers ignore it. Verify the artifact, never the source code.

It also guards the package itself: [Content_Types].xml must be the first ZIP entry, every relationship Target must resolve, every XML part must be well-formed and free of control characters. Repairs are written to a temp file and validated before replacing anything, so a failed repair can't destroy the document. Details and the already-corrupt-file procedure: docx-pdf.md §4.5.

It checks: near-empty pages, "undefined"/template leaks, non-embedded or fallback fonts, Arabic ي/ك in extracted text, and page count. Fix every warning, regenerate, re-verify. For prose, re-read your final text against the native test — one pass of persian_cleanup.py --edit + fa_lint.py --check plus one honest read-aloud catches most disasters.

Files

persian-writing/
├── SKILL.md                    ← you are here
├── references/
│   ├── writing-style.md        ← registers, Persian AI tells, colloquial patterns
│   ├── academic.md             ← نگارش علمی: papers, theses, citations, formulas
│   ├── orthography.md          ← ZWNJ, characters, digits, punctuation, ezafe
│   ├── cleanup/                ← paknevis rules, davat API, usage patterns
│   ├── fonts.md                ← catalog, personalities, pairings, embedding
│   ├── content-structures.md   ← POV, education vs promotion, body patterns
│   ├── social-channels.md      ← Telegram/Instagram craft, repurposing
│   ├── seo-copywriting.md      ← Persian SEO writing + کپی‌رایتینگ
│   ├── docx-pdf.md             ← RTL docx recipes, pagination, PDF post-processing
│   ├── pptx.md                 ← RTL PowerPoint via python-pptx / html2pptx
│   ├── html-css.md             ← RTL web, mixed-direction text, print CSS
│   └── format-skills-fa.md     ← PIL posters, reportlab PDFs, Excel RTL
├── scripts/
│   ├── persian_cleanup.py      ← FIX: edit/clean/normalize/spell-check (paknevis+davat)
│   ├── fa_lint.py              ← LINT: report issues needing contextual judgment
│   ├── verify_docx.py          ← DOCX RTL checks (+ --fix for section bidi)
│   ├── verify_pdf.py           ← post-generation PDF checks
│   ├── check_version.py        ← verify the version matches in all four places
│   ├── install_fonts.sh        ← bundled fonts → ~/.fonts (run before PDF export)
│   └── download_fonts.py       ← fetch extra families (needs GitHub access)
└── assets/
    ├── fonts/                  ← Vazirmatn + Lalezar TTFs
    └── persian_words.txt       ← 453K-word frequency dictionary (spell-check)

Mitgelieferte Dateien

Das Modell liest diese Dateien bei Bedarf, während der Skill geladen ist. Sie werden als lesbare Dateien bereitgestellt und niemals ausgeführt.

Häufig gestellte Fragen

Was macht der KI-Skill Persian Writing?

Write natural, human-sounding Persian (Farsi) and build correct right-to-left Persian deliverables. Use for ANY task involving Persian text or an Iranian audience: writing, editing, translating, humanizing, SEO content and copywriting (سئو، کپی‌رایتینگ، لندینگ), academic papers/theses, and Persian output in Word/.docx, PDF, PowerPoint, HTML, Excel, images/posters, emails, social posts. Covers register detection (رسمی/اداری/محاوره/علمی — errors here are costly), Persian AI-tell removal, orthography (نیم‌فاصله/ZWNJ، اعداد فارسی، «گیومه»), cleanup and spell-check (ویرایش، پاکسازی — bundled pak...

Warum Persian Writing in TypingMind nutzen?

Weil Sie den Skill einmal installieren und mit jedem Modell verwenden können. Persian Writing besteht aus reinem Markdown statt aus anbieterspezifischem Code. So funktioniert derselbe Skill mit GPT-5, Claude, Gemini, Grok oder einem lokalen Modell – und Sie können das Modell mitten im Chat wechseln, ohne dass der Skill seine Funktion verliert. TypingMind verwendet Ihre eigenen API-Schlüssel. Sie bezahlen die Anbieter daher direkt statt über ein Abonnement pro Nutzerplatz, und Ihre Skills und Chats bleiben in Ihrem eigenen Speicher.

Wie installiere ich Persian Writing in TypingMind?

Öffnen Sie in TypingMind Plugins → Skills → Von GitHub installieren und fügen Sie https://github.com/ali2000hos/persian-writing/tree/main ein. TypingMind liest die Datei SKILL.md, bündelt die zugehörigen Dateien und installiert alles als Skill, den Sie für jeden Chat einzeln aktivieren können.

Welche KI-Modelle können Persian Writing nutzen?

Jedes Modell, das Sie mit TypingMind verbinden. KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher können GPT, Claude, Gemini, Grok und lokale Modelle diesen Skill laden, wenn eine Anfrage dazu passt.

Wie viele KI-Modelle kann ich mit Persian Writing verwenden?

So viele Sie möchten. In TypingMind können Sie Persian Writing mit jedem Modell verwenden, das Skills unterstützt, etwa mit GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama. Dabei nutzen Sie Ihre eigenen API-Schlüssel.

Ist der KI-Skill Persian Writing kostenlos?

Der Skill wird von ali2000hos auf GitHub veröffentlicht. Prüfen Sie im Repository, ob dort Lizenzbedingungen angegeben sind. Sie bezahlen nur Ihren eigenen KI-Anbieter für die verwendeten Token.

Was sind KI-Skills?

Ein KI-Skill ist ein wiederverwendbares Anweisungspaket, das einem KI-Modell vermittelt, wie es eine bestimmte Aufgabe erledigt. Es folgt dem offenen Format Agent Skills: Die Datei SKILL.md enthält den Namen und die Beschreibung des Skills. Hinzu kommen bei Bedarf Skripte, Vorlagen oder Referenzdateien für das Modell. Das Modell liest die Anweisungen nur, wenn Ihre Anfrage zum Skill passt. Ein installierter Skill verursacht daher erst Kosten, wenn er verwendet wird.

Wie unterscheiden sich KI-Skills von Plugins oder MCP-Servern?

Ein Plugin oder MCP-Server stellt einem Modell neue aufrufbare Tools bereit – Code, der auf einem System ausgeführt wird und ein Ergebnis zurückgibt. Ein KI-Skill vermittelt dem Modell stattdessen Wissen und Vorgehensweisen: wie es eine Aufgabe angeht, welche Schritte es befolgt und wie eine gute Ausgabe aussieht. Skills bestehen aus reinem Markdown und kommen daher ohne Server, API-Schlüssel und Laufzeitumgebung aus. Sie funktionieren mit jedem Modell.

Alle anzeigen

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇