/wordpress:managefrom wordpress
Manage a CADE domain's WordPress site through its stored connection - read and change posts, pages, media (with image, PDF and video uploads), menus, categories, comments, widgets, templates and settings, site-wide CSS on any theme, Elementor pages and templates, and the address the FAQ pages sit under, and where the site's access level allows it, users, plugins and themes. Reads are open to every operator; writes are for cade-mcp admins and are shown to the person and sent only after their yes. Use for "edit the about page on {domain}", "add a link to the menu on {domain}", "add this CSS to every page of {domain}", "fix the blog template spacing", "change the heading on the Elementor home page", "edit the Elementor footer", "move the FAQs on {domain} to /faq/", "which plugins are active on {domain}", "restore the previous version of a post", "upload this image to {domain}".
Ships in wordpress. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
CADE forwards one WordPress REST call under the site's wp/v2, or to one of the few seo-toolkit/ routes of the site's own plugin (cade-seo), with the connection's stored credential. You reach it through the cade-mcp tools api_get and api_write. A read changes nothing. A write changes the live site at once, for every visitor.
Every call uses this CADE path, called {wp} below:
/domains/{domain}/platform-connections/{connection_id}/wordpress
api_get("/domains/{domain}/platform-connections") lists the domain's connections. Use the id of the one whose platform_type is wordpress. A domain without one has no WordPress connection, so nothing here applies to it.api_get("{wp}") gives the site's access level and the route groups it opens: content, configuration, users, plugins_and_themes. Check it before offering user, plugin or theme work.api_get("{wp}/{route}", params). The route is the WordPress route under wp/v2, such as pages or posts/412; query values go in params, such as {"search": "about", "_fields": "id,title,link,status"}.
data holds WordPress's own status and body, and for a list total and total_pages._fields and per_page to keep answers small. CADE cuts a long body and says truncated: true; the connector cuts anything over 100,000 characters and returns {"truncated": true, "head": ...}.{"context": "edit"} before a change, to see the raw text that will be edited.The routes, fields and filters are in references/content-and-configuration.md. For users, plugins and themes, load references/users-plugins-themes.md.
Writes are for cade-mcp admins; anyone else is refused before anything is sent. Follow these steps for every write, one change at a time.
Read first. Fetch the item with context=edit, so the change starts from what the site holds now.
Show the change. Name the site, the method, the route, and each field with its current and new value. For long text, show the changed passage, not the whole page.
Wait for a clear yes. A yes to an earlier change does not cover this one. Asking for a change is not a yes to the exact values you chose.
Send it:
api_write(method, "{wp}/{route}", confirm_path="{wp}/{route}",
body={"confirm_route": "{route}", "body": {the fields that change}})
method is POST (create, or update), PUT (update) or DELETE; PATCH is not a route here. confirm_path repeats the path and confirm_route repeats the WordPress route, both exactly. A DELETE also takes destructive=true, and its body is only {"confirm_route": "{route}"}. A write is sent once and never retried, and is audited with your email.
Read it back and tell the person what the site now shows, with the page address.
If no answer comes back from a write, the change may or may not have been made: read the item before trying again.
An upload is a write, so the steps above apply: show the person the file's address, the name and the alt text, and wait for their yes.
api_write("POST", "{wp}/media", confirm_path="{wp}/media",
body={"confirm_route": "media",
"body": {"source_url": "https://...", "alt_text": "...", "title": "..."}})
source_url is a public address that opens the file itself, not a page showing it. The answer holds the new item's id and its address on the site: use the id as a post's or page's featured_media, or the address in the content.
alt_text that says what it shows.source_url. file_base64 sends the file inline and is for small files that have no public address (5 MB at most).media before trying again, so the file is not uploaded twice.seo-toolkit/site-css is one block of CSS that the site's plugin prints in the head of every page, after the theme's and the page builder's own CSS. It works on every theme: classic ones such as Hello Elementor, Astra or Divi, and block themes. Use it for a rule that must reach every page. global-styles only prints on block themes, so on a classic theme it is accepted and never shows.
Read the block: api_get("{wp}/seo-toolkit/site-css") answers {"css": ..., "bytes": ...}. Keep it: it is the undo.
Show the change: the rule you will add or change, and where it goes in the block. Wait for a clear yes.
Send the whole block back, every existing rule kept, with the change:
api_write("PUT", "{wp}/seo-toolkit/site-css", confirm_path="{wp}/seo-toolkit/site-css",
body={"confirm_route": "seo-toolkit/site-css", "body": {"css": "{the whole block}"}})
Check it on a post, the blog page and an archive, adding ?v= and a new number to each address so a cache does not answer with the old page. If visitors still get the old page without ?v=, use the clear-cache skill for one whole-site clear.
< (inside a CSS string, write \3c), and holds up to 65,536 bytes. Either refusal answers data.status 400, code invalid_css, and keeps the old block.cade-…) carry a per-site prefix on the page; the plugin renames cade- selectors in this block too, so either form matches."" clears the block. To undo, send back the block from step 1.seo-toolkit/faq-base is the address the site's FAQ pages sit under: /cade-faq/{question}/ on a site that had FAQs before plugin 0.17.0, /faq/{question}/ on a site that started after. Moving it changes the address of every FAQ on the site at once, so move it only when the person asks for it.
Read it: api_get("{wp}/seo-toolkit/faq-base") answers {"slug": ..., "managed": ..., "free": [...]}. slug is the base now, and the undo. free lists which of faq and questions nothing else on the site uses. managed: false means the legacy CADE AI plugin registers the FAQ pages: the base cannot move until that plugin is deactivated.
Choose the base. faq unless the person names another; on a Spanish site offer preguntas. One lowercase segment: letters, digits, hyphens.
Show the change: the site, the base now and the new one, and a FAQ's address before and after when the person gave one. Say that every FAQ address moves and the old ones forward. Wait for a clear yes.
Send it:
api_write("PUT", "{wp}/seo-toolkit/faq-base", confirm_path="{wp}/seo-toolkit/faq-base",
body={"confirm_route": "seo-toolkit/faq-base", "body": {"slug": "faq"}})
Check it. Open one FAQ at its new address (200) and at its old one (301 to the new), and /{slug}/ itself, each with ?v= and a new number. A 404 or the old page usually means a cache: clear it with the clear-cache skill.
/faq/ and the FAQs sit under it. The move is refused only when something else answers under the base (faq_base_taken).footer_sync afterwards so the footer's FAQ link is the new one.slug from step 1. The addresses in between then forward too.A page built with Elementor keeps its layout in Elementor's own data, not in content: a write to pages/{id} changes nothing a visitor sees there. These routes change the layout through Elementor itself, which rebuilds the page's CSS on its next view.
Find the document: api_get("{wp}/seo-toolkit/elementor/documents", {"search": "about"}) lists pages, posts and theme-builder templates, newest change first. template_type says which: wp-page, wp-post, header, footer, single-post, archive, section, and so on; filter with {"type": "footer"}. A post that is not listed is not built with Elementor: edit it through posts or pages.
Read the outline: api_get("{wp}/seo-toolkit/elementor/documents/{id}") lists the elements in page order, each with id, parent, type, widget and a summary of its text, and the document's version. Find the element by its summary, then read its settings with {"elements": "{element id},{element id}"}.
Show the change: each element (by its summary), each setting, its current and new value. Wait for a clear yes.
Send it with the version from step 2:
api_write("POST", "{wp}/seo-toolkit/elementor/documents/{id}",
confirm_path="{wp}/seo-toolkit/elementor/documents/{id}",
body={"confirm_route": "seo-toolkit/elementor/documents/{id}",
"body": {"version": "{version}", "changes": [{"id": "{element id}", "settings": {"title": "..."}}]}})
Keep the answer. changed holds each element's previous values: sending them back as settings, with the answer's new version, is the undo. Read the page back with ?v= and a new number.
title on a heading, editor (HTML) on a text editor, text and link on a button, image on an image. Elementor 4 widgets (e-heading, e-paragraph and others) keep a setting as {"$$type": ..., "value": ...}: send that same shape back.null goes back to the widget's default. Elements cannot be added, moved or removed here: that is work for the Elementor editor in wp-admin.header, footer, single-post or archive template shows on every page that uses it. Say so before changing one.stale_version means the document was saved since your read: read it again and redo the change on the new outline.elementor_snippet (Pro's Custom Code) also exists. Prefer site-wide CSS for CSS: a snippet can carry scripts and needs display conditions set in wp-admin before it prints.status: inactive, which can be undone.api_get("{wp}/posts/{id}/revisions") (or pages/{id}/revisions), show the person the version to go back to, and after their yes write its title, content and excerpt back to posts/{id}.seo-toolkit/site-css, seo-toolkit/faq-base, seo-toolkit/elementor/documents and seo-toolkit/cache (the clear-cache skill), such as the plugin's other routes or a shop or form plugin's. For CADE's own articles, terms, footer, link sync and schema, use the cade, wp-migration and manual skills.CADE answers with a code. Explain it and give the next step:
| Code | Means, and next step |
|---|---|
ROUTE_NOT_ALLOWED, ROUTE_NEVER_ALLOWED | The route is not open. Offer the nearest open route, or the WordPress dashboard |
ACCESS_LEVEL_TOO_LOW | The connection's wordpress_access_level does not open that group; api_get("{wp}") shows what it allows |
PROTECTED_USER, PROTECTED_PLUGIN | The publishing user or plugin; not changeable here |
SETTING_NOT_ALLOWED | The site address or permalink structure |
PARAMETER_NOT_ALLOWED | force, rest_route, or a name starting with _ other than _fields and _embed. A write takes its values in body |
ROLE_REQUIRED | On a site at the users level a new user needs roles, editor or below |
CONFIRMATION_MISMATCH | confirm_route did not repeat the route. Nothing was sent |
BODY_TOO_LARGE | Keep the body under 512,000 bytes |
UPLOAD_SOURCE_INVALID, UPLOAD_SOURCE_NOT_PUBLIC, UPLOAD_SOURCE_UNREACHABLE, UPLOAD_TOO_LARGE, UPLOAD_TYPE_NOT_ALLOWED | The upload was refused before anything reached the site: fix the body, use a direct public address, a smaller file, or an allowed type |
CONNECTION_NOT_FOUND, NOT_A_WORDPRESS_CONNECTION | Wrong connection id; list the domain's connections again |
SITE_RATE_LIMITED | The site has had its 30 calls for this minute. Wait the Retry-After seconds; batch reads with per_page and _fields |
WORDPRESS_CONNECTION_REJECTED | The site refused the stored credential (often a revoked application password). The connection needs fixing, not the request |
WORDPRESS_UNREACHABLE | A firewall, a challenge page or a slow host. On a read, try again in a few minutes; on a write, read the item first |
PLUGIN_ROUTE_MISSING | The site's plugin is too old for that seo-toolkit/ route (older CADE answered data.status 404 rest_no_route). Update it: api_get("/domains/{domain}/platform-connections") for the connection id, then api_write("POST", "/domains/{domain}/platform-connections/{id}/plugin-update", same path). A 409 "predates remote updates" means it must be updated once by hand in wp-admin |
A WordPress error comes back with WordPress's own status and message inside body: explain it from the table in the content reference. The seo-toolkit/ routes answer the same way, with body {"error": ..., "code": ...}:
code | Means, and next step |
|---|---|
invalid_css | The block has a < or is over 65,536 bytes; the old block is kept |
invalid_slug | The FAQ base must be one lowercase segment of letters, digits and hyphens |
faq_base_taken (data.status 409) | Something else answers under that base; error names it: another post type or taxonomy, a page with pages under it, or a published post at that address. Never move or delete what is there: offer another base from free, or one the person names |
faq_base_unmanaged (data.status 409) | The legacy CADE AI plugin registers the FAQ pages. The base stays until that plugin is deactivated |
elementor_inactive | Elementor is not active on the site: use pages, posts or site-wide CSS |
not_built_with_elementor | Edit the post through posts or pages |
not_found | No post has this id: list the documents again |
stale_version | Saved since your read: read the outline again |
unknown_element, invalid_changes | Use element ids from the outline; 1 to 50 changes, each {"id", "settings"} |
not_editable | Elementor would not let CADE's WordPress user save the document; it needs a look in wp-admin |
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
3 skills in this plugin
/clear-cacheClear a CADE domain's WordPress page caches through the site's own cache plugins (LiteSpeed, WP Rocket, W3 Total Cache, WP Super Cache, Breeze, Cache Enabler, WP Fastest Cache, SiteGround Optimizer, Autoptimize) - one page after a change, or the whole site after a site-wide change - then check the page as a visitor gets it, and name the cache when one the site cannot reach still holds the old page. Reads for every operator; clears for cade-mcp admins, after the person's yes. Use for "clear the cache on {domain}", "my change isn't showing on {domain}", "purge the about page", "the site still shows the old title", "which cache plugin does {domain} run"./fix-site-healthFix a CADE domain's SEO audit (Site health) findings on its WordPress site - read the latest run, sort each finding into what a WordPress write can fix and what needs a person, then fix one finding at a time after the person's yes, record each change with the finding it fixes, and offer a new crawl and audit to confirm. Reads for every operator; writes for cade-mcp admins. Use for "fix the site health of {domain}", "fix the audit findings on {domain}", "what can you fix from the audit", "fix the titles the audit flagged", "were my fixes confirmed".npx claudepluginhub blackwoodproductions/bwp-tools --plugin wordpress