Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
forcedotcom avatar

Generating Ui Bundle Site

  • 2.2k installs
  • 763 repo stars
  • Updated July 24, 2026
  • forcedotcom/sf-skills

generating-ui-bundle-site creates Salesforce Digital Experience metadata to host a React UI bundle site.

About

Generating UI Bundle Site creates Digital Experience Site infrastructure hosting React UI bundles on Salesforce. Activation requires uiBundles/*/src/ in the project or tasks involving digitalExperiences, networks, customSite, or guest access configuration. Five properties must resolve before metadata generation: siteName UpperCamelCase, siteUrlPathPrefix lowercase, appNamespace from sfdx-project.json or org query defaulting to c, appDevName from UIBundle metadata or query defaulting to siteName, and enableGuestAccess boolean default false. Workflow step one resolves all properties, step two creates Network, CustomSite, DigitalExperienceConfig, DigitalExperienceBundle, and sfdc_cms__site paths, step three loads full docs templates substituting brace placeholders only, and step four forbids editing non-templated default fields. React sites use appContainer true thin containers without LWR routes or branding sets, linking appSpace to the UIBundle record. Wrong appNamespace or appDevName yields deployed blank pages. Verification checklist confirms five properties, file existence, appSpace match, and sf project deploy validation before deploy.

  • Resolves siteName, url prefix, appNamespace, appDevName, guest access.
  • Creates Network, CustomSite, DigitalExperienceConfig, and bundle metadata.
  • React sites use appContainer true without LWR routes or branding sets.
  • Must read full docs templates before populating metadata fields.
  • Wrong appSpace linkage causes deployed blank React pages.

Generating Ui Bundle Site by the numbers

  • 2,203 all-time installs (skills.sh)
  • +7 installs in the week ending Jul 28, 2026 (Skillselion tracking)
  • Ranked #212 of 2,277 Frontend Development skills by installs in the Skillselion catalog
  • Security screen: LOW risk (skills.sh audit)
  • Data as of Jul 28, 2026 (Skillselion catalog sync)
At a glance

generating-ui-bundle-site capabilities & compatibility

Capabilities
five property resolution with org queries · metadata directory scaffolding · template driven field population rules · react appcontainer site pattern · pre deploy verification checklist
Works with
salesforce
Use cases
frontend · ui design · api development
Runs
Local or remote
Pricing
Paid
From the docs

What generating-ui-bundle-site says it does

Getting these wrong means the site deploys but shows a blank page
SKILL.md
Agents MUST read the full contents of each docs/*.md file referenced in Step 3
SKILL.md
npx skills add https://github.com/forcedotcom/sf-skills --skill generating-ui-bundle-site

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs2.2k
repo stars763
Security audit3 / 3 scanners passed
Last updatedJuly 24, 2026
Repositoryforcedotcom/sf-skills

How do I configure a Salesforce site to publish and host my React UI bundle?

Generate Salesforce Digital Experience Site metadata to host a React UI bundle with resolved appSpace linkage.

Who is it for?

Salesforce projects with uiBundles needing Digital Experience hosting.

Skip if: Skip for standard LWR community sites without React UI bundle hosting.

When should I use this skill?

User creates digitalExperiences, networks metadata, or hosts a UIBundle React app.

What you get

Complete site metadata with correct appSpace, guest settings, and deploy-validated structure.

  • sites/{siteName}.site-meta.xml CustomSite bundle
  • Deployable Digital Experience React site metadata

Files

SKILL.mdMarkdownGitHub ↗

Digital Experience Site for React UI Bundles

Create and configure Digital Experience Sites that host React UI bundles on Salesforce. This skill generates the minimum necessary site infrastructure — Network, CustomSite, DigitalExperienceConfig, DigitalExperienceBundle, and the sfdc_cms__site content type — so a React app can be served from Salesforce.

React sites differ from standard LWR sites: they don't need routes, views, theme layouts, or branding sets. The site acts as a thin container (appContainer: true) that delegates rendering to the React UI bundle referenced by appSpace.

Required Properties

Resolve all five properties before generating any metadata. Each has a fallback chain — work through each option in order until a value is found.

PropertyFormatHow to Resolve
siteNameUpperCamelCase (e.g., MyCommunity)Ask user or derive from context
siteUrlPathPrefixAll lowercase (e.g., mycommunity)User-provided, or convert siteName to all lowercase with alphanumeric characters only
appNamespaceStringnamespace in sfdx-project.jsonsf data query -q "SELECT NamespacePrefix FROM Organization" --target-org ${usernameOrAlias} → default c
appDevNameStringUIBundle metadata in the project → sf data query -q "SELECT DeveloperName FROM UIBundle" --target-org ${usernameOrAlias} → default to siteName
enableGuestAccessBooleanAsk user whether unauthenticated guest users can access site APIs → default false

The appNamespace and appDevName properties connect the site to the correct React application. Getting these wrong means the site deploys but shows a blank page, so take care to resolve them from real project data.

Generation Workflow

Step 1: Resolve All Required Properties

Determine values for all five properties before constructing anything. Use the resolution strategies in the table above, falling through each option until a value is found.

Step 2: Create the Project Structure

Use available Salesforce metadata schema and field context for Network, CustomSite, DigitalExperienceConfig, and DigitalExperienceBundle to ensure each file uses valid structure.

Create any files and directories that don't already exist, using these paths:

Metadata TypePath
Networknetworks/{siteName}.network-meta.xml
CustomSitesites/{siteName}.site-meta.xml
DigitalExperienceConfigdigitalExperienceConfigs/{siteName}1.digitalExperienceConfig-meta.xml
DigitalExperienceBundledigitalExperiences/site/{siteName}1/{siteName}1.digitalExperience-meta.xml
DigitalExperience (sfdc_cms__site)digitalExperiences/site/{siteName}1/sfdc_cms__site/{siteName}1/*

The DigitalExperience directory contains only _meta.json and content.json. Do not create any directories other than sfdc_cms__site inside the bundle.

Step 3: Populate All Metadata Fields

Use the default templates in the docs below. Values in {braces} are resolved property references — substitute them with the actual values from Step 1.

Metadata TypeTemplate Reference
Networkconfigure-metadata-network.md
CustomSiteconfigure-metadata-custom-site.md
DigitalExperienceConfigconfigure-metadata-digital-experience-config.md
DigitalExperienceBundleconfigure-metadata-digital-experience-bundle.md
DigitalExperience (sfdc_cms__site)configure-metadata-digital-experience.md

For URL updates, see update-site-urls.md.

Execution Note for Step 3: Load and use the docs

  • Agents MUST read the full contents of each docs/*.md file referenced in Step 3 before attempting to populate metadata fields.
  • Use your platform's file-read tool (for example, read_file) to load these files in full, then perform placeholder substitution for values in {braces} using the resolved properties from Step 1.
  • Files to load:
  • docs/configure-metadata-network.md
  • docs/configure-metadata-custom-site.md
  • docs/configure-metadata-digital-experience-config.md
  • docs/configure-metadata-digital-experience-bundle.md
  • docs/configure-metadata-digital-experience.md
  • Read entire file contents, replace placeholders (e.g. {siteName}) with the resolved values, then use the expanded templates to populate the metadata XML/JSON content.

Step 4: Do Not Modify Non-Templated Properties

Do not modify any default property values for Network, CustomSite, DigitalExperience, DigitalExperienceConfig, or DigitalExperienceBundle metadata that are not expressed as variables wrapped in {braces}.

Verification Checklist

Before deploying, confirm:

  • [ ] All five required properties are resolved
  • [ ] All metadata directories and files exist per the project structure
  • [ ] All metadata fields match the Step 3 templates with {braces} substituted only; no other default property values were added or changed
  • [ ] appSpace in content.json matches an existing UIBundle metadata record
  • [ ] Deployment validates successfully:
sf project deploy validate --metadata Network CustomSite DigitalExperienceConfig DigitalExperienceBundle DigitalExperience --target-org ${usernameOrAlias}

Common Workflows

Updating Experience Site URLs

Use when user wants to update or change site URLs (urlPathPrefix).

Steps:

  • [ ] Read update-site-urls.md to understand the three-component architecture and URL update workflow
  • [ ] Follow the step-by-step workflow in the doc to update URLs consistently across all three components (DigitalExperienceConfig, Network, CustomSite)

Related skills

Forks & variants (1)

Generating Ui Bundle Site has 1 known copy in the catalog totaling 1.5k installs. They canonicalize to this original listing.

How it compares

Use generating-ui-bundle-site for new Salesforce React experience site scaffolding instead of manual CustomSite XML authoring.

FAQ

What causes a blank page after deploy?

Incorrect appNamespace or appDevName so appSpace does not match a real UIBundle record.

Must I read doc templates?

Yes. Load each docs/configure-metadata-*.md file fully before substituting placeholders.

Does this include LWR routes?

No. React bundle sites omit routes, views, theme layouts, and branding sets.

Is Generating Ui Bundle Site safe to install?

skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

Frontend Developmentfrontendintegrations

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.