cms-article-restructurelisted
Install: claude install-skill goodbarber/goodbarber-skills
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
Fix the structure of an article body safely: a proposed new order and cleanup,
approved by the user, then applied with the reorder/delete tools — never a
blind rewrite.
## Access contract
- `READ_WRITE`.
## Input contract
- Target article (required — resolved to an article id)
- The restructuring intent, e.g.:
- reorder blocks into a new sequence
- remove empty / placeholder / duplicate paragraphs
- move a specific block up/down
- Optional: edit the text of a specific block
## Required Tool Workflow (strict order)
Follow the sequence below exactly when those tools are available for the request context.
1. **Resolve the article**:
- If only a title is given, `cms_list_articles` (title search) → resolve id;
if ambiguous, ask the user to pick from a numbered list.
2. **Read current structure**:
- `cms_list_article_paragraphs` → capture every paragraph id, type, and a
short preview of its content.
3. **Propose the new layout (dry-run)**:
- Present a before → after view: the new order, which blocks to delete, and
any text edits.
- **Require explicit confirmation** before any mutation.
4. **Apply edits** (only the blocks the user asked to change):
- `cms_update_article