Agent skill

Experience Lwc Rtl Validate

by forcedotcom in forcedotcom/sf-skills

A skill your agent uses to review a Lightning Web Component (.html, .js, .css files) for right-to-left (RTL) internationalization correctness, producing a finding list with code-level fixes covering…

Apache-2.0Auto-check passedFrontend & Design

Install Experience Lwc Rtl Validate

skills CLI
$ npx skills add forcedotcom/sf-skills --skill experience-lwc-rtl-validate -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install forcedotcom/sf-skills experience-lwc-rtl-validate --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/forcedotcom/sf-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/experience-lwc-rtl-validate .claude/skills/experience-lwc-rtl-validate && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
experience-lwc-rtl-validate
GitHub stars
1.1k
Token cost
~2.8k tokens
SKILL.md length
1,257 words
Files
3 (incl. scripts, references)
Skills in repo
251
Repo updated
First seen
Licence
Apache-2.0

At a glance

A skill your agent uses to review a Lightning Web Component (.html, .js, .css files) for right-to-left (RTL) internationalization correctness, producing a finding list with code-level fixes covering…

  • Works in 8 steps: Scope the review → Read the knowledge base → CSS inspection → …
  • Review a Lightning Web Component (.html
  • SKILL.md covers When to Use, Prerequisites, Knowledge Base and Workflow, plus 2 more sections
  • Runs Shell scripts from its folder

What it does

Experience Lwc Rtl Validate is an agent skill from forcedotcom/sf-skills. Use this skill to review a Lightning Web Component (.html, .js, .css files) for right-to-left (RTL) internationalization correctness, producing a finding list with code-level fixes covering CSS logical properties, bidirectional text handling, keyboard semantics, and RTL-aware SLDS class usage. TRIGGER when the user says "review this LWC for RTL", "audit i18n compliance", "fix bidirectional text rendering", "replace left/right CSS with logical properties", "check RTL layout issues", "verify SLDS RTL classes"…

Its SKILL.md is about 2.8k tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including scripts and reference files (for example `references/rtl-expert.md` and `scripts/scan-rtl-css.sh`).

It sits in Frontend & Design, covering Internationalization, Design systems and Security review. It works with Salesforce. The repository describes itself as: Salesforce's curated collection of agent skills for building applications. Optimized for Agentforce Vibes, compatible with all AI tools. The licence is Apache-2.0.

When your agent uses it

  • Review a Lightning Web Component (.html
  • .css files) for right-to-left (RTL) internationalization correctness
  • Producing a finding list with code-level fixes covering CSS logical properties
  • Bidirectional text handling

Example prompts

  • “review this LWC for RTL”
  • “audit i18n compliance”
  • “fix bidirectional text rendering”
  • “/experience-lwc-rtl-validate”

Requirements

  • A Bash shell

Workflow steps

8 steps, taken from the step headings in SKILL.md.

  1. Scope the review
  2. Read the knowledge base
  3. CSS inspection
  4. HTML / JS inspection
  5. SLDS constraints
  6. Produce the report
  7. Apply fixes
  8. Verify

What it can do on your machine

Read from SKILL.md and the folder at commit e5164d9. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Shell), which the agent can run.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Experience Lwc Rtl Validate loads about 2.8k tokens when it runs, and up to ~16k if it reads all its reference files. Until then it costs about 222 tokens; SKILL.md has 1,257 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~222
When it runs · the whole SKILL.md, loaded when a task matches
~2.8k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~16k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from forcedotcom/sf-skills at commit e5164d9, republished under its Apache-2.0 licence (© forcedotcom). 1,257 words, ~2,753 tokens.

Download SKILL.mdSave it as .claude/skills/experience-lwc-rtl-validate/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
experience-lwc-rtl-validate
description
Use this skill to review a Lightning Web Component (.html, .js, .css files) for right-to-left (RTL) internationalization correctness, producing a finding list with code-level fixes covering CSS logical properties, bidirectional text handling, keyboard semantics, and RTL-aware SLDS class usage. TRIGGER when the user says "review this LWC for RTL", "audit i18n compliance", "fix bidirectional text rendering", "replace left/right CSS with logical properties", "check RTL layout issues", "verify SLDS RTL classes", "review my component for Arabic/Hebrew layout", "ensure this LWC works in RTL locales", or "check bidi text handling". DO NOT TRIGGER when the user is building a new LWC (use experience-lwc-generate), refactoring SLDS classes themselves (use design-systems-slds-apply or design-systems-slds2-migrate), or performing accessibility/security review.
metadata.version
1.0
metadata.domains
Experience
metadata.relatedSkills
design-systems-slds-apply, design-systems-slds2-migrate, experience-lwc-generate
<!-- adk-managed-skill -->

Reviewing LWC RTL

Run a structured right-to-left (RTL) internationalization compliance pass over a Lightning Web Component, producing a report of issues found and code-level fixes to bring the component into compliance with Salesforce RTL guidelines.

When to Use

  • The user asks for an "RTL review", "i18n check", "RTL compliance pass", or "RTL audit" on a specific LWC.
  • Preparing a component for release in RTL locales (Arabic, Hebrew, Farsi, Urdu).
  • Investigating layout defects reported in RTL environments.
  • Verifying SLDS class usage after a CSS refactor.

Do NOT use this skill for:

  • Building new components (use experience-lwc-generate).
  • Modifying SLDS classes themselves (use design-systems-slds-apply or design-systems-slds2-migrate).
  • Accessibility or security review — run those as separate passes with the relevant tooling.
  • Gating a fix behind a feature flag (apply feature-flag gating after fixes land).

Prerequisites

  • Component path (LWC bundle under modules/…).
  • Access to the component's HTML templates, JS/TS, and CSS.

Knowledge Base

The reference is the source of truth. Do not summarize from memory — open the reference, apply the guidelines, and cite the specific section you used in the report.

Workflow

Step 1 — Scope the review

Collect the component path and identify the files to review: .html, .js/.ts, .css, and any child components owned by the same team that are invoked from the target.

Note any existing feature-flag gates (e.g., Aura.org.rtlPhase1FixEnabled) — findings that require code changes must respect them.

Step 2 — Read the knowledge base

Read RTL Expert top-to-bottom before judging. It enumerates the physical-to-logical property mappings, bidirectional text handling patterns, and — critically — the SLDS constraints that override generic RTL advice.

Step 3 — CSS inspection

Run the deterministic scanner over every .css file in the bundle. The scanner matches CSS declarations only — never SLDS class names in HTML class="…" attributes (see Step 5). Inline style="…" attributes must be scanned separately (either by extracting them into a temp file or by inspecting the HTML by hand and applying the same rules).

bash
"<skill_dir>/scripts/scan-rtl-css.sh" <cssFile1> [<cssFile2> ...]

Each output line has the shape <file>:<line>: <property>: <value> -> <logical-property>: <logical-value>. The scanner tokenizes declarations (splits on ; inside {…}) so minified multi-declaration lines produce one finding per physical declaration and selector names are never rewritten. Translate each line into a Step 6 bullet (<file>:<line> — <pattern> → <logical property> plus a one-sentence Fix). Empty output IS a valid result — record it as "No issues found." in the report.

