generating-ui-bundle-features

Install authentication and search features into Salesforce UI bundle apps.

803|289|Updated Nov 7, 2025
One-click install
npx skills add https://github.com/forcedotcom/sf-skills --skill generating-ui-bundle-features-forcedotcom
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: generating-ui-bundle-features
Source: https://github.com/forcedotcom/sf-skills/tree/main/skills/generating-ui-bundle-features
Command: npx skills add https://github.com/forcedotcom/sf-skills --skill generating-ui-bundle-features-forcedotcom

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill solves the problem of building authentication and site-wide search from scratch in a Salesforce UI bundle app by guiding you to install proven, pre-built features instead.

Core Features & Use Cases

  • Authentication enablement: Adds login, logout, protected routes, and session management so users can securely access your app.
  • Search enablement: Adds global search across your app’s pages and content to help users quickly find information.
  • Use Case: When you’re turning an existing UI bundle into a production-ready experience, use this Skill to install both auth and search features in a consistent, tested way rather than assembling many fragments yourself.

Quick Start

Ask the AI to “Detect whether my project has a uiBundles/*/src directory and then install authentication and search features for my UI bundle using npx @salesforce/ui-bundle-features, checking for existing implementations in src/ first.”

Frequently Asked Questions about generating-ui-bundle-features

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add authentication and login flows to a Salesforce UI bundle app?

To add authentication to a Salesforce UI bundle app, you install pre-built UI-bundle features that provide login, logout, protected routes, and session management without building from scratch. The Skill automates this by discovering and installing proven features via the ui-bundle-features CLI.

What is the best way to implement global search across pages in a UI bundle?

The best way to implement global search in a UI bundle is to install pre-built search features using the ui-bundle-features CLI. This adds site-wide search across your app's pages and content consistently, avoiding the need to manually assemble search fragments.

Can I install UI bundle features if my project already has existing authentication code in the src directory?

Yes, you can install UI bundle features with existing code because the installation process is conflict-aware. It checks for existing implementations in the uiBundles/*/src directory first and resolves conflicts before integrating the pre-built authentication or search features.

Do I need a specific directory structure to add protected routes and session handling to my UI bundle?

You need a project containing a uiBundles/*/src directory to add protected routes and session handling. The Skill applies the pre-built authentication features by locating this structure and integrating the necessary files directly into your target source.

How does conflict resolution work when installing UI bundle features for authentication and search?

Conflict resolution during UI bundle feature installation works by checking your src/ directory for existing implementations before applying changes. The process identifies overlapping code and integrates the pre-built features safely, optionally merging __example__ files into your target source.