experience-ui-bundle-metadata-generate
Skill by forcedotcom
Adds a React or Angular UI bundle to an existing Salesforce DX project and configures its metadata. Covers scaffolding, meta XML, ui-bundle.json and CSP Trusted Sites.
Install experience-ui-bundle-metadata-generate
Built from the published package, never by AI.
git clone --depth 1 https://github.com/forcedotcom/sf-skills /tmp/sf-skills && mkdir -p ~/.claude/skills && cp -r /tmp/sf-skills/skills/experience-ui-bundle-metadata-generate ~/.claude/skills/experience-ui-bundle-metadata-generateRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install experience-ui-bundle-metadata-generate in Claude Code
git clone --depth 1 https://github.com/forcedotcom/sf-skills /tmp/sf-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/sf-skills/skills/experience-ui-bundle-metadata-generate ~/.gemini/antigravity-cli/skills/experience-ui-bundle-metadata-generateAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install experience-ui-bundle-metadata-generate in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill helps an AI assistant add a React or Angular UI bundle to an existing SFDX project. It runs sf template generate ui-bundle with the basic template (reactbasic or angularbasic), detects the framework with a script, and checks the scaffold and sourceApiVersion. It does not cover creating a brand-new project, which is handled by experience-ui-bundle-project-generate.
It also covers configuring UI bundle metadata: the .uibundle-meta.xml file with its target (Experience or CustomApplication), the ui-bundle.json file for outputDir, routing and headers, and CSP Trusted Sites for external images, fonts and API calls. It is aimed at developers building Salesforce UI bundles who need to add or configure bundles in an existing project.
Written from the project's SKILL.md and checked against it.
What it can do
- Scaffold a UI bundleRuns sf template generate ui-bundle with the reactbasic or angularbasic template.
- Detect frameworkUses a script to detect whether the project uses React, Angular, both or neither.
- Verify scaffoldChecks the bundle location and that package.json, src/ and an entry index.html exist.
- Check API versionEnsures sourceApiVersion in sfdx-project.json is 67.0 or higher and updates it if needed.
- Configure meta XMLSets masterLabel, version, isActive and target in the .uibundle-meta.xml file.
- Edit ui-bundle.jsonConfigures outputDir, routing and headers in the ui-bundle.json file.
- Register CSP Trusted SitesMaps external resource types to CSP directives and creates the cspTrustedSite metadata file.
What you need
- Node.js 18.0.0 or higher
- Salesforce CLI (sf) 2.0.0 or higher
- jq 1.6.0 or higher
Try asking
- Add a React UI bundle to my existing SFDX project
- Register a CSP Trusted Site for an external image CDN
- Set up routing rewrites and headers in my ui-bundle.json
Good to know
- Bundle names must be alphanumerical only, with no spaces, hyphens or underscores.
- A UI bundle without a target in its meta XML will not be visible in the org.
- ui-bundle.json must be 100 KB or less.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/experience-ui-bundle-metadata-generate/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to experience-ui-bundle-metadata-generate
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
experience-ui-bundle-metadata-generate: common questions
Does this skill create a new Salesforce project?
No. The source says that creating a brand-new project from scratch should use experience-ui-bundle-project-generate instead.
Where must a UI bundle folder be placed?
The source says the bundle must live under force-app/main/default/uiBundles/<AppName>/, not at the project root.
Which fields are required in the UI bundle meta XML?
The source lists masterLabel, version (max 20 characters) and isActive as required. Description and target are optional, but a target is needed for the app to be accessible in an org.
How do I install experience-ui-bundle-metadata-generate?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is experience-ui-bundle-metadata-generate free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is experience-ui-bundle-metadata-generate safe to use?
It scores 79 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to experience-ui-bundle-metadata-generate?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
