target-tests

target-tests is a skill for Claude Code from panbanda/omen. It costs 31 tokens per session (970 once invoked), scanned A, original, Apache-2.0.

A workflow for choosing where new tests would provide the most value. It combines defect risk, code complexity, change frequency, and code ownership; test coverage means checking code automatically with tests.

In plain words
What is it for?
Use it to rank files and functions for additional tests, especially areas with high risk, high complexity, high churn, or a single owner.
Why use it?
It avoids spreading test-writing effort evenly when some files are more likely to contain bugs, change often, or be difficult to verify.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the omen-development plugin — 13 skills shipped together

Good fit Use it to rank files and functions for additional tests, especially areas with high risk, high complexity, high churn, or a single owner.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/panbanda/omen/target-tests
Install

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.

Any agent
npx skills add panbanda/omen --skill target-tests
Clone the repo
git clone --depth 1 https://github.com/panbanda/omen

Made for: Claude Code.

Or install omen-development, the plugin that ships this one along with the rest of its 13 skills.

Wrote 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.

agentmods badge for target-tests

README.md
[![agentmods](https://agentmods.dev/badge/skills/panbanda/omen/target-tests/github.svg)](https://agentmods.dev/skills/panbanda/omen/target-tests)
Your own site
<a href="https://agentmods.dev/skills/panbanda/omen/target-tests"><img src="https://agentmods.dev/badge/skills/panbanda/omen/target-tests/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.

agentmods 80×15 button for target-tests

Your own site · 80×15
<a href="https://agentmods.dev/skills/panbanda/omen/target-tests"><img src="https://agentmods.dev/badge/skills/panbanda/omen/target-tests.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 970 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00031 $0.00970
Opus 5.5 $0.00012 $0.00388
Sonnet 5.5 $0.00006 $0.00194
Haiku 4.5 $0.00003 $0.00097

Measured 20d ago against content hash 5aa93a628c28, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

target-tests 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 20d 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.

plugins/development/skills/target-tests/SKILL.md · 151 lines

How it starts

The opening of the file, as written. The whole thing — 151 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Target Tests

Identify the targets that give the most value for more test coverage. Combine the risk, complexity, and behavioral signals.

Prerequisites

The Omen CLI must be installed and available in PATH.

Workflow

Step 1: Identify the High-Risk Files

Run the defect prediction analysis:

omen -f json defect

A file with a high defect probability is statistically likely to contain bugs.

Step 2: Find the Hotspots

Run the hotspot analysis:

omen -f json hotspot

Code with high churn and high complexity needs protection against regressions.

Step 3: Analyze the Complexity

Run the complexity analysis:

omen -f json complexity

A complex function has many code paths. Each path needs coverage.

Step 4: Check the Ownership

Run the ownership analysis:

omen -f json ownership

Code with one owner needs tests as documentation. Other developers will maintain the code later.

Test Priority Matrix

Set the priority from the combined signals:

Priority Signals Why Test
Critical High risk + High complexity + High churn Bugs likely, changes often, hard to verify
High High complexity + Single owner Many paths, tests = documentation
Medium High churn + Moderate complexity Changes often, needs regression protection
Lower Low complexity + Low churn Stable, simple code

Test Case Estimation

Use the cyclomatic complexity to estimate the number of test cases:

Cyclomatic Complexity Minimum Test Cases
1-5 2-5 tests
6-10 6-15 tests
11-20 16-40 tests
21+ Consider refactoring first

Output Format

Make a test targeting report in this format:

# Test Targeting Report

## Critical Coverage Gaps

### `src/payment/processor.go:processPayment`
- **Defect probability**: 0.82
- **Cyclomatic complexity**: 18
- **Current coverage**: Unknown/Low
- **Estimated tests needed**: 25-35 test cases
- **Why**: High-risk financial logic, frequently modified

### `src/auth/validator.go:validateToken`
- **Defect probability**: 0.75
- **Cyclomatic complexity**: 12
- **Bus factor**: 1 (alice)
- **Estimated tests needed**: 15-20 test cases
- **Why**: Security-critical, single owner, needs documentation

## High-Churn Files (Regression Priority)

| File | Churn (30d) | Complexity | Priority |
|------|-------------|------------|----------|
| api/handlers.go | 45 changes | 24 | High |
| core/engine.go | 32 changes | 31 | High |
| utils/helpers.go | 28 changes | 8 | Medium |

## Knowledge Silo Files

Files where tests serve as critical documentation:

1. `legacy/importer.go` - Only bob has touched this
   - Add characterization tests before bob leaves
   - Focus on capturing current behavior

2. `integration/sync.go` - Single contributor, complex
   - Tests document the sync protocol
   - Critical for future maintainers

## Testing Strategy by Area

### Unit Tests Needed
- `processor.go` - All code paths in processPayment
- `validator.go` - All validation rules
- Edge cases in complex conditionals

### Integration Tests Needed
- `api/handlers.go` - Request/response flows
- `storage/repository.go` - Database interactions

### Characterization Tests Needed
- `legacy/` - Capture current behavior before refactoring

## Suggested Order

1. **Week 1**: Critical coverage gaps (highest risk reduction)
2. **Week 2**: High-churn regression tests
3. **Week 3**: Knowledge silo characterization tests
4. **Ongoing**: Maintain coverage on new code

Read the full file on GitHub · 151 lines

Changes

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.

  1. 20d ago Changed 5aa93a628c28
  2. 3mo ago First seen · 151 lines · 31 tokens per session scan A ad0fc858f0ca

Subscribe to this mod's changes

target-tests is a skill published in the GitHub repository panbanda/omen (25 stars, last pushed 2d ago), licensed Apache-2.0. It adds 31 tokens to every session and 970 once invoked, about $0.0001 per session on Opus 5.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-30.

Related

target-tests compared with skills from other repositories

target-tests next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
target-testspanbanda/omenSkill252d agoApache-2.0A31Claude Code
find-docsupstash/context7Skill66ktodayMITA172Claude Code, Codex
context7-docsupstash/context7Skill66ktodayMITA157Claude Code, Codex
context7-cliupstash/context7Skill66ktodayMITA53Claude Code, Codex
context7-mcpupstash/context7Skill66ktodayMITA58Claude Code, Codex
openlore-plan-refactorclay-good/OpenLoreSkill372todayMITA46Claude Code, Codex
openlore-brainstormclay-good/OpenLoreSkill372todayMITA40Claude Code, Codex