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 skills add OKHP3/skillz --skill lsp-test-correlationgit clone --depth 1 https://github.com/OKHP3/skillzWrote 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/okhp3/skillz/lsp-test-correlation)<a href="https://agentmods.dev/skills/okhp3/skillz/lsp-test-correlation"><img src="https://agentmods.dev/badge/skills/okhp3/skillz/lsp-test-correlation/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.
<a href="https://agentmods.dev/skills/okhp3/skillz/lsp-test-correlation"><img src="https://agentmods.dev/badge/skills/okhp3/skillz/lsp-test-correlation.svg" alt="Reviewed on agentmods" width="80" 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.1 | $0.00042 | $0.01353 |
| Opus 5 | $0.00021 | $0.00677 |
| Sonnet 5 | $0.00008 | $0.00271 |
| Haiku 4.5 | $0.00004 | $0.00135 |
Grade A, and why
lsp-test-correlation 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 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.
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.
This is a copy
100% identical to lsp-test-correlation — 0 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.
How it starts
The opening of the file, as written. The whole thing — 180 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Requires the agent-lsp MCP server.
lsp-test-correlation
Discover which tests cover a source file, then run only those tests. Faster than running the full suite when you've changed one or two files and want targeted feedback.
When to use
- After editing a source file: "Which tests do I need to run for this change?"
- Before committing: run only the tests that cover what you touched
- Debugging a failure: find which test file corresponds to a broken source file
- Code review: understand what test coverage exists for a file before merging
Use /lsp-verify instead when you want to run the full suite and check all
three layers (diagnostics + build + tests). Use this skill when you want fast,
scoped test execution.
Workflow
Step 1 — Find correlated test files
Call get_tests_for_file for each edited source file:
mcp__lsp__get_tests_for_file({ "file_path": "/abs/path/to/source.go" })
Returns the test files that correspond to the source file. For multiple edited files, call once per file.
If no test files are returned: the source file may have no dedicated test file, or the mapping is not resolvable (e.g. integration tests in a separate directory). See Step 2 for fallback.
Step 2 — Enumerate test functions (fallback or enrichment)
If get_tests_for_file returns test files, use find_symbol to list
the test functions defined in those files:
mcp__lsp__find_symbol({ "query": "Test" })
Filter results to the correlated test files from Step 1. This gives you the specific test function names to run rather than the whole test file.
Fallback (no test files found): query find_symbol for test
functions that contain the changed symbol's name:
mcp__lsp__find_symbol({ "query": "Test<ChangedFunctionName>" })
This catches cases where get_tests_for_file misses indirect coverage.
Step 3 — Report the correlation map
Before running, report what was found:
## Test correlation for <file>
Source file: internal/tools/analysis.go
Test files:
→ internal/tools/analysis_test.go
Tests: TestHandleGetCodeActions, TestHandleGetCompletions, TestHandleGetDocumentSymbols
No correlated test files found for: internal/lsp/normalize.go
→ Fallback: TestNormalizeCompletion, TestNormalizeDocumentSymbols (from workspace symbol search)
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.
- 6d ago First seen · 180 lines · 42 tokens per session scan A d2a1b7c67ccb
lsp-test-correlation is a skill published in the GitHub repository OKHP3/skillz (3 stars, last pushed yesterday), licensed MIT. It adds 42 tokens to every session and 1,353 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to lsp-test-correlation, differing in 0 lines, and is treated as a copy.
Other skills, from other repositories
kelly-agent-eval
Review board (Busabase App-in-Skill) that runs a fixed suite of mock test cases against a baseline vs candidate agent version and surfaces rubric-scored regressions before a release. Use when the user invokes $kelly-agent-eval or /kelly-agent-eval, wants to review agent-version regressions, compare baseline vs…
kelly-app-skill-creator-tests
Build, maintain, and run conformance tests for canonical App-in-Skill projects created by kelly-app-skill-creator. Use when a Kelly app skill needs contract checks, local server smoke tests, responsive browser acceptance, temporary open-source Busabase integration, environment-gated Busabase Cloud OAuth verification…
pentest-api-attacker
Test APIs against OWASP API Security Top 10 including discovery, auth abuse, and protocol-specific checks.
pentest-container-k8s
Test Docker and Kubernetes security controls for RBAC abuse, breakout, and secret exposure.
pentest-remediation-validator
Retest remediated findings, detect regressions, and generate remediation status and certification artifacts.
pentest-vuln-analyzer
Correlate scanner results with CVE and exploit intelligence and prioritize by CVSS and exploitability.