Generating a Widget Bundle
Author a complete WidgetBundle: a UEM tree (
tile/widget
), a JSON Schema describing the widget's input contract, and the
.uiwidget-meta.xml
that registers the bundle.
When to Use This Skill
Use when the user asks for a widget, mosaic, fragment, or card-style rich UI surface. Do not use this skill for custom-LWC renderers or for
renderer.json
files inside a Custom Lightning Type bundle — those belong to
platform-custom-lightning-type-generate
.
Inputs
widgetName
(required) —
camelCase
identifier; becomes the directory name under
uiWidgets/
.
A
shape
— what data the widget renders. The widget cannot be generated without it. The shape arrives one of two ways, in priority order:
lightningTypeSchema
—
{ path, apexClassFqn }
for an existing Apex-backed Lightning Type. The FQN takes one of two forms: outer-class (
platform-widget-generate
安装
npx skills add https://github.com/forcedotcom/sf-skills --skill platform-widget-generate