e2e-api-wiremock

e2e-api-wiremock is a skill for Claude Code from sei-newbear/xp-harness. It costs 85 tokens per session (512 once invoked), scanned A, original, MIT.

A project-specific guide for writing API end-to-end tests: tests that run an API and check its behavior while WireMock, a tool that pretends to be an external API, supplies the outside responses.

In plain words
What is it for?
Use it to create or edit tests under api/test, define WireMock mappings under api/wiremock/mappings, and verify every request parameter required by the external API documentation.
Why use it?
It prevents tests from passing when the application sends only part of an external request correctly. It also keeps tests independent and puts test files and mock definitions in consistent locations.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

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.

agentmods
npx agentmods add skills/sei-newbear/xp-harness/e2e-api-wiremock
Any agent
npx skills add sei-newbear/xp-harness --skill e2e-api-wiremock
Clone the repo
git clone --depth 1 https://github.com/sei-newbear/xp-harness

Made for: Claude Code.

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 e2e-api-wiremock

README.md
[![agentmods](https://agentmods.dev/badge/skills/sei-newbear/xp-harness/e2e-api-wiremock.svg)](https://agentmods.dev/skills/sei-newbear/xp-harness/e2e-api-wiremock)
Your own site
<a href="https://agentmods.dev/skills/sei-newbear/xp-harness/e2e-api-wiremock"><img src="https://agentmods.dev/badge/skills/sei-newbear/xp-harness/e2e-api-wiremock.svg" alt="Measured on agentmods" height="20"></a>
Per session 85 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 512 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00085 $0.00512
Opus 5 $0.00043 $0.00256
Sonnet 5 $0.00017 $0.00102
Haiku 4.5 $0.00009 $0.00051

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

Security

Grade A, and why

e2e-api-wiremock scanned grade A with 0 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 6d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/harness-verification/templates/wiremock-api/.claude/skills/e2e-api-wiremock/SKILL.md · 27 lines

What it actually says

API E2E の流儀 (WireMock)

api/test 配下の E2E は、API を実際に動かし、外部依存を WireMock でモックして、エンドポイントの振る舞いを仕様書として検証する。

外部 API モックは「全パラメータ」を検証する

外部 API をモックするとき、モックのリクエストマッチ(または記録リクエストの検証)は、その外部 API の仕様書 (api/docs/) に載っている全パラメータを対象にする。URL や一部の識別子といった主要パラメータだけでマッチさせて済ませない。

理由: 一部のパラメータしか見ないと、API が誤った内容(項目の欠落・値の誤り)を外部へ送ってもテストが通ってしまい、「外部 API に意図どおりのリクエストを送れているか」を検証できない。仕様書の全項目が正しく送られることまで verify して初めて、E2E として意味を持つ。

モックの対象は仕様書を出典にする

マッチ・検証するパラメータは思いつきで決めず、対応する外部 API の仕様書 (api/docs/<api>.md) を参照して全項目を洗い出す。

モック定義とテストの置き場

  • spec は api/test/<シナリオ名>.e2e.test.ts
  • WireMock の mappings は api/wiremock/mappings/ 配下

テスト独立性

  • 各テストは単独で完結させる。前提となる状態はテスト内で自分で用意する
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. 6d ago First seen · 27 lines · 85 tokens per session scan A 145392477170

Subscribe to this mod's changes

e2e-api-wiremock is a skill published in the GitHub repository sei-newbear/xp-harness (9 stars, last pushed 29d ago), licensed MIT. It adds 85 tokens to every session and 512 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories