experience-lwc-security-validate
A Salesforce skill for checking a Lightning Web Component bundle against Lightning Web Security rules.
What the skill teaches
A Salesforce skill for checking a Lightning Web Component bundle against Lightning Web Security rules. The agent reads bundled knowledge bases and works through a numbered rule catalogue, looking for blocked or dangerous APIs such as eval, document.write and innerHTML, script element creation, writes to global objects and unsafe URL schemes, plus checks on templates and metadata. In review mode it returns findings ranked by severity with code fixes and can apply them; in score mode it produces a SARIF 2.1.0 JSON report. Bundled shell scripts check imports and validate SARIF output. It does not cover Apex, Aura or general security review.
Capabilities
- Review an LWC bundle for Lightning Web Security issues
- Find dangerous DOM APIs and unsafe URL schemes
- Produce a SARIF 2.1.0 score report
- Apply fixes for security findings
About
- Publisher
- Salesforce
- Tool
- Salesforce
Install
- Run this to add it to Any client:
npx skills add forcedotcom/sf-skills
What's inside
- examples/review-report.md
- examples/score-report.sarif.json
- references/lws-security-expert.md
- references/security-analysis.md
- scripts/check-lwc-import.sh
- scripts/validate-sarif.sh
MCP servers and skills can run code on your computer and act on your data. Review the source before installing.
This skill includes scripts that your agent may run.
Details
| Fact | Value | Source |
|---|---|---|
| Type | Skill | |
| Tool | Salesforce | |
| Publisher | Salesforce | source |
| Official status | OfficialSalesforce's developer documentation for its skills and plugins links to the forcedotcom/sf-skills repository | source |
| Needs an API key or sign-in | Not stated in its documentation | |
| Includes scripts | Yes | source |
| Platforms | Not stated in its documentation | |
| AI clients | Not stated in its documentation | |
| Licence | Apache-2.0 | source |
| Pricing | Not stated in its documentation | |
| Activity | Last commit Nov 6, 20261,156 GitHub starsDownload data not available (not on npm or PyPI) | source |
| Links | Repository |
Sources
- Skill file (SKILL.md)github.com/forcedotcom/sf-skillsNov 10, 2026
- README (README.md)github.com/forcedotcom/sf-skillsNov 13, 2026
- Licence file (LICENSE.txt)github.com/forcedotcom/sf-skills · Backs: Licence, PublisherNov 13, 2026
- Web pagedeveloper.salesforce.com · Backs: Official statusNov 13, 2026
- Folder in the repository (experience-lwc-security-validate)github.com/forcedotcom/sf-skills · Backs: Includes scriptsNov 10, 2026
- GitHub repositorygithub.com/forcedotcom/sf-skills · Backs: Activity, LicenceNov 11, 2026