Agent skill

Wp Test Strategy

by jorgerosal in jorgerosal/wordpress-skills

WordPress testing strategy and review guidance. An agent skill from jorgerosal/wordpress-skills.

MITAuto-check passedTesting & QA

Install Wp Test Strategy

skills CLI
$ npx skills add jorgerosal/wordpress-skills --skill wp-test-strategy -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install jorgerosal/wordpress-skills wp-test-strategy --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/jorgerosal/wordpress-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/claude-skills/wp-test-strategy .claude/skills/wp-test-strategy && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
wp-test-strategy
GitHub stars
101
Token cost
~974 tokens
SKILL.md length
350 words
Files
3 (incl. references)
Skills in repo
35
Repo updated
First seen
Licence
MIT

At a glance

WordPress testing strategy and review guidance. An agent skill from jorgerosal/wordpress-skills.

  • Works in 4 steps: Identify the change surface → Map the risk → Choose test depth → …
  • Reviewing PHPUnit coverage
  • SKILL.md covers Overview, When to Use, Code Review Workflow and Test Selection Heuristics, plus 3 more sections
  • Calls rg

What it does

Wp Test Strategy is an agent skill from jorgerosal/wordpress-skills. WordPress testing strategy and review guidance. Use when planning or reviewing PHPUnit coverage, integration tests, block tests, e2e tests, Playwright flows, WooCommerce test coverage, fixture design, or when user mentions "test strategy", "WordPress tests", "PHPUnit", "integration tests", "Playwright", "e2e", "test coverage", "testing plan", or "regression tests". Helps decide what to test, how deeply to test, and where to focus coverage in WordPress plugins, themes, blocks, and WooCommerce extensions.

Its SKILL.md is about 970 tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including reference files (for example `references/test-layer-guide.md` and `references/wordpress-test-scenarios.md`).

It sits in Testing & QA, covering Test strategy, Integration testing and End-to-end testing. It works with WordPress, WooCommerce and Playwright. The repository describes itself as: ✅ 🎉 Claude skills and Codex skills for Wordpress development❗️. The licence is MIT.

When your agent uses it

  • Reviewing PHPUnit coverage
  • Integration tests
  • Playwright flows
  • WooCommerce test coverage

Example prompts

  • “test strategy”
  • “WordPress tests”
  • “PHPUnit”
  • “/wp-test-strategy”

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Identify the change surface
  2. Map the risk
  3. Choose test depth
  4. Report recommendations

What it can do on your machine

Read from SKILL.md and the folder at commit 8c96442. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • rg

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Wp Test Strategy loads about 974 tokens when it runs, and up to ~1.2k if it reads all its reference files. Until then it costs about 131 tokens; SKILL.md has 350 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~131
When it runs · the whole SKILL.md, loaded when a task matches
~974
With references · SKILL.md plus every file in references/, read only if the agent opens them
~1.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from jorgerosal/wordpress-skills at commit 8c96442, republished under its MIT licence (© jorgerosal). 350 words, ~974 tokens.

Download SKILL.mdSave it as .claude/skills/wp-test-strategy/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
wp-test-strategy
description
WordPress testing strategy and review guidance. Use when planning or reviewing PHPUnit coverage, integration tests, block tests, e2e tests, Playwright flows, WooCommerce test coverage, fixture design, or when user mentions "test strategy", "WordPress tests", "PHPUnit", "integration tests", "Playwright", "e2e", "test coverage", "testing plan", or "regression tests". Helps decide what to test, how deeply to test, and where to focus coverage in WordPress plugins, themes, blocks, and WooCommerce extensions.

WordPress Test Strategy Skill

Overview

Systematic testing strategy guidance for WordPress projects. Core principle: Test depth should match risk, and the test pyramid should reflect the WordPress surface area involved. Review covers unit tests, WordPress integration tests, REST endpoint tests, block tests, browser or E2E flows, WooCommerce regressions, fixtures, and release-risk prioritization.

When to Use

Use when:

  • Deciding what tests to add for a feature or fix
  • Reviewing missing coverage in a plugin or theme
  • Planning regression tests before release
  • Choosing between unit, integration, and E2E coverage
  • Mapping block, REST, admin, or WooCommerce behavior to tests

Don't use for:

  • Code review that does not involve testing decisions
  • CI system debugging only
  • Performance benchmarking alone

Code Review Workflow

  1. Identify the change surface

    • Pure PHP logic
    • WordPress integration behavior
    • REST or AJAX flow
    • Block editor behavior
    • Admin screen workflow
    • WooCommerce order/cart/checkout behavior
  2. Map the risk

    • User-facing breakage
    • Data corruption or migration risk
    • Auth/security-sensitive flow
    • Browser interaction complexity
  3. Choose test depth

    • Unit tests for isolated logic
    • Integration tests for WordPress APIs and DB state
    • E2E tests for UI workflows or editor interactions
  4. Report recommendations

    • What should be tested
    • What level of test is appropriate
    • What can be skipped or covered indirectly

Test Selection Heuristics

Show full SKILL.md (145 more words)Show less
Unit Tests

Use for:

  • Pure transformation logic
  • Small helpers
  • Formatting and parsing logic
  • Validation rules decoupled from WP runtime
Integration Tests

Use for:

  • Hooks and filters
  • Option/meta persistence
  • REST endpoints
  • Custom queries
  • Role/capability behavior
E2E or Browser Tests

Use for:

  • Block editor flows
  • Admin forms with JS behavior
  • Checkout, cart, and frontend interactions
  • Accessibility-sensitive interaction flows

Search Patterns for Quick Detection (TST-21)

Use these rg commands to understand current test coverage and likely gaps.

Coverage Discovery
bash
# Test directories and files
rg -n "class .*Test|extends .*TestCase|describe\\(|test\\(" . -g '*.{php,js,jsx,ts,tsx}'

# PHPUnit config or bootstrap
rg -n "phpunit|tests/bootstrap|WP_UnitTestCase" .

# Playwright or E2E indicators
rg -n "playwright|@wordpress/e2e-test-utils|page\.goto|test\\(" . -g '*.{js,ts}'
Gap Signals
bash
# High-risk surfaces with no obvious tests nearby
rg -n "register_rest_route|add_action|add_filter|wp_ajax_|admin_post_|dbDelta|WC_" . -g '*.php'

# Block editor files
rg -n "block.json|edit\\(|save\\(|registerBlockType" . -g '*.{json,js,jsx}'

Reference Files

  • references/test-layer-guide.md - Choosing unit vs integration vs E2E coverage in WordPress projects
  • references/wordpress-test-scenarios.md - Recommended test scenarios for plugins, blocks, themes, REST APIs, and WooCommerce

Output Format (TST-23)

When reporting, organize by:

  1. Surface area under review
  2. Recommended test types
  3. Highest-priority missing coverage
  4. Nice-to-have coverage

If the existing tests are already sufficient, say that clearly and mention any residual risk or missing edge-case coverage.

© jorgerosal, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files (references) in claude-skills/wp-test-strategy of jorgerosal/wordpress-skills.

  • SKILL.md
  • references/test-layer-guide.md
  • references/wordpress-test-scenarios.md

Open the folder on GitHubat commit 8c96442

Compare with similar skills

Wp Test Strategy next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Wp Test Strategy compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Wp Test Strategy this skilljorgerosal/wordpress-skills101—~974Automated safety check: PassMIT
Dotnet Testingnovotnyllc/dotnet-artisan233—~972Automated safety check: PassMIT
Senior QAalirezarezvani/claude-skills28k1 repos~2.1kAutomated safety check: PassMIT
Testing Guidemobazha/mobazha-unified165—~1.7kAutomated safety check: PassMPL-2.0
Coveryonatangross/orchestkit289—~6.3kAutomated safety check: NotesMIT
Angular TestingKilo-Org/kilo-marketplace190—~2.9kAutomated safety check: PassMIT

Similar skills

  • Dotnet Testing

    novotnyllc/dotnet-artisan

    Defines .NET test strategy and implementation patterns across xUnit v3 (Facts, Theories, fixtures, IAsyncLifetime), integration testing (WebApplicationFactory, Testcontainers), Aspire testing…

    233 GitHub stars~972 tokensUpdated yesterday
    Testing & QAAuto-check passed
  • Senior QA

    alirezarezvani/claude-skills

    Generates unit tests, integration tests, and E2E tests for React/Next.js applications.

    28k GitHub starsUsed in 1 repo~2.1k tokens
    Testing & QAAuto-check passed
  • Testing Guide

    mobazha/mobazha-unified

    Guide for writing unit tests (Vitest), integration tests, and E2E tests (Playwright) following Mobazha project conventions.

    165 GitHub stars~1.7k tokensUpdated 5 days ago
    Testing & QAAuto-check passed
  • Cover

    yonatangross/orchestkit

    Generate tests that do not exist yet. An agent skill from yonatangross/orchestkit.

    289 GitHub stars~6.3k tokensUpdated yesterday
    Testing & QAAuto-check: notes
  • Angular Testing

    Kilo-Org/kilo-marketplace

    Write unit and integration tests for Angular v20+ applications using Vitest or Jasmine with TestBed and modern testing patterns.

    190 GitHub stars~2.9k tokensUpdated 10 days ago
    Testing & QAAuto-check passed
  • Activitypub Testing

    Microck/ordinary-claude-skills

    Testing patterns for PHPUnit and Playwright E2E tests. An agent skill from Microck/ordinary-claude-skills.

    403 GitHub stars~712 tokensUpdated 1 mo ago
    Testing & QAAuto-check passed

