i18n-accessibility
Right-to-left and language: dir, lang tags, bidi text, icon mirroring.
- License 许可
- MIT
- 最近更新
- 2026-11-06
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- i18n-accessibility
- license
- MIT
- metadata
- { "tier": "specialist", "title": "Internationalization Accessibility", "domain": "web", "effort": "medium", "output": "findings" }
- description
- Right-to-left and language: dir, lang tags, bidi text, icon mirroring.
- disable-model-invocation
- true
02 资源文件 1
- 参考文档agents/openai.yaml386 B
03 SKILL.md 正文
i18n Accessibility Specialist
You audit web content for internationalization-related accessibility issues. This covers language identification, text direction, bidirectional content, and RTL layout correctness — all critical for screen readers and assistive technologies in multilingual contexts.
Audit Areas
1. Document Language (lang attribute)
<html>MUST have a validlangattribute (WCAG 3.1.1)- Inline content in a different language MUST have
lang(WCAG 3.1.2)
2. Text Direction (dir attribute)
- Document-level:
<html dir="rtl">for RTL languages dir="auto"for user-generated content<bdi>for isolating bidirectional content
3. Bidirectional Text
- Mixed LTR/RTL content must use proper isolation
unicode-bidi: isolateCSS for styled elements
4. RTL Layout
- Use logical properties (
margin-inline-startnotmargin-left) - Directional icons flip; non-directional icons stay
5. Form Direction
- RTL label + LTR input value needs
dir="ltr"on input type="email",type="url",type="tel"always LTR
Common BCP 47 Tags
Each language, with its tag and direction.
| Language | Tag | Direction |
|---|---|---|
| English | en |
LTR |
| Arabic | ar |
RTL |
| Hebrew | he |
RTL |
| Persian | fa |
RTL |
| Urdu | ur |
RTL |
| Chinese (Simplified) | zh-Hans |
LTR |
| Japanese | ja |
LTR |
| Korean | ko |
LTR |
Process
Phase 1 — Detect Languages
Read source files, check <html lang>, find inline content needing lang.
Phase 2 — Check Direction
Verify dir on <html>, find mixed-direction content, check CSS logical properties.
Phase 3 — Report
Missing/incorrect lang, missing dir, bidirectional isolation issues, physical CSS properties, form input direction.
Output contract
Return only JSON matching skills/a11y-core/schemas/findings.schema.json.
No prose, no summary, no restated instructions. One object, one array of findings.
Shared rules, dispatch contract and schemas: skills/a11y-core/SKILL.md.
Authoritative specifications for this skill: skills/a11y-core/references/sources.md.
04 同仓库更多 Skills
frontend-slides
Create stunning, animation-rich HTML presentations from scratch or by converting PowerPoint files. Use when the user wants to build a presentation, convert a PPT/PPTX to web, or create slides for a talk/pitch. Helps non-designers discover their aesthetic through visual exploration rather than abstract choices.
design-dna
Extract, define, and apply design DNA across three dimensions: design system (tokens), design style (qualitative feel), and visual effects (Canvas, WebGL, 3D, particles, shaders, scroll effects, etc.). Use this skill when: (1) a user wants to see the full 3-dimension design structure/schema, (2) a user provides images, screenshots, or URLs of reference designs and wants them analyzed into a structured JSON profile covering all three dimensions, (3) a user has a Design DNA JSON and content and wants a design generated from it, or (4) any combination of these phases. Triggers on "design DNA", "extract design style", "analyze design", "design tokens from reference", "generate design from JSON", "design system from screenshot", "design profile", "style guide JSON", "visual effects analysis", "design with effects", "3d design analysis".
wireframe
Generate JSON wireframe with HTML preview
social-publishing
Schedule and publish social media posts across 13 platforms (X, LinkedIn, Instagram, Facebook Pages, TikTok, Discord, Telegram, YouTube, Reddit, WordPress, Pinterest) via the SocialClaw API. Use when the user wants to publish, schedule, or manage social media content programmatically. Requires SOCIALCLAW_API_KEY.
hermes-tweet
Install and operate Hermes Tweet, a Hermes Agent plugin for X/Twitter research, timeline reading, tweet analysis, and approval-gated private or state-changing operations. Use this skill when installing Hermes Tweet, researching X/Twitter accounts, monitoring launch signals, investigating mentions, auditing giveaways, or preparing gated X operations. Use proactively when a Hermes Agent workflow needs current X/Twitter context. Requires XQUIK_API_KEY for read and action tools.
refactoring-ui
Audit and fix visual hierarchy, spacing, color, and depth in web UIs. Use when the user mentions "my UI looks off" (or amateur/unprofessional), "fix the design", "Tailwind styling", "color palette", "visual hierarchy", "design system", "spacing scale", or "component styling". Also trigger when building consistent design tokens, creating dark mode themes, improving data-visualization clarity, or polishing UI details before launch. Covers grayscale-first workflow, constrained design scales, shadows, and component styling. For typeface selection, see web-typography. For usability audits, see ux-heuristics.