[wp-playground] Split into routing wrapper with cli + website references - #56
Conversation
- Updated wp-playground skill description for clarity on usage. - Added new scenarios for Playground CLI auto-mount workflow and website share URL workflow. - Introduced blueprint current schema keys scenario for Blueprint JSON authoring. - Improved decision tree for routing by intent in the router skill. - Removed outdated references and consolidated CLI command documentation. - Enhanced debugging and website workflow references for better user guidance.
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
| - `plugin=<slug>` and `theme=<slug>`: install WordPress.org assets; repeat the parameter for multiple assets, such as `?plugin=gutenberg&plugin=woocommerce&networking=yes`. | ||
| - `networking=yes|no`: allow or block downloads for plugins, themes, translations, imports, and PR builds. Use `networking=no` or omit networking for offline/simple tests. |
There was a problem hiding this comment.
Installing plugins from URL should be explained in the skill
|
@jonathanbossenger, when you get a chance, could you please take a look at this PR? |
|
@bgrgicak, thank you for your pull request to improve WordPress agent-skills. I used AI to review this PR, and it suggested these changes. Let me know what you think.
Other nitpick items:
|
|
Thanks for the feedback @jonathanbossenger, I addressed it in Refine Playground skill routing guidance. |
|
Thanks @bgrgicak I used AI to re-review the latest update, and it suggested one remaining change. I verified this using a different model/harness.
|
|
Thanks @jonathanbossenger! I addressed your feedback in 0da2e4b |
|
@fellyph the updated Playground skills are biw merged in case you want to announce them. |
|
@bgrgicak I have drafted it. I will send you the preview. |
Summary
Refactors the
wp-playgroundskill into a thin routing wrapper and splits its prior procedure into focused references (cli.md,website.md), clarifies the ownership boundary with theblueprintskill, and adds eval scenarios that cover the new routing.Motivation for the change, related issues
The previous
wp-playgroundSKILL.md mixed CLI commands, browser/share-link tips, and Blueprint guidance into a single procedure, which:blueprintskill,playground.wordpress.netsurface area (Query API,window.playgroundSites, activePlaygroundClient) under a single bullet,This PR makes the split explicit so each skill owns one concern and the router can route by intent.
Implementation details
wp-playgroundbecomes a routing wrapperskills/wp-playground/SKILL.mdis rewritten as a short router: pick Blueprint vs. CLI vs. website vs. debugging, then load the matching reference.blueprintskill.Focused references under
wp-playgroundskills/wp-playground/references/cli.mdcovers@wp-playground/cliworkflows:startfor the common local plugin/theme dev loop,serverfor advanced/CI use, manual--mount,run-blueprint,build-snapshot, version switching, verification, and failure modes.skills/wp-playground/references/website.mdcoversplayground.wordpress.net: URL setup (Query API + Blueprint URLs/fragments), thewindow.playgroundSitessite-manager, and the activewindow.playgroundPlaygroundClient. Includes CORS, persistence, and browser-only constraints.skills/wp-playground/references/debugging.mdis updated to match current CLI flags (--xdebug,--debug,--workers=<n|auto>) and drops stale references like--experimental-multi-worker.references/blueprints.mdandreferences/cli-commands.mdare removed since their content now lives inblueprintand the newcli.mdrespectively.blueprintskill claims schema ownershipskills/blueprint/SKILL.mddescription now explicitly owns Blueprint JSON authoring, validation, and review, and points purely-runtime requests towp-playground.descriptionandphpExtensionBundleskeys, and corrects the supportedpreferredVersions.phpenumeration pluswp: falsesemantics.encodeURIComponent()so it does not silently break for JSON with reserved characters, and points towp-playground/references/website.mdfor share-link guidance.Router updates
skills/wordpress-router/references/decision-tree.mdreplaces the single Playground line with intent-based rules: ambiguous Playground →wp-playground; Blueprint JSON/schema/steps/bundles →blueprint; CLI flows →wp-playground+cli.md; website/share links →wp-playground+website.md.Eval scenarios
Adds four scenarios that exercise the new boundaries:
eval/scenarios/wp-playground-cli-auto-mount.json— local CLI auto-mount workflow goes throughwp-playground+cli.md.eval/scenarios/wp-playground-website-share-url.json— share-link workflow goes throughwp-playground+website.md, with CORS + encoding rules.eval/scenarios/wp-playground-router-delegation.json— multi-part request delegates JSON toblueprintand runtime/share towp-playground.eval/scenarios/blueprint-current-schema-keys.json— Blueprint JSON authoring routes directly toblueprintand avoids deprecated keys.Out of scope
playground-cliorplayground-websiteskills; both stay aswp-playgroundreferences.playground.wordpress.net.Testing Instructions
Read
skills/wp-playground/SKILL.mdand confirm it routes by intent without restating Blueprint schema or full CLI procedures.Open
skills/wp-playground/references/cli.mdandskills/wp-playground/references/website.mdand confirm each covers a single concern (local CLI vs. browser website).Open
skills/blueprint/SKILL.mdand confirm Blueprint JSON authoring (schema keys, deprecated fields, inline-URL encoding) lives there and no longer inwp-playground.Open
skills/wordpress-router/references/decision-tree.mdand walk through the four Playground-related bullets to confirm intent-based routing.Review the four new scenarios under
eval/scenarios/and confirmexpected_behaviorandsuccess_criteriamatch the new skill boundaries.Optional sanity check — run a real local Playground command from the new reference, e.g.:
and confirm the plugin/theme is auto-mounted and active in
wp-admin.🤖 Generated with Claude Code