agentforce-architectur…
Declared architecture snapshot for one Agentforce agent: planner, topics, actions, flows, Apex, prompt templates, and NGA…
Create, extend, deploy, review readiness for, or activate an App MCP, a Salesforce custom hosted MCP server for an Aura Experience Site. Trigger when the user wants to expose an Experience UI or backend action to agents, create local ECA and server metadata, add eligible global
Claude Code
$ npx -y skills add forcedotcom/sf-skills --skill experience-app-mcp-generate --agent claude-code
Codex
$ npx skills add forcedotcom/sf-skills --skill experience-app-mcp-generate -a codex -y
Cursor
$ npx skills add forcedotcom/sf-skills --skill experience-app-mcp-generate -a cursor -y
Gemini CLI
$ npx skills add forcedotcom/sf-skills --skill experience-app-mcp-generate -a gemini-cli -y
GitHub Copilot
$ npx skills add forcedotcom/sf-skills --skill experience-app-mcp-generate -a github-copilot -y
OpenCode
$ npx skills add forcedotcom/sf-skills --skill experience-app-mcp-generate -a opencode -y
Windsurf
$ npx skills add forcedotcom/sf-skills --skill experience-app-mcp-generate -a windsurf -y
name: experience-app-mcp-generate
description: "Create, extend, deploy, review readiness for, or activate an App MCP, a Salesforce custom hosted MCP server for an Aura Experience Site. Trigger when the user wants to expose an Experience UI or backend action to agents, create local ECA and server metadata, add eligible global invocable Apex or autolaunched Flow tools, add Prompt Builder templates as MCP prompts or tools, preview or perform server activation, deploy the existing MCP stack, or review its readiness. For server setup, offer optional HXL widgets for eligible Apex-backed tools through platform-mcp-tool-widget-coordinate. For a standalone request to generate Custom Lightning Types or widgets for an Apex-backed MCP tool, route directly to platform-mcp-tool-widget-coordinate; do not trigger this skill for HXL generation alone. Do not trigger for remote MCP registration or generic Apex and Flow work unrelated to Experience Site agent access."
metadata:
relatedSkills:
- experience-app-mcp-delivery-generate
- platform-apex-generate
- platform-mcp-tool-widget-coordinate
version: "1.0"
minApiVersion: "68.0"
domains:
- "Experience"
cliTools:
- tool:
- "node"
semver: ">=18.0.0"
- tool:
- "sf"
semver: ">=2.0.0"End-to-end recipe: **ExternalClientApplication (ECA) → custom hosted MCP server → tools and prompts → deploy → optional HXL widgets + Custom Lightning Types + MCP widget resources → activate → verify → optional client delivery**. The Experience Site scopes naming and discovery; the MCP server is org-level.
Supports Aura Experience Sites with local ExperienceBundle source. The inventory checks the selected site's view components to determine source support.
Run Phase 0, recover confirmed site/server/ECA identities, then use the progress check and [existing-stack review](references/mcp-objects.md#existing-stack-review). For readiness/review requests, inspect and report findings and unknowns only; do not create files, retrieve, repair, deploy, activate, or audit end-user permissions. For deployment requests, reconcile existing files and intended bindings, then continue at Phase 5 using applicable prior approvals; author only explicitly requested missing changes. Script success or file presence does not establish readiness.
For ECA files, run the renderer in read-only comparison mode:
node "<skill-dir>/scripts/render_eca.mjs" <default-package>/main/default <ECA_DEV_NAME> --check
Follow the report's field findings, `expectedValues`, and `nextActions`. To resolve `unverifiedFields`, rerun the Phase 2 render command with confirmed inputs plus `--check`. Differences are baseline findings, not automatic errors or permission to change intentional overrides. For field ownership, read [references/eca-fields.md](references/eca-fields.md).
For MCP repairs, read `assets/__MCP_SERVER_NAME__.mcpServerDefinition-meta.xml` and [references/mcp-objects.md](references/mcp-objects.md). Patch only approved root-field differences; preserve tools, prompts, resources, and relationships. Use `merge_tools.mjs` for binding changes.
IMPORTANT: Set `<skill-named>` to `true` only if the user's request explicitly names `experience-app-mcp-generate`; otherwise use `false`. Do not count the agent's own skill selection or messages.
node "<skill-dir>/scripts/preflight.mjs" <target-org-alias> --skill-named <skill-named>
Read the JSON `decision`:
This repository provides Salesforce agent skills, plugins, and sample apps for building applications.
Declared architecture snapshot for one Agentforce agent: planner, topics, actions, flows, Apex, prompt templates, and NGA…
Use this skill to upgrade Einstein Bots into Agentforce agents end-to-end in a single pass, orchestrating per-bot Agent Spec…
Data Cloud 360° view of a single Agentforce session. TRIGGER when user asks to trace, inspect, summarize, or describe a specific…
Build, modify, audit, repair, optimize, debug, and deploy agents with Agentforce Agent Script. TRIGGER when: user creates,…
Analyze production Agentforce agent behavior using session traces and Data Cloud, and manage Agent Health Monitoring (AHM)…
Use to design an AI agent persona — identity, voice, tone, behavioral style, guardrails — and encode it into Agent Script (.agent…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.