Skip to content
Skill

Testing wp

Guides an agent through writing and running PHPUnit, Pest and Playwright tests on Acorn

Testing wp is an open-source agent skill for developer tools. It is available on Claude Code.

Scripts
None
Platforms
Claude Code
GitHub stars
14
Last commit
License
MIT
Listing updated

Similar skills

About Testing wp

This skill covers testing a Roots/Acorn WordPress project. It helps the agent pick the cheapest test level that proves a behaviour, from plain unit tests with stubbed WordPress functions to integration tests with WordPress booted and browser tests with Playwright. It asks the agent to follow the project's existing test configuration and naming conventions rather than introducing a second runner.

The workflow has the agent read the project's test config and an existing test first, run the narrowest filter before the full suite, and check that a new test fails when the behaviour is broken on purpose. Before reporting completion it runs the project's formatter, tests, asset build and cache steps where relevant, and it must report only what it actually observed, including any level that could not run.

The skill expects a project with PHPUnit or Pest, and optionally Playwright, plus a runner command for the chosen profile such as Lando or Docker Compose. It includes a table of common failures, such as undefined WordPress functions in unit tests and missing browsers in containers, with fixes for each.

When your agent uses it

Use when writing, running or fixing tests on a Roots/Acorn WordPress project - PHPUnit, Pest, tests/bootstrap.php, WordPress function stubs ("Call to undefined function" in a test), Playwright specs, "run the tests", "is it done", and which runner command runs them. For static analysis use wp-phpstan; for a failing page use roots-debugging.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 4 files (20 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the kivo-wise plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add hekivo/kivo-wise
/plugin install kivo-wise@kivo-wise

Or copy only this skill to ~/.claude/skills/testing-wp:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/hekivo/kivo-wise.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/testing-wp &&
cp -R "$tmp/plugins/kivo-wise/skills/testing-wp" ~/.claude/skills/testing-wp &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/testing-wp inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/testing-wp to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/hekivo/kivo-wise.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/testing-wp &&
cp -R "$tmp/plugins/kivo-wise/skills/testing-wp" ~/.agents/skills/testing-wp &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/testing-wp inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/testing-wp to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/hekivo/kivo-wise.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/testing-wp &&
cp -R "$tmp/plugins/kivo-wise/skills/testing-wp" ~/.cursor/skills/testing-wp &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/testing-wp inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/hekivo/kivo-wise.git --path plugins/kivo-wise/skills/testing-wp

Or copy the folder to ~/.gemini/skills/testing-wp yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/testing-wp:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/hekivo/kivo-wise.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/testing-wp &&
cp -R "$tmp/plugins/kivo-wise/skills/testing-wp" ~/.copilot/skills/testing-wp &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/testing-wp inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/hekivo/kivo-wise.git

Then copy kivo-wise/plugins/kivo-wise/skills/testing-wp into your agent's skills folder as testing-wp. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Test level selection
Guides choosing between unit, integration, HTTP and browser tests based on what the behaviour depends on.
Unit tests without WordPress
Covers bootstrapping stubs before the autoloader and testing logic without booting WordPress.
Pest integration tests
Describes writing tests that run against a booted WordPress and Acorn with a real database.
Playwright browser specs
Covers base URLs, projects, headed and headless runs, and API request tests.
Verification before completion
Sets the evidence required to claim a change is done, including red-then-green checks.
Common failure fixes
Lists typical test errors such as missing functions, empty containers and browser launch failures, with remedies.

Good for

  • Add PHPUnit tests for a service class in an Acorn theme
  • Fix a test failing with an undefined WordPress function
  • Write Playwright specs for a page on a local WordPress site
  • Check whether a change is done by running the project's full test suite
  • Set up Pest integration tests that run against the WordPress database

Testing wp FAQ

Which test runners does Testing wp cover?

It covers PHPUnit, Pest and Playwright, and it asks the agent to follow whichever test configuration the project already has.

Does Testing wp run tests against live environments?

No. Tests that hit a real environment, create real accounts or send mail run only when the user asks for them.

What should I use for static analysis instead?

The skill points static analysis and type checks to the separate wp-phpstan skill, and broken pages without tests to roots-debugging.

How do I install Testing wp in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/testing-wp to use it in all your projects, or to .claude/skills/testing-wp in one project. Or install the kivo-wise plugin, which includes it: /plugin marketplace add hekivo/kivo-wise, then /plugin install kivo-wise@kivo-wise.

Does Testing wp run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Testing wp?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

What are the best alternatives to Testing wp?

The closest alternatives to Testing wp are Acorn stack, Acorn background, Roots debugging, Wp phpstan and Wp hooks lifecycle.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from hekivo/kivo-wise

  1. Writes approved design plans as WordPress block markup and scaffolds missing blocks

    • Open source
    • 14 GitHub stars
    • Developer tools
  2. Maps Figma components to project code blocks through Code Connect, with approval first

    • Open source
    • 14 GitHub stars
    • Design and media
  3. Turns a Figma frame, HTML file or URL into a WordPress page on the Roots stack

    • Open source
    • 14 GitHub stars
    • Developer tools
  4. Turns a Figma frame into neutral section specs for kivo-creator via the Figma MCP server

    • Open source
    • 14 GitHub stars
    • Design and media
  5. Turns an HTML file or URL into kivo-creator section specs with reference screenshots

    • Open source
    • 14 GitHub stars
    • Developer tools
  6. Maps design sections to a project's existing blocks before any code is generated

    • Open source
    • 14 GitHub stars
    • Developer tools