experience-ui-bundle-project-generate
Using a UI Bundle Template
Before building a Salesforce UI bundle app from scratch, offer the user a prebuilt starter template. The Salesforce CLI generates these — a complete, deployable SFDX project (UI bundle + toolchain + an npm run setup automation) — in one command. Starting from a starter is faster and less error-prone than hand-scaffolding.
The CLI command is sf template generate project.
Step 1: Offer the choice
Determine the framework. It is normally already decided by the calling context — either passed down by the root/coordinator skill that invoked this one, or stated in the user's request. Use that.
The frameworks this skill supports are exactly the reference files under <SKILL_DIR>/references/, each named <framework>-project-generate.md (so react → <SKILL_DIR>/references/react-project-generate.md). This is the single source of truth — adding a framework means adding a reference file, nothing here changes.
- If the framework is known — open
<SKILL_DIR>/references/<framework>-project-generate.md. - If it is unknown (a standalone run where nobody said which) — list
<SKILL_DIR>/references/, derive the supported set by stripping the-project-generate.mdsuffix from each filename, and ask the user to pick one of those. If the user names a framework with no matching reference file, it is not supported here — hand off toexperience-ui-bundle-app-coordinateto scaffold from scratch.
Each reference lists that framework's --template flags and what each starter contains. Pick the one that fits the user's audience (internal vs. external).
If the user prefers to start from scratch (or neither template fits), stop here and let experience-ui-bundle-app-coordinate scaffold a new project. This skill is opt-in — do not force a template.