Scanner-recognised patterns (kept in sync with the script's regex — do not add rules here without also updating scan-rtl-css.sh):

  • left / right → inset-inline-start / inset-inline-end
  • margin-left / margin-right → margin-inline-start / margin-inline-end
  • padding-left / padding-right → padding-inline-start / padding-inline-end
  • text-align: left / right → text-align: start / end
  • border-left-* / border-right-* → border-inline-start-* / border-inline-end-*
  • float: left / float: right → float: inline-start / float: inline-end (or remove and use flex/grid)
  • transform: translateX(...) — flagged; sign-flip or use a logical alternative

border-radius with explicit corners is not scanned automatically — inspect corner shorthand by hand and translate to the logical corner variants.

Step 4 — HTML / JS inspection

Walk templates and JS for:

  • Icon flipping hints — flag only icons with directional semantics that appear in plain HTML <img> / inline SVG / raw Unicode / background-image CSS. Do NOT flag <lightning-icon> in LWC templates (including directional utility names like utility:chevronright, utility:chevronleft, utility:back, utility:forward); lightning-icon renders through the Lightning icon service, which mirrors directional utility icons automatically in RTL locales. Treat it the same way you treat SLDS utility classes.
  • dir attribute usage — confirm it's sourced from locale, not hardcoded.
  • Keyboard arrow-key semantics — Left/Right arrow handlers should swap in RTL where navigation is directional (tab bars, sliders, tree expand/collapse).
  • Directional Unicode controls — ensure user-generated text is not stripped of RLM/LRM markers when rendered.
  • Inline style="…" with physical properties — same rules as Step 3.
Step 5 — SLDS constraints

SLDS class handling is the highest-priority RTL rule. When a rule below says "do NOT flag", that class must not appear as a finding in the report — not as an issue, not as a "fix", not as a rename suggestion.

  1. SLDS utility classes with _left / _right suffixes are RTL-aware and MUST NOT be flagged. They already mirror automatically in RTL under the hood — this includes slds-text-align_right, slds-text-align_left, slds-m-left_*, slds-m-right_*, slds-p-left_*, slds-p-right_*, slds-float_left, slds-float_right, slds-border_left, slds-border_right, and the rest of the _left / _right utility family. Leave them exactly as written.
  2. _start / _end variants of SLDS classes DO NOT EXIST. Never rename slds-*_right → slds-*_end or slds-*_left → slds-*_start. There is no such class; the rename would break the stylesheet. If you are tempted to "fix" an SLDS utility class by adding _start/_end, STOP — the correct action is to leave the class alone (see rule 1).
  3. Never modify, rename, or remove any slds-* class. SLDS ships RTL-aware stylesheets; altering classes breaks the contract.
  4. If custom CSS duplicates what an SLDS class already handles, the fix is removal — not conversion. Delete the redundant custom rule; leave the SLDS class alone. Do NOT convert the removed property to its logical equivalent, and do NOT offer removal + conversion as two alternatives; there is one fix, and it is deletion. Example: float: right in a .css file next to class="slds-button__icon_right" in the template — delete the entire .custom-icon { float: right } rule. Do not "also suggest float: inline-end" — that would be wrong; the SLDS class already handles placement.
  5. If an SLDS class has an RTL gap, add complementary custom CSS rather than altering the SLDS class.

Concrete negative example — a template with <span class="slds-text-align_right slds-m-right_small">…</span> alongside a custom padding-left: 4px in the component's CSS: the ONLY finding is the CSS padding-left (Step 3). The two slds-*_right classes are not findings and must not appear in the report.

Show full SKILL.md (349 more words)Show less
Step 6 — Produce the report

Write <outputDir>/rtl-review.md in this exact shape (blank line after each ## heading; every summary sentence ends with a period):

markdown
## RTL

- <file>:<line> — <physical pattern> → <logical property / SLDS class>
  Fix: <one-sentence explanation>; applied: yes/no
- <file>:<line> — <physical pattern> → <logical property / SLDS class>
  Fix: <one-sentence explanation>; applied: yes/no

## Summary

- <n> issues found; <m> fixed; <k> deferred (with reason).
- <one-sentence overview of what was found and why the remaining items are correct or deferred>.
- Cite: RTL Expert — <section title>.

Populate the ## RTL bullets from the scan-rtl-css.sh output for CSS findings, and append hand-authored bullets in the same shape for the Step 4 HTML/JS findings. When there are no findings, emit the single bullet - No issues found. under ## RTL and a Summary that reports 0 issues found; 0 fixed; 0 deferred. plus a one-sentence overview and citation.

Step 7 — Apply fixes

For each accepted finding:

  1. Edit the component files (CSS, HTML, JS/TS) to apply the fix.
  2. Preserve existing correct behavior and existing feature-flag gates. If a gate is already configured (e.g., Aura.org.rtlPhase1FixEnabled), leave it untouched. Only when the caller has explicitly required a phased rollout for a new fix, wrap that fix behind a feature flag; otherwise apply the fix directly.
  3. Do NOT remove or rename SLDS classes.
  4. Do NOT silently delete old code — preserve the original path where a gate is required.
Step 8 — Verify
  • Re-run the review against the updated files; every fixed finding must no longer appear.
  • Run Jest tests and any component-level RTL visual tests.

Cross-References

  • Related skills:
    • design-systems-slds-apply — for SLDS class-level changes beyond custom CSS cleanup.
    • design-systems-slds2-migrate — when RTL cleanup surfaces classes that need SLDS2 migration first.
    • experience-lwc-generate — when the review surfaces a need to regenerate the component rather than patch it.
    • Accessibility (WCAG 2.2) and security (LWS + Product Security) reviews are separate passes — run them with the appropriate tooling for each, not this skill.
    • Feature-flag gating is out of scope for this skill; apply it separately only when the caller has explicitly required a phased rollout (see Step 7).

Verification

  • All RTL rules are green on the updated component (re-run scripts/scan-rtl-css.sh against every CSS file in the bundle — it must return empty for every fully-applied finding).
  • No SLDS class was modified, renamed, or removed.
  • Every finding has either been applied or has an explicit deferred note with a reason.
  • The rtl-review.md matches the two-section shape defined in Step 6 (blank line after each ##; period-terminated summary sentences).

© forcedotcom, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files (scripts, references) in skills/experience-lwc-rtl-validate of forcedotcom/sf-skills.

  • SKILL.md
  • references/rtl-expert.md
  • scripts/scan-rtl-css.sh

Open the folder on GitHubat commit e5164d9

Compare with similar skills

Experience Lwc Rtl Validate next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Experience Lwc Rtl Validate compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Experience Lwc Rtl Validate this skillforcedotcom/sf-skills1.1k—~2.8kAutomated safety check: PassApache-2.0
Frontend UI FunctionalvictorGPT/vibeusage130—~939Automated safety check: PassMIT
Product UI Tastehuytieu/COG-second-brain1.3k—~13kAutomated safety check: PassMIT
Chakra UI v3 Refactor and Reviewchakra-ui/chakra-ui41k—~2.8kAutomated safety check: PassMIT
UX Designerhashgraph-online/awesome-codex-plugins1.3k—~4.4kAutomated safety check: PassApache-2.0
Impeccablebestofjs/bestofjs3.1k27 repos~2.6kAutomated safety check: PassMIT

Similar skills

  • Frontend UI Functional

    victorGPT/vibeusage

    A skill your agent uses when building or refactoring functional React/Vite/Tailwind UI pages, templates, or component libraries that need consistent structure, tokenized styling, accessibility…

    130 GitHub stars~939 tokensUpdated 2 mo ago
    Frontend & DesignAuto-check passed
  • Product UI Taste

    huytieu/COG-second-brain

    Anti-slop skill for PRODUCT UI - dashboards, data tables, forms, multi-step flows, settings, list/detail, app shells.

    1.3k GitHub stars~13k tokensUpdated 6 days ago
    Frontend & DesignAuto-check passed
  • Reviews and converts UI code to Chakra UI v3, producing a critique, rewritten code or both, from plain HTML, Tailwind, CSS Modules or styled-components.

    41k GitHub stars~2.8k tokensUpdated 2 days ago
    Frontend & DesignAuto-check passed
  • UX Designer

    hashgraph-online/awesome-codex-plugins

    UX/UI design principles for building and critiquing interfaces.

    1.3k GitHub stars~4.4k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Impeccable

    bestofjs/bestofjs

    A skill your agent uses when the user wants to design, redesign, shape, critique, audit, polish, clarify, distill, harden, optimize, adapt, animate, colorize, extract, or otherwise improve a…

    3.1k GitHub starsUsed in 27 repos~2.6k tokens
    Frontend & DesignAuto-check passed
  • Scraps Review

    getsentry/sentry

    Official

    Filter large Sentry Scraps design-system migration PRs for review by separating mechanical import-path changes, generated baseline updates, snapshot mocks, and pure renames from substantive…

    46k GitHub stars~1.2k tokensUpdated today
    Frontend & DesignAuto-check: notes

More from forcedotcom/sf-skills

All 251 skills in this repo
  • Agentforce Architecture Analyze

    forcedotcom/sf-skills

    Declared architecture snapshot for one Agentforce agent: planner, topics, actions, flows, Apex, prompt templates, and NGA plugins.

    1.1k GitHub stars~4.5k tokensUpdated 2 days ago
    Auto-check passed
  • Agentforce D360 Analyze

    forcedotcom/sf-skills

    Data Cloud 360° view of a single Agentforce session. An agent skill from forcedotcom/sf-skills.

    1.1k GitHub stars~3.4k tokensUpdated 2 days ago
    Auto-check passed
  • Apply a Salesforce sandbox post-copy automation JSON config against a target org.

    1.1k GitHub stars~5.3k tokensUpdated 2 days ago
    Auto-check: notes
  • Apply a Salesforce sandbox post-copy automation JSON config against a target org.

    1.1k GitHub stars~5.4k tokensUpdated 2 days ago
    Auto-check: notes
  • Design Systems Slds Apply

    forcedotcom/sf-skills

    Apply SLDS-compliant UI using the correct blueprints, styling hooks, utility classes, and icons.

    1.1k GitHub stars~3.7k tokensUpdated 2 days ago
    Auto-check passed
  • Experience Lwc Generate

    forcedotcom/sf-skills

    Lightning Web Components with PICKLES methodology and 165-point scoring.

    1.1k GitHub stars~2.4k tokensUpdated 2 days ago
    Auto-check passed

Works with

Questions about Experience Lwc Rtl Validate

What does Experience Lwc Rtl Validate do?

A skill your agent uses to review a Lightning Web Component (.html, .js, .css files) for right-to-left (RTL) internationalization correctness, producing a finding list with code-level fixes covering…. Experience Lwc Rtl Validate is an agent skill from forcedotcom/sf-skills.css files) for right-to-left (RTL) internationalization correctness, producing a finding list with code-level fixes covering CSS logical properties, bidirectional text handling, keyboard semantics, and RTL-aware SLDS class usage.

When should I use Experience Lwc Rtl Validate?

Experience Lwc Rtl Validate fits situations like: review a Lightning Web Component (.html; .css files) for right-to-left (RTL) internationalization correctness; producing a finding list with code-level fixes covering CSS logical properties; bidirectional text handling.

How do I install Experience Lwc Rtl Validate in Claude Code?

Run `npx skills add forcedotcom/sf-skills --skill experience-lwc-rtl-validate -a claude-code`. Or copy the skill folder (skills/experience-lwc-rtl-validate in forcedotcom/sf-skills) into .claude/skills/experience-lwc-rtl-validate in your project. Claude Code loads it when a task matches its description.

How do I install Experience Lwc Rtl Validate in Codex?

Run `npx skills add forcedotcom/sf-skills --skill experience-lwc-rtl-validate -a codex`. Or copy the skill folder (skills/experience-lwc-rtl-validate in forcedotcom/sf-skills) into .agents/skills/experience-lwc-rtl-validate in your project. Codex loads it when a task matches its description.

Can I use Experience Lwc Rtl Validate in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add forcedotcom/sf-skills --skill experience-lwc-rtl-validate -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/experience-lwc-rtl-validate, .gemini/skills/experience-lwc-rtl-validate, .github/skills/experience-lwc-rtl-validate and .opencode/skills/experience-lwc-rtl-validate in your project.

What does Experience Lwc Rtl Validate need to run?

Going by SKILL.md and its folder, Experience Lwc Rtl Validate needs a shell for the scripts in its folder. Our summary lists: A Bash shell.

Does Experience Lwc Rtl Validate access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Experience Lwc Rtl Validate safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Experience Lwc Rtl Validate use?

Experience Lwc Rtl Validate is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Experience Lwc Rtl Validate use?

About 2.8k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 13k tokens, read only when the agent opens those files.

What are the alternatives to Experience Lwc Rtl Validate?

Skills that share tags, products or a category with Experience Lwc Rtl Validate: Frontend UI Functional (victorGPT/vibeusage, 130 stars), Product UI Taste (huytieu/COG-second-brain, 1.3k stars), Chakra UI v3 Refactor and Review (chakra-ui/chakra-ui, 41k stars) and UX Designer (hashgraph-online/awesome-codex-plugins, 1.3k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Experience Lwc Rtl Validate?

forcedotcom (a GitHub organization) maintains it in forcedotcom/sf-skills, which has 1,065 GitHub stars. The repository holds 251 skills in this directory. The repository was last updated on October 7, 2026.

Source: forcedotcom/sf-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.