Start or stop the WireMock API mock server for UI testing and E2E verification.

GPL-2.0Auto-check: notesTesting & QA

Install Mocks

skills CLI
$ npx skills add woocommerce/woocommerce-ios --skill mocks -a claude-code

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

GitHub CLI
$ gh skill install woocommerce/woocommerce-ios mocks --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/woocommerce/woocommerce-ios.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/mocks .claude/skills/mocks && 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
mocks
GitHub stars
358
Token cost
~291 tokens
SKILL.md length
76 words
Files
1
Skills in repo
12
Repo updated
First seen
Licence
GPL-2.0

At a glance

Start or stop the WireMock API mock server for UI testing and E2E verification.

  • Tasks that involve End-to-end testing
  • SKILL.md covers Start, Stop and Details
  • Calls curl and brew

What it does

Mocks is an agent skill from woocommerce/woocommerce-ios. Start or stop the WireMock API mock server for UI testing and E2E verification.

Its SKILL.md is about 290 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Testing & QA, covering End-to-end testing. It works with WooCommerce. The licence is GPL-2.0.

When your agent uses it

  • Tasks that involve End-to-end testing

Example prompts

  • “/mocks”

Requirements

  • Pre-approved tools (allowed-tools): Bash

What it can do on your machine

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

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Bash

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • curl
    • brew

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

  • Network

    No URLs in SKILL.md. Its commands use curl, which can reach the network depending on how they are called.

    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

Mocks loads about 291 tokens when it runs. Until then it costs about 21 tokens; SKILL.md has 76 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~21
When it runs · the whole SKILL.md, loaded when a task matches
~291

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: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Bash

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 woocommerce/woocommerce-ios at commit b061662, republished under its GPL-2.0 licence (© woocommerce). 76 words, ~291 tokens.

