/swe-skills:swe:test-gap-huntfrom swe-skills
Identifies and prioritizes the highest-value test coverage gaps in a repository or workspace, then incrementally adds or strengthens tests using the local test stack and cleanly scoped subagent work when available. Use when a user says `improve test coverage`, `find weak tests`, `add missing test cases`, `run a recurring test-improvement pass`, or asks for a language-agnostic workflow to strengthen mocks, fixtures, and test structure without chasing raw coverage numbers. Do NOT use for first-time framework selection, broad test-stack migrations, or large production refactors.
Ships in swe-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use this skill to run a bounded, evidence-led pass over a repository's tests.
The job is to:
This skill is language agnostic. Reuse the repository's own tooling, file layout, and test conventions instead of forcing a new framework.
Use this skill when the user wants to:
Do not use this skill for:
Confirm or infer:
If the user does not specify a budget, default to a small incremental pass:
Create one session per cleanly separated package, module, or service when the environment supports parallel agent work.
If parallel sessions are unavailable, process the same opportunities in local batches and keep the same output shape.
Inspect the repository before proposing changes.
Identify:
Do not introduce a new framework unless the user explicitly asks for it.
This skill is tool agnostic.
Use the strongest available local conventions for the detected ecosystem, such as:
vitest, jest, mocha, or avapytest, unittest, or nosego testcargo testrspec, minitest, or bundle exec rspeclcov, coverage.py, pytest-cov, nyc, gcov,
jacoco, or CI-native summariesPrefer the repository's own scripts and CI commands over ad hoc commands.
Run the narrowest useful existing commands to confirm the current state.
Capture:
If the baseline is already red for unrelated reasons, say so directly and avoid claiming the skill completed a safe improvement pass.
Rank opportunities using concrete evidence, not raw coverage percentage alone.
Consider:
Treat weak tests as real gaps even when line coverage is technically present.
Look for:
If a test is weak but still the best local starting point, augment it instead of creating duplicate coverage elsewhere.
Pick the smallest high-value set of opportunities that can be improved safely in one pass.
Prefer:
Avoid:
When implementing tests:
If a tiny production seam is necessary, keep it minimal and explain why the test could not be written cleanly without it.
Validate the touched surface with the narrowest useful commands first, then expand only if the result strengthens confidence materially.
Prefer:
Do not rerun the entire workspace unnecessarily.
At the end of the pass, leave the next ranked opportunities for the following loop or scheduled run.
If the user asked for report-only output, stop after ranking and validation planning.
Produce a report with these sections:
For each ranked opportunity, include:
high, medium, or lowFor each applied change, include:
If no safe improvement should be made, say so directly and return only the ranked backlog.
User says: Find the top test coverage gaps in this workspace and fix the best two without making a huge mess.
Actions:
Result: The user gets a small, validated batch of test improvements instead of an unbounded coverage project.
User says: Run a weekly pass that strengthens weak tests and adds missing edge cases, but keep it fast.
Actions:
Result: The workflow behaves like an incremental maintenance loop rather than a one-shot campaign.
Use the repository's existing test layout, recent changes, and CI signals to rank opportunities, but say clearly that the ranking had weaker coverage evidence.
Call that out and avoid claiming the pass is fully validated. Limit work to report-only mode or a tightly scoped area if the failures are clearly unrelated.
Do not take the easy percentage win. Prefer a smaller, more behavior-focused test or leave the item in the backlog.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
Generated from the plugin's indexed repository (ckorhonen/swe-skills) — no native marketplace selected
npx claudepluginhub p/ckorhonen-swe-skills17 skills in this plugin
/swe:babysit-prBabysits an open pull request end-to-end by polling every minute, triaging new comments and reviews, handling CI failures, iterating on reviewer scores, and stopping only when the PR is ready to merge. Use when a user says `babysit this PR`, `watch this PR until it's merge-ready`, `handle review feedback on my PR`, or `keep iterating on this PR until reviewers are happy`. Do NOT use for a one-shot PR risk review, merged PR production monitoring, or repo-wide CI debugging with no scoped PR./swe:capture-knowledgeAudits a repository's code and docs to find important conventions, workflows, and architectural decisions that are missing from agent-facing guidance, then drafts review-ready updates. Use when a user says `capture repo knowledge`, `document implicit conventions`, `turn repo patterns into agent rules`, or asks what future agents should remember about a codebase. Do NOT use for a generic repo tour, onboarding walkthrough, or architecture summary that does not need reusable guidance updates./swe:change-validation-plannerPlans the narrowest trustworthy validation path for a scoped code change or diff. Use when a user asks what to run before merging, how to validate a specific change, whether the current checks are enough, or wants a bounded command order from narrow to broad. Do NOT use for writing tests, fixing the code change itself, broad QA sweeps, or generic debugging that needs root cause analysis./swe:create-skillCreates or revises `swe:` skills for this repository using a repeatable authoring workflow: define concrete use cases, tune trigger boundaries, apply progressive disclosure, add matching eval assets, and validate the package. Use when adding a new skill, tightening an existing skill that over- or under-triggers, or distilling an external workflow into a repo-ready skill. Do NOT use for generic documentation edits or for executing the workflow the skill would describe./swe:docs-drift-auditAudits a repository for human-facing or operational documentation that drifted from code, config, interfaces, workflows, or repo structure changes. Use when a user says `check docs drift`, `docs are stale`, `update the runbook after this change`, or `what documentation is missing after this change`. Do NOT use for agent-guidance updates, generic documentation rewrites, or writing docs without evidence that they are stale./swe:incident-followup-auditAudits post-incident engineering follow-through after a sev or incident to verify whether the durable follow-up happened: regression tests, monitors, docs, runbooks, ownership updates, tickets, rollback learnings, and remaining backlog. Use when a user asks whether incident follow-up is complete, what still needs to be done after a postmortem, or how to close the engineering loop. Do NOT use for live incident response, root-cause analysis, or a generic bug hunt unrelated to an incident.