forcedotcom/sf-skills / plugins/builder/experience-react/skills/experience-ui-bundle-app-coordinate
experience-ui-bundle-app-coordinate
VerifiedMUST activate when the user wants to build, create, or generate a React application, React app, web application, single-page application (SPA), or frontend application — even if no project files exist yet. MUST also activate when the project contains a uiBundles/*/src/ directory or sfdx-project.json and the prompt says create, build, construct, or generate a new app, site, or page from scratch — even if the prompt also describes visual styling. MUST also activate when the task spans more than one ui-bundle skill. Use this skill when building a complete app end-to-end. Do NOT use for Lightning Experience apps with custom objects (use platform-lightning-app-coordinate). Do NOT use for single-concern edits to an existing page (use experience-ui-bundle-frontend-generate).
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 25.9 KB |
| references/phase-completion-validation.md | markdown | 4.6 KB |
| references/phase-custom-objects.md | markdown | 1.9 KB |
| references/phase-execution-pattern.md | markdown | 1.6 KB |
| scripts/check-dangling-refs.mjsexecutable | script | 4.0 KB |
| scripts/check-hosting-target.mjsexecutable | script | 1.7 KB |
| scripts/check-phase-1-complete.mjsexecutable | script | 1.8 KB |
| scripts/check-phase-4-complete.mjsexecutable | script | 2.6 KB |
| scripts/check-phase-6-ready.mjsexecutable | script | 2.1 KB |
| scripts/check-prerequisites.mjsexecutable | script | 682 B |
| scripts/check-sfdx-project.mjsexecutable | script | 752 B |
scripts/check-hosting-target.mjs
View on GitHub#!/usr/bin/env node
// Check which hosting target is configured in .uibundle-meta.xml files.
// Usage: node check-hosting-target.mjs
//
// Always invoke via `node` (never as a bare executable) so this works on
// Windows cmd/PowerShell as well as macOS/Linux/Git Bash.
//
// Prints "ExperienceSite" or "CustomApplication" to stdout and exits 0 on
// success. Exits 1 with an error message if no .uibundle-meta.xml files
// are found, or none declare a valid target.
import fs from "node:fs";
import path from "node:path";
const EXCLUDE_DIRS = new Set(["node_modules", "dist", "build", ".git"]);
function findMetaFiles(dir, out) {
let entries;
try {
entries = fs.readdirSync(dir, { withFileTypes: true });
} catch {
return;
}
for (const entry of entries) {
const full = path.join(dir, entry.name);
if (entry.isDirectory()) {
if (EXCLUDE_DIRS.has(entry.name)) continue;
findMetaFiles(full, out);
} else if (entry.isFile() && entry.name.endsWith(".uibundle-meta.xml")) {
out.push(full);
}
}
}
const metaFiles = [];
findMetaFiles(".", metaFiles);
if (metaFiles.length === 0) {
console.error("ERROR: No .uibundle-meta.xml files found");
process.exit(1);
}
const contents = metaFiles.map((f) => {
try {
return fs.readFileSync(f, "utf8");
} catch {
return "";
}
});
if (contents.some((c) => c.includes("<target>ExperienceSite</target>"))) {
console.log("ExperienceSite");
process.exit(0);
}
if (contents.some((c) => c.includes("<target>CustomApplication</target>"))) {
console.log("CustomApplication");
process.exit(0);
}
console.error("ERROR: No valid hosting target found in .uibundle-meta.xml");
process.exit(1);
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 |