forcedotcom/sf-skills / plugins/builder/experience-react/skills/experience-ui-bundle-project-generate
experience-ui-bundle-project-generate
VerifiedGenerates a minimal, ready-to-develop SFDX starter project from template instead of hand-scaffolding files. Use this skill when starting a brand-new Salesforce UI bundle app (React or Angular) and the initial project must be scaffolded — trigger phrases include create, start, or scaffold a new UI bundle app, generate a starter project, or use a prebuilt/starter template. DO NOT TRIGGER when: editing, styling, or adding pages or components to an EXISTING app (use experience-ui-bundle-frontend-generate); configuring ui-bundle.json or metadata files (use experience-ui-bundle-metadata-generate); deploying to an org (use experience-ui-bundle-deploy); when the user explicitly says they want to hand-scaffold from scratch; or when creating a brand-new standalone Salesforce project that also needs full setup — relocating the session, connecting an org, setting the default, and enabling source tracking (use dx-project-create in the salesforce-development plugin).
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 7.9 KB |
| references/angular-project-generate.md | markdown | 3.1 KB |
| references/react-project-generate.md | markdown | 1.3 KB |
| scripts/flatten-project.mjs | script | 2.1 KB |
| scripts/generate-project.mjs | script | 2.8 KB |
| scripts/install-deps.mjs | script | 3.3 KB |
scripts/flatten-project.mjs
View on GitHub#!/usr/bin/env node
// Flatten a `sf template generate project` result into the target root.
//
// Usage: node <skill_dir>/scripts/flatten-project.mjs <srcDir> <destDir>
// <srcDir> — the generated project dir (the `$STAGE/$NAME` subfolder the CLI nests output under)
// <destDir> — the target root the contents should land in (so sfdx-project.json sits at <destDir>/sfdx-project.json)
//
// Moves every generated entry (incl. dotfiles) from <srcDir> up into <destDir>, overwriting any
// existing file/dir of any type on conflict. Unrelated files already in <destDir> are left untouched
// — only the paths the template ships get replaced. The per-entry rmSync + renameSync is what
// guarantees the template's files win on conflict (including a file-vs-directory type mismatch).
// Requires Node ≥ 16.7 for rmSync.
//
// Always invoke via `node` (never as a bare executable) so this works on Windows cmd/PowerShell
// as well as macOS/Linux/Git Bash. Uses fs/path APIs only — no shell-out — so path separators and
// move semantics are correct on every OS.
import fs from "node:fs";
import path from "node:path";
import { pathToFileURL } from "node:url";
export function flattenProject(src, dest) {
if (!fs.existsSync(path.join(src, "sfdx-project.json"))) {
throw new Error("generated project has no sfdx-project.json: " + src);
}
for (const entry of fs.readdirSync(src)) {
const target = path.join(dest, entry);
fs.rmSync(target, { recursive: true, force: true });
fs.renameSync(path.join(src, entry), target);
}
}
function main() {
const [src, dest] = process.argv.slice(2);
if (!src || !dest) {
console.error("usage: node <skill_dir>/scripts/flatten-project.mjs <srcDir> <destDir>");
process.exit(1);
}
try {
flattenProject(src, dest);
} catch (err) {
console.error(err.message);
process.exit(1);
}
}
// Only run as a CLI when invoked directly (not when imported by generate-project.mjs).
// pathToFileURL handles Windows drive letters/backslashes correctly (a manual
// `file://${path}` string would not).
if (process.argv[1] && import.meta.url === pathToFileURL(process.argv[1]).href) {
main();
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deployment | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |