Sales Partner Enablement Program Create
- references/
- SKILL.md
Create Partner Enablement Program
Creates a new Partner Enablement Program (programType: PtnrEnablement) via the Salesforce Connect API. Partner Enablement only — no other program type.
How to run this
Talk to the user like a colleague helping them set something up, not a form wizard. Concretely:
- Ask about intent, not fields. Instead of asking for "Program Name", "Description", "Category", "Sub-category" one by one, ask what the program/task is for and about, then draft the fields yourself and show the result for a quick confirm. People can describe what they want in a sentence far more easily than they can fill in a schema.
- Auto-populate aggressively. Derive name, description, category, content type, timing, and ordering from what the user tells you. Only ask a direct question when there's a genuine decision you can't infer (e.g. whether self-enrollment should be open or invite-only) or when your inference is ambiguous enough that guessing wrong would be annoying to undo.
- Confirm with a summary, not a form. Show the user what you're about to create in plain, human sentences ("A program called X for partners to learn Y, with 3 steps..."). Let them correct anything in one reply rather than stepping back through a wizard.
- Do the mechanics silently. Creating the program record, saving tasks, creating/publishing CMS content, resolving internal IDs, and publishing the program are all implementation details. Do them in the background and only speak up for: (a) questions only the user can answer, (b) the final confirmation before creating/publishing, (c) errors, and (d) the end result. Never narrate "Now I'll POST to the programs endpoint" / "creating the CMS content draft" / "publishing now" — just do it and report the outcome. The one exception: for a larger batch (more than ~5 Program Items being saved at once, or several new content pieces being created in the same save), post one brief heads-up line before starting (e.g. "Saving 8 Program Items and creating 3 pieces of content — one moment.") so the user isn't staring at silence during a longer sequence of calls — still don't narrate each individual call underneath it.
- Never show raw API shapes to the user — no JSON bodies, endpoint paths, field names like
taskSubCategoryordeveloperName, or internal error codes. Translate everything into plain language. (All of that detail below and in the reference files is for you to execute correctly, not to narrate.) - Run the preflight and plumbing silently — don't narrate transport mechanics. The identity/permission/feature checks (Step 0 and Step 1), API-version resolution, and how you route calls are all internal. Do not tell the user things like "the session-identity route returned 404, falling back to SOQL", "resolving the API version", "checking your permission", or "moving on to Step 1" — these are noise to them. Just run the checks in the background and speak up only for: (a) a check that genuinely fails or blocks (e.g. the user lacks the Enablement Admin permission, or the feature is off — say that plainly, no codes), or (b) a decision only the user can make (e.g. confirming which identity the MCP is acting as when it's ambiguous). If a check passes, say nothing and continue. This applies to every internal endpoint attempt and fallback along the way, not just the final create/publish calls.
- Whenever the user needs to pick from a set of named options (a template, a network/site, an existing piece of content, etc.), present them as selectable choices rather than a numbered list they have to retype from. Use whatever multiple-choice/selection UI your environment provides for this; only fall back to a plain text list if no such UI is available.
- Never put a table inside a selectable-choice question's text. The selection UI is built for short option labels, not markdown tables — a table embedded in a question's prompt or in an option's label/description often renders as raw, unreadable text (pipes and dashes instead of a grid). Whenever you need to show a table (a field summary, a plan of Program Items, a consolidated list), send it as its own plain chat message first, and only then — as a separate, following turn — ask a short selectable-choice question (e.g. "Looks good, save these" / "I'd like to change something") that refers back to "the table above" rather than restating it.
- Call them "Program Items," never "tasks," when talking to the user. The API and this doc use "task"/
EnblProgramTaskDefinitioninternally (see the reference files) — that's implementation detail, not user-facing vocabulary. Every user-visible mention of the individual steps in a program should say "Program Item(s)."
Prerequisites (internal)
- A Headless 360 MCP server must be connected. If none is, ask the user to run
/mcpfirst. - Resolve the MCP prefix once, up front. The server name is chosen by whoever ran
claude mcp add(or set up the environment), so the tools appear asmcp__<name>__dispatch/mcp__<name>__dispatch_readonly— the suffixes are stable, the prefix is not (it might beheadless-360,headless-360-mcp-sdb-264, or anything else). Resolve your prefix once (e.g.ToolSearch → "dispatch dispatch_readonly"), then use that same prefix everywhere this skill writesmcp__headless-360__. Do not assume a specific server name. - Tools used:
mcp__<prefix>__dispatch_readonly(all GET reads) andmcp__<prefix>__dispatch(all writes: POST/PATCH/PUT). - The running user must be able to author Enablement Programs. This requires the Design and Deliver Enablement Programs permission (
PermissionsEnablementAdmin) — enabled by default as part of the Manage Enablement Essentials permission set (dev nameEnablementAdmin, provisioned with the Enablement add-on license), or any permission set/group that grants the same permission. Confirm this up front in Step 0; without it every create/save/publish call later fails on access, and there's nothing this skill can do but ask an admin to grant it.
API version
Every REST/Connect path below and in the reference files is written with a v{version} placeholder (e.g. /services/data/v{version}/connect/enablement/programs). Do not hardcode a version. Resolve the org's supported API version once at the start — either from GET /services/data/ (returns the list of available versions; use the latest) or from your MCP environment's default — then reuse that single value on every call. This skill was validated against v67.0; that or newer is recommended. Where a literal version appears in an example, it is illustrative only — substitute the resolved value.
Reference files (internal)
The detailed flow and API mechanics are in references/. Read each file where a step below says to, before acting on that part of the flow — the step summaries here aren't enough on their own. Never narrate any of it.
- references/permission-check.md: Step 0.
- references/program-creation.md: Step 2.
- references/program-items.md: Step 3, and editing or adding to a saved program.
- references/learning-content.md: finding, creating or editing content for an Exercise item (Step 3, and fixing missing or dead content in Step 4).
- references/saving-and-publishing.md: saving, fetching a saved program's items, publishing, and what specific errors mean.
Step 0 — Confirm the User Can Create Programs (silent unless blocked)
Before anything else — including the feature check in Step 1 — make sure the person you're helping can actually author Enablement Programs. If they can't, every create/save/publish call later fails on access, so catch it here rather than part-way through building a program.
Read references/permission-check.md before running this check. In short, silently:
- Resolve the running user's id, and confirm with the user that it's the identity the MCP authenticates and writes as before you trust it. If more than one Headless 360 MCP is connected, confirm the target org and user. Do not auto-select a user by login recency (
ORDER BY LastLoginDate DESC). If you can't establish and confirm the acting identity, treat it as a failed check (below) rather than guessing. - Check for the authoring permission with a
PermissionSetAssignmentquery onPermissionSet.PermissionsEnablementAdmin = true, always scoped to that user'sAssigneeId(inline the literal id).
Then:
- One or more rows: the user has the permission — say nothing about this check and move on to Step 1.
- Zero rows: stop. Tell the user plainly (no field names or codes) that they don't have the access needed and an admin has to grant it: the Manage Enablement Essentials permission set, or a permission set that includes it. Do not attempt to create anything.
- The check itself fails (e.g. the session can't resolve the user or query
PermissionSetAssignment): don't guess either way, and don't proceed. Tell the user the permission check couldn't complete and stop — do not attempt to create anything when you can't confirm the running user is authorized to author programs. Ask an admin to confirm access, then re-run.
This is the earliest gate: run it before the Step 1 feature check.
Step 1 — Confirm Partner Enablement Is On (silent unless blocked)
Before asking the user anything, check:
GET /services/data/v{version}/connect/setup/discovery/feature/sales-cloud-prm-partner-enablement/status
Returns {"status": "ENABLED" | "NOT_ENABLED" | "IN_PROGRESS", ...}.
ENABLED: say nothing about this check — move straight to Step 2.NOT_ENABLED/IN_PROGRESS: stop and tell the user plainly, e.g.: "Partner Enablement isn't turned on for this org yet, so I can't create a program here — you'd need an admin to enable it first." Do not attempt to create the program anyway.- Call fails (e.g. 404 — the feature registry isn't reachable in every runtime): don't guess enabled or disabled, and don't proceed. Tell the user the check itself failed and stop — do not attempt to create the program when you can't confirm the feature is enabled. Ask an admin to confirm Partner Enablement is on, then re-run.
Step 2 — Learn About the Program
Read references/program-creation.md before starting this step.
Ask one open, warm question, e.g.:
"Tell me about the program — who's it for, and what should partners get out of it? Also, should partners be able to join on their own, or should enrollment be by invite?"
From the reply, draft (don't ask for these separately):
- Name — a short, natural title (≤80 chars).
- Description — a tightened version of what they said (≤350 chars).
- Self-enrollment — take their answer if they gave one; otherwise default to open self-enrollment unless they described it as invite-only/curated, and say which way you defaulted so they can flip it in one word.
- Template — fetch templates internally (
GET /connect/enablement/programTemplatewithprogramType=PtnrEnablement— see Templates inreferences/program-creation.md; the param must go through your transport's query-parameter mechanism, not be appended to the path, or the call 404s) and always let the user pick from the available templates plus a "Start from scratch" option, rather than having one silently assumed. Present them as selectable choices (see the note above), not a numbered list to retype. If their description makes one an obvious fit, say so alongside the choices ("'