Index of every page on this site: llms.txt
All skills
skillkeel avatar

/test-gap-finder

@d19d0d1
Run it yourself

Use when the user asks what to test next, where coverage is weak, or before a refactor of untested code. Maps source modules to existing tests, ranks untested modules by churn and size, and proposes the five highest-value tests with concrete names and cases, without writing them unasked.

  • 1 file
  • 2.2 KB
  • Updated 2 months ago
  • GitHub
Use this Skill: https://skilld.dev/gh/skillkeel/skillkeel-starter/test-gap-finder

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈76 tokens for metadata: the name and description. ≈472 when used: this file.

Description uses 3.8% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈306 characters, or 3.8%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

test-gap-finder

Procedure

  1. Detect test layout: tests/, __tests__/, *_test.go, *.test.ts, test_*.py, spec/. Detect the runner from config (jest, vitest, pytest, go test, cargo test).
  2. Build the map: list source files (exclude generated, vendored, migrations). For each, find tests that import or name it (grep the module path/name inside test files). Result: module | test files | test count (rough: count of test functions).
  3. If a coverage report is cheap, run it: pytest --cov --cov-report=term-missing -q, npx vitest run --coverage, go test -cover ./.... Skip if it takes > 2 min or needs services.
  4. Rank untested/under-tested modules by: recent churn (git log --since=90.days --format='' --name-only | sort | uniq -c), size (wc -l), and whether they sit on a critical path (auth, payments, data writes, public API).
  5. For the top 5, propose tests: file path, test names, and 2 to 4 concrete cases each (happy path, boundary, failure). Reference the module's real function signatures (read the code).
  6. Output a table plus the proposals. Ask before writing any test files; if approved, write them following the repo's existing test style and run them.

Rules

  • Do not claim a coverage percentage unless a coverage tool produced it.
  • Do not propose tests for generated code, vendored code, or trivial getters.
  • Proposed cases must be derivable from the code read in this session.

Verify

Maintainers: bash evals/run.sh /tmp/skillkeel-evals test-gap-finder from the plugin root runs this case and grades it; records and transcripts sit in evals/test-gap-finder/. evals/test-gap-finder/: fixture Python package with auth.py (untested, high churn), utils.py (tested), payments.py (untested); expected: auth.py and payments.py ranked top, utils.py not proposed, ≥2 concrete cases per proposal, no test files written.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at d19d0d1. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last month.

Steadyupdated 2 months ago

README badge

README badge for skillkeel/skillkeel-starter/test-gap-finder