一键导入
wp-connect
Open a WordPress Target on any kind (local / REST + App Password / SSH / Docker) using credentials already in the vault. Phase = Define.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Open a WordPress Target on any kind (local / REST + App Password / SSH / Docker) using credentials already in the vault. Phase = Define.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | wp-connect |
| description | Open a WordPress Target on any kind (local / REST + App Password / SSH / Docker) using credentials already in the vault. Phase = Define. |
| when_to_use | a user asks to work on a site whose credentials are already paired/stored, OR explicitly wants a non-REST connection kind (local path, SSH, Docker container) |
| tier | 1 |
| phase | define |
Re-open a previously paired site, or open a new connection over local/SSH/Docker. Picks the right connect_* tool by what the user has and what they need to do.
/path/to/wp/.Skip when:
wp-pair-setup.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_connect_<kind> tool.target_id + companion status.Does not own:
wp-pair-setup.wp-health-check.Return / hand off:
wp-pair-setup for one-click OR manual App Password entry.wp-health-check for full report.host:user (SSH) OR container_name (Docker).require_companion: true if the user explicitly needs power tools.Read references/connect-kinds.md if unsure. Quick rule:
| User has | Pick |
|---|---|
| siteurl + App Password (any host, including shared) | rest |
| filesystem path to wp-config.php | local |
| SSH access to server | ssh |
| WP in Docker on this machine | docker |
Default to REST unless the user explicitly says otherwise — it works on every host.
Call the matching tool:
rolepod_wp_connect_rest { url, [credential_ref], [require_companion] }rolepod_wp_connect_local { path }rolepod_wp_connect_ssh { host, user, [keyPath], [port] }rolepod_wp_connect_docker { containerName, [wpCliPath] }Tell user: kind + target_id + wp_version + companion presence + any warnings.
If user already said what to do → hand off immediately. Otherwise ask.
rolepod:devops-sre for SSH key / Docker config issues.rolepod:backend-developer for follow-up REST work.Execute as Lead:
connect_*.No durable artifact. The opened target lives in the in-memory TargetRegistry for this session.
No examples file. Kind selection is single-decision and the workflow is one tool call.
Load when the user's situation does not match the quick rule:
references/connect-kinds.md — which kind for which scenario; trade-offs around companion availability, security guarantees, and performance.CREDENTIALS_MISSING on REST → STOP. Hand off to wp-pair-setup (recommended) or instruct manual rolepod-wplab credentials add <site>.REST_AUTH_FAILED on a previously-working site → STOP. The App Password was revoked from profile.php. Hand off to wp-pair-setup.require_companion=true but companion: null → STOP. Tell user to install the WP plugin via wp plugin install https://github.com/nuttaruj/rolepod-wp/releases/latest/download/rolepod-wp.zip --activate.Full Rolepod adds an auto-reconnect path that detects an expired session token mid-flow and silently re-handshakes; standalone, the user sees a single retryable error.
wp-health-check for a fuller report after open.wp-content, wp-edit-*, wp-scaffold, wp-diagnose, wp-execute-php).Create, read, update, search posts/pages/users/options/taxonomies via the core WP REST API on a connected target. Phase = Build.
Read 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.
Recover a WordPress site that is white-screening / 500-ing / fatal after an edit — guardian mu-plugin, safe-mode, disable/restore the culprit — plus safe core/plugin/theme updates and guarded .htaccess edits. Phase = Recover.
Multi-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.
Plan, dry-run, apply, back up, and clone migrations between two WP targets — dev → staging → prod, with rollback. Phase = Ship.
Query 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.