forcedotcom/sf-skills / plugins/builder/experience-react/skills/experience-ui-bundle-metadata-generate
experience-ui-bundle-metadata-generate
VerifiedUse this skill when adding a front-end React or Angular UI bundle to an EXISTING SFDX project, or configuring UI bundle metadata and config files. TRIGGER when: adding or scaffolding a new UI bundle — including adding one more or another UI bundle — into a project that already exists; scaffolding a single bundle with the basic template (reactbasic or angularbasic) via sf template generate ui-bundle; editing ui-bundle.json routing, headers, or output directory; working with *.uibundle-meta.xml files; or registering CSP Trusted Sites, resolving blocked images or fonts or external API calls, or editing cspTrustedSites/*.cspTrustedSite-meta.xml files. DO NOT TRIGGER when: creating a brand-new Salesforce project entirely from scratch, where the whole SFDX starter project (UI bundle plus Experience Site metadata and toolchain) is generated together in one step (use experience-ui-bundle-project-generate).
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 10.5 KB |
| references/angular-metadata-generate.md | markdown | 2.5 KB |
| references/csp-metadata-format.md | markdown | 12.3 KB |
| references/react-metadata-generate.md | markdown | 1.5 KB |
| scripts/check-api-version.mjsexecutable | script | 1.3 KB |
| scripts/detect-framework.mjsexecutable | script | 3.5 KB |
| scripts/verify-bundle-location.mjsexecutable | script | 5.6 KB |
scripts/check-api-version.mjs
View on GitHub#!/usr/bin/env node
// Checks that sourceApiVersion in sfdx-project.json is 67.0 or higher.
// If lower, updates it to "67.0".
//
// Usage: node check-api-version.mjs
//
// Always invoke via `node` (never as a bare executable) so this works on
// Windows cmd/PowerShell as well as macOS/Linux/Git Bash. Parses and rewrites
// sfdx-project.json with native JSON (no jq dependency).
import fs from "node:fs";
const PROJECT_FILE = "sfdx-project.json";
if (!fs.existsSync(PROJECT_FILE) || !fs.statSync(PROJECT_FILE).isFile()) {
console.log(`ERROR: ${PROJECT_FILE} not found in current directory`);
process.exit(1);
}
let data;
try {
data = JSON.parse(fs.readFileSync(PROJECT_FILE, "utf8"));
} catch {
console.log(`ERROR: ${PROJECT_FILE} is not valid JSON`);
process.exit(1);
}
const version = data.sourceApiVersion || "0";
const major = Number.parseInt(String(version).split(".")[0], 10);
const isBelow = Number.isNaN(major) || major < 67;
if (isBelow) {
console.log(`WARNING: sourceApiVersion is ${version} (< 67.0)`);
console.log(`Updating ${PROJECT_FILE} to set sourceApiVersion to "67.0"`);
data.sourceApiVersion = "67.0";
fs.writeFileSync(PROJECT_FILE, `${JSON.stringify(data, null, 2)}\n`);
console.log("OK: Updated sourceApiVersion to 67.0");
process.exit(0);
}
console.log(`OK: sourceApiVersion is ${version} (>= 67.0)`);
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation). | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK). | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |