Content to CMS publisher

Takes a draft someone has approved and turns it into a correct CMS entry: body converted to the CMS's format, images uploaded with alt text, links checked, and every metadata field (SEO title, meta description, slug, excerpt, author, categories, featured image) filled. Before anything is written it shows a publish sheet with every field and its exact value; it writes only after an explicit yes, saves a draft first, and never changes the URL of a live page unless a redirect from the old URL is already working. Afterwards it checks the rendered page, not the API response, and reports what still needs a human.

Requires SlateBy SlateMIT licencev1.0.0

Add it to your agent

npx skills add slatehq-repo/marketing-skills --skill content-to-cms-publisher

Works in Claude Code, Cursor, Codex and other agents that read skills. Or copy the skill into your agent's skills folder (for Claude Code, .claude/skills/content-to-cms-publisher/).

DownloadView on GitHub

When to use

What you need

Required:

  • The approved draft, as the exact version that was approved (a file, an artifact or pasted text), and who approved it.
  • The target: CMS, connection, site and collection or post type, and whether this is a new item or a new version of an existing one (give its URL).
  • Draft or live: never assumed. If the request doesn't say, publish a draft and ask.

Ask for, or find and state:

  • Metadata: SEO title, meta description, slug, excerpt, author, categories or tags, featured image. If missing, propose values in the publish sheet; never invent an author.
  • Images: files or URLs, with the right to use them, plus alt text. If none, say the post will go out without images or hand over to on-brand-images.
  • Where SEO fields live: an SEO plugin, CMS fields or an seo object. Check one existing post if unsure.
  • How the live site updates: immediately, after a site publish, or after a rebuild (common with headless CMSs).

Data and tools

  • In Slate: Publishing connects WordPress, Webflow, Sanity and Strapi; writes are saved as drafts unless you ask for live, and Slate asks you to approve each write. Images generates a featured image in the brand's style. Artifacts hold the approved draft and the publish log. Web research and Screenshot check the live page; Page audit runs the on-page checks.
  • With the Slate MCP server: list_connections (with integration_type) for the connection ID; never guess IDs. WordPress: publish_wordpress_post with action: "uploadMedia" per image, then action: "createPost" with post_status: "draft". Webflow: query_webflow (view: sites, collections, fields, items) to find the collection and its field slugs, then publish_webflow_item with action: "createPage", is_draft: true and update_if_slug_exists: false. Sanity: query_sanity (view: content_types, schema) for types and the schema revision, then publish_sanity_document with action: "createDocument" for the draft and action: "publishDocument" to go live. Strapi: not available through MCP yet; use the Slate app. Read an approved artifact with query_artifacts (view: "detail"); verify with web_research (action: "scrape"), screenshot_page and seo_page_audit. Parameters, going live and traps per CMS: references/cms-publish-notes.md.
  • Without Slate: build the same publish sheet, get the same yes, and enter it in the CMS editor or through its own API. The verification and log steps still apply.

