forcedotcom/sf-skills / plugins/builder/experience-cms/skills/experience-cms-content-generate
experience-cms-content-generate
VerifiedCreates, edits, and publishes Salesforce CMS content of any kind — any domain, any topic. Single and bulk: create many in parallel, edit one or many, publish all or a subset. Use this skill ANY TIME a user asks to create, generate, write, draft, author, or add content, OR to update, edit, or revise a content record, OR to publish it, OR to delete/remove a content record. Triggers like "create a <thing> about X", "create 5 <things>", "update content <id>", "publish content <id>", "publish the record <id>", "make <id> live", "delete content <id>" — where <thing> is any user-named content type. Activates FIRST whenever content authoring, editing, publishing, or deletion is mentioned, regardless of subject. Handles the full workflow: finding the content type, resolving the workspace, creating content, editing or publishing it — including a record identified by its variantId. Does not apply to defining a content type / schema (use experience-cms-content-type-generate), cloning, versioning, workspaces, or media.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 23.5 KB |
| assets/display-formats.md | markdown | 2.6 KB |
| assets/payloads/create-content-bulk.json | config | 657 B |
| assets/payloads/create-content-single.json | config | 437 B |
| assets/payloads/publish-content.json | config | 651 B |
| assets/payloads/update-content.json | config | 421 B |
| assets/questions.md | markdown | 12.9 KB |
| examples/create-content-call.md | markdown | 4.1 KB |
| references/bulk-batching.md | markdown | 4.3 KB |
| references/content-type-classification.md | markdown | 10.3 KB |
| references/content-write-tool.md | markdown | 7.0 KB |
| references/delegation-protocol.md | markdown | 5.5 KB |
| references/edit-publish-workflow.md | markdown | 9.2 KB |
| references/error-recovery.md | markdown | 13.8 KB |
| references/identifier-resolution.md | markdown | 2.4 KB |
| references/intent-routing.md | markdown | 8.6 KB |
| references/principles.md | markdown | 7.6 KB |
| references/ux-rules.md | markdown | 4.5 KB |
| references/workspace-resolution.md | markdown | 5.9 KB |
references/identifier-resolution.md
View on GitHub# Identifier resolution — content key / managedContentId / variantId
Shared by **Step 0-U** (UPDATE entry) and **Step 0-P** (PUBLISH entry). Both `update_cms_content_variant` and `publish_content` act on a `managedContentVariantId`; every direct-entry path must validate + resolve the user-supplied identifier to one via a `content-readonly` read BEFORE touching the write tool. The read also confirms the record exists.
**Precondition:** the hard identifier gate in Step 0-U / 0-P has already run. This resolution only executes once an identifier is in hand (session registry, or a user-typed value). The name-only / no-identifier case is STOPPED at the gate — never search the org to turn a name into an ID.
## Classify by prefix, pick the read tool
| Prefix | Identifier | Validate + resolve with | Yields |
|--------|-----------|-------------------------|--------|
| `9Ps` | `managedContentVariantId` | `get_content_variant` — param `variantId` (pattern `^(9Ps)\w*`) | the same `managedContentVariantId` (confirmed to exist) |
| `MC…` | content key | `get_content` — accepts a content key | the record's `managedContentVariantId` |
| `20Y…` | `managedContentId` | `get_content` — accepts an ID | the record's `managedContentVariantId` |
Both read tools live on `content-readonly`. `get_content` does **not** accept a variant ID — a `9Ps` value MUST go to `get_content_variant`, never `get_content` (sending a `9Ps` to `get_content` returns `INVALID_ID_FIELD`). Both reads return the variant's current field values and `contentBody` — retain that body (Step 0-U displays it before asking for edits).
## On the read result
- **Read fails** (`INVALID_ID_FIELD`, not-found, empty) → the ID is invalid. STOP and tell the user the identifier did not resolve; ask via `ask_user_tool` for a valid content key / `managedContentId` / `managedContentVariantId`. Do NOT edit or publish blindly.
- **`9Ps` fails its pattern, or the prefix matches none of the three rows** → unrecognized. Ask via `ask_user_tool` for a valid identifier; do NOT guess or dispatch.
- **Success** → take the `managedContentVariantId` (for `9Ps`, the ID the user gave, now confirmed valid) and continue: Step 0-U → Step 8c; Step 0-P → Step 9b.
## Hard rules
- **Never run SOQL / `sf data query`** to look one up — these reads are the only resolution path.
- If the required read tool is unavailable on this bridge, apply the No-drift STOP rule (Step 0).
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |