Skip to content
Back to skills

Cms Event Publish

ASecurity

Guided workflow to create a full CMS agenda event: event item (start/end datetime, category, status, scheduling, paywall) + structured body paragraphs (text, photo, quote, embed). 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, add, schedule, or publish an event, agenda item, or calendar entry, even indirectly or with approximate wording. Prefer this skill over raw MCP tools when it re...

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 22, 2026
ai-agentsgorailsgit

Works with

  • mcp

Security analysis

A100/100

Scanned November 27, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Cms Event Publish?

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

Security grade badge for Cms Event Publish
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/goodbarber-cms-event-publish/badge)](https://www.skillsdirectory.com/skills/goodbarber-cms-event-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-event-publish
description: |
  Guided workflow to create a full CMS agenda event: event item (start/end
  datetime, category, status, scheduling, paywall) + structured body
  paragraphs (text, photo, quote, embed). 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, add, schedule, or publish
  an event, agenda item, or calendar entry, 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

Create a complete, correctly-dated agenda event with its body content in one
guided pass, validating each mutation so the published event is never missing
its start/end time or description.

## 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)
- `starts_at`: event **start** — required, RFC 3339 **with a timezone
  offset**, for example `2026-12-12T20:00:00+01:00`
- `ends_at`: event **end** — required, after `starts_at` (the same day or
  later when `all_day` is true)
- Optional `date`: date shown on the item (display metadata only)
- Optional `all_day` flag
- Optional `address`, `latitude`, `longitude`, `email`, `phone`,
  `tickets_url`, `event_url`, `summary`
- Optional body blocks (ordered): `text`, `quote` (their `text`), `photo`
  (its `image`; `is_thumbnail: true` for the cover), `embed` (its
  `embed`: iframe HTML or embed code; a bare link works only for YouTube
  or Vimeo)
- Optional publication control: `status` (`published` / `draft` / `stock`),
  `publish_at` (future, **only with `status: stock`**), `unpublish_at`
- Optional `access` (`free` / `premium`) — **apps that sell access only**

## 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: event`) → resolve the
     target category ids.
   - **Name → ID resolution**: fuzzy-match a named category on the list; if
     ambiguous, ask the user to pick from a numbered list. Never guess.
2. **Preview (dry-run)**:
   - Show a full summary: title, category, start/end datetimes (with timezone),
     status (a new event is published at once unless `status` says
     otherwise), and the ordered body blocks.
   - **Require explicit confirmation** before any mutation.
3. **Create the event with its body**:
   - `content_add` (`type: event`, no `content_id`) with `title`,
     `category_ids`, `starts_at`, `ends_at`, `status`, the optional fields,
     and `blocks`: up to 10 blocks in reading order, in the same call.
   - Keep the `content_id` the answer gives. More blocks: `content_add`
     (`type: event`, `content_id`, `blocks`), up to 10 per call.
4. **Reorder if needed**:
   - `content_get` (`type: event`, `content_id`, `with_blocks: true`) then
     `content_change` (`type: event`, `content_id`, `block_order`) with
     **every block id of the event, once each**.
5. **Final verification**:
   - `content_get` (`type: event`, `content_id`, `with_blocks: true`) →
     show the full state. When a write's answer carries
     `verification_tools`, read with them before saying it is done.

## Tools used

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

## Guardrails (hard rules)

- **Dates are the most error-prone part**: `starts_at` and `ends_at` must be
  RFC 3339 datetimes **with a timezone offset**; `ends_at` must be after
  `starts_at` (or the same day or later when `all_day` is true). Do not
  submit naive datetimes.
- **Timezone**: for relative dates ("Friday 7pm", "next week") confirm the
  intended timezone before building the offset. Never assume.
- **Scheduling**: `publish_at` is valid only with `status: stock` and must be
  in the future. Do not confuse it with `starts_at` (the event time).
- **No rollback**: if the event is created but a block call fails, leave it
  as-is and list what's missing so the user can resume.
- **Coordinates**: never make them up from an address — ask the user.
- **Image inputs**: photo blocks accept a public http(s) URL, a data URI or
  base64; local paths are not readable by the server.
- **Paid access**: only set `access` (`free`/`premium`) when the app sells
  access.
- **Refusals**: a refused call reads `Refused (<code>): <message>`; fix the
  argument it names 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 ✅ / ❌, the created id, and the verification result.

Final summary:
```
Event "X" created — ID: 123
- Category: Y
- Start: YYYY-MM-DDTHH:MM:SS±HH:MM · End: YYYY-MM-DDTHH:MM:SS±HH:MM
- Status: published (or: scheduled for YYYY-MM-DDTHH:MM:SS±HH:MM)
- 2 body blocks ✅
```

## Next possible actions
- Run `cms-editorial-calendar` to see the event alongside other upcoming items.
- Run `cms-content-audit` to confirm the event has no missing fields.
- Send a push (`*-push-broadcast`) to announce the event 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.