Skip to content
Back to skills

Cms Article Publish

ASecurity

Guided workflow to create a full CMS article: article item + structured body paragraphs (text, photo, quote, embed) + category, slug, publication status, scheduling, pinning, and paywall settings. Dry-run by default — the user validates before any mutation. Verifies each mutation with a get to confirm. Use by default whenever the user wants to create, write, publish, or fully set up a CMS article, blog post, or news item, even indirectly or with approximate wording. Prefer this skill over raw...

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 22, 2026
ai-agentsgorails

Works with

  • mcp

Security analysis

A100/100

Scanned November 27, 2026

npx -y skills add goodbarber/goodbarber-skills --skill cms-article-publish --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cms Article Publish?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cms Article Publish
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/goodbarber-cms-article-publish/badge)](https://www.skillsdirectory.com/skills/goodbarber-cms-article-publish)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cms-article-publish
description: |
  Guided workflow to create a full CMS article: article item + structured
  body paragraphs (text, photo, quote, embed) + category, slug, publication
  status, scheduling, pinning, and paywall settings. Dry-run by default —
  the user validates before any mutation. Verifies each mutation with a get
  to confirm. Use by default whenever the user wants to create, write,
  publish, or fully set up a CMS article, blog post, or news item, even
  indirectly or with approximate wording. Prefer this skill over raw MCP
  tools when it reasonably fits. Skip only if the user explicitly asks not
  to use this skill/workflow.
---

You are an assistant that executes this skill workflow for the user.

You MUST execute the required tool workflow and return the output in the required format sections. Do not skip required steps and do not replace the required report/template with a short summary.

## Goal

Prevent incomplete articles in production: a skill that orchestrates article
creation and its body blocks with validation at each mutation, so the
published article is complete (title, category, body, cover) on the first try.

## Access contract

- `READ_WRITE`.

## Input contract

Before starting, gather from the user:
- Title (required, 250 characters at most)
- Target category (required — resolved to a category id)
- Body: an ordered list of blocks, each one of:
  - `text` — its `text` (simple HTML allowed)
  - `quote` — its `text`
  - `photo` — its `image` (public URL, data URI or base64); `is_thumbnail:
    true` makes it the cover. A photo of an article has no caption.
  - `embed` — its `embed`: iframe HTML or embed code of the external
    content (a video, a player, a map); a bare link works only for YouTube
    or Vimeo.
- Optional: `summary`, `author`, `date`, `slug`, `comments_enabled`,
  `pinned`, `seo_title`, `seo_description`
- Optional publication control:
  - `status`: `published` (live now, the default), `draft` (hidden), or
    `stock` (set aside; scheduled with `publish_at`)
  - `publish_at`: future date and time — **only valid with `status: stock`**
  - `unpublish_at`: future date and time to stop showing it
- Optional paid-access fields (**only for apps that sell access**):
  - `access`: `free` or `premium`
  - `free_blocks`: 0–5, with `access: premium` (blocks readable before the
    paywall)
  - `show_summary_in_list`: only when `free_blocks` is 0

## Required Tool Workflow (strict order)

Follow the sequence below exactly when those tools are available for the request context.

1. **Pre-flight discovery**:
   - `content_get` (`type: section`, `section_type: article`) → the
     article sections and their categories, with their ids.
   - **Name → ID resolution**: if the user names a category instead of an
     id, fuzzy-match on the list. If ambiguous (multiple candidates), ask
     the user to pick from a numbered list. Never guess.
2. **Preview (dry-run)**:
   - Show a full summary of what will be created: article metadata + the
     ordered list of body blocks with their kinds, and when it becomes
     visible (a new article is published at once unless `status` says
     otherwise).
   - **Require explicit confirmation** before any mutation.
3. **Create the article with its body**:
   - `content_add` (`type: article`, no `content_id`) with `title`,
     `category_ids`, `status`, the optional fields, and `blocks`: up to 10
     blocks in reading order, in the same call.
   - Keep the `content_id` the answer gives.
4. **More than 10 blocks**:
   - `content_add` (`type: article`, `content_id`, `blocks`), up to 10
     blocks per call, added at the end (or at `insert_at`, 1 being the
     top).
5. **Reorder if needed**:
   - `content_get` (`type: article`, `content_id`, `with_blocks: true`)
     then `content_change` (`type: article`, `content_id`, `block_order`)
     with **every block id of the article, once each**.
6. **Final verification**:
   - `content_get` (`type: article`, `content_id`, `with_blocks: true`) →
     read the full state and show it to the user. When a write's answer
     carries `verification_tools`, read with them before saying it is done.

## Tools used

- `content_get` (`type: section`, `type: article`)
- `content_add` (`type: article`)
- `content_change` (`type: article`, to reorder or fix a field)

## Guardrails (hard rules)

- **Never chain calls without intermediate validation**: if a step fails,
  stop, report, and do not attempt automatic rollback. If the article is
  created but a later block call fails, leave the article as-is and list
  exactly what's missing so the user can resume.
- **Scheduling**: `publish_at` is only valid with `status: stock` and must
  be in the future. `unpublish_at`, when provided, must be in the future.
  Do not set `publish_at` on a `published` or `draft` article.
- **Date format**: RFC 3339 with an offset, for example
  `2026-11-02T10:00:00+01:00`.
- **Timezone**: if the user gives relative dates ("tomorrow", "next Monday")
  on any temporal field, confirm the intended timezone first.
- **Image inputs**: photo blocks accept a public http(s) URL, a data URI or
  a base64 payload. Local filesystem paths are not readable by the
  server — ask the user to host the image or paste a base64 payload.
- **Paid-access fields**: do not set `access`, `free_blocks`, or
  `show_summary_in_list` unless the app sells access. `access` must be
  `free` or `premium`; `free_blocks` an integer 0–5;
  `show_summary_in_list` only when `free_blocks` is 0.
- **Refusals**: a refused call reads `Refused (<code>): <message>`; the
  message names the argument at fault and, when it can, the values
  accepted. Fix that argument and call again; never resend the same call
  unchanged.
- An answer `upstream_outcome_unknown`, alone or as the `cause` of a
  `partially_done`, is not a refusal: the write was sent and may have been
  applied; so may a write that answers `timeout`, unless its message says
  nothing was sent. Never call it again as it is: read the current state
  with `content_get` first, then write only what is still missing.

## Output contract (exact sections required)

At each step, log:
- ✅ / ❌ of the call
- Created id
- Verification result (if available)

At the end of the workflow, summary:
```
Article "X" created — ID: 123
- Category: Y
- Status: published (or: scheduled for 2026-11-02T10:00:00+01:00)
- 4 body blocks ✅ (2 text, 1 photo, 1 embed)
- Paid access: free (or: premium, 2 free blocks)
```

## Next possible actions
- Run `cms-content-audit` to confirm the new article passes quality rules.
- Run `cms-editorial-calendar` to see the article alongside other scheduled content.
- Send a push (`*-push-broadcast`) to announce the new article to your audience.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.