sutchan/agent-skills-hub/blueprint
Claude Code and agent skill by sutchan/agent-skills-hub
- community
- ext:[{"type":"plugin","description":"Custom plugin integration"}]
Checking that the SKILL.md file is still in the repository.
当交付物是 WordPress Playground Blueprint JSON 或 Blueprint 包(含创建、编辑、审查、校验 schema 键、选择 steps/resources、调试 Blueprint 文件)时使用。若仅需运行或分享 Playground 环境,用 wp-playground。
Install
npx vskill@latest install sutchan/agent-skills-hub/blueprintSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as sutchan/agent-skills-hub/blueprint.
WordPress Playground Blueprints
Overview
A Blueprint is a JSON file that declaratively configures a WordPress Playground instance — installing plugins/themes, setting options, running PHP/SQL, manipulating files, and more.
Core principle: Blueprints are trusted JSON-only declarations. No arbitrary JavaScript. They work on web, Node.js, and CLI.
Quick Start Template
Top-Level Properties
All optional. Only documented keys are allowed — the schema rejects unknown properties.
| Property | Type | Notes | |
|---|---|---|---|
$schema | string | Always "https://playground.wordpress.net/blueprint-schema.json" | |
landingPage | string | Relative path, e.g. /wp-admin/ | |
description | string | Deprecated optional top-level description. Prefer meta.description for new Blueprints | |
meta | object | { title, author, description?, categories? } — title and author required | |
preferredVersions | object | { php, wp } — both required when present | |
features | object | { networking?: boolean, intl?: boolean } — only these two keys, nothing else. Networking defaults to true | |
phpExtensionBundles | any | Deprecated/no longer used; the schema leaves the value unconstrained and says to remove it from Blueprints | |
extraLibraries | array | ["wp-cli"] — auto-included when any wp-cli step is present | |
constants | object | Shorthand for defineWpConfigConsts. Values: string/boolean/number | |
plugins | array | Shorthand for installPlugin steps. Strings = wp.org slugs | |
siteOptions | object | Shorthand for setSiteOptions | |
login | boolean or object | true = login as admin. Object = { username?, password? } (both default to "admin"/"password") | |
steps | array | Main execution pipeline. Runs after shorthands |
preferredVersions Values
- 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. - wp: Recent major versions,
"latest","beta","nightly"/"trunk", or a URL to a custom zip. The schema also acceptsfalsefor PHP-only Playground; do not combinewp: falsewith WordPress-only fields such asplugins,siteOptions,login, or WordPress-only steps.
Shorthands vs Steps
Shorthands (login, plugins, siteOptions, constants) are expanded and prepended to steps in an unspecified order. Use explicit steps when execution order matters.
Resource References
Resources tell Playground where to find files. Used by installPlugin, installTheme, writeFile, writeFiles, importWxr, etc.
| Resource Type | Required Fields | Example | |
|---|---|---|---|
wordpress.org/plugins | slug | { "resource": "wordpress.org/plugins", "slug": "woocommerce" } | |
wordpress.org/themes | slug | { "resource": "wordpress.org/themes", "slug": "astra" } | |
url | url | { "resource": "url", "url": "https://example.com/plugin.zip" } | |
git:directory | url, ref | See below | |
literal | name, contents | { "resource": "literal", "name": "file.txt", "contents": "hello" } | |
literal:directory | name, files | See below | |
bundled | path | References a file within a blueprint bundle (e.g. { "resource": "bundled", "path": "/plugin.zip" }) | |
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) |
git:directory — Installing from GitHub
- When using a branch or tag name for
ref, you must setrefType("branch"|"tag"|"commit"|"refname"). Without it, only"HEAD"resolves reliably. pathselects a subdirectory (defaults to repo root).
literal:directory — Inline File Trees
filesuses 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.- Do NOT use path separators in keys (e.g.
"includes/helper.php"is wrong — use a nested"includes": { "helper.php": "..." }object).
Steps Reference
Every step requires "step": "<name>". Any step can optionally include "progress": { "weight": 1, "caption": "Installing..." } for UI feedback.
Plugin & Theme Installation
- Use
pluginData/themeData— NOT the deprecatedpluginZipFile/themeZipFile. pluginData/themeDataaccept any FileReference or DirectoryReference — a zip URL, awordpress.org/pluginsslug, agit:directory, or aliteral:directory(nozipwrapper needed).options.activatecontrols activation. No need for a separateactivatePlugin/activateThemestep when usinginstallPlugin/installTheme.ifAlreadyInstalled:"overwrite"|"skip"|"error"
Activation (standalone)
Only needed for plugins/themes already on disk (e.g. after writeFile/writeFiles):
File Operations
data accepts a plain string (as shown above) or a resource reference (e.g. { "resource": "url", "url": "https://..." }).
`writeFiles` requires a DirectoryReference (literal:directory or git:directory) as filesTree — not a plain object.
Other file operations: mkdir, cp, mv, rm, rmdir, unzip.
Running Code
runPHP:
GOTCHA: You must require '/wordpress/wp-load.php'; to use any WordPress functions.
wp-cli:
The step name is wp-cli (with hyphen), NOT cli or wpcli.
runSql:
Site Configuration
Other Steps
| Step | Key Properties | |
|---|---|---|
login | username?, password? (default "admin" / "password") | |
enableMultisite | (no required props) | |
importWxr | file (FileReference) | |
importThemeStarterContent | themeSlug? | |
importWordPressFiles | wordPressFilesZip, pathInZip? — imports a full WordPress directory from a zip | |
request | request: { url, method?, headers?, body? } | |
updateUserMeta | userId, meta | |
runWpInstallationWizard | options? — runs the WP install wizard with given options | |
resetData | (no props) |
Common Patterns
Inline mu-plugin (quick custom code)
Inline plugin with multiple files
Then activate it with a separate step:
Plugin from a GitHub branch
Common Mistakes
| Mistake | Correct | |
|---|---|---|
pluginZipFile / themeZipFile | pluginData / themeData | |
"step": "cli" | "step": "wp-cli" | |
Flat object as writeFiles.filesTree | Must be a literal:directory or git:directory resource | |
Path separators in files keys | Use nested objects for subdirectories | |
runPHP without wp-load.php | Always require '/wordpress/wp-load.php'; for WP functions | |
| Invented top-level keys | Only documented keys work — schema rejects unknown properties | |
| Inventing proxy URLs for GitHub | Use git:directory resource type | |
Omitting refType with branch/tag ref | Required — only "HEAD" works without it | |
Resource references in literal:directory files values | Values must be plain strings (content) or objects (subdirectories) — never resource refs | |
features.debug or other invented feature keys | features only supports networking and intl — use constants: { "WP_DEBUG": true } for debug mode | |
require wp-load.php in mu-plugin code | Only needed in runPHP steps — mu-plugins already run within WordPress | |
Schema URL with .org domain | Must be playground.wordpress.net, not playground.wordpress.org |
Full Reference
This skill covers the most common steps and patterns. For the complete API, see:
- Blueprint docs: https://wordpress.github.io/wordpress-playground/blueprints
- JSON schema: https://playground.wordpress.net/blueprint-schema.json
Additional steps not covered above: runPHPWithOptions (run PHP with custom ini settings), runWpInstallationWizard, and resource types vfs and bundled (for advanced embedding scenarios).
Blueprint Bundles
Bundles 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.
Bundle Structure
Plugins and themes must be zipped before bundling — installPlugin expects a zip, not a raw directory. To create the zip from a plugin directory:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/blueprint/SKILL.md
Popularity
- Repository stars
- 2
- 7-day trend score
- 5
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
pluginCustom plugin integration
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/sutchan/agent-skills-hub/blueprint)