/arabic-ai-atlas:arabic-token-costfrom arabic-ai-atlas
Measures tokenizer fertility (tokens per word) on Arabic text vs English. Helps diagnose expensive or truncated Arabic prompts by comparing tokenizers.
Ships in arabic-ai-atlas. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Measures tokenizer fertility (tokens per word) on Arabic text against an English reference of the same word count.
python ${CLAUDE_PLUGIN_ROOT}/skills/arabic-token-cost/token_cost.py --text "النص العربي هنا" [--tokenizers id,id]
Use --file path for longer samples (at least a few hundred words gives stable numbers). Default tokenizers: gpt2, meta-llama/Llama-3.1-8B, Qwen/Qwen2.5-7B, inceptionai/jais-family-590m, google/gemma-2-2b.
It needs transformers. If missing it prints an install hint (uv pip install transformers) and exits 2. Tokenizers download from Hugging Face on first use; gated ones (such as Llama) may fail, and that row prints an error while the rest continue.
Columns: tokenizer | tokens | tokens/word | ratio vs English.
search(query="tokenizer") and recommend Arabic-aware tokenizers or models the atlas returns, with license and link.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub h9-tec/arabic-ai-atlas --plugin arabic-ai-atlas5 skills in this plugin
/arabic-ai-advisorUse when choosing an Arabic LLM, ASR, TTS, OCR, embedding model, dataset or tool — recommends ranked options from the Arabic AI Atlas with licenses, dialect coverage and on-device fit./arabic-dialect-promptsUse when writing system prompts or few-shot examples for an Arabic-speaking agent in a specific dialect, or when a model answers in formal Arabic (MSA) instead of the requested dialect./rtl-bidi-lintUse when reviewing or generating Arabic text, UI strings, HTML or Markdown that mixes RTL with LTR content, to catch digit mixing, unbalanced bidi isolates, stray LTR marks and hardcoded dir="ltr"./tashkeel-checkUse 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.Other plugins' skills for the same job