experience-ui-bundle-deploy
БесплатноЗапускает вложенные скриптыНе проверен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…
от forcedotcom★ 1 200 звёзд на GitHubОб этом скилле
Deploying a UI Bundle App
Deploy order is load-bearing: a step's output is the next step's precondition
(deploy before schema fetch; permissions before schema fetch; role/self-reg
before the schema the guest user must see). This is the canonical setup sequence,
ported from the reference org-setup.mjs. The org-setup.mjs line
citations in references/ are port-provenance (why each rule exists) pointing at
that external reference script — not files shipped with this skill — so you don't
need to open them to run the steps.
Run each step in order. Every optional step is presence-driven: if its convention file is absent, no-op cleanly and move on — do not fabricate config. For the two destructive/expensive steps (self-registration, data import), ask the user before running.
Inputs to gather up front
Read these from the project; ask the user only for what's missing:
- Target org — alias/username for
--target-org. Ask if not obvious. - Source root — run
scripts/get-source-root.shto resolve the metadata source dir fromsfdx-project.json(packageDirectories[0].path+/main/default). It exits non-zero if the project file is missing or malformed. Never hardcodeforce-app/main/default. org-setup.config.json(optional) — drives permset assignment, role, self-registration, and social login. Absent keys mean "skip that step". Exception: if the file is missing butpermissionsets/has permsets to assign, don't silently skip — scaffold the config or gather equivalent inputs (see step 4).data-plan.json(optional, in the project'sdata/dir) — presence enables the data step.
Step 1 — Org authentication (always)
Unconditional precondition; cannot be skipped. If the org is already connected
(sf org display --target-org <org> --json succeeds), no-op. Otherwise:
sf org login web --alias <org>
A failed login aborts the whole setup before deploy.
Step 2 — Pre-deploy UI bundle build
Build every UI bundle so dist/ exists before metadata deploy (UI bundle
entities deploy the built output). For each bundle dir under uiBundles/:
npm install
npm run build
Run when deploying UI bundles and dist/ is missing or source changed.
Step 3 — Deploy metadata
If self-registration is configured:
- Deploy license pre-check first (see
references/license-checks.md) — it blocks the deploy with a clear, license-naming message instead of a cryptic failure. - Add the self-reg profile to
networkMemberGroupson the local source — apply Edit A ofassets/network-selfreg-xml-recipe.md. This must happen before this deploy so the profile ships as a recognised site member; do NOT deploy the network file on its own here (this deploy ships it). Best-effort and idempotent — skip if already a member.
Then deploy the whole project (all metadata) by pointing --source-dir at the
resolved source root:
sf project deploy start --source-dir <sourceRoot> --target-org <org>
<sourceRoot> is the value from scripts/get-source-root.sh (e.g.
force-app/main/default). Always pass --source-dir. Do NOT run bare
sf project deploy start with no path: that command relies on source-tracking to
decide what to deploy, and on an org without source-tracking (most non-scratch
orgs) it aborts with "This org does not have source-tracking enabled … specify
the files or a manifest to deploy." Passing --source-dir deploys the same full
set on both source-tracked and non-tracked orgs and never emits that hint. If the
deploy reports conflicts on a source-tracked org, re-run with --ignore-conflicts
— do NOT roll back or reduce the deployed set.
Do NOT hand-build a package.xml, assemble a --metadata-dir mdapi zip, or
otherwise convert to metadata-format — none of that is needed and it is not part
of this flow.
Timeout 180s. Must complete before permission assignment and schema fetch — objects, fields, and permission sets appear in the org only after deploy.
Step 3b — Set the site logout URL (config-gated)
Run only when org-setup.config.json has a top-level logoutUrl. If absent,
no-op cleanly and say so. Non-destructive and idempotent — no ask needed.
Runs here, after the deploy (not folded into it) because the platform rejects
a relative logout URL ("The logout page URL must be an absolute URL."), and a
shipped site-relative path (e.g. /propertyrentalapp/) is resolved to absolute
against the site's Experience Cloud origin — which only exists once the site is
deployed.
Why it matters: a site with no <logoutUrl> sends a logging-out member to the
org default-site login page — in a multi-site org that's a different
community, so Sign Out lands on the wrong site's login page. Setting it steers
logout back to this site (reload as Guest).
Steps:
- Read
logoutUrlfrom config; absent → skip. - Derive the site —
scripts/derive-site-name.sh(single `
Установить experience-ui-bundle-deploy в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
BashReadWriteEditВложенные файлы
FAQ
Что делает скилл experience-ui-bundle-deploy?
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).
Как установить скилл experience-ui-bundle-deploy?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл experience-ui-bundle-deploy запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic