forcedotcom/sf-skills / plugins/builder/experience-react/skills/experience-ui-bundle-custom-app-generate
experience-ui-bundle-custom-app-generate
VerifiedMUST activate when the project contains a uiBundles/*/src/ directory and the task involves creating or configuring a Custom Application for hosting a UI bundle in Lightning Experience. Use this skill when creating a CustomApplication metadata record to surface the UI bundle in the App Launcher. Activate when files matching applications/*.app-meta.xml exist and need modification, or when the user wants to expose their app via the Lightning App Launcher without a Digital Experience Site. Do NOT use platform-custom-application-generate for this — UI bundle apps do not use tabs, action overrides, or flexipages.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 8.8 KB |
| references/configure-metadata-custom-application.md | markdown | 3.8 KB |
| scripts/resolve-uibundle-path.mjsexecutable | script | 1.8 KB |
scripts/resolve-uibundle-path.mjs
View on GitHub#!/usr/bin/env node
// Resolve the existing path of a UIBundle's meta XML file.
//
// UIBundle metadata may live at either the nested bundle-style path
// (uiBundles/{appName}/{appName}.uibundle-meta.xml) or, in older/hand-authored
// projects, the flat path (uiBundles/{appName}.uibundle-meta.xml). This script
// performs the deterministic file-existence check and prints whichever path
// already exists, preferring the nested layout.
//
// Always invoke via `node` (never as a bare executable) so this works on
// Windows cmd/PowerShell as well as macOS/Linux/Git Bash.
//
// Usage: node scripts/resolve-uibundle-path.mjs <appName>
//
// Exit 0: existing meta XML found — its path is printed to stdout.
// Exit 1: appName argument missing, or no .uibundle-meta.xml found for it.
import fs from "node:fs";
import path from "node:path";
const APP = process.argv[2] ?? "";
if (!APP) {
console.error("ERROR: appName argument is required");
process.exit(1);
}
// appName is interpolated into filesystem paths, so restrict it to a plain
// bundle name. Rejecting separators and "." blocks traversal (e.g. "../x")
// out of uiBundles/ and keeps the printed path inside it.
if (!/^[A-Za-z0-9][A-Za-z0-9_-]*$/.test(APP)) {
console.error(
"ERROR: invalid appName (allowed: letters, digits, '_' and '-'; must start with a letter or digit)"
);
process.exit(1);
}
const NESTED = path.join("uiBundles", APP, `${APP}.uibundle-meta.xml`);
const FLAT = path.join("uiBundles", `${APP}.uibundle-meta.xml`);
if (fs.existsSync(NESTED) && fs.statSync(NESTED).isFile()) {
console.log(NESTED);
process.exit(0);
} else if (fs.existsSync(FLAT) && fs.statSync(FLAT).isFile()) {
console.log(FLAT);
process.exit(0);
} else {
console.error(`ERROR: no .uibundle-meta.xml found for ${APP}`);
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 |