test-migration-coverage-gate

test-migration-coverage-gate is a skill for Claude Code, Codex from OutlineDriven/odin-claude-plugin. It costs 83 tokens per session (1,140 once invoked), scanned A, original, Apache-2.0.

A gate for removing tests when a newer test suite is claimed to cover them.

In plain words
What is it for?
Use it before deleting superseded tests to create a per-assertion coverage table, obtain independent review, and scrub the repository for references.
Why use it?
It checks every original assertion against the replacement and prevents coverage gaps or dangling references after deletion.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present.

Part of the odin-code-advanced plugin — 30 skills shipped together

Good fit Use it before deleting superseded tests to create a per-assertion coverage table, obtain independent review, and scrub the repository for references.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/outlinedriven/odin-claude-plugin/test-migration-coverage-gate
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 OutlineDriven/odin-claude-plugin --skill test-migration-coverage-gate
Clone the repo
git clone --depth 1 https://github.com/OutlineDriven/odin-claude-plugin

Made for: Claude Code, Codex.

Or install odin-code-advanced, the plugin that ships this one along with the rest of its 30 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 test-migration-coverage-gate

README.md
[![agentmods](https://agentmods.dev/badge/skills/outlinedriven/odin-claude-plugin/test-migration-coverage-gate.svg)](https://agentmods.dev/skills/outlinedriven/odin-claude-plugin/test-migration-coverage-gate)
Your own site
<a href="https://agentmods.dev/skills/outlinedriven/odin-claude-plugin/test-migration-coverage-gate"><img src="https://agentmods.dev/badge/skills/outlinedriven/odin-claude-plugin/test-migration-coverage-gate.svg" alt="Measured on agentmods" height="20"></a>
Per session 83 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,140 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.00083 $0.01140
Opus 5 $0.00042 $0.00570
Sonnet 5 $0.00017 $0.00228
Haiku 4.5 $0.00008 $0.00114

Measured 3d ago against content hash fab812352570, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

test-migration-coverage-gate 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 3d 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/odin-code-advanced/skills/test-migration-coverage-gate/SKILL.md · 58 lines

How it starts

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

Test migration coverage gate

Contract

Field Bound contract
Trigger About to delete a test on the claim that a new harness, suite, or scenario already covers it.
Authority vcs-reversible-destructive: restrict changes to VCS-tracked test files, show the exact set before deletion, and use version control as recovery.
Side effect Deletes only those test files whose every assertion was matched, leaving the rest in place; each deletion carries its coverage receipt in the commit message.
Done For every deleted test, a per-assertion table validated by an independent reviewer maps each original assertion to a specific check in the replacement; unmatched assertions resulted in either an extended replacement or a kept test; and a tree-wide scrub shows no dangling references to deleted paths, with historical documents annotated rather than rewritten.

Inputs

  1. Original test path (required): path to the test file claimed to be superseded.
  2. Replacement test or suite path (required): path to the file or directory that allegedly covers every assertion in the original.
  3. Project root (required): root directory for the tree-wide dangling-reference scrub.

Refusals

  • Will not delete a test whose replacement is missing or unparseable.
  • Will not delete a test whose assertions cannot be extracted for review.
  • Will not delete a test with unmatched assertions after extension attempt: keep it.
  • Will not commit a deletion while dangling references remain unresolved.
  • Will not commit a deletion until an independent reviewer has validated the per-assertion coverage table.
  • In every failure class, keep the test by default.

Procedure

  1. Read the original test file. Extract every assertion: each expect, assert, check, should, verify, or equivalent call that exercises observable behavior. Record the assertion type, the subject under test, and the expected outcome or predicate for each. Done when: every assertion in the original test is recorded with type, subject, and expected outcome.
  2. Read the replacement test file or, when the replacement is a directory, every test file within it. Extract assertions using the same method. Done when: every assertion in the replacement is recorded.
  3. Build a per-assertion coverage table. For each original assertion, identify the replacement assertion that exercises the same observable behavior. Mark each mapping as matched or unmatched. Done when: the table covers every original assertion with a matched or unmatched label.
  4. Review the table. For every unmatched assertion, either extend the replacement test to cover it or mark the original test as kept. Repeat steps 2-4 until every assertion is either matched or the original test is kept. Done when: every assertion is matched or the original test is marked kept.
  5. Submit the per-assertion coverage table to an independent reviewer: a second, distinct agent or a human reviewer who did not build the table. The reviewer validates that each matched mapping actually exercises the same observable behavior. Unvalidated or disputed mappings return to step 4. Done when: the independent reviewer confirms every mapping in the table.
  6. Prepare a commit message that embeds the per-assertion coverage table as a receipt, listing each original assertion and its covering replacement check. Done when: the commit message contains the full coverage table.
  7. Search the entire project tree for references to the original test file path: import statements, require calls, configuration entries, CI references, and documentation links. Update or remove each live reference. Leave historical documents (changelogs, commit messages, release notes) annotated with a note that the test was superseded rather than rewriting them. Done when: no dangling references remain and historical documents are annotated.
  8. Delete the original test file. Stage and commit with the coverage-receipt message. Done when: the deletion is committed and the commit SHA is recorded.
  9. Report the final per-assertion coverage table, the independent reviewer confirmation, the commit SHA, and the list of updated references. Done when: the report is emitted.

Read the full file on GitHub · 58 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 3d ago First seen · 58 lines · 83 tokens per session scan A fab812352570

Subscribe to this mod's changes

test-migration-coverage-gate is a skill published in the GitHub repository OutlineDriven/odin-claude-plugin (35 stars, last pushed today), licensed Apache-2.0. It adds 83 tokens to every session and 1,140 once invoked, about $0.0004 per session on Opus 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-09-04.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

next-partial-prefetching-adoption

Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…

vercel/next.js · 103 tokens

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens

babysit-pr

Babysit a GitHub pull request after creation by continuously polling review comments, CI checks/workflow runs, and mergeability state until the PR is merged/closed or user help is required. Diagnose failures, retry likely flaky failures up to 3 times, auto-fix/push branch-related issues when appropriate, and keep…

openai/codex · 114 tokens