unit-test-project-conformant

unit-test-project-conformant is a skill for Claude Code from opendatahub-io/ai-helpers. It costs 38 tokens per session (1,036 once invoked), scanned A, original, Apache-2.0.

A method for writing unit tests that match the existing style of a project. Unit tests are small checks that verify individual pieces of code behave correctly.

In plain words
What is it for?
Use it when adding or changing tests for functions, classes, modules, or other behavior, including after a refactor that requires test updates.
Why use it?
It prevents new tests from using an unfamiliar structure or pattern. The workflow first studies several similar tests so added coverage fits the codebase.

Skill for Claude Code

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

Part of the odh-code-quality plugin — 2 skills shipped together

Good fit Use it when adding or changing tests for functions, classes, modules, or other behavior, including after a refactor that requires test updates.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/opendatahub-io/ai-helpers/unit-test-project-conformant
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 opendatahub-io/ai-helpers --skill unit-test-project-conformant
Clone the repo
git clone --depth 1 https://github.com/opendatahub-io/ai-helpers

Made for: Claude Code.

Or install odh-code-quality, the plugin that ships this one along with the rest of its 2 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 unit-test-project-conformant

README.md
[![agentmods](https://agentmods.dev/badge/skills/opendatahub-io/ai-helpers/unit-test-project-conformant/github.svg)](https://agentmods.dev/skills/opendatahub-io/ai-helpers/unit-test-project-conformant)
Your own site
<a href="https://agentmods.dev/skills/opendatahub-io/ai-helpers/unit-test-project-conformant"><img src="https://agentmods.dev/badge/skills/opendatahub-io/ai-helpers/unit-test-project-conformant/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 unit-test-project-conformant

Your own site · 80×15
<a href="https://agentmods.dev/skills/opendatahub-io/ai-helpers/unit-test-project-conformant"><img src="https://agentmods.dev/badge/skills/opendatahub-io/ai-helpers/unit-test-project-conformant.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,036 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.00038 $0.01036
Opus 5 $0.00019 $0.00518
Sonnet 5 $0.00008 $0.00207
Haiku 4.5 $0.00004 $0.00104

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

Security

Grade A, and why

unit-test-project-conformant 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 11d 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/odh-code-quality/skills/unit-test-project-conformant/SKILL.md · 185 lines

How it starts

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

Unit Test (Project-Conformant) Skill

This skill ensures the agent does not invent test structure and instead learns how the project already tests similar code, then writes the new test in the same style, location, and pattern.

The goal is for the new test to be indistinguishable from existing tests.

When to Use

  • Use this skill every time a unit test must be written or modified.
  • Use this skill when adding coverage for new functions, classes, or behavior.
  • Use this skill when refactoring code that requires corresponding test updates.
  • This skill is required whenever the agent is tempted to create a “clean” or “ideal” test structure.

Instructions

Step 1 — Discover How the project Tests Similar Code

Before writing any test:

  • Identify the file, function, or class to be tested.
  • Search the project for tests covering:
    • The same module
    • The same directory
    • Similar functions
    • Similar classes
    • Similar behavior
  • Use search terms such as:
    • Function name
    • Class name
    • Module name
    • Error messages
    • Public API names

You must examine at least 2–3 similar tests before proceeding.


Step 2 — Extract the Test Pattern

From the discovered tests, learn:

  • Where tests are located
  • File naming conventions
  • Test naming conventions
  • Whether tests are:
    • Standalone functions
    • Inside classes
    • Parametrized
    • Fixture-driven
    • Integration-style
  • Assertion style
  • Mocking style
  • Helper utilities used
  • What is intentionally not tested

You are learning the project’s testing contract.


Step 3 — Decide Where the Test Belongs

Follow existing structure exactly:

  • If similar code is tested in a shared file → add to that file
  • If similar code is tested inside a class → add a method there
  • If similar tests extend parametrization → extend it
  • If similar behavior is only tested indirectly → do the same

Do not create a new test file unless similar tests do.


Step 4 — Match Style Exactly

Read the full file on GitHub · 185 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. 11d ago First seen · 185 lines · 38 tokens per session scan A dfc34f274791

Subscribe to this mod's changes

unit-test-project-conformant is a skill published in the GitHub repository opendatahub-io/ai-helpers (37 stars, last pushed 4d ago), licensed Apache-2.0. It adds 38 tokens to every session and 1,036 once invoked, about $0.0002 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-08-30.

Related

Other skills, from other repositories

web3-testing

Test smart contracts comprehensively using Hardhat and Foundry with unit tests, integration tests, and mainnet forking. Use when testing Solidity contracts, setting up blockchain test suites, or validating DeFi protocols.

wshobson/agents · 46 tokens

temporal-python-testing

Test Temporal workflows with pytest, time-skipping, and mocking strategies. Covers unit testing, integration testing, replay testing, and local development setup. Use when implementing Temporal workflow tests or debugging test failures.

wshobson/agents · 45 tokens

data-quality-frameworks

Implement data quality validation with Great Expectations, dbt tests, and data contracts. Use when building data quality pipelines, implementing validation rules, or establishing data contracts.

wshobson/agents · 37 tokens

dbt-transformation-patterns

Master dbt (data build tool) for analytics engineering with model organization, testing, documentation, and incremental strategies. Use when building data transformations, creating data models, or implementing analytics engineering best practices.

wshobson/agents · 47 tokens

screen-reader-testing

Test web applications with screen readers including VoiceOver, NVDA, and JAWS. Use when validating screen reader compatibility, debugging accessibility issues, or ensuring assistive technology support.

wshobson/agents · 39 tokens

e2e-testing-patterns

Master end-to-end testing with Playwright and Cypress to build reliable test suites that catch bugs, improve confidence, and enable fast deployment. Use when implementing E2E tests, debugging flaky tests, or establishing testing standards.

wshobson/agents · 51 tokens