wp-env
Skill by WordPress
Sets up, configures, and troubleshoots local WordPress development environments with @wordpress/env (wp-env). It is a Docker-based tool for WordPress plugin, theme, and core developers.
Install wp-env
Built from the published package, never by AI.
git clone --depth 1 https://github.com/WordPress/agent-skills /tmp/agent-skills && mkdir -p ~/.claude/skills && cp -r /tmp/agent-skills/skills/wp-env ~/.claude/skills/wp-envRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/WordPress/agent-skills /tmp/agent-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/agent-skills/skills/wp-env ~/.gemini/antigravity-cli/skills/wp-envAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
wp-env is a skill for setting up, configuring, and troubleshooting local WordPress development environments built on @wordpress/env. The source describes it as a zero-config, Docker-based environment for plugins, themes, and core. It covers installing wp-env, starting WordPress at localhost:8888, auto-detecting plugin, theme, or core projects, and configuring the environment with a .wp-env.json file.
The skill also explains running WP-CLI, Composer, and PHPUnit inside containers, managing the environment with stop, reset, logs, and cleanup commands, and setting up Xdebug on port 9003. It is aimed at WordPress developers who need a real local instance with a MySQL database. The source recommends the wp-playground skill for quicker, Docker-free setups.
Written from the project's SKILL.md and checked against it.
What it can do
- Environment setupInstalls @wordpress/env and starts a local WordPress instance at localhost:8888.
- Project auto-detectionDetects plugin, theme, or core projects when no .wp-env.json file exists.
- ConfigurationConfigures the environment through .wp-env.json and .wp-env.override.json files.
- Container commandsRuns WP-CLI, Composer, and PHPUnit inside wp-env containers using wp-env run.
- Environment managementStops, resets, shows status, streams logs, and cleans up the environment.
- Xdebug setupStarts the environment with Xdebug modes such as debug, profile, trace, and coverage.
- MultisiteEnables WordPress multisite through the multisite setting in configuration.
- TroubleshootingCovers common failures such as port conflicts, invalid sources, and stale Docker volumes.
What you need
- Docker
- Node.js 18.12.0 or later
- PHP 7.4.0 or later
Try asking
- Set up a local WordPress environment for my plugin project
- Reset my wp-env development database and restart the site
- Enable Xdebug on my local WordPress and show the VS Code config
Good to know
- Requires Docker, unless the experimental Playground runtime is used.
- The Playground runtime swaps MySQL for SQLite and drops wp-env run and the tests environment.
- WordPress.org plugin slugs do not work in config. Use the full ZIP URL.
- Override files replace plugins and themes arrays instead of merging them.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/wp-env/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md9 KB
Alternatives to wp-env
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
wp-env: common questions
Does wp-env need Docker?
wp-env is Docker-based. The source says it can also run without Docker by using Playground as its runtime, which is experimental.
Why does a WordPress.org plugin slug fail in wp-env config?
Bare slugs such as akismet do not work in the source configuration. The source says to use the full ZIP URL for WordPress.org plugins and themes.
What are the default wp-env admin credentials?
The source lists admin as the username and password as the password for the default local WordPress instance.
How do I install wp-env?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is wp-env free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is wp-env safe to use?
It scores 84 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to wp-env?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