More from jorgerosal/wordpress-skills

All 35 skills in this repo
  • Wp Accessibility Review

    jorgerosal/wordpress-skills

    WordPress accessibility review for themes, blocks, plugins, and admin interfaces.

    101 GitHub stars~1.1k tokensUpdated 4 mo ago
    Auto-check passed
  • Wp Acf And Content Modeling

    jorgerosal/wordpress-skills

    WordPress ACF and content modeling review. An agent skill from jorgerosal/wordpress-skills.

    101 GitHub stars~3.2k tokensUpdated 4 mo ago
    Auto-check passed
  • Wp Admin UI Development

    jorgerosal/wordpress-skills

    WordPress admin UI review and development guidance. An agent skill from jorgerosal/wordpress-skills.

    101 GitHub stars~1.2k tokensUpdated 4 mo ago
    Auto-check passed
  • Wp CI CD And Release Engineering

    jorgerosal/wordpress-skills

    WordPress CI/CD and release engineering review guidance. An agent skill from jorgerosal/wordpress-skills.

    101 GitHub stars~1.7k tokensUpdated 4 mo ago
    Auto-check passed
  • Wp Headless And Wpgraphql

    jorgerosal/wordpress-skills

    Headless WordPress and WPGraphQL review guidance. An agent skill from jorgerosal/wordpress-skills.

    101 GitHub stars~1.7k tokensUpdated 4 mo ago
    Auto-check passed
  • Wp Migration Upgrade Review

    jorgerosal/wordpress-skills

    WordPress migration and upgrade review. An agent skill from jorgerosal/wordpress-skills.

    101 GitHub stars~1.1k tokensUpdated 4 mo ago
    Auto-check passed

Categories

Questions about Wp Test Strategy

What does Wp Test Strategy do?

WordPress testing strategy and review guidance. An agent skill from jorgerosal/wordpress-skills. Wp Test Strategy is an agent skill from jorgerosal/wordpress-skills. WordPress testing strategy and review guidance.

When should I use Wp Test Strategy?

Wp Test Strategy fits situations like: reviewing PHPUnit coverage; integration tests; playwright flows; wooCommerce test coverage.

How do I install Wp Test Strategy in Claude Code?

Run `npx skills add jorgerosal/wordpress-skills --skill wp-test-strategy -a claude-code`. Or copy the skill folder (claude-skills/wp-test-strategy in jorgerosal/wordpress-skills) into .claude/skills/wp-test-strategy in your project. Claude Code loads it when a task matches its description.

How do I install Wp Test Strategy in Codex?

Run `npx skills add jorgerosal/wordpress-skills --skill wp-test-strategy -a codex`. Or copy the skill folder (claude-skills/wp-test-strategy in jorgerosal/wordpress-skills) into .agents/skills/wp-test-strategy in your project. Codex loads it when a task matches its description.

Can I use Wp Test Strategy in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add jorgerosal/wordpress-skills --skill wp-test-strategy -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/wp-test-strategy, .gemini/skills/wp-test-strategy, .github/skills/wp-test-strategy and .opencode/skills/wp-test-strategy in your project.

What does Wp Test Strategy need to run?

Going by SKILL.md and its folder, Wp Test Strategy needs the command-line tools its instructions call (rg).

Does Wp Test Strategy access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Wp Test Strategy safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Wp Test Strategy use?

Wp Test Strategy is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Wp Test Strategy use?

About 974 tokens (SKILL.md is roughly 3.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 254 tokens, read only when the agent opens those files.

What are the alternatives to Wp Test Strategy?

Skills that share tags, products or a category with Wp Test Strategy: Dotnet Testing (novotnyllc/dotnet-artisan, 233 stars), Senior QA (alirezarezvani/claude-skills, 28k stars), Testing Guide (mobazha/mobazha-unified, 165 stars) and Cover (yonatangross/orchestkit, 289 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Wp Test Strategy?

jorgerosal (a GitHub user) maintains it in jorgerosal/wordpress-skills, which has 101 GitHub stars. The repository holds 35 skills in this directory. The repository was last updated on June 7, 2026.

Source: jorgerosal/wordpress-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.