forcedotcom/sf-skills / skills/experience-ui-bundle-features-generate
experience-ui-bundle-features-generate
VerifiedMUST activate when the project contains a uiBundles/*/src/ directory (React or Angular) and the user wants to add a pre-built feature — such as authentication (login, logout, protected routes, session management) or search (global search across pages and content) — instead of building it from scratch. Always run list first to see the current feature catalog, since it can include more than authentication and search. Always use this skill for installing pre-built features rather than hand-building them. DO NOT TRIGGER for Agentforce conversational client or file-upload features — use experience-ui-bundle-agentforce-client-generate and experience-ui-bundle-file-upload-generate respectively.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 11.2 KB |
| references/angular/features.md | markdown | 3.0 KB |
| references/common/conflict-resolution-schema.json | config | 628 B |
| references/react/features.md | markdown | 2.1 KB |
| scripts/detect-framework.shexecutable | script | 2.2 KB |
references/react/features.md
View on GitHub# React UI Bundle Features
Framework reference for the **React** path of `experience-ui-bundle-features-generate`. Read
this alongside the workflow spine in `SKILL.md`. The `@salesforce/ui-bundle-features` CLI
installs the React variant of each feature into a React/Vite UI bundle (`"react"` in the
bundle `package.json`, `.tsx` sources under `src/`).
## Example files
Features ship integration examples under `__examples__/` as **`.tsx`** files — often full,
working pages with concrete names (e.g. `AccountSearch.tsx`), not bare stubs. Integrate the
pattern into the target file named in `describe` output, then verify before deleting the
`__examples__/` dir.
## Files features may rewrite
React features commonly touch the app shell and routing:
- `src/appLayout.tsx` — the app layout/shell
- `src/routes.tsx` — route registration
- `src/App.tsx` — app entry (some features mount here)
These are the paths to expect as conflicts in the two-pass conflict flow; resolve them per
`SKILL.md` → *Conflict Handling* (the exact paths are whatever the CLI prints).
## Mount the feature's entry component
Mount the OOTB component the feature ships rather than hand-rolling a parallel one. For search,
mount the feature's `<Search>` component (JSX) on the search-results page:
```tsx
import { Search } from "./features/search"; // path per describe output
// ...
export default function SearchResults() {
return <Search />; // do NOT hand-roll a results page
}
```
## Build & verify
Build command (run from the UI bundle dir):
```bash
npm run build
```
Worked grep for the *verify-before-delete* check (adjust the symbol to one from the example
you integrated — here the `SearchInput`/`useSearch` pattern integrated into a page):
```bash
grep -q "SearchInput\|useSearch" src/pages/*.tsx src/components/*.tsx 2>/dev/null || {
echo "ERROR: Pattern from example not found in target files - integration incomplete"
echo "Do NOT delete __examples__/ until the pattern is confirmed present"
exit 1
}
```
Only `rm -rf __examples__/` after the build passes **and** this grep confirms the pattern is
present in the target.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| 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: 322k | Updated | Claude CodeCodex | Verified | Install |
| 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: 198k | Updated | Claude CodeCodex | Verified | Install |
| 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: 198k | Updated | Claude CodeCodex | Verified | Install |
| 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: 198k | Updated | Claude CodeCodex | Verified | Install |