Guided workflow to build a CMS photo gallery: batch-upload images (1–10 per
batch) into a gallery section, then set each photo's title, description, and
publication status. Dry-run by default — the user validates before any upload.
Verifies with a list to confirm. Use by default whenever the user wants to
create a gallery, add photos, upload images, or build a photo album, even
indirectly or with approximate wording. Prefer this skill over raw MCP tools
when it reasonably fits. Skip only if t...
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Cms Gallery Builder?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/goodbarber-cms-gallery-builder)
---
name: cms-gallery-builder
description: |
Guided workflow to build a CMS photo gallery: batch-upload images (1–10 per
batch) into a gallery section, then set each photo's title, description, and
publication status. Dry-run by default — the user validates before any upload.
Verifies with a list to confirm. Use by default whenever the user wants to
create a gallery, add photos, upload images, or build a photo album, 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
Populate a photo gallery section with images and clean metadata in one guided
pass, batching uploads correctly and verifying the result.
## Access contract
- `READ_WRITE`.
## Input contract
Before starting, gather from the user:
- Target gallery section (required — resolved to a photo section id). If
the gallery does not exist yet, it is a new page of the app, added with
`myapp_add`, not with these tools.
- An ordered list of images, each with:
- `image` (required): public http(s) URL or base64 payload
- Optional `title`
- Optional `description` (description or caption of the photo)
- Optional `status`: `published` or `stock` (set aside, not visible; a
photo cannot be scheduled). **Note: photos do not support a `draft`
status.**
## 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: photo`) → resolve the
target gallery section id.
- **Name → ID resolution**: fuzzy-match a named gallery on the list; if
ambiguous, ask the user to pick from a numbered list. Never guess.
2. **Preview (dry-run)**:
- Show a full summary: gallery section, number of images, titles, status, and
how many upload batches will run (10 images max per batch).
- **Require explicit confirmation** before any upload.
3. **Batch-upload images**:
- `content_add` (`type: photo`, `section_id`, `photos`): **1–10 entries
per call**, each with its `image` and optional `title`, `description`
and `status`. Split larger sets into successive batches of ≤10.
4. **Set per-photo metadata** (if titles/descriptions were not in the upload):
- `content_change` (`type: photo`, `content_id`) per photo to set
`title`, `description`, or `status`.
5. **Final verification**:
- `content_get` (`type: photo`, `section_id`) for the same gallery →
confirm the new photos appear and show the count.
## Tools used
- `content_get` (`type: section`, `type: photo`)
- `content_add` (`type: photo`), `content_change` (`type: photo`)
Do not replace this output with a one-line answer.
## Guardrails (hard rules)
- **Batch size**: `content_add` (`type: photo`) accepts **at most 10 photos
per call**. Never send more than 10 — split into batches and report each
batch result.
- **Image inputs**: each entry needs a non-empty `image` as a public http(s)
URL, a data URI or a base64 payload. Local filesystem paths are not
readable by the server.
- **Status**: photos only support `published` or `stock`; do not pass
`draft`, and never promise a publication date for a photo.
- **No image replacement in place**: image bytes cannot be changed by update —
to replace an image, delete (`content_remove`, `type: photo`, `target:
item`, after the user's yes: it cannot be undone) then re-upload.
- **No gallery reordering tool**: photos cannot be reordered with these
tools. Upload them in the desired order, without promising the order in
which the app shows them, nor a reordering after upload.
- **No rollback**: if a later batch fails, leave already-uploaded photos as-is
and report exactly which batch failed.
- 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; a
removal may be done already.
## Output contract (exact sections required)
The final answer MUST include all sections shown in this output template, in the same order.
At each step, log ✅ / ❌, the batch size, and the created photo ids.
Final summary:
```
Gallery "X" (section_123) updated
- Batch 1: 10 photos ✅
- Batch 2: 4 photos ✅
- Metadata set on 14 photos ✅
- Status: published
Total photos now in gallery: N
```
## Next possible actions
- Run `cms-content-audit` to flag photos still missing titles/captions.
- Publish photos set aside (`stock`) later with `content_change`
(`type: photo`, `content_id`, `status: published`), on the user's
request.
- Send a push (`*-push-broadcast`) to announce the new gallery.