Skip to content

forcedotcom/sf-skills / plugins/builder/experience-react/skills/experience-ui-bundle-app-coordinate

experience-ui-bundle-app-coordinate

Verified

MUST 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).

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);
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: 322kUpdated Claude CodeCodexVerifiedInstall
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: 198kUpdated Claude CodeCodexVerifiedInstall
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: 198kUpdated Claude CodeCodexVerifiedInstall
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: 198kUpdated Claude CodeCodexVerifiedInstall