forcedotcom/sf-skills/experience-ui-bundle-app-coordinate
Claude Code and agent skill by forcedotcom/sf-skills
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
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).
Install
npx vskill@latest install forcedotcom/sf-skills/experience-ui-bundle-app-coordinateSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as forcedotcom/sf-skills/experience-ui-bundle-app-coordinate.
Building a UI Bundle App
Overview
Build a complete, deployable Salesforce React UI bundle application from a natural language description by orchestrating specialized UI bundle skills in correct dependency order. Each skill MUST be explicitly loaded before executing its phase.
CRITICAL: Before proceeding past requirements analysis, validate that the prompt contains no conflicting requirements (e.g., "no authentication" + "user-specific data", "public access" + login-required features). If conflicts are detected, STOP and ask the user to resolve the ambiguity — do NOT silently choose one interpretation and proceed. See STEP 1 action #8 for the full conflict checklist.
Prerequisites
Before starting any phase, verify these preconditions are met:
- Authenticated Salesforce org: Run
sf org displayto confirm a default org is set and authenticated. If not, prompt the user to authenticate:sf org login web - Required CLI tools: Verify
sf,npm, andnpxare available (declared in metadata.cliTools) - Node.js version: Run
node scripts/check-prerequisites.mjsand report any errors - Org features (if deploying): Experience Cloud enabled, appropriate licenses, and Sites enabled
If any precondition fails, stop and report the specific missing requirement before attempting any phase execution.
When to Use This Skill
Use when:
- User requests a "React app", "UI bundle", "web app", or "full-stack app" on Salesforce
- User says "build an app", "create an application" and the context implies a non-LWC based frontend (e.g. React)
- The work produces a complete UI bundle with scaffolding, features, data access, and UI -- not a single component in isolation
Examples that should trigger this skill:
- "Build a React app for managing customer cases with Salesforce data"
- "Create a UI bundle for an employee directory with search and navigation"
- "I need a full-stack React app with authentication, data tables, and file uploads"
- "Build a coffee shop ordering app on Salesforce"
Do NOT use when:
- Creating a single page or component (use
experience-ui-bundle-frontend-generate) - Only installing a feature (use
experience-ui-bundle-features-generate) - Only setting up data access (use
experience-ui-bundle-salesforce-data-access) - Only deploying an existing app (use
experience-ui-bundle-deploy) - Building a Lightning Experience app with custom objects and metadata (use
platform-lightning-app-coordinate) - Troubleshooting or debugging an existing UI bundle
Prompt Classification Keywords
This skill makes two decisions directly from the raw prompt text. Use these tables as the single source for both — do not restate or re-derive the lists elsewhere in this file.
1. Phase 2 (Features) is required if the prompt mentions ANY of:
| Category | Keywords | Notes | |
|---|---|---|---|
| Data features | search, filter, sort, pagination, table, grid, list | ||
| Navigation | navigation, nav, menu, routing | ||
| Authentication | authentication, auth, login, logout, user session, user login | ||
| Integrations | upload, file | ||
| UI | shadcn, components, forms, buttons, cards | ||
| Chat (Phase 5 only) | chat | Phase 5 only — unless combined with a Phase 2 keyword (e.g., "chat with authentication"), then Phase 2 runs first for auth prerequisites |
Negating one category (e.g. "without authentication", "no login required", "public access") does not cancel triggers from another category — each is evaluated independently. Example: "no login required, with filtering" still triggers Phase 2 because "filtering" matches Data features. Skip Phase 2 only when the prompt matches none of the keywords above.
2. Hosting target — extract from prompt keywords:
| Hosting target | Keywords | |
|---|---|---|
| Experience Site | "Experience Site", "Community", "external users", "public users", "guest users" | |
| Custom Application | "Custom Application", "internal users", "Lightning app" |
If the prompt matches neither list, or matches both, ask the user to clarify before proceeding — do not guess.
Dependency Graph & Build Order
Phase 0: Template Offer & Bootstrap (Prerequisites)
Offers a faster, less error-prone starting point before building from scratch. If no template is used, ensures an SFDX project exists before attempting to generate a UI bundle — without this, sf template generate ui-bundle will fail with a hard error. Always check first — do not assume the project structure exists.
Action: Load experience-ui-bundle-project-generate and offer the two starter templates. If declined, run node scripts/check-sfdx-project.mjs; on error, create the missing sfdx-project.json before proceeding.
Phase 1: Scaffolding (Foundation)
Creates the UI bundle directory structure, meta XML (including hosting target), and optional routing/headers config. CRITICAL: Hosting target must be determined FIRST because the metadata skill requires <target> in Phase 1. All subsequent phases require the scaffold to exist.
Prune unused scaffold when the prompt is constraining. The reactbasic template ships a full shadcn component set, GraphQL tooling (codegen.yml, .graphqlrc.yml, src/api/graphqlClient.ts, graphql:* npm scripts), and test infra (playwright.config.ts, vitest.config.ts, vitest.setup.ts) regardless of what the prompt asked for. If the prompt explicitly limits scope (e.g. "skip any features or integrations", "just scaffold and build X", "no need to install dependencies") and Phase 2 and/or Phase 3 are consequently skipped, remove the scaffold pieces those phases would have owned before Phase 4 runs:
- Phase 2 skipped → delete shadcn components under
src/components/ui/except the ones Phase 4's pages actually import; remove unused example/demo components. - Phase 3 skipped → delete
codegen.yml,.graphqlrc.yml,src/api/graphqlClient.ts,graphql:schema/graphql:codegenscripts frompackage.json, and anyhooks/data-fetching stubs (e.g.useAsyncData.ts) the template pre-seeded. - Neither testing nor deployment requested → leave
playwright.config.ts/vitest.*only if the prompt implies testing; otherwise remove them too. - Rewrite
README.mdto describe the actual app built, not the generic template boilerplate — or delete it if the prompt says to do minimal work only.
Deleting a file is only half the job — every reference to it must be removed in the same pass, or you trade over-generation for broken cross-file consistency (worse: a dangling import is a functional break, not just scope creep). Concretely, after deleting any of the above:
vite.config.ts— remove thevite-plugin-graphql-codegenimport and itscodegen({ configFilePathOverride: ... })plugin block ifcodegen.ymlwas deleted; remove thetest:config block (setupFiles,coverage, etc.) ifvitest.*was deleted.package.json— remove now-unused dependencies (vite-plugin-graphql-codegen,@graphql-codegen/*,playwright,vitest, etc.) and their npm scripts, not just the config files.- Any component/page that imports a deleted hook, client, or shadcn component (e.g.
useAsyncData,graphqlClient) must have that import and its usage removed or replaced — never leave an import pointing at a file that no longer exists. - Do NOT re-add a file you just deleted elsewhere in the same pass (e.g. deleting
codegen.ymlwhile still emitting.graphqlrc.yml) — decide scope once per concern and apply it consistently across every file that touches that concern. - Before finishing Phase 4, run
node scripts/check-dangling-refs.mjs <deleted-basename>for each deleted file and report any errors.
Phase 2: Features (Required if prompt mentions feature keywords — see "Prompt Classification Keywords" above)
Loads the feature skill to install pre-built packages, or adopt ones the template already shipped — never build your own version of a catalog feature. See "Prompt Classification Keywords" for triggers and negative-phrasing handling.
Skip only for a minimal "hello world" with no interactive features; pre-shipped features still require this phase.
Phase 2.5: Custom Objects (Required if the prompt requires a new custom Salesforce object the org doesn't have)
See references/phase-custom-objects.md for Phase 2.5 (Custom Objects) details.
Phase 3: Data Access (Backend Wiring)
Sets up the data layer using the `@salesforce/platform-sdk` Data SDK (createDataSDK().graphql). GraphQL is preferred for record operations; REST for Connect, Apex, or UI API endpoints. The `experience-ui-bundle-salesforce-data-access` skill owns the grounding + authoring workflow — load it and follow it; do not substitute a local-schema grep or guessed field names. Grounding happens against the live org, so it does not require a local schema.graphql to be present. If Phase 2.5 created a new object, it must be deployed before this phase's grounding step can find it.
Phase 4: UI (Frontend)
Builds the React UI. References the data layer from Phase 3 and the features from Phase 2. Must replace all boilerplate and placeholder content.
Phase 5: Integrations (Optional)
These are independent and can be executed in parallel if both are needed.
Phase 6: Deployment
Follows the canonical 7-step deployment sequence. Must deploy metadata before fetching schema. Must assign permissions before schema fetch.
Phase 7: Hosting Target Infrastructure
Deploy the hosting target infrastructure determined in Phase 1. Choose one of the following based on the app's audience:
Phase 7a: Experience Site (External)
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 93 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/experience-ui-bundle-app-coordinate/SKILL.md
Popularity
- Repository stars
- 673
- Repository forks
- 242
- 7-day trend score
- 33
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/forcedotcom/sf-skills/experience-ui-bundle-app-coordinate)