skills sourced live from GitHub · all skills listed are free · each skill is provided under its author's license.
home / Sales / Salesforce Component Standards Skill by @github
The skill is the skills/salesforce-component-standards folder inside that repository. Copy it into the folder your agent loads skills from; check your agent's documentation for where that is.
Quality standards for Lightning Web Components, Aura and Visualforce: data access, security, styling and accessibility.
Helps pick the right data access pattern, applies security rules and SLDS 2 styling, and checks accessibility against WCAG 2.1 AA. A review checklist for Salesforce front-end code.
The original SKILL.md is organised into these sections:
Written and maintained by @github. It is published under the MIT license, which allows reuse with attribution. See the author profile. SkillDirectory does not claim authorship: this page adds our own review and links back to the original, and the skill's text belongs to its author.
# Salesforce Component Quality Standards
Apply these checks to every LWC, Aura component, and Visualforce page you write or review.
## Section 1 — LWC Quality Standards
### 1.1 Data Access Pattern Selection
Choose the right data access pattern before writing JavaScript controller code:
| Use case | Pattern | Why |
|---|---|---|
| Read a single record reactively (follows navigation) | `@wire(getRecord, { recordId, fields })` | Lightning Data Service — cached, reactive |
| Standard CRUD form for a single object | `<lightning-record-form>` or `<lightning-record-edit-form>` | Built-in FLS, CRUD, and accessibility |
| Complex server query or filtered list | `@wire(apexMethodName, { param })` on a `cacheable=true` method | Allows caching; wire re-fires on param change |
| User-triggered action, DML, or non-cacheable server call | Imperative `apexMethodName(params).then(...).catch(...)` | Required for DML — wired methods cannot be `@AuraEnabled` without `cacheable=true` |
…
Excerpt only, quoted from the author's repository. Open the repository for the complete file.