integration-test-guard

integration-test-guard is a skill for Claude Code from hybridlabor-api/bdb-dev-optimized-agent-skills. It costs 130 tokens per session (977 once invoked), scanned A, a copy of integration-test-guard, Apache-2.0.

A development rule that requires API and MCP-server changes to include an integration test. MCP is a protocol for connecting coding tools to external programs and services.

In plain words
What is it for?
Use it when changing MCP tools, API schemas, HTTP transport, the TouchDesigner client, or the TouchDesigner-side Python API, choosing the test suite that matches the change.
Why use it?
It prevents changes to tool handlers, server transport, schemas, or TouchDesigner communication from being shipped without checking how the pieces work together.

Skill for Claude Code

Written for Claude Code: PreToolUse hook event. Also seen: reads .claude/ paths.

Good fit Use it when changing MCP tools, API schemas, HTTP transport, the TouchDesigner client, or the TouchDesigner-side Python API, choosing the test suite that matches the change.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hybridlabor-api/bdb-dev-optimized-agent-skills/integration-test-guard
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 hybridlabor-api/bdb-dev-optimized-agent-skills --skill integration-test-guard
Clone the repo
git clone --depth 1 https://github.com/hybridlabor-api/bdb-dev-optimized-agent-skills

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 integration-test-guard

README.md
[![agentmods](https://agentmods.dev/badge/skills/hybridlabor-api/bdb-dev-optimized-agent-skills/integration-test-guard.svg)](https://agentmods.dev/skills/hybridlabor-api/bdb-dev-optimized-agent-skills/integration-test-guard)
Your own site
<a href="https://agentmods.dev/skills/hybridlabor-api/bdb-dev-optimized-agent-skills/integration-test-guard"><img src="https://agentmods.dev/badge/skills/hybridlabor-api/bdb-dev-optimized-agent-skills/integration-test-guard.svg" alt="Measured on agentmods" height="20"></a>
Per session 130 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 977 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 88% copy Near-identical to another mod 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.00130 $0.00977
Opus 5 $0.00065 $0.00489
Sonnet 5 $0.00026 $0.00195
Haiku 4.5 $0.00013 $0.00098

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

Security

Grade A, and why

integration-test-guard 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 4d 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.

Origin

This is a copy

88% identical to integration-test-guard — 12 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

mcps/touchdesigner-mcp/.claude/skills/integration-test-guard/SKILL.md · 80 lines

How it starts

The opening of the file, as written. The whole thing — 80 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Integration Test Guard

When you change the MCP server / API surface, add or update an integration test in tests/integration/. The integration-test-guard hook blocks git push when the outgoing commits touch API/MCP source without one (override with SKIP_ITEST_GUARD=1 only when a test genuinely does not apply).

What counts as "API/MCP surface"

src/api/** (OpenAPI schema) · src/features/tools/** (tool defs + handlers) · src/server/** (MCP server) · src/tdClient/** (TD HTTP client) · src/transport/** (stdio/HTTP transport) · td/modules/mcp/** (TD-side Python API).

Step 1 — pick the right suite (by what the change affects)

Change affects Suite Needs live TD (9981)?
MCP tool response shape / formatting, tool registration, manifest tests/integration/mcpToolsResponse.test.ts No — uses server.getTool(...) with mocked client
Client ↔ WebServer behavior (create/update/delete/exec, TD-side Python) tests/integration/touchDesignerClientAndWebServer.test.ts Yes — real TouchDesignerClient over HTTP
HTTP transport (sessions, /mcp, /health) tests/integration/httpTransport.test.ts No live TD, but starts the HTTP server

If the change spans two categories, cover each in its suite.

Step 2 — add / update the test

Follow the existing patterns in the chosen file:

  • mcpToolsResponse: get the tool via server.getTool(TOOL_NAMES.X), invoke its handler with a mocked TD client, assert the formatted response shape.
  • touchDesignerClientAndWebServer: use the shared tdClient and the test_base_comp sandbox (created in beforeAll); exercise the real call path, then reconcile against a runtime value (read it back and compare) rather than trusting the response alone. Clean up created nodes.

Prefer reconciliation (compute a value, compare to an invariant) over assertions that can be satisfied without the behavior actually working.

Step 3 — run it

# TD-independent suites:
npx vitest run tests/integration/mcpToolsResponse.test.ts
npx vitest run tests/integration/httpTransport.test.ts

# Live-TD suite (needs TouchDesigner running with the .tox on 9981):
TD_WEB_SERVER_HOST=http://127.0.0.1 TD_WEB_SERVER_PORT=9981 \
  npx vitest run tests/integration/touchDesignerClientAndWebServer.test.ts -t "<your test name>" \
  --hookTimeout=60000 --testTimeout=60000

Read the full file on GitHub · 80 lines

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. 4d ago First seen · 80 lines · 130 tokens per session scan A cab81cede4cf

Subscribe to this mod's changes

integration-test-guard is a skill published in the GitHub repository hybridlabor-api/bdb-dev-optimized-agent-skills (6 stars, last pushed 3d ago), licensed Apache-2.0. It adds 130 tokens to every session and 977 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. It is 88% identical to integration-test-guard, differing in 12 lines, and is treated as a copy.

Related

Other skills, from other repositories