wp-playground

โดย wordpress

อินสแตนซ์ WordPress ที่รวดเร็วและใช้แล้วทิ้งได้ทั้งในเบราว์เซอร์หรือในเครื่องผ่าน CLI พร้อมการเมานต์อัตโนมัติ การสลับเวอร์ชัน และการดีบักด้วย Xdebug สร้างไซต์ WordPress ชั่วคราวใน WebAssembly ด้วย SQLite รองรับ WordPress 6.9+ และ PHP 7.2.24+ พร้อมการสลับเวอร์ชันอย่างรวดเร็วสำหรับการทดสอบความเข้ากันได้ คำสั่ง CLI ประกอบด้วย server (เมานต์ปลั๊กอิน/ธีมอัตโนมัติ), run-blueprint (การตั้งค่าตามสคริปต์) และ build-snapshot (ส่งออก ZIP ที่แชร์ได้) ผ่าน Node.js 20.18+ ตรวจจับและเมานต์โค้ดปลั๊กอินหรือธีมในเครื่องโดยอัตโนมัติ...

npx skills add https://github.com/wordpress/agent-skills --skill wp-playground

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 playground.wordpress.net, share URLs, Blueprint Editor, hosted bundles, and browser limitations.

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.

Skills เพิ่มเติมจาก wordpress

blueprint
wordpress
ใช้เมื่อสร้าง แก้ไข หรือตรวจสอบไฟล์ JSON blueprint ของ WordPress Playground ทำงานเมื่อมีการกล่าวถึง blueprints, การกำหนดค่า playground หรือคำขอ…
official
wordpress-router
wordpress
จัดประเภทโค้ดเบส WordPress และกำหนดเส้นทางไปยังเวิร์กโฟลว์ที่ถูกต้องสำหรับปลั๊กอิน ธีม บล็อก และการเช็คเอาต์แกนกลาง ดำเนินการคัดแยกโปรเจกต์อัตโนมัติเพื่อระบุประเภทของรีโพสิทอรี (ปลั๊กอิน ธีม ธีมบล็อก บล็อก Gutenberg แกนกลาง WP) และเครื่องมือที่มีอยู่ ส่งออกผลลัพธ์การจัดประเภทและการตัดสินใจเส้นทางไปยังสกิลเฉพาะโดเมนตามความตั้งใจของผู้ใช้และประเภทของโปรเจกต์ ต้องการสิทธิ์เข้าถึงรากของรีโพสิทอรีและการดำเนินการระบบไฟล์ bash/Node บางเวิร์กโฟลว์ต้องใช้ WP-CLI กำหนดเป้าหมาย WordPress 6.9+ พร้อม PHP 7.2.24+;...
official
wp-abilities-api
wordpress
การลงทะเบียน WordPress Abilities API, การเปิดเผยผ่าน REST, และการใช้งานฝั่งไคลเอ็นต์สำหรับ WordPress 6.9 ขึ้นไป ลงทะเบียนความสามารถและหมวดหมู่ใน PHP โดยใช้ wp_register_ability() และ wp_register_ability_category() พร้อม ID, ป้ายกำกับ, และข้อมูลเมตาที่เสถียร เปิดเผยความสามารถให้กับไคลเอ็นต์ผ่าน REST endpoints /wp-json/wp-abilities/v1/ โดยตั้งค่า meta.show_in_rest: true ใช้งานความสามารถใน JavaScript โดยใช้แพ็คเกจ @wordpress/abilities สำหรับการเข้าถึงฝั่งไคลเอ็นต์และการตรวจสอบสิทธิ์ ต้องใช้ WordPress 6.9 ขึ้นไป...
official
wp-abilities-audit
wordpress
ตรวจสอบส่วนติดต่อ REST ของปลั๊กอิน WordPress และสร้างเอกสารการตรวจสอบมาตรฐานที่เสนอการลงทะเบียน Abilities API สร้างเอกสาร markdown พร้อม YAML…
official
wp-abilities-verify
wordpress
ตรวจสอบการลงทะเบียน Abilities API ของปลั๊กอิน WordPress: แจกแจงความสามารถ ตรวจสอบว่าพฤติกรรมของ callback ตรงกับข้อความอ้างอิงของแต่ละคำอธิบายประกอบ (การโจมตีแบบ adversarial…)
official
wp-block-development
wordpress
การพัฒนา WordPress block สำหรับ Gutenberg: metadata, การลงทะเบียน, การเรนเดอร์ และขั้นตอนการสร้าง ครอบคลุมการสร้าง block, การกำหนดค่า block.json, การเรนเดอร์แบบ static vs dynamic และการลงทะเบียน PHP ฝั่งเซิร์ฟเวอร์ด้วย register_block_type_from_metadata() บังคับใช้ apiVersion: 3 เพื่อความเข้ากันได้กับ WordPress 6.9+ รวมถึงการรองรับ iframe editor และการแยกสไตล์ จัดการการจัดลำดับ attribute, deprecations/migrations เพื่อป้องกันข้อผิดพลาด "Invalid block" และการประกอบ inner blocks รวมถึง...
official
wp-block-themes
wordpress
การพัฒนา WordPress block theme: theme.json, templates, patterns, และการแก้ไขปัญหา Site Editor ครอบคลุมการแก้ไข theme.json (presets, settings, per-block styles), templates และ template parts, patterns, และ style variations ใน WordPress 6.9+ รวมถึงสคริปต์ triage เพื่อตรวจจับ theme roots และโครงสร้าง block theme พร้อมขั้นตอนแนะนำสำหรับการสร้างธีมใหม่หรือแปลงธีมแบบคลาสสิก ให้เวิร์กโฟลว์การดีบักสำหรับปัญหาเกี่ยวกับลำดับชั้นของสไตล์ การแทนที่การปรับแต่งของผู้ใช้ และ Site...
official
wp-interactivity-api
wordpress
ใช้เมื่อสร้างหรือดีบักฟีเจอร์ของ WordPress Interactivity API (data-wp-* directives, @wordpress/interactivity store/state/actions, block viewScriptModule…)
official