platform-widget-generate
A Salesforce skill for writing an HXL widget bundle, the three files that define a widget or card shown in Salesforce: a JSON widget body made of UEM components, a JSON schema for its attributes, and a metadata XML file.
What the skill teaches
A Salesforce skill for writing an HXL widget bundle, the three files that define a widget or card shown in Salesforce: a JSON widget body made of UEM components, a JSON schema for its attributes, and a metadata XML file. The agent works out what the widget should show, finds suitable UI components and their schemas through invocable actions, binds attributes, adds actions, and follows the skill's layout and styling guidance, with bundled examples for formulas, lists, conditions and localised labels. It is used when a request names a subject or entity without asking for Lightning Types; those requests go to other skills.
Capabilities
- Generate an HXL widget bundle
- Find UI components and their schemas
- Bind widget attributes to data
- Add actions, layout and styling to a widget
About
- Publisher
- Salesforce
- Tool
- Salesforce
Install
- Run this to add it to Any client:
npx skills add forcedotcom/sf-skills
What's inside
- examples/conditional.json
- examples/formulas.json
- examples/list-with-foreach.json
- examples/localized-labels.json
- examples/single-object.json
- references/schema-from-lightning-type.md
- references/widget-actions.md
- references/widget-bundle-layout.md
- references/widget-bundle-validation.md
- references/widget-formulas.md
- references/widget-gotchas.md
- references/widget-labels.md
- references/widget-meta-directives.md
- references/widget-styling.md
MCP servers and skills can run code on your computer and act on your data. Review the source before installing.
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 | No | 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 (platform-widget-generate)github.com/forcedotcom/sf-skills · Backs: Includes scriptsNov 10, 2026
- GitHub repositorygithub.com/forcedotcom/sf-skills · Backs: Activity, LicenceNov 11, 2026