mocks
- Repo stars 357
- License GPL-2.0
- Author updated Live
- Author repo woocommerce-ios
- Domain
- Other
- Compatible agents
-
- Claude Code
- Cursor
- Cline
- Codex
- Windsurf
- Gemini CLI
- +20
- Trust score
- 94 / 100 · audit passed
- Author / version / license
- @woocommerce · GPL-2.0
- Token usage
- Lean
- Setup complexity
- Plug-and-play
- External API key
- Not required
- Operating systems
- Unspecified (assume cross-platform)
- Runtime requirements
- No special requirements
- Permissions
-
- Read-only
- Write / modify
- Network behavior
- External requests
- Install commands
- 26 variants
Profile is derived at build time from SKILL.md and install vectors. Subject to drift from author intent.
Heads up: 未限定 allowed-tools,默认拥有全部工具权限。
---
name: mocks
description: Start or stop the WireMock API mock server for UI testing and E2E verification. Manage the WireM…
category: other
runtime: no special runtime
---
# mocks output preview
## PART A: Task fit
- Use case: Start or stop the WireMock API mock server for UI testing and E2E verification. Manage the WireMock mock server that serves API responses for UI tests and E2E verification. makes outbound network calls. Works with Claude Code, Cursor, Cline and 23 more..
- Inputs: target material, constraints, expected output, and acceptance criteria.
- Evidence boundary: follow “Start / Stop / Details” and do not present inference as author intent.
## PART B: Execution result
- **01** The card summarizes the use case; runtime output centers on “Start or stop the WireMock API mock server for UI testing and E2E verification. Manage the WireMock mock server that serves API responses for UI tests and E2E verification. makes outbound network calls. Works with Claude Code, Cursor, Cline and 23 more.”.
- **02** When the source has headings, the agent prioritizes “Start / Stop / Details” so the result follows the author’s structure.
- **03** Typical output includes task judgment, concrete steps, required commands or file edits, validation, and follow-up options.
- **04** Risk context follows the fingerprint: read files, write/modify files; may access external network resources; usually needs no extra API key.
## Running Rules
- read files, write/modify files; may access external network resources; usually needs no extra API key.
- Validate with a small sample before expanding scope.
- Return the result, validation criteria, and next iteration options. The source mentions slash commands such as `/dev`; use them first when your agent supports command triggers.
Name target files or source material, expected output, forbidden changes, and whether network or shell access is allowed. Permission fingerprint: read files, write/modify files.
Start with a small task and check whether the result follows “Start / Stop / Details”. Inspect diffs, logs, previews, or tests before expanding scope.
Confirm the final output includes a concrete result, evidence, and next action. If it stays generic, tighten inputs, boundaries, and acceptance criteria.
---
name: mocks
description: Start or stop the WireMock API mock server for UI testing and E2E verification. Manage the WireM…
category: other
source: woocommerce/woocommerce-ios
---
# mocks
## When to use
- Start or stop the WireMock API mock server for UI testing and E2E verification. Manage the WireMock mock server that s…
- Use it when the task has clear inputs, repeatable steps, and validation criteria.
## What to provide
- Target material, scope, expected result, and forbidden changes.
- Whether network, commands, file writes, or external services are allowed.
## Execution rules
- Organize steps around “Start / Stop / Details” and keep inference separate from source facts.
- read files, write/modify files; may access external network resources; usually needs no extra API key.
- Validate with a small sample before expanding the task.
## Output requirements
- Return the deliverable, key evidence, validation method, and next action.
- Mark missing information as unknown; do not invent commands, platforms, or dependencies. The author source anchors workflow facts; repository files anchor sources and commands; Fluxly only adds fit, limitations, and quality judgment.
skill "mocks" {
input -> user goal + target files + boundaries + acceptance criteria
context -> Start / Stop / Details
rules -> SKILL.md triggers / order / output contract
runtime -> no special runtime | read files, write/modify files | may access external network resources
guardrails -> usually needs no extra API key + small-sample validation + diff/log review
output -> copyable result + checklist + next iteration
} 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
./API-Mocks/scripts/start.sh 8282 &
sleep 3
Verify it's running:
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
./API-Mocks/scripts/stop.sh 8282
Uses WireMock's graceful shutdown endpoint. Falls back to kill-by-port if the shutdown endpoint is unreachable:
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)
Decide Fit First
Design Intent
How To Use It
Boundaries And Review