Wp Playground

作者 wordpress3cf7f6f70130無授權條款2.2K 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫3 天前更新

Use as the WordPress Playground routing wrapper for ambiguous Playground work, local CLI runs with @wp-playground/cli, playground.wordpress.net share links, browser previews, WebMCP site tools, snapshots, mounts, version switching, and Xdebug. For Blueprint JSON authoring or review, use the blueprint skill directly.

AI 產生的概覽

將 WordPress Playground 任務導向 CLI、瀏覽器分享連結、WebMCP、快照、掛載與 Xdebug 等專項參考。

功能
這是一個路由包裝技能,用來辨識使用者的 WordPress Playground 意圖,並指向對應的專項參考或搭配技能。它涵蓋使用 @wp-playground/cli 的本機 CLI 執行、純瀏覽器網站與分享連結工作流程、WebMCP 網站工具、快照、掛載、版本切換與 Xdebug 偵錯。它也列出所需輸入、防護規則、驗證步驟、失敗模式與升級路徑。它產出的是指引與路由決策,而不是檔案或程式碼。
適用情境
適用於語意不明或混合的 WordPress Playground 請求,或需要判斷該採用哪種 Playground 工作流程或參考時。也適用於本機 CLI 執行、瀏覽器預覽與分享連結、快照、掛載、版本切換與 Xdebug 排錯。Blueprint JSON 的撰寫或審查應改用 blueprint 技能。
執行需求
此技能不附帶指令碼,僅為說明與參考文件。本機 CLI 工作需要 Node.js 20.18+ 以及 npm 或 npx,目標為 WordPress 7.0+ 與 PHP 7.4.0+,並在 WebAssembly 中以 SQLite 執行 WordPress。純瀏覽器工作流程無法讀取本機檔案系統路徑。

WordPress Playground

This is a thin routing wrapper. Use it to pick the right Playground workflow, then load only the focused reference or skill needed for the task.

Procedure

  1. Identify the user intent: Blueprint authoring/review, local CLI execution, browser-only website/share link workflow, Xdebug/stuck CLI run, or a mixed Playground request.
  2. Route to the focused source below, loading more than one only when the request has multiple distinct parts.
  3. For mixed requests, delegate Blueprint JSON work to blueprint, then return here for runtime, CLI, debugging, or sharing guidance.
  • Blueprint JSON, schema, steps, resources, bundles, or Blueprint review: use the blueprint skill directly. Do not duplicate Blueprint schema details here.
  • Local CLI execution: read references/cli.md for @wp-playground/cli server, run-blueprint, build-snapshot, mounts, version switching, and local validation.
  • Xdebug or stuck CLI runs: read references/debugging.md for Xdebug, runtime logs, worker flags, and stuck CLI runs.
  • Browser-only Playground website workflows: read references/website.md for Query API and Blueprint URL setup, share links, and browser limitations. It routes existing-site operations to separate WebMCP, Playground MCP, and Sites API references; load only the selected method. Unless the user requests a specific connection method, prefer available WebMCP tools for supported browser operations.

Inputs required

  • The intended workflow: Blueprint authoring, local CLI run, website/share link, snapshot, or debugging.
  • Project or bundle path if local code must be mounted or packaged.
  • Desired WordPress/PHP versions if compatibility matters.
  • Port preference if a local server is needed.
  • Whether browser-only sharing or local filesystem access is required.

Guardrails

  • Playground instances are disposable, SQLite-backed environments; never point them at production data.
  • Keep Blueprint JSON guidance in blueprint so the schema and examples have one source of truth.
  • For local CLI work, verify Node.js 20.18+ and npm/npx before running commands.
  • Browser-only Playground cannot read local filesystem paths; use public URLs, hosted ZIP bundles, or inline Blueprint JSON.

Verification

  • For Blueprint content, validate against the published schema and follow the blueprint skill verification.
  • For local CLI runs, verify the mounted plugin/theme or Blueprint side effects in the Playground instance.
  • For share links, open the generated URL and confirm the expected landing page and installed assets load.

Failure modes

  • Blueprint work routed here: stop and use the blueprint skill for schema keys, steps, resources, bundles, validation, or Blueprint review.
  • Local filesystem needed in a browser-only workflow: use references/cli.md; playground.wordpress.net cannot read local filesystem paths.
  • Shareable browser link requested from a local CLI workflow: use references/website.md; local server URLs are not portable share links.
  • Debugging treated as a second-hop reference: read references/debugging.md directly for Xdebug, logs, worker flags, and stuck CLI runs.

Escalation

  • If the task needs PHP extensions, native database access, persistence, or production-like infrastructure that Playground cannot provide, use a full WordPress stack such as wp-env, Docker, or the project-provided environment.

來源與署名

來源:wordpress/agent-skills位於skills/wp-playground提交3cf7f6f

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架