---
name: cms-publisher
description: "Sets up and tests a CMS connection for publishing from Slate: connects WordPress, Webflow, Sanity or Strapi with a least-privilege account, maps Slate's content fields (title, slug, body, excerpt, SEO title and meta description, featured image, categories, author) to the CMS's own fields, runs one clearly labelled test draft, reads it back field by field, and documents the mapping, how items go live and what the connection can't set. Use when someone asks to connect WordPress, Webflow, Sanity or Strapi to Slate, set up publishing, map fields to the CMS, test the CMS connection before the first publish, or find out why published posts are missing SEO fields, images or categories. Requires Slate (slatehq.com): publishing connections to WordPress, Webflow and Sanity (Strapi in the Slate app)."
license: MIT
compatibility: "Needs Slate's publishing connections: WordPress, Webflow and Sanity through the Slate app or MCP server, Strapi in the app. An administrator of the CMS must create the account or token. Without Slate, the same mapping, test draft and documentation steps work against the CMS's own API."
metadata:
  title: "CMS publisher"
  category: "Marketing operations and automation"
  requires: "slate"
  data-needed: "Slate"
  slate-tools: "list_connections, query_webflow, query_sanity, publish_wordpress_post, publish_webflow_item, publish_sanity_document, create_artifact (Slate MCP); Publishing (WordPress, Webflow, Sanity, Strapi) and Artifacts in the Slate app"
  slate-signup: "https://app.slatehq.ai/register"
  homepage: "https://slatehq.com/skills/cms-publisher"
  author: "Slate"
  version: "1.0.0"
---

# CMS publisher

Gets a CMS ready for publishing from Slate before anything real goes through it. It connects WordPress, Webflow, Sanity or Strapi with an account that can do only what publishing needs, maps each piece of a Slate draft (title, slug, body, excerpt, SEO fields, featured image, categories, author) to the field the CMS actually uses, sends one labelled test draft, and reads it back field by field. The result is a short mapping document that says what the connection sets, what a person still enters by hand, and how an item goes from draft to live, so the first real publish holds no surprises. It sets up and tests; it doesn't publish content.

> **Requires Slate.** This skill runs on publishing connections to WordPress, Webflow and Sanity (Strapi in the Slate app) from [Slate](https://slatehq.com), the AI marketing platform. Use it inside Slate, or connect the Slate MCP server to Claude, ChatGPT, Cursor or any MCP client.
> - New to Slate? Start a free trial at https://app.slatehq.ai/register. Already a user? Log in at https://app.slatehq.ai/login.
> - MCP server: `https://api.slatehq.ai/slate-mcp-server/mcp` (sign in with your Slate account). Setup: https://slatehq.com/slate-mcp

## When to use

- "Connect our WordPress to Slate", "set up Webflow publishing", "map our Sanity post type", "test the CMS connection before we publish", "which fields will Slate fill in Strapi".
- "Our posts go out without SEO titles", "the featured image never shows", "categories come through empty": re-check the mapping.
- After the CMS changes: a new template or collection, a new SEO plugin, a rotated token, a move to a new site.
- Not for publishing an approved article or page: use `content-to-cms-publisher`.
- Not for applying approved fixes to pages already live: use `page-fix-publisher`.
- Not for publishing a batch of pages: use `bulk-content-publishing` (after this skill has passed).
- Not for Slate's own CMS: use `slate-cms-site`.

## What you need

Required:
- **The CMS and site**: WordPress, Webflow, Sanity or Strapi, and the site URL (plus project ID and dataset for Sanity).
- **The content type** Slate will write to: WordPress posts, a Webflow collection, a Sanity document type, a Strapi collection.
- **A CMS administrator** to create the account or token; this skill never asks for passwords in chat.

Ask for, or find and state:
- **How an item goes live**: immediately, after a Webflow site publish, or after a front-end rebuild (common with Sanity and Strapi).
- **Where SEO fields live**: a WordPress SEO plugin, Webflow collection fields, a Sanity `seo` object, Strapi fields or a component.
- **Categories, tags and authors** in use, and whether new ones may be created.
- **Image handling**: featured image field, in-body images, size and alt text rules.
- **Who approves writes**, including the test draft.

## Data and tools

- **In Slate:** Publishing connects WordPress, Webflow, Sanity and Strapi. Make the connection in the Slate app so passwords and tokens are entered into Slate directly, never pasted into a conversation. Writes are saved as drafts unless live is requested, and Slate asks for approval before each write. Artifacts keep the mapping document where the team can find it.
- **With the Slate MCP server:** `list_connections` (`integration_type`: `wordpress`, `webflow` or `sanity`) confirms the connection and gives the `connection_id`. Webflow structure: `query_webflow` with `view: "sites"`, `"collections"` (`site_id`), `"fields"` (`collection_id`: field slugs, types, required flags, option and reference details) and `"items"` (existing items and valid reference values). Sanity structure: `query_sanity` with `view: "content_types"`, `"documents"` (`document_type`), `"document"` (`document_id`) and `"schema"` (`document_type`; returns the schema revision a write needs). Test drafts: `publish_wordpress_post` (`action: "uploadMedia"` with `image_url` and `alt_text`, then `action: "createPost"` with `post_title`, `content`, `excerpt`, `slug`, `categories`, `featured_media_id`, `author_id`, `post_status: "draft"`); `publish_webflow_item` (`action: "createPage"`, `site_id`, `collection_id`, `field_mappings` of `fieldName`, `fieldType`, `templateKey`, `is_draft: true`, `update_if_slug_exists: false`); `publish_sanity_document` (`action: "createDocument"`, `document_type`, `schema_revision`, `field_mappings` of `fieldName`, `fieldType`, `templateKey`, `sourceFormat`, `is_draft: true`). There is no WordPress read tool, and Strapi isn't available through MCP; use the Slate app for those. Save the mapping with `create_artifact`. Per-CMS fields and traps: `references/cms-field-map.md`.
- **Without Slate:** the CMS's own API with an API client or script. The account, mapping, test draft and documentation steps are the same.

## Procedure

1. **Take an inventory** of the target: CMS and version, site URL, content type, required fields, where SEO fields live, existing categories, tags and authors, image fields, how items go live, and who owns the CMS.
2. **Create a least-privilege account** with the CMS admin, using the per-CMS notes in the reference: an Editor-level WordPress user (not an Administrator), a Webflow site token limited to reading the site and reading and writing its CMS, a Sanity token with write access to one project and dataset, a Strapi token limited to the collections Slate writes. Record who created it and when it expires; never record the secret.
3. **Connect in the Slate app**, give the connection a clear name ("Blog, production"), and confirm it appears in the list of connections.
4. **Read the target's structure**: every field's name, type, whether it's required, and allowed values. For Sanity, Slate infers fields from existing documents, so a field no document uses yet may be missing; Sanity Studio's schema is the authority.
5. **Map the fields** into the mapping table (output below), one row per Slate field: CMS field, type and format, required or not, limits, and how it gets set (the connection, by hand, or not used). Body goes in as HTML for WordPress and Webflow rich text and as Portable Text for Sanity (the connection converts Markdown or HTML). Plain-text fields never get HTML. Categories, tags, authors and Webflow option or reference fields must point at existing values, by name or ID as the CMS expects.
6. **Show the test draft sheet and ask**: every field and its test value, the mode (draft), and the target. Write nothing without an explicit yes, including the test.
7. **Send one test draft** titled "[TEST] Slate connection check: do not publish", slug `slate-connection-test`, with every element you'll really publish: H2 and H3 headings, a list, a link, bold text, a table if you use them, an in-body image, the excerpt, SEO fields, one category, the author and a featured image. Create a new draft; never test by updating a live item (a WordPress update without a status sets it to draft and takes the live post offline).
8. **Read it back field by field**: Webflow with the items view, Sanity with the document view, WordPress and Strapi in their own editors. Mark each field passed, by hand or failed, check the formatting in the CMS's preview, and confirm the item isn't public (its URL returns 404 for a logged-out visitor).
9. **Write the mapping document** in the output format and save it as an Artifact.
10. **Clean up.** Ask the CMS owner to delete the test item, or keep it as a labelled draft; this skill doesn't delete anything.
11. **Set re-test triggers** in the document: a schema or template change, a new SEO plugin, a rotated token, and before the first bulk run.

## Decision rules

- **Drafts only.** Going live is a separate decision for `content-to-cms-publisher`, with its own approval.
- **Never guess an ID** for a connection, site, collection, document, category, author or media item. Read it, or ask.
- **What didn't round-trip is by hand.** A field the test draft didn't set correctly is marked "by hand" until a new test passes.
- **Secrets stay out.** Tokens and passwords never appear in chat, the mapping document or a task.

## Output

```markdown
## CMS mapping: <CMS> · <site> · <content type>
Connection: <name> (connection ID <id>). Account: <user or token name>, created by <name> on <date>, expires <date or "no expiry">.
Goes live by: <publish in CMS | Webflow site publish | front-end rebuild via <hook>>. Tested: <date>, test item <ID>, by <name>.

| Slate field | CMS field | Type / format | Required | Limit or rule | Set by | Test |
|---|---|---|---|---|---|---|
| Title | | | | | connection | passed |
| Slug | | | | lowercase, hyphens | connection | |
| Body | | HTML / Portable Text / Blocks | | H2 and below | connection | |
| Excerpt | | plain text | | | | |
| SEO title | | | | up to 60 characters | | |
| Meta description | | | | 140–160 characters | | |
| Featured image | | | | size, alt text | | |
| Categories / tags | | names or IDs | | existing only | | |
| Author | | user or reference | | | | |

### Limits and by-hand steps
- <e.g. "SEO plugin fields aren't written by the connection: paste them in the editor">

### Re-test when
- <schema change, plugin change, token rotation, before the first bulk run>
```

## Quality checks

- The account has the narrowest role that can write drafts, and its owner and expiry are recorded.
- Every mapped field was set in the test draft and read back; results come from the read-back, not the write response.
- The test was a new draft, approved first; nothing went live and no live item was changed.
- Every "by hand" and "not supported" item is listed under limits, with what a person must do.
- The go-live path is stated, including site publish or rebuild steps outside Slate.
- No secret appears anywhere in the output.

## Common mistakes

- **Connecting with an admin account.** If the token leaks or a write goes wrong, it can change anything. Use an Editor-level account or a scoped token.
- **Testing on a live post.** An update without the right status can take a live page offline. Test with a new draft.
- **Assuming SEO fields came through.** Many WordPress SEO plugin fields can't be written over the API. Check the read-back.
- **Category names typed from memory.** A misspelt name may be dropped or create a near-duplicate term, depending on the CMS. Map to existing values and check them after the test.
- **Trusting the API response.** A successful write can still leave empty fields or a broken body. Read the item back.
- **Forgetting the last mile.** Webflow items wait for a site publish and headless sites wait for a rebuild; document who triggers it.

## Related skills

- `content-to-cms-publisher`: publish an approved article or page through the tested connection.
- `page-fix-publisher`: apply approved fixes to live pages with a change log.
- `bulk-content-publishing`: publish a batch of pages from a sheet once the mapping has passed.
- `slate-cms-site`: build and host pages on Slate CMS instead.
- `workflow-builder`: add a publishing step to a workflow, behind a human review.