Procedure

  1. Confirm the version. Check the draft is the approved one, unchanged since approval. Refuse to publish text containing placeholders, editor comments or flags ([VERIFY], [QUERY], TK, "insert link"); list them and stop. Published copy is the approved copy: change formatting only, never wording, without a new approval.
  2. Resolve the target. Find the connection, site, collection or post type, and for a new version the exact existing item. If several match, ask; never take the first match.
  3. Read the target's fields and map each part of the draft to one: title, slug, body, excerpt, SEO title, meta description, author, categories, featured image, custom fields. List the fields the connection can't write (for example SEO plugin fields in WordPress) as paste-ready values for a person.
  4. Prepare the metadata with the rules in references/publish-checklist.md: SEO title up to 60 characters, meta description 140–160, a short lowercase slug that follows the site's pattern, existing categories only, a real author.
  5. Check the slug. New item: fetch the intended URL and confirm it returns 404, so you don't collide with a live page. New version of a live item: keep its slug. If the approved draft asks for a new slug, don't send it until a 301 redirect from the old URL to the new one is set up and tested by whoever manages redirects (Slate's connections don't create redirects). Then change the slug, verify the old URL redirects, and list internal links that still point to the old URL.
  6. Prepare images. For each: source and right to use, a descriptive filename, alt text that says what the image shows or means (empty only for decoration), and a size that suits the site (featured images usually 1200×630). Upload or attach them as the CMS needs (see the CMS notes); the body references the uploaded copies, never a third-party hotlink.
  7. Prepare links. Every internal link points to the live canonical URL (no staging, preview or redirecting URLs); every source link opens; anchors describe the destination. Fetch each link and record its status. Fix or remove any that fail before the sheet goes out.
  8. Convert the body to the CMS's format: clean HTML for WordPress and Webflow rich text, Portable Text for Sanity (the connection converts Markdown). The title is the only H1; body headings start at H2. No inline styles unless the site uses them.
  9. Show the publish sheet and ask. Every field with its exact value and character count, the image list with alt text, the link list with status, the mode (draft or live), and what a person must still paste in. For a new version of an existing item, show each changed field as before and after. Ask for an explicit yes for exactly this sheet. If anything changes after the yes, show it again.
  10. Write a draft. Create the item as a draft, report its ID and preview location, and ask the approver to check it there. Exception: a new version of a live WordPress post has no separate draft through the connection (an update with a draft status takes the live post offline), so the before-and-after sheet is the review and the update goes out on the yes for live.
  11. Go live only on a yes for live, one item at a time, using the CMS's route in the notes. Stop at the first error and quote it exactly; never retry a write that succeeded, switch to another item or site, or delete anything to get around an error.
  12. Verify the live page after the site's update path (cache, site publish or rebuild): status 200, title tag, meta description, one H1, author byline, featured image and body images loading with alt text, links working, canonical pointing to itself, no noindex, and the page readable on a phone (screenshot).
  13. Report and log: URL, CMS item ID, mode, time, approver, fields set, values handed over for a person, verification results, and next steps (request indexing in Search Console, add internal links from older posts, distribute).

Decision rules

  • No yes, no write. A yes covers the sheet shown, nothing else. "Looks good" about a different version isn't approval.
  • Draft unless told live. An ambiguous request gets a draft and a question.
  • Never publish unseen content. If the stored draft differs from what the approver saw, stop and show the new version.
  • Never destructive. No deletes or unpublishing; no slug change on a live page without a working redirect.
  • Smallest write that does the job. On a new version, send only the changed fields; a rich-text field is sent whole, from the approved source, never rebuilt from the live page.

Output

## Publish sheet: <title>
CMS: <WordPress / Webflow / Sanity / Strapi> (<site, collection>). New item / new version of <URL>. Mode: draft, then live on approval.

| Field | Value | Chars / status |
| SEO title | <…> | 57 |
| Meta description | <…> | 152 |
| Slug | /blog/<…> | 404 checked (free) |
| Author | <name> | exists |
| Categories | <…> | existing |
| Featured image | <file> · alt: "<…>" | 1200×630 |

Body: <word count>, H2s: <list>. Images: <n>, all with alt text. Links: <n> internal, <n> external, all 200.
A person must paste: <SEO plugin title and description, if applicable>.
Reply "yes" to create this as a draft.

## Publish log
| Date | URL | Item ID | Mode | Approved by | Verified (time) | Handed over |

Quality checks

  • The published text matches the approved version word for word.
  • Every write had an explicit yes for the exact sheet shown, and the first write was a draft.
  • No live slug changed without a tested 301 from the old URL.
  • Every image has a source, the right to use it, and alt text; none is hotlinked.
  • Every link was fetched and works; internal links point to canonical URLs.
  • Verification was done on the rendered page after the site's update path, not inferred from the API response.
  • Fields the connection couldn't set were handed over, not skipped silently.

Common mistakes

  • Trusting the API response. A successful write can still leave a draft, a queued item or a cached old page. Check the live URL.
  • Rewriting approved copy while formatting it. Formatting changes only; wording needs a new yes.
  • Silent slug changes. A new slug without a redirect breaks every link and citation the old URL earned.
  • Losing the SEO fields. The post title is often not the SEO title; check where the site stores it.
  • Hotlinked or unlicensed images. Upload your own copies and record where each came from.
  • Default author or "Admin" bylines. Readers and search engines both look for a real person.

Reference files

The skill loads these when it needs them. They install with it.

Run these skills on live data in Slate

Slate brings keyword data, Search Console, GA4 and how ChatGPT, Perplexity and Google AI answer about your brand into one workspace, so every skill runs on real numbers.