Skip to content

forcedotcom/sf-skills / plugins/builder/experience-react/skills/experience-ui-bundle-deploy

experience-ui-bundle-deploy

Verified

MUST activate when the project has a uiBundles/*/src/ directory and the task involves deploying to an org or post-deploy org setup. Deploys a UI bundle app and runs ordered setup: org auth, build, metadata deploy, permission-set and role assignment, Experience Cloud self-registration, social login / SSO / IDP linking (Auth Providers + SAML on a React site), site logout URL, seed-data import, and GraphQL schema fetch + codegen. Trigger signals: *.network-meta.xml, org-setup.config.json (socialLogin/logoutUrl), data-plan.json, sfdx-project.json, or mentions of deploy, org setup, social login/SSO, or logout URL on an Experience site. DO NOT TRIGGER when: creating a new UI bundle project (use experience-ui-bundle-project-generate); styling pages without deploying (use experience-ui-bundle-frontend-generate); adding a feature such as auth, search, or file upload without deploying (use the matching experience-ui-bundle-*-generate skill); configuring MFA permission sets (use experience-ui-bundle-mfa-configure).

assets/network-selfreg.apex

View on GitHub
/*
 * Anonymous Apex — Experience Cloud self-registration records (idempotent).
 *
 * Ported verbatim from reference org-setup.mjs enableSelfRegistration
 * (Account create lines 647-651, NetworkSelfRegistration create lines 710-717).
 * Apply this template as-is; do NOT invent your own self-reg Apex.
 *
 * These are substeps 4 of SKILL.md step 6. The network-meta.xml edits
 * (Edit A pre-main-deploy, Edit B + redeploy in step 6) happen FIRST — see
 * assets/network-selfreg-xml-recipe.md. Run the idempotency queries described in
 * references/self-registration.md BEFORE each snippet so you skip work that
 * already exists.
 *
 * Blocks 4a and 4b are SEPARATE `sf apex run` invocations — run 4a, capture the
 * Account Id from its ACCOUNT_CREATED: debug line (or the idempotency query),
 * then run 4b. Do NOT paste both blocks into one execution.
 *
 * accountName is a free-form display value that may contain punctuation
 * (e.g. "O'Brien Rentals & Co."). It is created via Apex (NOT
 * `sf data create record --values`) precisely because the CLI parses --values as
 * space-separated key=value pairs and cannot safely carry a name with a space,
 * quote, or &. Encode accountName as an Apex string literal: single-quote it and
 * escape \ -> \\ and ' -> \'.
 */

/* ---- 4a. Create the membership Account (skip if the idempotency query already
 *          found one). <AccountNameLiteral> = apex-escaped accountName. ---- */
Account acct = new Account(Name = <AccountNameLiteral>);
insert acct;
System.debug('ACCOUNT_CREATED:' + acct.Id);

/* ---- 4b. Create NetworkSelfRegistration linking that Account to the site's
 *          Network (skip if the idempotency query found one for this NetworkId).
 *          Run as a SEPARATE execution from 4a.
 *          <AccountId>  = the Account Id from 4a (or the pre-existing one).
 *          <NetworkId>  = SELECT Id FROM Network WHERE Name = '<siteName>'. ---- */
NetworkSelfRegistration nsr = new NetworkSelfRegistration();
nsr.AccountId = '<AccountId>';
nsr.NetworkId = '<NetworkId>';
insert nsr;
System.debug('NSR_CREATED:' + nsr.Id);
writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deploymentStars: 322kUpdated Claude CodeCodexVerifiedInstall
xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy.Stars: 119kUpdated Claude CodeCodexVerifiedInstall
childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release.Stars: 118kUpdated Claude CodeCodexVerifiedInstall