Skip to the guide
All guides

WordPress Playground

Write or review WordPress Playground Blueprints, CLI setups and shareable links for plugin or theme reproductions. Untrusted Blueprints are read, not run.

app WordPress DevKit 2.0.3checked reading 4 minutes

On this page

When to use it

Use this skill for WordPress Playground Blueprints, @wp-playground/cli setups, query and embed links, and shareable reproductions of plugin or theme problems. It helps with boot failures, resource and mount problems, and the review of Blueprints from sources you do not trust. A Blueprint is a JSON file that describes the steps Playground runs to build a site.

Playground does not replace testing on real MySQL or on your host.

Other skills for nearby topics

  • Test strategy and CI design for the plugin itself: wp-devkit-test-strategy and wp-devkit-ci-cd-and-release-engineering. This skill covers only the Playground layer.
  • Security review of the plugin under test: wp-devkit-security-review.
  • Real database, cache, cron or host behavior: use wp-env or Docker instead of Playground.

Run a review in Claude

With the plugin loaded, start a read-only review of one bounded target:

Text
/wp-devkit:playground-review <target-path>

The short form /wp-devkit:playground asks for a quick scan.

Run a review in Codex, ChatGPT or Antigravity

Name the installed skill and keep the request small. Replace the target with your files or the journey you care about.

Text
$wp-devkit-playground-development
Review the target without editing files.
Read the project instructions and the skill's engineering contract first.
Separate confirmed findings from candidates and state the evidence and checks you could not run.

The engineering contract is the set of rules every DevKit skill follows, such as how severity is graded and what counts as evidence.

Reference files

The agent loads only the file that matches your task:

  • blueprint-authoring.md applies when you write or review a Blueprint, including the trust review of its steps and resources.
  • cli-and-local-environments.md applies to the Playground CLI and local environments.
  • embedding-and-query-api.md applies to embeds, the query API and shareable links.
  • playground-development-workbook.md holds symptom triage, worked decisions, look-alikes that are not defects, and verification steps.

How a review runs

  1. The agent lists every step and resource. It reads all runPHP, runPHPWithOptions, runSql, wp-cli and writeFile(s) steps, archive imports and URLs before anything runs, and it does not execute them. The trust review is described in references/blueprint-authoring.md.
  2. It validates the Blueprint against the schema of the installed generation. Parsing the JSON is not validation.
  3. It checks step order, resource types, version pinning and whether URLs are reachable under CORS. It records the versions that aliases resolve to.
  4. For CLI work, it reads the installed --help and then checks flags, mounts and the persistence mode. For links and embeds, it checks query parameters, the bundle layout and origins.
  5. It confirms that the reproduction has a seed, a named trigger, and an expected and observed result. Without those, it is only a setup, not a reproduction.
  6. It describes the checks to run on a fresh instance, with a missing resource and on a second run. Runtime behavior counts as unexecuted unless it was run. The workbook holds the decision table, symptoms, false positives, severity rules and acceptance checks. It also points to references/playground-isolation-fixture.json, an optional disposable setup. That file is not a defect reproduction, and the workbook states its limits.

What you get back

The report leads with the result and the reviewed scope: the files read, with nothing executed. A confirmed concern lists file:line, the actor, the trigger, the reachable path, the impact, confidence, a minimal fix and a regression check. Candidates and "not established" items stay separate.

For implementation work the report lists the Blueprint or command, the resolved versions, the CLI and Node versions, exit codes, the fresh-instance result and what remains unexecuted. A successful Playground boot does not prove MySQL, hosting, cache or production behavior.

Note

Reviews are read-only. A clean review covers the code that was inspected and is not a certification. Ask for implementation as a separate, bounded task with a regression check.

Where to go next

Use review to fix to turn findings into a bounded change. Use Doctor and reports for environment checks and evidence tooling.