Plugin Check with Playground CLI
While working on the WordPress.org MCP server (yes, WordPress.org now accepts plugin submissions directly from your you AI assistant), I wanted to make it easy for AI agents to run plugins against Plugin Check before trying to submit a plugin to the Plugin Directory for review.
The best Claude could come up with was a convoluted prompt, explaining how to set up wp-env, set up Plugin Check, and run it locally. It was long, required a lot of steps, and gave ample opportunity for AI agents to get stuck or confused and give up.
While participating in Automattic’s AI Enablement training in New York, I managed to come up with a much easier way with the help of WordPress Playground (Thank you Adam and Bero for you help)! Turns out it supports running inline CLI commands now, albeit still requiring a blueprint.json file.
The whole command can now be condensed down to:
blueprint.jsonIf it accepted an inline json blob as a blueprint, it could even be a one-liner! Albeit a very long one.
Pretty cool what’s possible with WordPress Playground these days. And if you’ve not had a chance to check out WordPress.org’s MCP yet, take it for a spin! Let me know what you think.
#AI #WordPress