sf-lwc-constraints

Validates web components' naming, security, accessibility, and performance requirements.

13|2|Updated Mar 18, 2026
One-click install
npx skills add https://github.com/jiten-singh-shahi/salesforce-claude-code --skill sf-lwc-constraints
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sf-lwc-constraints
Source: https://github.com/jiten-singh-shahi/salesforce-claude-code/tree/main/.cursor/skills/sf-lwc-constraints
Command: npx skills add https://github.com/jiten-singh-shahi/salesforce-claude-code --skill sf-lwc-constraints

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Enforces Lightning Web Component naming conventions, security rules, accessibility guidelines, and performance best practices to prevent defects early in development.

Core Features & Use Cases

  • Naming conventions across component folders, JS, and HTML
  • Security and accessibility checks during development and review
  • Guidance for common anti-patterns and recommended practices

Quick Start

Validate a new or updated LWC against the constraints to ensure compliant naming, security, accessibility, and performance.

Frequently Asked Questions about sf-lwc-constraints

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce Lightning Web Components naming conventions during development?

To enforce Lightning Web Components naming conventions, you validate LWC folders, JS controllers, and HTML templates against explicit rules. This prevents defects early by cataloging 'Always Do' practices and anti-patterns for compliant component authoring.

What is the best way to check LWC accessibility and security rules before review?

The best way to check LWC accessibility and security is to validate the component artifacts against codified governance rules. This process catalogs explicit constraints and provides guardrails to catch accessibility and security violations during authoring.

How do I validate Salesforce LWC performance best practices in my project?

You validate Salesforce LWC performance best practices by applying governance constraints to your component folders, HTML templates, JS controllers, and CSS. This identifies common anti-patterns early and enforces required performance rules across the project.

Does this LWC governance approach work for both authoring and code review?

Yes, this LWC governance approach works for both authoring and review. It applies validation rules across all Lightning Web Component artifacts, providing tooling integration guardrails to ensure quality throughout the entire development lifecycle.

What common anti-patterns should I avoid when creating Lightning Web Components?

Common anti-patterns to avoid when creating Lightning Web Components include non-compliant naming structures, missing accessibility guidelines, and security vulnerabilities. The constraints catalog these explicitly to provide recommended practices and prevent defects.

Why do I need explicit constraints for LWC development in Salesforce projects?

You need explicit constraints for LWC development to meet Salesforce project governance requirements. Cataloging naming, security, accessibility, and performance rules provides clear guardrails that prevent defects early and standardize component quality.