wp2next handoff
Hands the site to the client one step at a time (a full transfer, or with client-owned accounts an admin check, key rotation and removing your access) and writes HANDOFF.md, the client's guide to their site.
| Synopsis | wp2next handoff [plan | docs | cleanup | <step-id>] (Claude desktop and Claude Code plugin: /wp2next:handoff; Codex: $wp2next handoff; Cursor: /wp2next handoff) |
|---|---|
| Changes code | No site code. It writes HANDOFF.md and the handoff part of wp2next.json (plus owner names that change in a transfer). A step that needs a code change is reported with the file and the one-line fix, applied only after your yes |
| Touches outside services | Yes, and every action waits for its own yes: account transfers (Sanity, GitHub, Vercel), the domain, tracking and consent-banner accounts, form destinations, secret rotation, and finally removing your access. People do the steps in each provider's website; the agent runs only listed CLI commands with your own logged-in tools. It never accepts invitations, terms or transfers for anyone |
| Reads | wp2next.json, git remote, the Vercel link, the latest compliance report, secret names from the secret store |
| Writes | HANDOFF.md, wp2next.json → handoff.* and changed owner names, secret-store entries (only in the secrets step), a backup folder outside the repo |
What it does
It builds a runbook from wp2next.json, then walks through it, one external action at a time. Before
each step it says what will change, in which account, who does it (you, the client, or the agent with
a CLI) and whether it can be undone; ownership transfers generally can't be undone without the other
side's help. Each step ends with a check and is marked done only when the check passes.
First it confirms a few things config can't answer: the ownership model (client-owned, built by you and transferred later, or you keep owning it), the client's account or organization for each service, the two people who'll be admins, the support period end date (30 days after launch is the recommendation, or whatever your contract says) and how secrets will move to the client.
The steps, in an order chosen to avoid downtime. What each one does depends on the ownership model
(from the skill's runbook table; n/a steps are skipped):
| Step id | client-owned | maker-owned-transfer-later | maker-owned |
|---|---|---|---|
accounts | Checks the client is Owner or Admin everywhere | The client creates the accounts and invites you | The client creates the accounts they'll own: registrar, Google, ad accounts (recommended) |
backup | Git bundle, Sanity dataset export, secret names, DNS records, GTM container export, into a folder outside the repo | Same | Same |
ga4, analytics-<provider>, gtm, gsc, bing, ads-<tag>, tool-<tag>, cmp, forms, brand (only the ones this site uses) | Checks the client is admin; your access goes in maker-access | Transfer, or add the client as admin | Recommended: the client owns them anyway. Otherwise the client gets view access, documented |
sanity | n/a (checks the client is admin) | Transfers the project to the client's organization | Stays; invites the client's editors |
github | n/a | Transfers the repository | Stays; optional read access |
vercel-github-app | n/a | Installs Vercel's GitHub app on the client's organization | n/a |
vercel | n/a | Transfers the project to the client's team | Stays; the client is a free Viewer on Pro (checked 2026-12) |
domain | Checks the client owns the registrar account | Move or transfer, last (slow, and subject to locks) | The client should own it (recommended); otherwise documents the renewal |
secrets | Rotates the keys you created into the client's store | Rotates every key you created into the client's store, updates Vercel, revokes your copies | Stays with you; lists names and the exit plan |
smoke | Checks the live site, Studio, every form destination, analytics, the consent banner, Search Console and email | Same | Same |
docs | Writes HANDOFF.md | Writes HANDOFF.md | Writes HANDOFF.md, including an exit plan |
maker-access | Removes your access, after the support period | Same | n/a |
Secrets never travel by email or chat. Values move only through the secret store or the password
manager's own sharing feature (a share link with an expiry). HANDOFF.md lists key names and
rotation dates, never values.
HANDOFF.md names only the people and contacts you give it (never WordPress users), links the
latest compliance report with "This is not legal advice", and lists form destinations, internal pages,
the brand guide, intentional differences from the old site and the wp2next version that built it.
If the latest compliance scan is missing or older than the last deploy, it offers a
compliance scan of the live domain first.
Arguments and options
| Argument | Effect |
|---|---|
| (none) | Shows progress, then resumes at the first unfinished step |
plan | Prints the tailored runbook and stops. Read-only |
docs | Writes or refreshes HANDOFF.md only |
cleanup | Runs only the last step, removing your access. Warns if the support period hasn't ended |
<step-id> | Runs or redoes one step, for example github |
Examples
/wp2next:handoff plan/wp2next:handoff plan$wp2next handoff plan/wp2next handoff planwp2next handoff: start, or carry on where you stopped.wp2next handoff github: redo the repository transfer.wp2next handoff cleanup: after the support period, remove your access.
Related
- Handoff guide · Step 7: go live
- Accounts and plans · Secrets
compliance·statusshows handoff progress- Agent instructions:
references/commands/handoff.md (external site)