tdmcp-test-coverage
Skill46 starsChanged 5 months agoMITView on GitHub
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, improve tests, re-run a coverage wave, or fix a coverage gate.
In this repository64 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- connectors-directory-specSkill
- mcpb-bundleSkill
- submission-qaSkill
- td-feature-buildSkill
- td-feature-designSkill
- td-feature-integrateSkill
- td-feature-qaSkill
- td-feature-releaseSkill
- td-feature-surveySkill
- td-feature-synthesizeSkill
- tdmcp-backlog-campaignSkill
- tdmcp-bridge-endpointSkill
- tdmcp-cookbook-examplesSkill
- tdmcp-coverage-writerSkill
- tdmcp-docs-roadmap-updateSkill
- tdmcp-feature-discoverySkill
- tdmcp-implementation-learningSkill
- tdmcp-kinect-wall-harpSkill
- tdmcp-pipelineSkill
- tdmcp-quality-auditSkill
- tdmcp-submissionSkill
- tdmcp-tool-builderSkill
- vitepress-bilingual-pageSkill
- ai-party-mixer-runbookSkill
- connectors-directory-specSkill
- mcpb-bundleSkill
- mixer-policy-safetySkill
- mixer-scene-contractSkill
- soundcraft-ui24r-adapterSkill
- submission-qaSkill
- td-feature-buildSkill
- td-feature-designSkill
- td-feature-integrateSkill
- td-feature-qaSkill
- td-feature-releaseSkill
- td-feature-surveySkill
- td-feature-synthesizeSkill
- td-hype-synthesizeSkill
- tdmcp-ai-party-mixer-designSkill
- tdmcp-backlog-campaignSkill
- tdmcp-bridge-endpointSkill
- tdmcp-cookbook-examplesSkill
- tdmcp-coverage-writerSkill
- tdmcp-docs-interactiveSkill
- tdmcp-docs-roadmap-updateSkill
- tdmcp-feature-discoverySkill
- tdmcp-hype-scoutSkill
- tdmcp-implementation-learningSkill
- tdmcp-kinect-wall-harpSkill
- tdmcp-pipelineSkill
- tdmcp-quality-auditSkill
- tdmcp-raytk-integrationSkill
- tdmcp-roadmap-campaignSkill
- tdmcp-submissionSkill
- tdmcp-test-coverageSkill
- tdmcp-tool-builderSkill
- td-trend-scoutSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 3 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use this skill for coverage-improvement work in this repository.
- Very specific: line 13
Read AGENTS.md, package.json, vitest.config.ts, and the nearest tests.
- Very specific: line 14
Run npm run coverage:harness unless the user asked for a static-only pass.
- Very specific: line 16
Treat the actionable scope as src//*.ts.
- Distinctive: line 49
Run narrow tests first. Then run:
- Distinctive: line 60
If a gate fails, fix forward.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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
- Read
AGENTS.md,package.json,vitest.config.ts, and the nearest tests. - Run
npm run coverage:harnessunless the user asked for a static-only pass. - Read
_workspace/coverage/latest.md. - 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:
- CLI/config: parsing, defaulting, env precedence, diagnostics, and exit behavior.
- Resource/knowledge loaders: URI matching, malformed input, ranking, and stable result shape.
- Tool implementations: Zod defaults, bridge payloads, warnings, and
isErrorpaths using msw. - Server/client boundaries: offline TD behavior, auth forwarding, timeout/retry, 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:
- target file(s) and nearest existing test to mirror;
- behavior to assert;
- expected failure mode or branch to cover;
- exact narrow command to run.
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:bridgeIf 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:
- starting and ending coverage summary;
- tests added and behaviors covered;
- commands run;
- PASS/FAIL/UNVERIFIED buckets;
- next suggested gaps from
_workspace/coverage/latest.md.
Test scenarios
- Normal flow: coverage harness identifies
src/cli/chat.ts; writer adds focused CLI behavior tests; lead runs coverage and gates; report includes delta. - Error flow: a new test exposes a production bug; report the failing behavior, patch the smallest safe code path, keep the regression test, and re-run gates.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

