tidyfactor-design: Command for Claude Code

.agents/skills/tidyfactor-design/references/commands/i18n.md

i18n is a command for Claude Code from alwkala/tidyfactor-design. It costs 0 tokens per session (789 once invoked), scanned A, original, MIT.

A command for deciding and implementing Arabic, bilingual, or right-to-left website support. Right-to-left means the page layout and text flow from right to left, as used in Arabic.

In plain words
What is it for?
Setting supported languages, page language and direction, Arabic fonts, and one documented structure for localized pages.
Why use it?
Language support can affect page direction, fonts, URLs, and layout, so decisions made late can require rework. This command makes those choices explicit for every project.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md). Also seen: installed under .agents/ (shared by several agents).

This is alwkala/tidyfactor-design's own configuration. It tells Claude Code how to work on tidyfactor-design itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything tidyfactor-design configures →

Reuse

Borrowing it

Nothing to install: this file belongs to alwkala/tidyfactor-design. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/alwkala/tidyfactor-design/main/.agents/skills/tidyfactor-design/references/commands/i18n.md
Clone the repo
git clone --depth 1 https://github.com/alwkala/tidyfactor-design

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for i18n

README.md
[![agentmods](https://agentmods.dev/badge/commands/alwkala/tidyfactor-design/i18n.svg)](https://agentmods.dev/commands/alwkala/tidyfactor-design/i18n)
Your own site
<a href="https://agentmods.dev/commands/alwkala/tidyfactor-design/i18n"><img src="https://agentmods.dev/badge/commands/alwkala/tidyfactor-design/i18n.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 789 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00789
Opus 5 $0.00000 $0.00394
Sonnet 5 $0.00000 $0.00158
Haiku 4.5 $0.00000 $0.00079

Measured 7d ago against content hash 958a5ee82cba, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

i18n scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/tidyfactor-design/references/commands/i18n.md · 65 lines

How it starts

The opening of the file, as written. The whole thing — 65 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Command: i18n — Arabic/RTL & Bilingual Sites

Purpose

Arabic support is a first-class capability of this skill, not a translation pass bolted on at the end — this command carries conventions drawn directly from prior production work, not generic RTL guidance. Run this as a real step in every project, even English-only ones, so the decision is explicit.

When to run it

  • Always, once, as part of Phase 3 — even to explicitly confirm an English-only project isn't accidentally missing a locale decision.
  • User phrasing: "make this bilingual", "add the Arabic version", "flip to RTL", i18n.

What it does

  1. Set localization.defaultLocale / localization.rtlLocales in brand.json; set html[lang]/html[dir] per page accordingly.
  2. Typography (non-negotiable): Arabic headings = El Messiri, Arabic body = Tajawal, defined as typography.families.arabicHeading / arabicBody tokens. Never Amiri for display/UI text — it reads as calligraphic/traditional, not modern-clean, and has consistently been wrong for this kind of work.
  3. Bilingual sites: pick and document one pattern per project, don't mix:
    • Separate localized pages (pages/home.html + pages/home.ar.html) — simplest, works with the page command unchanged, best when Arabic and English content genuinely differ in length/structure.
    • Single page, dual-tree toggle (both language trees present, one hidden via [hidden]/dir-scoped CSS, proto-nav.js toggle switches them) — best for a fast side-by-side client review of both locales.
  4. Mirroring vs. not: layout mirrors in RTL (nav, breadcrumbs, form label alignment, icon-direction for "next/back" arrows) — but numerals, embedded Latin brand names, and code/data stay LTR inside the RTL flow (unicode-bidi: isolate where needed). Don't blanket-mirror everything. Logo/wordmark and any Latin brand name stays unmirrored and identical across locales — brand identity doesn't flip.
  5. Re-run the components states matrix mentally for RTL: hover/focus rings, dropdown open-direction, and modal close-button position all need to make sense mirrored, not just the text direction.
  6. If voice.doNotUse (brand voice rules) has a localized Arabic block, apply it — don't machine-translate the English voice guide.

Read the full file on GitHub · 65 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 65 lines · 0 tokens per session scan A 958a5ee82cba

Subscribe to this mod's changes

i18n is a command published in the GitHub repository alwkala/tidyfactor-design (5 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 789 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.