/wp-migration:sitefrom wp-migration
Drive one site through the Premium SEO → CADE migration runbook (plan → detect → prepare → switch Premium SEO off → remove → reconnect crawl → finish → verify), or roll it back. Use for "migrate {domain}", "next step for {domain}", "run prepare on {domain}", "why did {domain} fail", "roll back {domain}", or several domains at once ("kick prepare on a.com, b.com"). Also "hide CADE/BRON articles from {domain}'s blog page" / "put them back on the blog".
Ships in wp-migration. 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.
Prod only. prepare, remove, finish, rollback, link sync, a live seo_crawl and seo_keyword_status write to live customer sites and bwp. Never run anything the user didn't ask for; one stage per confirmation.
cutover_plan(domain). If blocked_on is set → explain it from references/codes.md and stop.confirm_domain = the domain.force=true if they explicitly say they agreed a hand-over.| # | Step | How | Done when |
|---|---|---|---|
| 1 | detect | cutover_stage(stage="detect") | record stage = detect |
| 2 | prepare | If the plan shows resources_base_free: false, first set a new Resources address (resources_base_taken in references/codes.md). Then cutover_stage(stage="prepare") (ask: publish or draft? default publish) | stage = prepare, no last_error |
| 3 | ⏸ Human | "Switch Premium SEO off in wp-admin → Plugins → Deactivate." Skip when detected_state is A or B. | cutover_plan shows premium_seo not running. Stop here — don't queue the next stage until the user says it's done. |
| 4 | remove | cutover_stage(stage="remove") | stage = remove |
| 5 | reconnect | seo_crawl(dry_run=true) first (~30 s, writes nothing): show verdict and predictedStatus. Only if it predicts 2 and the user confirms, seo_crawl(dry_run=false). If the dry run predicts anything else, stop and explain; don't run it live | the live crawl answers status 2, wpPlugin 1 (or seo_domain_facts / overview Q2 shows 2/1) |
| 6 | finish | cutover_stage(stage="finish") | stage = finish |
| 7 | verify | hand off to wp-migration:verification | 0 FAIL |
After queueing, poll cutover_record every ~30 s (tell the user you're waiting) until running_stage is null; then report stage moved or explain last_error via references/codes.md. A stage running > 15 min is stalled: tell the user; re-queue only after they confirm.
A refusal that starts CADE <status>: is CADE's own message; match it against references/codes.md. Anything else is the connector refusing (wrong confirm_domain, site owned by another operator): relay it as is.
Queue the same stage for each confirmed domain one after another (each is a separate background job), then show wp-migration:overview instead of polling each one.
cutover_stage(stage="rollback") → poll. It drafts posts and removes the footer; nothing is deleted.cutover_record should read stage = rolled_back.Note: a blocked_on in the plan (e.g. seo_service_unreachable) does not by itself stop a rollback. The "Before any write" blocker stop applies to forward stages; for rollback the gate is Premium SEO being switched back on (CADE refuses with CutoverNotRollbackable otherwise).
These are two switches, one per pipeline (bron, cade). A hidden article stays live, indexed and in the sitemap. It only leaves the blog posts page and the RSS feeds. Works on any site with a WordPress connection, migrated or not.
blog_visibility(domain) to show the current hide_bron / hide_cade.blog_visibility_set(domain, confirm_domain, strategy, hidden). A cut-over site's articles are bron. Any operator may call it./blog/ still lists the articles.A CADE 409 means one of two things. Either the site has no usable WordPress connection, or its SEO Toolkit plugin predates blog_visibility. In the second case, upgrade the plugin as below, then retry. A builder widget (for example a "recent posts" block on the home page) runs its own query and is not affected; say so if the client points at one.
api_endpoints(search) finds a CADE route; api_get(path) reads it (any operator). api_write(method, path, confirm_path, body) writes, but only for admins: anyone else gets a refusal, so relay it and stop. Confirm with the user first, repeat the path in confirm_path, and add destructive=true only for a DELETE the user explicitly asked for.
Upgrading the plugin: api_get("/domains/{domain}/platform-connections") → the WordPress connection id → api_write("POST", "/domains/{domain}/platform-connections/{id}/plugin-update", same path). A 409 "predates remote updates" means the site's build has no self_update: it must be updated once by hand in wp-admin. A Sucuri captcha or a 401 blocks this exactly as it blocks the cutover writes.
seo_crawl(dry_run=false) without a dry run in the same session predicting status 2.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
5 skills in this plugin
/link-syncRun a BRON link sync for a migrated site and explain the result. Use for "link sync {domain}", "resync links on {domain}", "links missing on {domain}", or when watch flags a stale link sync. Writes to the live site./overviewShow the state of every Premium SEO → CADE site migration in flight and the next action for each. Use when the user asks "what's going on with my migrations", "migration overview/board/status", "which sites are waiting on me", "what's stuck", or starts a migration session. Reads only; never queues anything./verificationRun and analyse the post-cutover verification for a migrated site, and say exactly what to do about each failing row. Use for "verify {domain}", "is {domain} done", "why did verification fail", "check the migration of {domain}"./watchRun the post-migration watch checks over every finished Premium SEO → CADE migration (48 h close watch, then daily to day 14) and flag stop-rule breaches. Use for "watch check", "how are the migrated sites doing", "daily migration check", "any stop rules tripped". Read-only.npx claudepluginhub blackwoodproductions/bwp-tools --plugin wp-migration