[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M72WGZ7XJGE5GFBA5J2G98R1":3,"skill-same:01M72WGZ7XJGE5GFBA5J2G98R1":46},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":14,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M72WGZ7XJGE5GFBA5J2G98R1","blueprint",null,"Use when the deliverable is WordPress Playground Blueprint JSON or a Blueprint bundle, including creating, editing, reviewing, validating schema keys, choosing steps\u002Fresources, and debugging Blueprint files. For only running or sharing a Playground environment, use wp-playground.","procyon-creative\u002Fwp-dario-provider","procyon-creative","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F108539561?v=4","01M72WGVJQCTY3JENE9DDREJ61","Procyon Creative","01M72WGVKC11SWCNQBV05FHJ6D",0,"GPL-2.0","https:\u002F\u002Fgithub.com\u002Fprocyon-creative\u002Fwp-dario-provider\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fblueprint\u002FSKILL.md",[],[],"2026-11-10 22:39:42",false,"---\nname: blueprint\ndescription: Use when the deliverable is WordPress Playground Blueprint JSON or a Blueprint bundle, including creating, editing, reviewing, validating schema keys, choosing steps\u002Fresources, and debugging Blueprint files. For only running or sharing a Playground environment, use wp-playground.\ncompatibility: \"WordPress 7.0+, PHP 7.4.0+. Optionally Playground CLI or a browser\"\n---\n\n# WordPress Playground Blueprints\n\n## Overview\n\nA Blueprint is a JSON file that declaratively configures a WordPress Playground instance — installing plugins\u002Fthemes, setting options, running PHP\u002FSQL, manipulating files, and more.\n\n**Core principle:** Blueprints are trusted JSON-only declarations. No arbitrary JavaScript. They work on web, Node.js, and CLI.\n\n## Quick Start Template\n\n```json\n{\n  \"$schema\": \"https:\u002F\u002Fplayground.wordpress.net\u002Fblueprint-schema.json\",\n  \"landingPage\": \"\u002Fwp-admin\u002F\",\n  \"preferredVersions\": { \"php\": \"8.3\", \"wp\": \"latest\" },\n  \"steps\": [{ \"step\": \"login\" }]\n}\n```\n\n## Top-Level Properties\n\nAll optional. Only documented keys are allowed — the schema rejects unknown properties.\n\n| Property | Type | Notes |\n|----------|------|-------|\n| `$schema` | string | Always `\"https:\u002F\u002Fplayground.wordpress.net\u002Fblueprint-schema.json\"` |\n| `landingPage` | string | Relative path, e.g. `\u002Fwp-admin\u002F` |\n| `description` | string | Deprecated optional top-level description. Prefer `meta.description` for new Blueprints |\n| `meta` | object | `{ title, author, description?, categories? }` — title and author required |\n| `preferredVersions` | object | `{ php, wp }` — both required when present |\n| `features` | object | `{ networking?: boolean, intl?: boolean }` — **only** these two keys, nothing else. Networking defaults to `true` |\n| `phpExtensionBundles` | any | Deprecated\u002Fno longer used; the schema leaves the value unconstrained and says to remove it from Blueprints |\n| `extraLibraries` | array | `[\"wp-cli\"]` — auto-included when any `wp-cli` step is present |\n| `constants` | object | Shorthand for `defineWpConfigConsts`. Values: string\u002Fboolean\u002Fnumber |\n| `plugins` | array | Shorthand for `installPlugin` steps. Strings = wp.org slugs |\n| `siteOptions` | object | Shorthand for `setSiteOptions` |\n| `login` | boolean or object | `true` = login as admin. Object = `{ username?, password? }` (both default to `\"admin\"`\u002F`\"password\"`) |\n| `steps` | array | Main execution pipeline. Runs after shorthands |\n\n### preferredVersions Values\n\n- **php:** Major.minor only: `\"7.4\"`, `\"8.0\"`, `\"8.1\"`, `\"8.2\"`, `\"8.3\"`, `\"8.4\"`, `\"8.5\"`, or `\"latest\"`. Patch versions like `\"7.4.1\"` are invalid. Check the schema for currently supported versions.\n- **wp:** Recent major versions, `\"latest\"`, `\"beta\"`, `\"nightly\"`\u002F`\"trunk\"`, or a URL to a custom zip. The schema also accepts `false` for PHP-only Playground; do not combine `wp: false` with WordPress-only fields such as `plugins`, `siteOptions`, `login`, or WordPress-only steps.\n\n### Shorthands vs Steps\n\nShorthands (`login`, `plugins`, `siteOptions`, `constants`) are expanded and prepended to `steps` in an **unspecified order**. Use explicit steps when execution order matters.\n\n## Resource References\n\nResources tell Playground where to find files. Used by `installPlugin`, `installTheme`, `writeFile`, `writeFiles`, `importWxr`, etc.\n\n| Resource Type | Required Fields | Example |\n|--------------|----------------|---------|\n| `wordpress.org\u002Fplugins` | `slug` | `{ \"resource\": \"wordpress.org\u002Fplugins\", \"slug\": \"woocommerce\" }` |\n| `wordpress.org\u002Fthemes` | `slug` | `{ \"resource\": \"wordpress.org\u002Fthemes\", \"slug\": \"astra\" }` |\n| `url` | `url` | `{ \"resource\": \"url\", \"url\": \"https:\u002F\u002Fexample.com\u002Fplugin.zip\" }` |\n| `git:directory` | `url`, `ref` | See below |\n| `literal` | `name`, `contents` | `{ \"resource\": \"literal\", \"name\": \"file.txt\", \"contents\": \"hello\" }` |\n| `literal:directory` | `name`, `files` | See below |\n| `bundled` | `path` | References a file within a blueprint bundle (e.g. `{ \"resource\": \"bundled\", \"path\": \"\u002Fplugin.zip\" }`) |\n| `zip` | `inner` | Wraps another resource in a ZIP — use when a step expects a zip but your source isn't one (e.g. wrapping a `url` resource pointing to a raw directory) |\n\n### git:directory — Installing from GitHub\n\n```json\n{\n  \"resource\": \"git:directory\",\n  \"url\": \"https:\u002F\u002Fgithub.com\u002FWordPress\u002Fgutenberg\",\n  \"ref\": \"trunk\",\n  \"refType\": \"branch\",\n  \"path\": \"\u002F\"\n}\n```\n\n- When using a branch or tag name for `ref`, you **must** set `refType` (`\"branch\"` | `\"tag\"` | `\"commit\"` | `\"refname\"`). Without it, only `\"HEAD\"` resolves reliably.\n- `path` selects a subdirectory (defaults to repo root).\n\n### literal:directory — Inline File Trees\n\n```json\n{\n  \"resource\": \"literal:directory\",\n  \"name\": \"my-plugin\",\n  \"files\": {\n    \"plugin.php\": \"\u003C?php \u002F* Plugin Name: My Plugin *\u002F ?>\",\n    \"includes\": {\n      \"helper.php\": \"\u003C?php \u002F\u002F helper code ?>\"\n    }\n  }\n}\n```\n\n- `files` uses nested objects for subdirectories — keys are filenames or directory names, values are **plain strings** (file content) or **objects** (subdirectories). Never use resource references as values.\n- **Do NOT use path separators in keys** (e.g. `\"includes\u002Fhelper.php\"` is wrong — use a nested `\"includes\": { \"helper.php\": \"...\" }` object).\n\n## Steps Reference\n\nEvery step requires `\"step\": \"\u003Cname>\"`. Any step can optionally include `\"progress\": { \"weight\": 1, \"caption\": \"Installing...\" }` for UI feedback.\n\n### Plugin & Theme Installation\n\n```json\n{\n  \"step\": \"installPlugin\",\n  \"pluginData\": { \"resource\": \"wordpress.org\u002Fplugins\", \"slug\": \"gutenberg\" },\n  \"options\": { \"activate\": true, \"targetFolderName\": \"gutenberg\" },\n  \"ifAlreadyInstalled\": \"overwrite\"\n}\n```\n\n```json\n{\n  \"step\": \"installTheme\",\n  \"themeData\": { \"resource\": \"wordpress.org\u002Fthemes\", \"slug\": \"twentytwentyfour\" },\n  \"options\": { \"activate\": true, \"importStarterContent\": true },\n  \"ifAlreadyInstalled\": \"overwrite\"\n}\n```\n\n- Use `pluginData` \u002F `themeData` — **NOT** the deprecated `pluginZipFile` \u002F `themeZipFile`.\n- `pluginData` \u002F `themeData` accept any FileReference or DirectoryReference — a zip URL, a `wordpress.org\u002Fplugins` slug, a `git:directory`, or a `literal:directory` (no `zip` wrapper needed).\n- `options.activate` controls activation. No need for a separate `activatePlugin`\u002F`activateTheme` step when using `installPlugin`\u002F`installTheme`.\n- `ifAlreadyInstalled`: `\"overwrite\"` | `\"skip\"` | `\"error\"`\n\n### Activation (standalone)\n\nOnly needed for plugins\u002Fthemes already on disk (e.g. after `writeFile`\u002F`writeFiles`):\n\n```json\n{ \"step\": \"activatePlugin\", \"pluginPath\": \"my-plugin\u002Fmy-plugin.php\" }\n```\n```json\n{ \"step\": \"activateTheme\", \"themeFolderName\": \"twentytwentyfour\" }\n```\n\n### File Operations\n\n```json\n{ \"step\": \"writeFile\", \"path\": \"\u002Fwordpress\u002Fwp-content\u002Fmu-plugins\u002Fcustom.php\", \"data\": \"\u003C?php \u002F\u002F code\" }\n```\n\n`data` accepts a plain string (as shown above) or a resource reference (e.g. `{ \"resource\": \"url\", \"url\": \"https:\u002F\u002F...\" }`).\n\n```json\n{\n  \"step\": \"writeFiles\",\n  \"writeToPath\": \"\u002Fwordpress\u002Fwp-content\u002Fplugins\u002F\",\n  \"filesTree\": {\n    \"resource\": \"literal:directory\",\n    \"name\": \"my-plugin\",\n    \"files\": {\n      \"plugin.php\": \"\u003C?php\\n\u002F*\\nPlugin Name: My Plugin\\n*\u002F\",\n      \"includes\": {\n        \"helpers.php\": \"\u003C?php \u002F\u002F helpers\"\n      }\n    }\n  }\n}\n```\n\n**`writeFiles` requires a DirectoryReference** (`literal:directory` or `git:directory`) as `filesTree` — not a plain object.\n\nOther file operations: `mkdir`, `cp`, `mv`, `rm`, `rmdir`, `unzip`.\n\n### Running Code\n\n**runPHP:**\n```json\n{ \"step\": \"runPHP\", \"code\": \"\u003C?php require '\u002Fwordpress\u002Fwp-load.php'; update_option('key', 'value');\" }\n```\n**GOTCHA:** You must `require '\u002Fwordpress\u002Fwp-load.php';` to use any WordPress functions.\n\n**wp-cli:**\n```json\n{ \"step\": \"wp-cli\", \"command\": \"wp post create --post_type=page --post_title='Hello' --post_status=publish\" }\n```\nThe step name is `wp-cli` (with hyphen), NOT `cli` or `wpcli`.\n\n**runSql:**\n```json\n{ \"step\": \"runSql\", \"sql\": { \"resource\": \"literal\", \"name\": \"q.sql\", \"contents\": \"UPDATE wp_options SET option_value='val' WHERE option_name='key';\" } }\n```\n\n### Site Configuration\n\n```json\n{ \"step\": \"setSiteOptions\", \"options\": { \"blogname\": \"My Site\", \"blogdescription\": \"A tagline\" } }\n```\n```json\n{ \"step\": \"defineWpConfigConsts\", \"consts\": { \"WP_DEBUG\": true } }\n```\n```json\n{ \"step\": \"setSiteLanguage\", \"language\": \"en_US\" }\n```\n```json\n{ \"step\": \"defineSiteUrl\", \"siteUrl\": \"https:\u002F\u002Fexample.com\" }\n```\n\n### Other Steps\n\n| Step | Key Properties |\n|------|---------------|\n| `login` | `username?`, `password?` (default `\"admin\"` \u002F `\"password\"`) |\n| `enableMultisite` | (no required props) |\n| `importWxr` | `file` (FileReference) |\n| `importThemeStarterContent` | `themeSlug?` |\n| `importWordPressFiles` | `wordPressFilesZip`, `pathInZip?` — imports a full WordPress directory from a zip |\n| `request` | `request: { url, method?, headers?, body? }` |\n| `updateUserMeta` | `userId`, `meta` |\n| `runWpInstallationWizard` | `options?` — runs the WP install wizard with given options |\n| `resetData` | (no props) |\n\n## Common Patterns\n\n### Inline mu-plugin (quick custom code)\n\n```json\n{\n  \"step\": \"writeFile\",\n  \"path\": \"\u002Fwordpress\u002Fwp-content\u002Fmu-plugins\u002Fcustom.php\",\n  \"data\": \"\u003C?php\\n\u002F\u002F mu-plugins load automatically — no activation needed, no require wp-load.php\\nadd_filter('show_admin_bar', '__return_false');\"\n}\n```\n\n### Inline plugin with multiple files\n\n```json\n{\n  \"step\": \"writeFiles\",\n  \"writeToPath\": \"\u002Fwordpress\u002Fwp-content\u002Fplugins\u002F\",\n  \"filesTree\": {\n    \"resource\": \"literal:directory\",\n    \"name\": \"my-plugin\",\n    \"files\": {\n      \"my-plugin.php\": \"\u003C?php\\n\u002F*\\nPlugin Name: My Plugin\\n*\u002F\\nrequire __DIR__ . '\u002Fincludes\u002Fmain.php';\",\n      \"includes\": {\n        \"main.php\": \"\u003C?php \u002F\u002F main logic\"\n      }\n    }\n  }\n}\n```\n\nThen activate it with a separate step:\n\n```json\n{ \"step\": \"activatePlugin\", \"pluginPath\": \"my-plugin\u002Fmy-plugin.php\" }\n```\n\n### Plugin from a GitHub branch\n\n```json\n{\n  \"step\": \"installPlugin\",\n  \"pluginData\": {\n    \"resource\": \"git:directory\",\n    \"url\": \"https:\u002F\u002Fgithub.com\u002Fuser\u002Frepo\",\n    \"ref\": \"feature-branch\",\n    \"refType\": \"branch\",\n    \"path\": \"\u002F\"\n  }\n}\n```\n\n## Common Mistakes\n\n| Mistake | Correct |\n|---------|---------|\n| `pluginZipFile` \u002F `themeZipFile` | `pluginData` \u002F `themeData` |\n| `\"step\": \"cli\"` | `\"step\": \"wp-cli\"` |\n| Flat object as `writeFiles.filesTree` | Must be a `literal:directory` or `git:directory` resource |\n| Path separators in `files` keys | Use nested objects for subdirectories |\n| `runPHP` without `wp-load.php` | Always `require '\u002Fwordpress\u002Fwp-load.php';` for WP functions |\n| Invented top-level keys | Only documented keys work — schema rejects unknown properties |\n| Inventing proxy URLs for GitHub | Use `git:directory` resource type |\n| Omitting `refType` with branch\u002Ftag `ref` | Required — only `\"HEAD\"` works without it |\n| Resource references in `literal:directory` `files` values | Values must be plain strings (content) or objects (subdirectories) — never resource refs |\n| `features.debug` or other invented feature keys | `features` only supports `networking` and `intl` — use `constants: { \"WP_DEBUG\": true }` for debug mode |\n| `require wp-load.php` in mu-plugin code | Only needed in `runPHP` steps — mu-plugins already run within WordPress |\n| Schema URL with `.org` domain | Must be `playground.wordpress.net`, not `playground.wordpress.org` |\n\n## Full Reference\n\nThis skill covers the most common steps and patterns. For the complete API, see:\n\n- **Blueprint docs:** https:\u002F\u002Fwordpress.github.io\u002Fwordpress-playground\u002Fblueprints\n- **JSON schema:** https:\u002F\u002Fplayground.wordpress.net\u002Fblueprint-schema.json\n\nAdditional steps not covered above: `runPHPWithOptions` (run PHP with custom `ini` settings), `runWpInstallationWizard`, and resource types `vfs` and `bundled` (for advanced embedding scenarios).\n\n## Blueprint Bundles\n\nBundles are self-contained packages that include a `blueprint.json` along with all the resources it references (plugins, themes, WXR files, etc.). Instead of hosting assets externally, bundle them alongside the blueprint.\n\n### Bundle Structure\n\n```\nmy-bundle\u002F\n├── blueprint.json          ← must be at the root\n├── my-plugin.zip           ← zipped plugin directory\n├── theme.zip\n└── content\u002F\n    └── sample-content.wxr\n```\n\nPlugins and themes must be zipped before bundling — `installPlugin` expects a zip, not a raw directory. To create the zip from a plugin directory:\n\n```bash\ncd my-bundle\nzip -r my-plugin.zip my-plugin\u002F\n```\n\n### Referencing Bundled Resources\n\nUse the `bundled` resource type to reference files within the bundle:\n\n```json\n{\n  \"step\": \"installPlugin\",\n  \"pluginData\": {\n    \"resource\": \"bundled\",\n    \"path\": \"\u002Fmy-plugin.zip\"\n  },\n  \"options\": { \"activate\": true }\n}\n```\n\n```json\n{\n  \"step\": \"importWxr\",\n  \"file\": {\n    \"resource\": \"bundled\",\n    \"path\": \"\u002Fcontent\u002Fsample-content.wxr\"\n  }\n}\n```\n\n### Creating a Bundle Step by Step\n\n1. Create the bundle directory and add `blueprint.json` at its root.\n2. Write your plugin\u002Ftheme source files in a subdirectory (e.g. `my-plugin\u002Fmy-plugin.php`).\n3. Zip the plugin directory: `zip -r my-plugin.zip my-plugin\u002F`\n4. Reference it in `blueprint.json` using `{ \"resource\": \"bundled\", \"path\": \"\u002Fmy-plugin.zip\" }`.\n\nFull example — a bundle that installs a custom plugin:\n\n```\ndashboard-widget-bundle\u002F\n├── blueprint.json\n├── dashboard-widget.zip        ← zip of dashboard-widget\u002F\n└── dashboard-widget\u002F           ← plugin source (kept for editing)\n    └── dashboard-widget.php\n```\n\n```json\n{\n  \"$schema\": \"https:\u002F\u002Fplayground.wordpress.net\u002Fblueprint-schema.json\",\n  \"landingPage\": \"\u002Fwp-admin\u002F\",\n  \"preferredVersions\": { \"php\": \"8.3\", \"wp\": \"latest\" },\n  \"steps\": [\n    { \"step\": \"login\" },\n    {\n      \"step\": \"installPlugin\",\n      \"pluginData\": { \"resource\": \"bundled\", \"path\": \"\u002Fdashboard-widget.zip\" },\n      \"options\": { \"activate\": true }\n    }\n  ]\n}\n```\n\n### Distribution Formats\n\n| Format | How to use |\n|--------|-----------|\n| ZIP file (remote) | Website: `https:\u002F\u002Fplayground.wordpress.net\u002F?blueprint-url=https:\u002F\u002Fexample.com\u002Fbundle.zip` |\n| ZIP file (local) | CLI: `npx @wp-playground\u002Fcli server --blueprint=.\u002Fbundle.zip` |\n| Local directory | CLI: `npx @wp-playground\u002Fcli server --blueprint=.\u002Fmy-bundle\u002F --blueprint-may-read-adjacent-files` |\n| Git repository directory | Point `blueprint-url` at a repo directory containing `blueprint.json` |\n\n**GOTCHA:** Local directory bundles always need `--blueprint-may-read-adjacent-files` for the CLI to read bundled resources. Without it, any `\"resource\": \"bundled\"` reference will fail with a \"File not found\" error. ZIP bundles don't need this flag — all files are self-contained inside the archive.\n\n## Testing Blueprints\n\n### Inline Blueprints (quick test, no bundles)\n\nMinify the blueprint JSON (no extra whitespace), encode it once with `encodeURIComponent()`, prepend `https:\u002F\u002Fplayground.wordpress.net\u002F#`, and open the URL in a browser:\n\n```\nhttps:\u002F\u002Fplayground.wordpress.net\u002F#%7B%22%24schema%22%3A%22https%3A%2F%2Fplayground.wordpress.net%2Fblueprint-schema.json%22%2C%22preferredVersions%22%3A%7B%22php%22%3A%228.3%22%2C%22wp%22%3A%22latest%22%7D%2C%22steps%22%3A%5B%7B%22step%22%3A%22login%22%7D%5D%7D\n```\n\nVery large blueprints may exceed browser URL length limits; use the CLI or a hosted Blueprint URL instead. For share-link details, use `wp-playground\u002Freferences\u002Fwebsite.md`.\n\n### Local CLI Testing\n\n**Interactive server** (keeps running, opens in browser):\n```bash\n# Directory bundle — requires --blueprint-may-read-adjacent-files\nnpx @wp-playground\u002Fcli server --blueprint=.\u002Fmy-bundle\u002F --blueprint-may-read-adjacent-files\n\n# ZIP bundle — self-contained, no extra flags needed\nnpx @wp-playground\u002Fcli server --blueprint=.\u002Fbundle.zip\n```\n\n**Headless validation** (runs blueprint and exits):\n```bash\nnpx @wp-playground\u002Fcli run-blueprint --blueprint=.\u002Fmy-bundle\u002F --blueprint-may-read-adjacent-files\n```\n\n### Testing with WordPress Playground\n\nUse the `wp-playground` skill for local or browser testing. For CLI testing, follow `wp-playground\u002Freferences\u002Fcli.md` with `--blueprint=\u003Cpath-or-url>`; for directory bundles, pass `--blueprint-may-read-adjacent-files`.\n","# WordPress Playground Blueprints\n\n## Overview\n\nA Blueprint is a JSON file that declaratively configures a WordPress Playground instance — installing plugins\u002Fthemes, setting options, running PHP\u002FSQL, manipulating files, and more.\n\n**Core principle:** Blueprints are trusted JSON-only declarations. No arbitrary JavaScript. They work on web, Node.js, and CLI.\n\n## Quick Start Template\n\n```json\n{\n  \"$schema\": \"https:\u002F\u002Fplayground.wordpress.net\u002Fblueprint-schema.json\",\n  \"landingPage\": \"\u002Fwp-admin\u002F\",\n  \"preferredVersions\": { \"php\": \"8.3\", \"wp\": \"latest\" },\n  \"steps\": [{ \"step\": \"login\" }]\n}\n```\n\n## Top-Level Properties\n\nAll optional. Only documented keys are allowed — the schema rejects unknown properties.\n\n| Property | Type | Notes |\n|----------|------|-------|\n| `$schema` | string | Always `\"https:\u002F\u002Fplayground.wordpress.net\u002Fblueprint-schema.json\"` |\n| `landingPage` | string | Relative path, e.g. `\u002Fwp-admin\u002F` |\n| `description` | string | Deprecated optional top-level description. Prefer `meta.description` for new Blueprints |\n| `meta` | object | `{ title, author, description?, categories? }` — title and author required |\n| `preferredVersions` | object | `{ php, wp }` — both required when present |\n| `features` | object | `{ networking?: boolean, intl?: boolean }` — **only** these two keys, nothing else. Networking defaults to `true` |\n| `phpExtensionBundles` | any | Deprecated\u002Fno longer used; the schema leaves the value unconstrained and says to remove it from Blueprints |\n| `extraLibraries` | array | `[\"wp-cli\"]` — auto-included when any `wp-cli` step is present |\n| `constants` | object | Shorthand for `defineWpConfigConsts`. Values: string\u002Fboolean\u002Fnumber |\n| `plugins` | array | Shorthand for `installPlugin` steps. Strings = wp.org slugs |\n| `siteOptions` | object | Shorthand for `setSiteOptions` |\n| `login` | boolean or object | `true` = login as admin. Object = `{ username?, password? }` (both default to `\"admin\"`\u002F`\"password\"`) |\n| `steps` | array | Main execution pipeline. Runs after shorthands |\n\n### preferredVersions Values\n\n- **php:** Major.minor only: `\"7.4\"`, `\"8.0\"`, `\"8.1\"`, `\"8.2\"`, `\"8.3\"`, `\"8.4\"`, `\"8.5\"`, or `\"latest\"`. Patch versions like `\"7.4.1\"` are invalid. Check the schema for currently supported versions.\n- **wp:** Recent major versions, `\"latest\"`, `\"beta\"`, `\"nightly\"`\u002F`\"trunk\"`, or a URL to a custom zip. The schema also accepts `false` for PHP-only Playground; do not combine `wp: false` with WordPress-only fields such as `plugins`, `siteOptions`, `login`, or WordPress-only steps.\n\n### Shorthands vs Steps\n\nShorthands (`login`, `plugins`, `siteOptions`, `constants`) are expanded and prepended to `steps` in an **unspecified order**. Use explicit steps when execution order matters.\n\n## Resource References\n\nResources tell Playground where to find files. Used by `installPlugin`, `installTheme`, `writeFile`, `writeFiles`, `importWxr`, etc.\n\n| Resource Type | Required Fields | Example |\n|--------------|----------------|---------|\n| `wordpress.org\u002Fplugins` | `slug` | `{ \"resource\": \"wordpress.org\u002Fplugins\", \"slug\": \"woocommerce\" }` |\n| `wordpress.org\u002Fthemes` | `slug` | `{ \"resource\": \"wordpress.org\u002Fthemes\", \"slug\": \"astra\" }` |\n| `url` | `url` | `{ \"resource\": \"url\", \"url\": \"https:\u002F\u002Fexample.com\u002Fplugin.zip\" }` |\n| `git:directory` | `url`, `ref` | See below |\n| `literal` | `name`, `contents` | `{ \"resource\": \"literal\", \"name\": \"file.txt\", \"contents\": \"hello\" }` |\n| `literal:directory` | `name`, `files` | See below |\n| `bundled` | `path` | References a file within a blueprint bundle (e.g. `{ \"resource\": \"bundled\", \"path\": \"\u002Fplugin.zip\" }`) |\n| `zip` | `inner` | Wraps another resource in a ZIP — use when a step expects a zip but your source isn't one (e.g. wrapping a `url` resource pointing to a raw directory) |\n\n### git:directory — Installing from GitHub\n\n```json\n{\n  \"resource\": \"git:directory\",\n  \"url\": \"https:\u002F\u002Fgithub.com\u002FWordPress\u002Fgutenberg\",\n  \"ref\": \"trunk\",\n  \"refType\": \"branch\",\n  \"path\": \"\u002F\"\n}\n```\n\n- When using a branch or tag name for `ref`, you **must** set `refType` (`\"branch\"` | `\"tag\"` | `\"commit\"` | `\"refname\"`). Without it, only `\"HEAD\"` resolves reliably.\n- `path` selects a subdirectory (defaults to repo root).\n\n### literal:directory — Inline File Trees\n\n```json\n{\n  \"resource\": \"literal:directory\",\n  \"name\": \"my-plugin\",\n  \"files\": {\n    \"plugin.php\": \"\u003C?php \u002F* Plugin Name: My Plugin *\u002F ?>\",\n    \"includes\": {\n      \"helper.php\": \"\u003C?php \u002F\u002F helper code ?>\"\n    }\n  }\n}\n```\n\n- `files` uses nested objects for subdirectories — keys are filenames or directory names, values are **plain strings** (file content) or **objects** (subdirectories). Never use resource references as values.\n- **Do NOT use path separators in keys** (e.g. `\"includes\u002Fhelper.php\"` is wrong — use a nested `\"includes\": { \"helper.php\": \"...\" }` object).\n\n## Steps Reference\n\nEvery step requires `\"step\": \"\u003Cname>\"`. Any step can optionally include `\"progress\": { \"weight\": 1, \"caption\": \"Installing...\" }` for UI feedback.\n\n### Plugin & Theme Installation\n\n```json\n{\n  \"step\": \"installPlugin\",\n  \"pluginData\": { \"resource\": \"wordpress.org\u002Fplugins\", \"slug\": \"gutenberg\" },\n  \"options\": { \"activate\": true, \"targetFolderName\": \"gutenberg\" },\n  \"ifAlreadyInstalled\": \"overwrite\"\n}\n```\n\n```json\n{\n  \"step\": \"installTheme\",\n  \"themeData\": { \"resource\": \"wordpress.org\u002Fthemes\", \"slug\": \"twentytwentyfour\" },\n  \"options\": { \"activate\": true, \"importStarterContent\": true },\n  \"ifAlreadyInstalled\": \"overwrite\"\n}\n```\n\n- Use `pluginData` \u002F `themeData` — **NOT** the deprecated `pluginZipFile` \u002F `themeZipFile`.\n- `pluginData` \u002F `themeData` accept any FileReference or DirectoryReference — a zip URL, a `wordpress.org\u002Fplugins` slug, a `git:directory`, or a `literal:directory` (no `zip` wrapper needed).\n- `options.activate` controls activation. No need for a separate `activatePlugin`\u002F`activateTheme` step when using `installPlugin`\u002F`installTheme`.\n- `ifAlreadyInstalled`: `\"overwrite\"` | `\"skip\"` | `\"error\"`\n\n### Activation (standalone)\n\nOnly needed for plugins\u002Fthemes already on disk (e.g. after `writeFile`\u002F`writeFiles`):\n\n```json\n{ \"step\": \"activatePlugin\", \"pluginPath\": \"my-plugin\u002Fmy-plugin.php\" }\n```\n```json\n{ \"step\": \"activateTheme\", \"themeFolderName\": \"twentytwentyfour\" }\n```\n\n### File Operations\n\n```json\n{ \"step\": \"writeFile\", \"path\": \"\u002Fwordpress\u002Fwp-content\u002Fmu-plugins\u002Fcustom.php\", \"data\": \"\u003C?php \u002F\u002F code\" }\n```\n\n`data` accepts a plain string (as shown above) or a resource reference (e.g. `{ \"resource\": \"url\", \"url\": \"https:\u002F\u002F...\" }`).\n\n```json\n{\n  \"step\": \"writeFiles\",\n  \"writeToPath\": \"\u002Fwordpress\u002Fwp-content\u002Fplugins\u002F\",\n  \"filesTree\": {\n    \"resource\": \"literal:directory\",\n    \"name\": \"my-plugin\",\n    \"files\": {\n      \"plugin.php\": \"\u003C?php\\n\u002F*\\nPlugin Name: My Plugin\\n*\u002F\",\n      \"includes\": {\n        \"helpers.php\": \"\u003C?php \u002F\u002F helpers\"\n      }\n    }\n  }\n}\n```\n\n**`writeFiles` requires a DirectoryReference** (`literal:directory` or `git:directory`) as `filesTree` — not a plain object.\n\nOther file operations: `mkdir`, `cp`, `mv`, `rm`, `rmdir`, `unzip`.\n\n### Running Code\n\n**runPHP:**\n```json\n{ \"step\": \"runPHP\", \"code\": \"\u003C?php require '\u002Fwordpress\u002Fwp-load.php'; update_option('key', 'value');\" }\n```\n**GOTCHA:** You must `require '\u002Fwordpress\u002Fwp-load.php';` to use any WordPress functions.\n\n**wp-cli:**\n```json\n{ \"step\": \"wp-cli\", \"command\": \"wp post create --post_type=page --post_title='Hello' --post_status=publish\" }\n```\nThe step name is `wp-cli` (with hyphen), NOT `cli` or `wpcli`.\n\n**runSql:**\n```json\n{ \"step\": \"runSql\", \"sql\": { \"resource\": \"literal\", \"name\": \"q.sql\", \"contents\": \"UPDATE wp_options SET option_value='val' WHERE option_name='key';\" } }\n```\n\n### Site Configuration\n\n```json\n{ \"step\": \"setSiteOptions\", \"options\": { \"blogname\": \"My Site\", \"blogdescription\": \"A tagline\" } }\n```\n```json\n{ \"step\": \"defineWpConfigConsts\", \"consts\": { \"WP_DEBUG\": true } }\n```\n```json\n{ \"step\": \"setSiteLanguage\", \"language\": \"en_US\" }\n```\n```json\n{ \"step\": \"defineSiteUrl\", \"siteUrl\": \"https:\u002F\u002Fexample.com\" }\n```\n\n### Other Steps\n\n| Step | Key Properties |\n|------|---------------|\n| `login` | `username?`, `password?` (default `\"admin\"` \u002F `\"password\"`) |\n| `enableMultisite` | (no required props) |\n| `importWxr` | `file` (FileReference) |\n| `importThemeStarterContent` | `themeSlug?` |\n| `importWordPressFiles` | `wordPressFilesZip`, `pathInZip?` — imports a full WordPress directory from a zip |\n| `request` | `request: { url, method?, headers?, body? }` |\n| `updateUserMeta` | `userId`, `meta` |\n| `runWpInstallationWizard` | `options?` — runs the WP install wizard with given options |\n| `resetData` | (no props) |\n\n## Common Patterns\n\n### Inline mu-plugin (quick custom code)\n\n```json\n{\n  \"step\": \"writeFile\",\n  \"path\": \"\u002Fwordpress\u002Fwp-content\u002Fmu-plugins\u002Fcustom.php\",\n  \"data\": \"\u003C?php\\n\u002F\u002F mu-plugins load automatically — no activation needed, no require wp-load.php\\nadd_filter('show_admin_bar', '__return_false');\"\n}\n```\n\n### Inline plugin with multiple files\n\n```json\n{\n  \"step\": \"writeFiles\",\n  \"writeToPath\": \"\u002Fwordpress\u002Fwp-content\u002Fplugins\u002F\",\n  \"filesTree\": {\n    \"resource\": \"literal:directory\",\n    \"name\": \"my-plugin\",\n    \"files\": {\n      \"my-plugin.php\": \"\u003C?php\\n\u002F*\\nPlugin Name: My Plugin\\n*\u002F\\nrequire __DIR__ . '\u002Fincludes\u002Fmain.php';\",\n      \"includes\": {\n        \"main.php\": \"\u003C?php \u002F\u002F main logic\"\n      }\n    }\n  }\n}\n```\n\nThen activate it with a separate step:\n\n```json\n{ \"step\": \"activatePlugin\", \"pluginPath\": \"my-plugin\u002Fmy-plugin.php\" }\n```\n\n### Plugin from a GitHub branch\n\n```json\n{\n  \"step\": \"installPlugin\",\n  \"pluginData\": {\n    \"resource\": \"git:directory\",\n    \"url\": \"https:\u002F\u002Fgithub.com\u002Fuser\u002Frepo\",\n    \"ref\": \"feature-branch\",\n    \"refType\": \"branch\",\n    \"path\": \"\u002F\"\n  }\n}\n```\n\n## Common Mistakes\n\n| Mistake | Correct |\n|---------|---------|\n| `pluginZipFile` \u002F `themeZipFile` | `pluginData` \u002F `themeData` |\n| `\"step\": \"cli\"` | `\"step\": \"wp-cli\"` |\n| Flat object as `writeFiles.filesTree` | Must be a `literal:directory` or `git:directory` resource |\n| Path separators in `files` keys | Use nested objects for subdirectories |\n| `runPHP` without `wp-load.php` | Always `require '\u002Fwordpress\u002Fwp-load.php';` for WP functions |\n| Invented top-level keys | Only documented keys work — schema rejects unknown properties |\n| Inventing proxy URLs for GitHub | Use `git:directory` resource type |\n| Omitting `refType` with branch\u002Ftag `ref` | Required — only `\"HEAD\"` works without it |\n| Resource references in `literal:directory` `files` values | Values must be plain strings (content) or objects (subdirectories) — never resource refs |\n| `features.debug` or other invented feature keys | `features` only supports `networking` and `intl` — use `constants: { \"WP_DEBUG\": true }` for debug mode |\n| `require wp-load.php` in mu-plugin code | Only needed in `runPHP` steps — mu-plugins already run within WordPress |\n| Schema URL with `.org` domain | Must be `playground.wordpress.net`, not `playground.wordpress.org` |\n\n## Full Reference\n\nThis skill covers the most common steps and patterns. For the complete API, see:\n\n- **Blueprint docs:** https:\u002F\u002Fwordpress.github.io\u002Fwordpress-playground\u002Fblueprints\n- **JSON schema:** https:\u002F\u002Fplayground.wordpress.net\u002Fblueprint-schema.json\n\nAdditional steps not covered above: `runPHPWithOptions` (run PHP with custom `ini` settings), `runWpInstallationWizard`, and resource types `vfs` and `bundled` (for advanced embedding scenarios).\n\n## Blueprint Bundles\n\nBundles are self-contained packages that include a `blueprint.json` along with all the resources it references (plugins, themes, WXR files, etc.). Instead of hosting assets externally, bundle them alongside the blueprint.\n\n### Bundle Structure\n\n```\nmy-bundle\u002F\n├── blueprint.json          ← must be at the root\n├── my-plugin.zip           ← zipped plugin directory\n├── theme.zip\n└── content\u002F\n    └── sample-content.wxr\n```\n\nPlugins and themes must be zipped before bundling — `installPlugin` expects a zip, not a raw directory. To create the zip from a plugin directory:\n\n```bash\ncd my-bundle\nzip -r my-plugin.zip my-plugin\u002F\n```\n\n### Referencing Bundled Resources\n\nUse the `bundled` resource type to reference files within the bundle:\n\n```json\n{\n  \"step\": \"installPlugin\",\n  \"pluginData\": {\n    \"resource\": \"bundled\",\n    \"path\": \"\u002Fmy-plugin.zip\"\n  },\n  \"options\": { \"activate\": true }\n}\n```\n\n```json\n{\n  \"step\": \"importWxr\",\n  \"file\": {\n    \"resource\": \"bundled\",\n    \"path\": \"\u002Fcontent\u002Fsample-content.wxr\"\n  }\n}\n```\n\n### Creating a Bundle Step by Step\n\n1. Create the bundle directory and add `blueprint.json` at its root.\n2. Write your plugin\u002Ftheme source files in a subdirectory (e.g. `my-plugin\u002Fmy-plugin.php`).\n3. Zip the plugin directory: `zip -r my-plugin.zip my-plugin\u002F`\n4. Reference it in `blueprint.json` using `{ \"resource\": \"bundled\", \"path\": \"\u002Fmy-plugin.zip\" }`.\n\nFull example — a bundle that installs a custom plugin:\n\n```\ndashboard-widget-bundle\u002F\n├── blueprint.json\n├── dashboard-widget.zip        ← zip of dashboard-widget\u002F\n└── dashboard-widget\u002F           ← plugin source (kept for editing)\n    └── dashboard-widget.php\n```\n\n```json\n{\n  \"$schema\": \"https:\u002F\u002Fplayground.wordpress.net\u002Fblueprint-schema.json\",\n  \"landingPage\": \"\u002Fwp-admin\u002F\",\n  \"preferredVersions\": { \"php\": \"8.3\", \"wp\": \"latest\" },\n  \"steps\": [\n    { \"step\": \"login\" },\n    {\n      \"step\": \"installPlugin\",\n      \"pluginData\": { \"resource\": \"bundled\", \"path\": \"\u002Fdashboard-widget.zip\" },\n      \"options\": { \"activate\": true }\n    }\n  ]\n}\n```\n\n### Distribution Formats\n\n| Format | How to use |\n|--------|-----------|\n| ZIP file (remote) | Website: `https:\u002F\u002Fplayground.wordpress.net\u002F?blueprint-url=https:\u002F\u002Fexample.com\u002Fbundle.zip` |\n| ZIP file (local) | CLI: `npx @wp-playground\u002Fcli server --blueprint=.\u002Fbundle.zip` |\n| Local directory | CLI: `npx @wp-playground\u002Fcli server --blueprint=.\u002Fmy-bundle\u002F --blueprint-may-read-adjacent-files` |\n| Git repository directory | Point `blueprint-url` at a repo directory containing `blueprint.json` |\n\n**GOTCHA:** Local directory bundles always need `--blueprint-may-read-adjacent-files` for the CLI to read bundled resources. Without it, any `\"resource\": \"bundled\"` reference will fail with a \"File not found\" error. ZIP bundles don't need this flag — all files are self-contained inside the archive.\n\n## Testing Blueprints\n\n### Inline Blueprints (quick test, no bundles)\n\nMinify the blueprint JSON (no extra whitespace), encode it once with `encodeURIComponent()`, prepend `https:\u002F\u002Fplayground.wordpress.net\u002F#`, and open the URL in a browser:\n\n```\nhttps:\u002F\u002Fplayground.wordpress.net\u002F#%7B%22%24schema%22%3A%22https%3A%2F%2Fplayground.wordpress.net%2Fblueprint-schema.json%22%2C%22preferredVersions%22%3A%7B%22php%22%3A%228.3%22%2C%22wp%22%3A%22latest%22%7D%2C%22steps%22%3A%5B%7B%22step%22%3A%22login%22%7D%5D%7D\n```\n\nVery large blueprints may exceed browser URL length limits; use the CLI or a hosted Blueprint URL instead. For share-link details, use `wp-playground\u002Freferences\u002Fwebsite.md`.\n\n### Local CLI Testing\n\n**Interactive server** (keeps running, opens in browser):\n```bash\n# Directory bundle — requires --blueprint-may-read-adjacent-files\nnpx @wp-playground\u002Fcli server --blueprint=.\u002Fmy-bundle\u002F --blueprint-may-read-adjacent-files\n\n# ZIP bundle — self-contained, no extra flags needed\nnpx @wp-playground\u002Fcli server --blueprint=.\u002Fbundle.zip\n```\n\n**Headless validation** (runs blueprint and exits):\n```bash\nnpx @wp-playground\u002Fcli run-blueprint --blueprint=.\u002Fmy-bundle\u002F --blueprint-may-read-adjacent-files\n```\n\n### Testing with WordPress Playground\n\nUse the `wp-playground` skill for local or browser testing. For CLI testing, follow `wp-playground\u002Freferences\u002Fcli.md` with `--blueprint=\u003Cpath-or-url>`; for directory bundles, pass `--blueprint-may-read-adjacent-files`.\n",{"name":5,"description":7,"compatibility":24},"WordPress 7.0+, PHP 7.4.0+. Optionally Playground CLI or a browser","main","f817b1049ffbf34e5609b8222a18dd91365c08fc",".agents\u002Fskills\u002Fblueprint","https:\u002F\u002Fgithub.com\u002Fprocyon-creative\u002Fwp-dario-provider","https:\u002F\u002Fgithub.com\u002Fprocyon-creative","procyoncreative.com","2026-10-08 08:08:11",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add procyon-creative\u002Fwp-dario-provider --skill blueprint",{"tool":38,"command":39},"bunx","bunx skills add procyon-creative\u002Fwp-dario-provider --skill blueprint",{"tool":41,"command":42},"pnpm","pnpm dlx skills add procyon-creative\u002Fwp-dario-provider --skill blueprint","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fprocyon-creative\u002Fwp-dario-provider\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fblueprint\u002FSKILL.md",true,[],[47,54,61,68,75,82],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":19},"01M72WMR8AJ6E3XP3BPW1RVZ6Y","writing-shape","Writing, exploit: shape raw material into an article, paragraph by paragraph.","https:\u002F\u002Fgithub.com\u002Fprocyon-creative\u002Fwp-dario-provider\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwriting-shape\u002FSKILL.md",[],[],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":19},"01M72WMQ162SMJ423XYP93VK0G","writing-fragments","Writing, explore: mine raw fragments, no structure yet.","https:\u002F\u002Fgithub.com\u002Fprocyon-creative\u002Fwp-dario-provider\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwriting-fragments\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M72WMN27YT9F31ZTTRZ898NN","writing-for-agents","Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.","https:\u002F\u002Fgithub.com\u002Fprocyon-creative\u002Fwp-dario-provider\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwriting-for-agents\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M72WMKJEJQXHR67PW7KEE5YB","writing-beats","Writing, exploit; assemble raw material into a journey of beats, grounding each term before a beat leans on it.","https:\u002F\u002Fgithub.com\u002Fprocyon-creative\u002Fwp-dario-provider\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwriting-beats\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M72WMHMM3GQD4P2TJ3EQQCC5","wpds","Use when building UIs leveraging the WordPress Design System (WPDS) and its components, tokens, patterns, etc.","https:\u002F\u002Fgithub.com\u002Fprocyon-creative\u002Fwp-dario-provider\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwpds\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M72WMECG0CCPPSQ1BTCFWY7E","wp-wpcli-and-ops","Use when working with WP-CLI (wp) for WordPress operations: safe search-replace, db export\u002Fimport, plugin\u002Ftheme\u002Fuser\u002Fcontent management, cron, cache flushing, multisite, and scripting\u002Fautomation with wp-cli.yml.","https:\u002F\u002Fgithub.com\u002Fprocyon-creative\u002Fwp-dario-provider\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwp-wpcli-and-ops\u002FSKILL.md",[],[]]