Best for
- A diff adds or changes behavior and must ship with tests
- A diff is labeled a bug fix and needs a regression test
- /review-changes dispatches its "coverage" slice to this skill
event4u-app/agent-config/src/skills/judge-test-coverage/SKILL.md
Use when a diff may lack tests — missing assertions, uncovered branches, over-mocking, no regression test for a bug fix — dispatched by /review-changes, /do-and-judge, /judge, even without 'tests'.
Decision brief
You are a judge specialized in test coverage and test quality. Your only job is to find what the tests do not prove — missing assertions, uncovered branches, over-mocking that hides real behavior, absent regression tests, and flaky patterns. You do not review correctness, securi…
Compatibility matrix
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/event4u-app/agent-config --skill "src/skills/judge-test-coverage"Inspect the Agent Skill "judge-test-coverage" from https://github.com/event4u-app/agent-config/blob/0adf49a8ae84b0ff6e2de8759eea43257e020eff/src/skills/judge-test-coverage/SKILL.md at commit 0adf49a8ae84b0ff6e2de8759eea43257e020eff. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
Examine the full diff. For every non-test file modified, identify the matching test changes. If production changed but no test changed, that is finding number one unless the change is pure refactoring with full existing coverage — in which case, confirm coverage rather than assu…
A diff adds or changes behavior and must ship with tests A diff is labeled a bug fix and needs a regression test /review-changes dispatches its "coverage" slice to this skill The user asks "are the tests enough?", "did we cover the edge case?", or "why is this still green after…
Examine the full diff. For every non-test file modified, identify the matching test changes. If production changed but no test changed, that is finding number one unless the change is pure refactoring with full existing coverage — in which case, confirm coverage rather than assu…
For each new or changed test:
Tautological assertions — asserting the mock returned what the
Permission review
No configured static risk pattern was detected
This is not proof of safety. Runtime behavior, indirect dependencies, and hidden external systems are outside the static scan.
Evidence record
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 91/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 7 | Source | Repository attention, not individual Skill quality |
| Compatibility | 0 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
You are a judge specialized in test coverage and test quality. Your only job is to find what the tests do not prove — missing assertions, uncovered branches, over-mocking that hides real behavior, absent regression tests, and flaky patterns. You do not review correctness, security, or style — other judges handle those.
/review-changes dispatches its "coverage" slice to this skillDo NOT use when:
judge-bug-hunterjudge-security-auditorExamine the full diff. For every non-test file modified, identify the matching test changes. If production changed but no test changed, that is finding number one unless the change is pure refactoring with full existing coverage — in which case, confirm coverage rather than assume it.
For each new or changed test:
| Question | Why it matters |
|---|---|
| Does it actually assert the new behavior, or only that no exception was thrown? | Happy-path-only test |
| Does one branch of the new code exist but no test exercises it? | Uncovered branch |
| Is a bug fix accompanied by a test that fails without the fix? | Regression gap |
| Are boundary inputs tested (empty, null, max, off-by-one)? | Edge-case gap |
| Is time, randomness, or I/O controlled (fake clock, seeded RNG, recorded fixture)? | Flaky test risk |
| Are mocks used where a real collaborator would be cheaper and truer? | Over-mocking |
assertInstanceOf or assertCount where
the behavior under test is about values or side effects| Verdict | When to return it |
|---|---|
apply | New behavior is covered by assertions that would fail without the change |
revise | Specific gaps listed: missing test, missing assertion, or weak assertion |
reject | The test strategy is fundamentally wrong (all mocks, no real paths) |
Before finalizing your verdict, confirm:
Judge: judge-test-coverage
Model: <resolved from subagents.judge_model>
Target: <diff summary: N prod files, M test files>
Verdict: apply | revise | reject
Issues (if revise/reject):
🔴 path/to/file.ext:LINE — <missing test | weak assertion | over-mock>
Uncovered: <branch or input>
Needed: <what the test should assert and how it should fail without the change>
🟡 ...
Severity: 🔴 new behavior or bug fix with no test / 🟡 partial coverage, weak assertion / 🟢 test-quality suggestion.
Required fields (ordered):
apply, revise, or rejectapplyIf a finding needs runtime confirmation (running the project's test runner to verify a proposed test fails without the change), note it as a follow-up for the implementer — the judge does not execute tools.
apply when new behavior lacks an assertion that would
fail without the changesubagents.judge_modelsubagent-orchestration —
model-pairing rules (subagents.judge_model one tier above implementer).test-driven-development —
the write-the-test-first workflow that prevents most findings this judge makes.testing-anti-patterns and its
sibling process-anti-patterns.md —
prevention layer this judge backs up; rationalization-table row numbers
are valid review citations.judge-bug-hunter,
judge-security-auditor,
judge-code-quality — dispatched
together by /review-changes.Alternatives
coreyhaines31/marketingskills
When the user wants to plan, design, or implement an A/B test or experiment, or build a growth experimentation program. Also use when the user mentions "A/B test," "split test," "experiment," "test this change," "variant copy," "multivariate test," "hypothesis," "should I test this," "which version is better," "test two versions," "statistical significance," "how long should I run this test," "growth experiments," "experiment velocity," "experiment backlog," "ICE score," "experimentation program
event4u-app/agent-config
Use when the user says "review the design", "check the UI", or wants a comprehensive UI/UX review. Uses a 7-phase methodology covering interaction, responsiveness, accessibility, and more.
event4u-app/agent-config
Use BEFORE editing shared code — enumerates every call site, event consumer, queue worker, API client, migration, and test that a planned change will touch, with a file:line citation per dependency.
event4u-app/agent-config
Use when the user shares a Sentry error, Jira bug ticket, or error description and wants root cause analysis. Also for proactive bug hunting and code audits for hidden bugs.