test-data-and-stubs

test-data-and-stubs is a skill for Claude Code, Codex from makifbaysal/tasktrooper. It costs 50 tokens per session (552 once invoked), scanned B, original, Apache-2.0.

A procedure for preparing safe data, users, credentials, and fake third-party services for tests. It favours the product's own interface for creating data and uses a stub, such as WireMock, to imitate an external HTTP service.

In plain words
What is it for?
Use it when a case needs records, roles, test credentials, or an external service. It covers seeding data, namespacing shared-environment records, cleaning up, and reporting missing sandbox access as a blocker.
Why use it?
Tests become unreliable or unsafe when they use real accounts, shared data, production databases, or live services with side effects. This approach keeps test data isolated and makes outside responses controllable.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when a case needs records, roles, test credentials, or an external service. It covers seeding data, namespacing shared-environment records, cleaning up, and reporting missing sandbox access as a blocker.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/makifbaysal/tasktrooper/test-data-and-stubs
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.

Any agent
npx skills add makifbaysal/tasktrooper --skill test-data-and-stubs
Clone the repo
git clone --depth 1 https://github.com/makifbaysal/tasktrooper

Made for: Claude Code, Codex.

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 test-data-and-stubs

README.md
[![agentmods](https://agentmods.dev/badge/skills/makifbaysal/tasktrooper/test-data-and-stubs/github.svg)](https://agentmods.dev/skills/makifbaysal/tasktrooper/test-data-and-stubs)
Your own site
<a href="https://agentmods.dev/skills/makifbaysal/tasktrooper/test-data-and-stubs"><img src="https://agentmods.dev/badge/skills/makifbaysal/tasktrooper/test-data-and-stubs/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for test-data-and-stubs

Your own site · 80×15
<a href="https://agentmods.dev/skills/makifbaysal/tasktrooper/test-data-and-stubs"><img src="https://agentmods.dev/badge/skills/makifbaysal/tasktrooper/test-data-and-stubs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 552 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00050 $0.00552
Opus 5.5 $0.00020 $0.00221
Sonnet 5.5 $0.00010 $0.00110
Haiku 4.5 $0.00005 $0.00055

Measured 6d ago against content hash 305fbe9fe167, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

test-data-and-stubs scanned grade B with 2 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.

Sends data to an external URLmediumData exfiltration

A POST to an outside endpoint may be telemetry or may be exfiltration; either way the mod talks to somewhere, and you should know where.

curl -X POST localhost:8089/__admin/mappings -d '{"request":{"method":"POST","url":"/charge"},"response":{"status":402,"jsonBody":{"error":"declined"}}}'

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -X POST localhost:8089/__admin/mappings -d '{"request":{"method":"POST","url":"/charge"},"response":{"status":402,"jsonBody":{"error":"declined"}}}'
catalog/agents/qa-agent/skills/test-data-and-stubs/SKILL.md · 42 lines

What it actually says

Test Data and Stubs

Seed order

  1. Through the product's own API/UI (black-box; this exercises validation as a side effect).
  2. The repo's documented seed (make seed, npm run db:seed, prisma db seed — find it via get_project_brief or the README).
  3. SQL last, and only on a local DB.

Record the seed commands you ran in the case's evidence.

Database

The repo's docker-compose service (docker compose up -d db returns), else its documented local DB. No container runtime available → say so as a blocker (qa-verify-before-verdict's triage table), don't improvise a different engine — a SQLite stand-in for Postgres hides real dialect bugs.

Credentials

Pull from .env.example or the repo's own seed fixtures. Never a real person's account. A third-party sandbox key you don't have is a human blocker (ask_user), not something to work around.

Namespacing on shared environments

On stage: prefix everything you create with qa-<task-key>-…, clean it up when you're done, never run a destructive scenario there.

Stubbing a third-party HTTP dependency by hand

docker run -d --rm -p 8089:8080 wiremock/wiremock:3.13.2
curl -X POST localhost:8089/__admin/mappings -d '{"request":{"method":"POST","url":"/charge"},"response":{"status":402,"jsonBody":{"error":"declined"}}}'
# point the app's dependency URL env var at http://localhost:8089, drive the scenario, then:
curl -s localhost:8089/__admin/requests | jq '.requests[].request.url'  # no jq: node -e 'let d="";process.stdin.on("data",c=>d+=c).on("end",()=>JSON.parse(d).requests.forEach(r=>console.log(r.request.url)))'

Or use the repo's own mock server if it already has one — prefer that over standing up a second one.

After the round

Save a working boot+seed recipe to project memory (save_memory, scope=project) once it cost you real effort — the next QA round on this repo should not rediscover it.

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 Changed 305fbe9fe167
  2. 8d ago First seen · 42 lines · 50 tokens per session scan B 0bee6136e1cc

Subscribe to this mod's changes

test-data-and-stubs is a skill published in the GitHub repository makifbaysal/tasktrooper (113 stars, last pushed yesterday), licensed Apache-2.0. It adds 50 tokens to every session and 552 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it B with 2 findings (sends data to an external url, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-05.