All skills
automattic avatar

/wp-playground

@95e374f official
by automatticautomattic/agent-skills211 stars
37

Use for WordPress Playground workflows: fast disposable WP instances in the browser or locally via @wp-playground/cli (server, run-blueprint, build-snapshot), auto-mounting plugins/themes, switching WP/PHP versions, blueprints, and debugging (Xdebug).

Use this Skill: https://skilld.dev/gh/automattic/agent-skills/wp-playground

This session only. Nothing lands on disk.

referencesblueprints.md

≈377 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Blueprint quick reference

Blueprints are JSON recipes that describe how Playground should set up WordPress.

Minimal example

{
  "$schema": "https://playground.wordpress.net/blueprint-schema.json",
  "steps": [
    { "step": "installTheme", "themeZipUrl": "https://downloads.wordpress.org/theme/twentytwentythree.zip" },
    { "step": "installPlugin", "pluginZipUrl": "https://downloads.wordpress.org/plugin/classic-editor.zip" }
  ]
}

Common steps (non-exhaustive)

  • setSiteUrl, setHomeUrl
  • installTheme, installPlugin (ZIP URLs or local paths when allowed)
  • activateTheme, activatePlugin
  • runPHP (inline PHP)
  • applyPatches (filesystem patch)
  • writeFile (create/update files)
  • importFile (XML/WXR)
  • wpConfigConstants (define constants)
  • preferredVersions (pick WP/PHP; matches CLI --wp / --php)
  • blueprintSteps that include extraLibraries (e.g., Jetpack) and features.networking when browser networking is required

Tips

  • Use --blueprint-may-read-adjacent-files when the blueprint needs local files (e.g., custom plugin ZIP) during run-blueprint or build-snapshot.
  • For iterative authoring, keep blueprints small and compose via separate files.
  • Validate against the published schema URL above to catch typos.
  • For Gutenberg/nightly testing, set --wp=<version> to align with target WP.
  • To share quickly, encode the blueprint as base64 in the Playground URL fragment or host the JSON/ZIP and pass ?blueprint-url=….

Source: SKILL.md on GitHub

1 warning17d4 checks · Risk SAFE
  • Gen Agent Trust Hub17d

    The skill provides instructions for using WordPress Playground, a tool for running ephemeral WordPress instances. It involves downloading official packages from Automattic via npm and interacting with official WordPress theme and plugin repositories. While the tool supports executing code via blueprints, this is a standard feature performed within an isolated environment.

  • Socket17d

    No alerts

  • Snyk17d

    Risk: LOW · No issues

  • Runlayer7mo

    4/4 files flagged

Signed by skilld at 95e374f. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 5 months ago.

Dormantupdated 9 months ago
Other metadata
compatibility
Targets WordPress 6.9+ (PHP 7.2.24+). Playground CLI requires Node.js 20.18+; runs WP in WebAssembly with SQLite.
  • Testing
  • wordpress
  • playground
  • webassembly
  • php
  • blueprints
  • xdebug
  • snapshots
  • sqlite

README badge

README badge for automattic/agent-skills/wp-playground

Spins up disposable WordPress instances in the browser or locally via @wp-playground/cli, with auto-mounting of plugins/themes, version switching, blueprints, and Xdebug debugging. Targets WordPress 6.9+ running in WebAssembly with SQLite, ideal for quick testing without full stack setup or reproducing issues across WP/PHP versions.

Generated from the current SKILL.md.

Does this work with WordPress versions older than 6.9?
No. The skill targets WordPress 6.9+ with PHP 7.2.24+. Older versions are not supported.
What Node.js version is required?
Node.js 20.18 or higher. The Playground CLI will not run on earlier versions.
Can I use this to test against production data?
No. Playground instances are ephemeral and SQLite-backed — they are designed for isolated testing only and should never point at production data.
Does this support database systems other than SQLite?
No. Playground runs WordPress in WebAssembly with SQLite. If you need native DB access or PHP extensions, you should use a full WP stack or wp-env instead.
Can I debug plugin and theme code with this skill?
Yes. Use the `--xdebug` flag when starting the server, then connect your IDE (VS Code or PhpStorm) to the exposed port for step-through debugging.

Generated from the current SKILL.md. These answers refresh after source changes.