wp-environments

wp-environments is a skill for Claude Code from yojahny55/claude-wp-builder. It costs 20 tokens per session (2,980 once invoked), scanned B, original, MIT.

A WordPress setup guide that detects your local tools and project settings, then chooses the right command-line tools and configuration approach.

In plain words
What is it for?
Use it to set up or create WordPress projects, choose PHP versions and web servers, generate configuration files, and run the correct WP-CLI commands.
Why use it?
It reduces setup mistakes caused by differences between Docker, native servers, DDEV, Lando, and other local environments.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Part of the claude-wp-builder plugin — 15 skills, 30 commands, 15 agents shipped together

Good fit Use it to set up or create WordPress projects, choose PHP versions and web servers, generate configuration files, and run the correct WP-CLI commands.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yojahny55/claude-wp-builder/wp-environments
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add yojahny55/claude-wp-builder --skill wp-environments
Clone the repo
git clone --depth 1 https://github.com/yojahny55/claude-wp-builder

Made for: Claude Code.

Or install claude-wp-builder, the plugin that ships this one along with the rest of its 15 skills, 30 commands, 15 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for wp-environments

README.md
[![agentmods](https://agentmods.dev/badge/skills/yojahny55/claude-wp-builder/wp-environments/github.svg)](https://agentmods.dev/skills/yojahny55/claude-wp-builder/wp-environments)
Your own site
<a href="https://agentmods.dev/skills/yojahny55/claude-wp-builder/wp-environments"><img src="https://agentmods.dev/badge/skills/yojahny55/claude-wp-builder/wp-environments/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for wp-environments

Your own site · 80×15
<a href="https://agentmods.dev/skills/yojahny55/claude-wp-builder/wp-environments"><img src="https://agentmods.dev/badge/skills/yojahny55/claude-wp-builder/wp-environments.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,980 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00020 $0.02980
Opus 5 $0.00010 $0.01490
Sonnet 5 $0.00004 $0.00596
Haiku 4.5 $0.00002 $0.00298

Measured 9d ago against content hash b0da0a01ef96, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade B, and why

wp-environments scanned grade B with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

| Fedora/RHEL | `dnf` | `sudo dnf install php8.3 php8.3-fpm php8.3-mysql php8.3-mbstring php8.3-xml php8.3-gd php8.3-zip php8.3-intl` | Update PHP-FPM pool and restart service |

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

"extensions": ["mysql", "curl", "mbstring", "xml", "gd", "zip", "intl"]
skills/wp-environments/SKILL.md · 347 lines

How it starts

The opening of the file, as written. The whole thing — 347 lines — stays where its author put it; the contents beside it link to each section on GitHub.

WordPress Environment Detection & Configuration

This skill teaches how to detect the local development environment, read project configuration, select the correct WP-CLI wrapper, generate config files from templates, and manage PHP versions. It applies whenever a user requests environment setup or when a .wp-create.json manifest is present in the project root.


When This Skill Applies

  • User requests WordPress environment setup, creation, or configuration
  • A .wp-create.json file exists in the project root
  • User asks about Docker, native server, DDEV, Lando, or wp-env setup
  • User asks about PHP version management or web server configuration

1. Environment Detection

Run the detection script to discover what tools are available on the system:

bin/wp-env-setup.sh detect

This outputs JSON to stdout. Parse it to understand what is available. The full output structure:

{
  "os": "fedora",
  "package_manager": "dnf",
  "web_servers": {
    "nginx": { "installed": true, "version": "1.24.0", "running": true },
    "apache": { "installed": true, "version": "2.4.58", "running": false },
    "caddy": { "installed": false }
  },
  "php": {
    "versions": ["8.2", "8.3"],
    "active": "8.3",
    "extensions": ["mysql", "curl", "mbstring", "xml", "gd", "zip", "intl"]
  },
  "docker": {
    "installed": true,
    "version": "24.0.7",
    "compose": true
  },
  "tools": {
    "ddev": { "installed": false },
    "lando": { "installed": false },
    "wp-env": { "installed": false },
    "wp-cli": { "installed": true, "version": "2.9.0" }
  },
  "database": {
    "mariadb": { "installed": true, "version": "10.11", "running": true },
    "mysql": { "installed": false }
  }
}

Use this output to:

  • Present available environment options to the user
  • Auto-select the best environment type when the user does not specify
  • Determine which web servers, PHP versions, and database engines are ready

2. Project Manifest: .wp-create.json

Read the full file on GitHub · 347 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 347 lines · 20 tokens per session scan B b0da0a01ef96

Subscribe to this mod's changes

wp-environments is a skill published in the GitHub repository yojahny55/claude-wp-builder (6 stars, last pushed today), licensed MIT. It adds 20 tokens to every session and 2,980 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 2 findings (asks for root, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.