Download SKILL.mdSave it as .claude/skills/mocks/SKILL.md (or your agent's skills folder).
name
mocks
description
Start or stop the WireMock API mock server for UI testing and E2E verification.
allowed-tools
Bash
user-invocable
true
argument-hint
[start|stop]

WireMock Mock Server

Manage the WireMock mock server that serves API responses for UI tests and E2E verification.

Requires Java (brew install openjdk if missing).

Start

bash
./API-Mocks/scripts/start.sh 8282 &
sleep 3

Verify it's running:

bash
curl -s http://localhost:8282/__admin/ > /dev/null && echo "WireMock running on port 8282" || echo "WireMock failed to start"

If Java is not installed, report the prerequisite and stop.

Stop

bash
./API-Mocks/scripts/stop.sh 8282

Uses WireMock's graceful shutdown endpoint. Falls back to kill-by-port if the shutdown endpoint is unreachable:

bash
kill $(lsof -ti:8282) 2>/dev/null

Details

  • Port: 8282 (default)
  • Mappings: Modules/Sources/APIMocks/Resources/mappings/
  • Response files: Modules/Sources/APIMocks/Resources/__files/
  • Start script: API-Mocks/scripts/start.sh
  • WireMock: auto-downloaded on first run (version configured in start.sh)

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

Files

Just SKILL.md in .claude/skills/mocks of woocommerce/woocommerce-ios.

Open the folder on GitHubat commit b061662

Compare with similar skills

Mocks 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.

Mocks compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Mocks this skillwoocommerce/woocommerce-ios358—~291Automated safety check: NotesGPL-2.0
Wp Test Strategyjorgerosal/wordpress-skills100—~974Automated safety check: PassMIT
Web Application Testinganthropics/skills180k51 repos~966Automated safety check: PassApache-2.0
OpenHarness End-to-End EvalsHKUDS/OpenHarness16k1 repos~2.1kAutomated safety check: NotesMIT
playwright-cli Browser Automationgithub/gh-aw5.3k23 repos~2.8kAutomated safety check: PassMIT
Write and Verify Playwright Testsappsmithorg/appsmith41k—~2.9kAutomated safety check: NotesApache-2.0

Similar skills

  • Wp Test Strategy

    jorgerosal/wordpress-skills

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

    100 GitHub stars~974 tokensUpdated 4 mo ago
    Testing & QAAuto-check passed
  • Web Application Testing

    anthropics/skills

    Official

    Tests local web applications with Python Playwright scripts, checking frontend behavior, capturing screenshots and reading browser console logs.

    180k GitHub starsUsed in 51 repos~966 tokens
    Testing & QAAuto-check passed
  • Validates OpenHarness features by running real multi-turn agent loops with live LLM calls against an unfamiliar codebase, checking actual tool execution.

    16k GitHub starsUsed in 1 repo~2.1k tokens
    Testing & QAAuto-check: notes
  • Official

    Drives a real browser from the command line with playwright-cli to open pages, interact, mock requests, save state and work with Playwright tests.

    5.3k GitHub starsUsed in 23 repos~2.8k tokens
    Testing & QAAuto-check passed
  • Writes a Playwright end-to-end test from a prompt, runs it against a live Appsmith deployment and retries with fixes up to three times until it passes.

    41k GitHub stars~2.9k tokensUpdated today
    Testing & QAAuto-check: notes
  • Guides changes and reviews of the Cucumber and Playwright end-to-end suite under `e2e/`: feature files, step definitions, support code, tags, locators and assertions.

    158k GitHub stars~682 tokensUpdated today
    Testing & QAAuto-check passed

More from woocommerce/woocommerce-ios

All 12 skills in this repo
  • Auto Login

    woocommerce/woocommerce-ios

    Launch the WooCommerce app on a simulator already authenticated into a given store (site credentials, application password, or WPCom), skipping the manual login UI.

    358 GitHub stars~1.3k tokensUpdated today
    Auto-check: notes
  • Setup Context A8c

    woocommerce/woocommerce-ios

    Set up the ContextA8C MCP server for accessing Automattic internal resources (Slack, Linear, P2s, GitHub Enterprise, etc.)

    358 GitHub stars~627 tokensUpdated today
    Auto-check: notes
  • Snapshot

    woocommerce/woocommerce-ios

    Use swift-snapshot-testing to visually verify SwiftUI views during implementation.

    358 GitHub stars~1.8k tokensUpdated today
    Auto-check: notes
  • Woo AI Smoke

    woocommerce/woocommerce-ios

    Evaluate WooAIAssistant against a structured scenario suite with hard invariants + LLM-as-judge rubric scoring.

    358 GitHub starsUsed in 1 repo~7.4k tokens
    Auto-check: notes
  • Verify

    woocommerce/woocommerce-ios

    Build the app, launch on simulator, and verify feature behavior via mobile-mcp interaction.

    358 GitHub stars~1.2k tokensUpdated today
    Auto-check: notes
  • Debug

    woocommerce/woocommerce-ios

    Debug a failing test or build error in WooCommerce iOS. An agent skill from woocommerce/woocommerce-ios.

    358 GitHub stars~539 tokensUpdated today
    Auto-check: notes

Works with

Categories

Questions about Mocks

What does Mocks do?

Start or stop the WireMock API mock server for UI testing and E2E verification. Mocks is an agent skill from woocommerce/woocommerce-ios. Start or stop the WireMock API mock server for UI testing and E2E verification.

When should I use Mocks?

Mocks fits situations like: tasks that involve End-to-end testing.

How do I install Mocks in Claude Code?

Run `npx skills add woocommerce/woocommerce-ios --skill mocks -a claude-code`. Or copy the skill folder (.claude/skills/mocks in woocommerce/woocommerce-ios) into .claude/skills/mocks in your project. Claude Code loads it when a task matches its description.

How do I install Mocks in Codex?

Run `npx skills add woocommerce/woocommerce-ios --skill mocks -a codex`. Or copy the skill folder (.claude/skills/mocks in woocommerce/woocommerce-ios) into .agents/skills/mocks in your project. Codex loads it when a task matches its description.

Can I use Mocks 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 woocommerce/woocommerce-ios --skill mocks -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/mocks, .gemini/skills/mocks, .github/skills/mocks and .opencode/skills/mocks in your project.

What does Mocks need to run?

Going by SKILL.md and its folder, Mocks needs the command-line tools its instructions call (curl and brew). Its frontmatter pre-approves these tools: Bash.

Does Mocks access the network?

SKILL.md contains no URLs. Its commands use curl, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Mocks safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Mocks use?

Mocks is published under the GPL-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Mocks use?

About 291 tokens (SKILL.md is roughly 1.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Mocks?

Skills that share tags, products or a category with Mocks: Wp Test Strategy (jorgerosal/wordpress-skills, 100 stars), Web Application Testing (anthropics/skills, 180k stars), OpenHarness End-to-End Evals (HKUDS/OpenHarness, 16k stars) and playwright-cli Browser Automation (github/gh-aw, 5.3k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Mocks?

woocommerce (a GitHub organization) maintains it in woocommerce/woocommerce-ios, which has 358 GitHub stars. The repository holds 12 skills in this directory. The repository was last updated on October 7, 2026.

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