Tdmcp test coverage

From Pantani/tdmcp · View interactive version

Tdmcp test coverage is an AI agent skill from the GitHub repository Pantani/tdmcp. Orchestrate any tdmcp test-coverage work: run the coverage harness, inspect coverage gaps, plan focused Vitest/msw or bridge tests, delegate coverage writers, verify coverage deltas, and re-run gates. Use whenever the user asks to raise coverage, add broad regression coverage, create a test harness,

How to use this skill

Skill file

tdmcp-test-coverage

Use this skill for coverage-improvement work in this repository. The goal is

more tested behavior, not prettier percentages.

Phase 0 - Context

  1. Read CLAUDE.md, package.json, vitest.config.ts, and the nearest tests.
  2. Run npm run coverage:harness unless the user asked for a static-only pass.
  3. Read _workspace/coverage/latest.md.
  4. Treat the actionable scope as src/**/*.ts; src/knowledge/data/** is

generated reference data and is intentionally excluded.

Phase 1 - Select gaps

Choose one to three independent gaps. Prefer seams where a test can lock a real

contract:

result shape.

paths using msw.

event streaming, and transport setup.

Skip generated data, docs-only files, and import-only tests.

Phase 2 - Build tests

For parallel work, spawn tdmcp-coverage-writer agents with one seam each. Give

each writer:

The lead is the single writer for shared config, package scripts, and harness

docs. Do not let multiple agents edit the same test file.

Phase 3 - Verify

Run narrow tests first. Then run:

npm run typecheck
npm run build
./node_modules/.bin/biome check .
npm run coverage:harness
npm run validate:recipes
npm run test:bridge

If a gate fails, fix forward. Do not lower coverage thresholds, delete assertions,

or exclude executable code to pass.

Phase 4 - Report

Write _workspace/coverage/wave-<date>.md with:

Test scenarios

CLI behavior tests; lead runs coverage and gates; report includes delta.

patch the smallest safe code path, keep the regression test, and re-run gates.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.