agentleFS
h9-tech9-tec/arabic-ai-atlas/skills/tashkeel-check/SKILL.md

tashkeel-check

Skill43 starsChanged 29 days agoMITView on GitHub

Use when Arabic text may need diacritics (tashkeel) added or stripped, for TTS input, learner material, Quran or poetry, or when diacritization looks partial or inconsistent.

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Add tashkeel for: TTS input (ambiguous words are mispronounced without it), Quran and classical poetry, children's and learner material, …

    line 12
  2. Distinctive:

    Leave it off for ordinary chat and UI text unless the user asks.

    line 14
  3. Very specific:

    Never report a diacritization tool the atlas did not return.

    line 32
  4. Distinctive:

    Do not auto-diacritize Quranic text.

    line 33

≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Tashkeel Check

Decide whether Arabic text should carry diacritics, detect partial tashkeel, and point to diacritization tools in the Arabic AI Atlas.

When to add or strip

  • Add tashkeel for: TTS input (ambiguous words are mispronounced without it), Quran and classical poetry, children's and learner material, and words whose meaning depends on vowels (عَلِمَ / عِلْم / عَلَّمَ).
  • Strip tashkeel for: search indexing, embeddings, deduplication, NER, and text matching, where diacritics fragment otherwise identical words.
  • Leave it off for ordinary chat and UI text unless the user asks.

Detecting partial tashkeel

Diacritics are the range U+064B to U+0652, as the regex [ً-ْ]. Count Arabic letters ([ء-ي]) and diacritic marks per text.

  • Zero marks: undiacritized.
  • Marks on most letters: fully diacritized.
  • A low but non-zero ratio, or marks on only some words: partial. This is usually a mistake, because models read it as a signal to mix styles. Either complete it or strip it.

Procedure

  1. Classify the text (none, partial, full) with the regex above and state the ratio of marks to letters.
  2. Decide the target from the use case in the section above. Say which you chose and why.
  3. To add tashkeel, call the MCP tool search(query="diacritization") and recommend what the atlas returns (name, license, link). To strip, apply re.sub("[ً-ْ]", "", text) (add U+0670 and U+0640 if the user also wants the dagger alef and tatweel removed).

Rules

  • Never report a diacritization tool the atlas did not return. If search is unavailable or empty, say so.
  • Do not auto-diacritize Quranic text; point to a verified source (Tanzil, King Fahd Complex).
  • Machine diacritization has errors; ask for human review on anything publication-grade.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.