hone:test-naming-audit

hone:test-naming-audit is a skill for Claude Code from ckorhonen/hone-skills. It costs 66 tokens per session (1,732 once invoked), scanned A, original, MIT.

A code-review check that examines test names and flags names that do not clearly describe the behavior being tested.

In plain words
What is it for?
Use it on pull requests or periodic repository reviews to improve names such as test1 or testLogin.
Why use it?
It makes tests easier to understand by identifying cryptic, abbreviated, numbered, or implementation-focused names. It is not a test-coverage checker.

Skill for Claude Code

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

Part of the hone-skills plugin — 8 skills shipped together

Good fit Use it on pull requests or periodic repository reviews to improve names such as test1 or testLogin.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ckorhonen/hone-skills/test-naming-audit
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 ckorhonen/hone-skills --skill test-naming-audit
Clone the repo
git clone --depth 1 https://github.com/ckorhonen/hone-skills

Made for: Claude Code.

Or install hone-skills, the plugin that ships this one along with the rest of its 8 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 hone:test-naming-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/ckorhonen/hone-skills/test-naming-audit/github.svg)](https://agentmods.dev/skills/ckorhonen/hone-skills/test-naming-audit)
Your own site
<a href="https://agentmods.dev/skills/ckorhonen/hone-skills/test-naming-audit"><img src="https://agentmods.dev/badge/skills/ckorhonen/hone-skills/test-naming-audit/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 hone:test-naming-audit

Your own site · 80×15
<a href="https://agentmods.dev/skills/ckorhonen/hone-skills/test-naming-audit"><img src="https://agentmods.dev/badge/skills/ckorhonen/hone-skills/test-naming-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,732 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.
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.00066 $0.01732
Opus 5 $0.00033 $0.00866
Sonnet 5 $0.00013 $0.00346
Haiku 4.5 $0.00007 $0.00173

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

Security

Grade A, and why

hone:test-naming-audit 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.

skills/test-naming-audit/SKILL.md · 160 lines

How it starts

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

Test Naming Audit

What This Skill Does

Scans test files across the codebase and evaluates whether each test method/function name communicates the behavior being verified. A good test name reads as a complete sentence: it states what is being tested, under what conditions, and what the expected outcome is.

Flags tests whose names are:

  • Cryptic: test1, test2, testA, testIt, foo_test.
  • Too short: Single-word names like testParse, testLogin, testSave that omit conditions and expectations.
  • Abbreviated: testUsrAuth, test_inv_req where abbreviations hurt readability.
  • Implementation-focused: Names that reference implementation details rather than behavior (testCallsApi, testUsesCache).
  • Numbered: Names using numeric suffixes to distinguish cases (testParse1, testParse2).

Reports each finding with the test name, file:line, the issue category, and a suggested improvement pattern.

When To Use

  • On every PR that touches test files.
  • As a weekly sweep of the full test suite.
  • When the user asks to "audit test names" or "check test naming".

Do Not Use

  • For test coverage analysis or missing tests.
  • For test structure, assertions, or setup/teardown patterns.
  • For non-test code naming — use hone:intent-clarity-audit or hone:naming-specificity-audit instead.
  • To rename tests automatically. This skill reports findings only.

Inputs To Confirm

  1. Scope: Which directories or file patterns to scan for tests (default: auto-detect test directories and files matching common patterns like *_test.*, *.test.*, *.spec.*, test_*.*, *Test.*, *Spec.*).
  2. Exclusions: Glob patterns for files to skip (e.g., test helpers, fixtures, generated tests).
  3. Strictness: standard (flag clearly bad names) or strict (also flag names that are acceptable but could be more descriptive). Default: standard.

Instructions

  1. Find test files. Walk the repository tree and identify test files using common naming conventions:
    • Files: *_test.go, *.test.ts, *.test.js, *.spec.ts, *.spec.js, test_*.py, *_test.py, *_test.rb, *Test.java, *Test.kt, *Spec.java, *Spec.kt, *_spec.rb, *Tests.swift, *_tests.rs.
    • Directories: test/, tests/, __tests__/, spec/. Apply user exclusions.

Read the full file on GitHub · 160 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 · 160 lines · 66 tokens per session scan A 1cca44cda9ae

Subscribe to this mod's changes

hone:test-naming-audit is a skill published in the GitHub repository ckorhonen/hone-skills (0 stars, last pushed 4mo ago), licensed MIT. It adds 66 tokens to every session and 1,732 once invoked, about $0.0003 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-31.