/rolepod-wplab:wp-pair-setupfrom rolepod-wplab
Redeem a `rolepod-wp` companion pair_token, mint a WP Application Password, and open the first Target — the canonical onboarding flow. Phase = Define.
Ships in rolepod-wplab. 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.
Onboarding skill. The companion-issued pair_token is a single-use, 60-min, single-bind credential bridge. This skill redeems it once, persists the resulting App Password, opens a RestTarget, and confirms readiness — so the user can move into build/debug work without the manual App Password dance.
=== rolepod-wplab one-click pair ===.rolepod_wp_pair_<48 hex> appears in chat.Skip when:
wp-connect instead.wp-connect Path B, the last resort).The connect tools return prod_guard. Read it before any write: armed: false
does not mean the target is safe, it means nobody told the server otherwise.
Then, in order:
rolepod_wp_memory_recall(target_id) — notes from earlier sessions on this
site. Skip nothing here; this is where "the client hates the blue" lives.rolepod_wp_conventions_get(target_id) — the project's own rules (naming,
builder, deploy). Follow them over your defaults.rolepod_wp_skill_catalog(target_id) — which workflow guides exist,
including any the user wrote. rolepod_wp_skill_get reads one.Record what you learn with rolepod_wp_memory_note(target_id, ...) before the
session ends, or the next session starts blind.
Owns:
rolepod_wp_pair_<hex> token.Does not own:
wp-admin → Tools → Rolepod WP Setup).wp-connect.Return / hand off:
Tools → Rolepod WP Setup.companion_version below MIN_COMPANION_VERSION → tell user to upgrade plugin from the stable URL.wp-content, wp-edit-design, wp-diagnose, or whatever the user originally asked for.siteurl — extracted from the prompt's Site URL: line.pair_token — the literal rolepod_wp_pair_<48 hex> string.A first-time user usually arrives with nothing installed. Hand them the whole path in one message — link included, no hunting:
https://github.com/nuttaruj/rolepod-wp/releases/latest/download/rolepod-wp.zip
— wp-admin → Plugins → Add New → Upload Plugin → Activate
(or wp plugin install <zip-url> --activate when they have shell access).<siteurl>/wp-admin/tools.php?page=rolepod-wp-setup → Quick start →
Generate pair token.=== rolepod-wplab one-click pair === block back.Then continue from step 1 below. Do not mention manual Application Passwords here — that path exists only for when this one is impossible (Iron Rule 4).
The token MUST start with rolepod_wp_pair_ and be exactly 64 chars total. If not, the prompt is corrupted or pasted half — ask user to regenerate.
Call rolepod_wp_pair { siteurl, pair_token }. Expect 200 with target_id, companion_version, capabilities, app_password_name, is_production, credential_stored.
If credential_stored: false, the vault write failed (permissions / disk full) — surface the warning. The Target still opens for this session but will not survive a restart.
Call rolepod_wp_health_check { target_id }. Required: companion_ok: true. If false, the redemption succeeded but the companion is unreachable on a subsequent request — usually a permalink or REST-routing config on the host. Surface the warnings array verbatim.
State the siteurl, target_id, capabilities, and is_production flag back to the user, then ask what they want to do next (or do it if they already asked).
Delegate to the closest specialist:
rolepod:rolepod-builder for follow-up REST workrolepod:rolepod-builder for infra-side companion install issuesExecute as Lead with this minimum viable checklist:
rolepod_wp_pair.rolepod_wp_health_check.No durable artifact. The minted App Password lives in the OS keychain (or ~/.config/rolepod-wplab/credentials.json on Linux/Win). The companion's audit log retains the redemption entry server-side.
Non-blocking — read only when the redemption returns an unfamiliar error code:
examples/pair-examples.md — good vs bad prompt parsing + recovery on expired token.Inline only. Endpoint: POST /wp-json/wplab/v1/pair/redeem body { pair_token }. Response shape = PairOutput schema in src/schema/tools.ts.
rolepod_wp_pair_ → STOP, ask user to regenerate.companion_version below MIN_COMPANION_VERSION → STOP, tell user to upgrade via wp plugin install https://github.com/nuttaruj/rolepod-wp/releases/latest/download/rolepod-wp.zip --activate.Full Rolepod adds a phase router that auto-routes to wp-connect on subsequent calls to the same site (no re-pair needed) and to wp-diagnose if the post-pair health check returns warnings.
wp-content, wp-edit-design, wp-edit-plugin, wp-scaffold, wp-diagnose, or wp-execute-php).wp-health-check for a fuller report.What SKILL.md sets; muted values are Claude Code's defaults
a user pastes a pair prompt from Tools → Rolepod WP Setup, OR mentions a `rolepod_wp_pair_<hex>` token, OR asks "เชื่อม WordPress" without prior credentials in the vault — including when the plugin is not installed yet (this skill owns the install walkthrough)
Other plugins' skills for the same job
npx claudepluginhub nuttaruj/rolepod-wplab --plugin rolepod-wplab15 skills in this plugin
/wp-changesQuery the AI Change Ledger on a connected target — the writes the MCP recorded through the companion (RestTarget only), categorized; toggle on/off; panic-revert recent changes. Phase = Recovery./wp-connectOpen a WordPress Target on any kind (local / REST + App Password / SSH / Docker) using credentials already in the vault. Phase = Define./wp-contentCreate, read, update, search posts/pages/users/options/taxonomies via the core WP REST API on a connected target. Phase = Build./wp-diagnoseMulti-probe diagnostic + security audit of a connected target — plugin conflicts, slow queries, large autoload options, broken images, PHP errors, outdated core/plugins/themes, weak admins. Phase = Debug./wp-edit-designRead or modify page-builder layouts on a connected target — Elementor, Divi, Oxygen, Bricks widget trees. Phase = Build./wp-edit-pluginRead or write configuration owned by SEO / i18n / e-commerce / custom-field / forms plugins — Yoast, RankMath, WPML, WooCommerce, ACF, Gravity / CF7 / WPForms — on a connected target. Phase = Build.