Skip to content
forcedotcom avatar

Design Systems Slds Validate

Audit Lightning Web Components for SLDS compliance with a linter-plus-static-analysis scorecard and a manual review gate.

CCM score
69 of 100
skills.sh installs
6.1K
GitHub stars
1.2K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers four steps: SLDS linter run, supplementary CSS/HTML/JS analysis, agent manual review, and score and grade calculation
  • Includes npx @salesforce-ux/slds-linter@latest lint and scripts/analyze-quality.cjs, with a renormalized score when the linter is unavailable
  • Enforces critical checks for invented --slds-g-* hooks, missing fallbacks, and missing input labels, icon alt text, and image alt text
  • Designed for teams scoring LWC components before code review or shipping, and excludes fixing violations or full WCAG audits

Install

$ npx -y skills add forcedotcom/sf-skills --skill design-systems-slds-validate -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

SLDS Quality Audit

Audit Lightning Web Components for SLDS compliance and produce an automated scorecard plus a required manual review gate. Combines SLDS linter output with supplementary static analysis to catch what the linter misses.

Scope

Also valid for: auditing SLDS compliance across a project or component set, and before/after quality comparison after making changes.

Not for:

  • Fixing linter violations — use design-systems-slds2-migrate instead
  • Building new components — use design-systems-slds-apply instead
  • Just running the linter — run npx @salesforce-ux/slds-linter@latest lint . directly
  • Full WCAG accessibility audit — this skill checks attribute presence only (labels, alt text, focus indicators), not contrast ratios, keyboard flows, or screen reader behavior
  • Framework-specific template auditing beyond .css, .html, and .js files — JSX/TSX/Vue/Svelte outputs need additional manual review

Quality Validation Process

Details

Repository
github.com/forcedotcom/sf-skills
Categories
Code Review & Quality, Frontend & UI Code
First seen
Jul 14, 2026

Questions

What does the design-systems-slds-validate skill do?

It audits Lightning Web Components for SLDS design-system compliance and produces a scored quality report. It runs the SLDS linter, analyzes CSS for theming hook usage and pairing, and checks HTML for accessibility attributes before grading the component.

How do I install the design-systems-slds-validate skill?

Run npx -y skills add forcedotcom/sf-skills --skill design-systems-slds-validate -y in a project. The skill then lets the agent score your component's SLDS compliance on request.

Which category does design-systems-slds-validate belong to, and what sets it apart?

It sits in the Code Review and Quality category, where it ranks in the top 100. It focuses on SLDS compliance scoring, while building new components and fixing violations are handled by other skills.

What do I need to run design-systems-slds-validate?

The skill needs Node.js 18 or later and npx 7 or later, since it runs the SLDS linter through npx. It checks .css, .html and .js files in Lightning Web Components.

Is design-systems-slds-validate a full accessibility audit?

No, it only checks attribute presence such as labels, alt text and focus indicators. Full WCAG audits, contrast ratios and keyboard flows are outside its scope and need a separate review.

More from forcedotcom/sf-skills

All 78

Similar to Design Systems Slds Validate

More Code Review & Quality