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.
npx agentmods add skills/deephaven/deephaven-mcp/tests-improvenpx skills add deephaven/deephaven-mcp --skill tests-improvegit clone --depth 1 https://github.com/deephaven/deephaven-mcpWrote 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.
[](https://agentmods.dev/skills/deephaven/deephaven-mcp/tests-improve)<a href="https://agentmods.dev/skills/deephaven/deephaven-mcp/tests-improve"><img src="https://agentmods.dev/badge/skills/deephaven/deephaven-mcp/tests-improve.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00063 | $0.01033 |
| Opus 5 | $0.00032 | $0.00517 |
| Sonnet 5 | $0.00013 | $0.00207 |
| Haiku 4.5 | $0.00006 | $0.00103 |
Grade A, and why
tests-improve 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.
How it starts
The opening of the file, as written. The whole thing — 30 lines — stays where its author put it; the contents beside it link to each section on GitHub.
For every file in src/deephaven_mcp except _version.py:
- Make sure that there is a test file.
__init__.pyfiles count. Every__init__.py— even one that only declares__all__or re-exports from siblings — gets its owntest_init.py. The package surface is part of the API contract; an untested__init__.pyis a silent-refactor hazard.- What the
test_init.pymust pin: the exact set of names in__all__, that each re-export is the same object as the internal definition, and that no_-prefixed names leak into the public surface. - Canonical implementations:
tests/config/schema/test_init.py,tests/config/test_init.py,tests/auth/middleware/test_init.py. - Exception — a test directory kept deliberately non-package cannot host a
test_init.py.tests/mcp_systems_server/_tools/has no__init__.pybecause its modules import fixtures by bare name (from conftest import MockContext); adding one breaks collection there. Without__init__.py, atest_init.pyin that directory resolves to the same module name astests/test_init.pyand pytest fails with "import file mismatch". That package's surface is pinned bytests/mcp_systems_server/_tools/test_tool_module_inventory.pyinstead. Do not create atest_init.pythere.
- Make sure the test file is in the correct directory with a name that meets project standards.
- Unit tests:
test_<file>.py. Integration tests:test_<file>_integration.py. Both live intests/<package>/mirroring the source (seeref-python-coding-practicesrule 5). - For
__init__.pythe test file istest_init.py(single underscore betweentestandinit, matchingtests/auth/middleware/test_init.py). - A test whose subject is broader than one source file is out of scope for this step. Guardrail/contract tests and package-scope integration tests are named for their invariant, not for a module, and rule 5's broader than one source file clause governs them. Do not rename one to fit
test_<file>.py, and do not create a source-mirroring stub for one —tests/test_field_docs_contract.pytests an invariant across every schema in the package, not a source module of the same stem, and no such module exists.
- Unit tests:
- Analyze the test file and flag tests that are dead, redundant, test implementation detail rather than observable behavior, or are overly fragile (assert on incidental output, internal call order, or private state). List the flagged tests before changing anything.
- Also flag any threshold the author invented — a byte cap, a maximum entry count, a size budget with no source in the code or a documented requirement (
ref-python-coding-practicesrule 21). Ask what defect it stands in for and assert that directly; if the property resists a test, delete the test rather than keep an arbitrary number that will fail someone else's legitimate work.
- Also flag any threshold the author invented — a byte cap, a maximum entry count, a size budget with no source in the code or a documented requirement (
- Add tests for every uncovered branch and error path (coverage rises toward 100%); testing private functions is appropriate for simpler, more targeted tests.
- Remove the tests flagged dead or redundant in step 3; confirm coverage holds after removal.
- Restructure the tests flagged fragile in step 3 (those asserting on incidental output, call order, or private state) to assert on observable behavior instead.
- Run the individual test file. Test files must be run one-by-one to accurately assess per-file coverage.
- Target 100% coverage. If coverage is below 100%, add tests until it reaches 100%.
pytest is pre-configured for coverage — no extra flags needed. To run a single file: uv run pytest <file>. Do not add --cov= or --cov-report=; these are already configured.
Per-file runs are required because running the full suite together does not show whether a source file's own test file covers it completely. See the tests-run-file skill for the per-file invocation rules.
After per-file runs pass, run the tests-run skill to verify the full suite. For integration tests (test_<file>_integration.py), use the integration-tests-run skill — they have separate invocation rules (-m integration -s).
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.
- 4d ago First seen · 30 lines · 63 tokens per session scan A 0eca2a434ba2
tests-improve is a skill published in the GitHub repository deephaven/deephaven-mcp (5 stars, last pushed today), licensed Apache-2.0. It adds 63 tokens to every session and 1,033 once invoked, about $0.0003 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.
Other skills, from other repositories
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.
auto-perf-optimize
Run agent-driven VS Code performance or memory investigations. Use when asked to launch Code OSS, automate a VS Code scenario, run the Chat memory smoke runner, capture renderer heap snapshots, take workflow screenshots, compare run summaries, or drive a repeatable scenario before heap-snapshot analysis.
chat-perf
Run chat perf benchmarks and memory leak checks against the local dev build or any published VS Code version. Use when investigating chat rendering regressions, validating perf-sensitive changes to chat UI, or checking for memory leaks in the chat response pipeline.
chat-pet-sprite-creation
Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.
cpu-profile-analysis
Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…