refine-tests

refine-tests is a skill for Claude Code from nowsprinting/unity-coding-skills. It costs 64 tokens per session (2,071 once invoked), scanned A, original, Unlicense.

A code-review skill for improving tests according to a project's test-design and test-writing guides. Tests are code that checks whether other code behaves correctly.

In plain words
What is it for?
Use it when you have test files that need review and refinement. It is not for adding tests for a new feature or fixing a test that checks the wrong behaviour.
Why use it?
It helps bring existing tests into line with team conventions without treating new features or failing tests as its target.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: names the AskUserQuestion tool; mentions Claude Code.

Part of the unity-coding-skills plugin — 10 skills, 3 agents shipped together

Good fit Use it when you have test files that need review and refinement. It is not for adding tests for a new feature or fixing a test that checks the wrong behaviour.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nowsprinting/unity-coding-skills/refine-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 nowsprinting/unity-coding-skills --skill refine-tests
Clone the repo
git clone --depth 1 https://github.com/nowsprinting/unity-coding-skills

Made for: Claude Code.

Or install unity-coding-skills, the plugin that ships this one along with the rest of its 10 skills, 3 agents.

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 refine-tests

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/nowsprinting/unity-coding-skills/refine-tests"><img src="https://agentmods.dev/badge/skills/nowsprinting/unity-coding-skills/refine-tests.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,071 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.00064 $0.02071
Opus 5.5 $0.00026 $0.00828
Sonnet 5.5 $0.00013 $0.00414
Haiku 4.5 $0.00006 $0.00207

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

Security

Grade A, and why

refine-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 5d 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/refine-tests/SKILL.md · 125 lines

How it starts

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

Reviews existing test code for conformance to the test-designing-guide and test-writing-guide, then applies the refinements.

Scope Check

This skill is for refining existing tests for conformance to the guides. If the request is out of scope, redirect:

  • Adding tests for a new feature or spec change → use /plan-feature instead
  • A failing test, or a test that verifies incorrect behavior → use /fix-bug instead

Input

One or more file path arguments. Resolve them to the concrete set of test files to review before proceeding.

If no path argument is given, use AskUserQuestion to ask the user for the targets. Do not derive targets from git status — that would silently widen the scope beyond what was requested.

Workflow

Recording implementation notes: Notes for this run go in <scratchpad>/implementation-notes.md, where <scratchpad> is the scratchpad directory listed in your system prompt (write its absolute path literally). Immediately before your first append in this run — and only then — delete that file if it exists (usually it will not), so this run starts from an empty one: every /fix-bug, /refine-tests, and plan-file run in the session shares this file, so an earlier run abandoned before its Implementation Notes step would otherwise leak its notes into this one.

While working through Steps 5–6, whenever one of the following occurs, immediately append a line to that file — do not wait until the end to reconstruct these from memory:

  • A Finding was ambiguous, or proved wrong once applied, and you made a judgment call → Design decisions
  • You intentionally departed from a Finding, and why → Deviations
  • You considered alternatives and chose one, and why → Tradeoffs
  • You changed production code — a method demoted to private, a dead test-only seam removed, or any other production edit — and why → Production code changes

Append with Bash — the Write tool cannot append:

cat >> "<scratchpad>/implementation-notes.md" <<'EOF'
- **Production code changes**: <one line>
EOF

Read the full file on GitHub · 125 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. 5d ago Changed 042697f361ce
  2. 29d ago Changed aaac906930a9
  3. 1mo ago First seen · 125 lines · 64 tokens per session scan A f37f3b26f38d

Subscribe to this mod's changes

refine-tests is a skill published in the GitHub repository nowsprinting/unity-coding-skills (20 stars, last pushed today), licensed Unlicense. It adds 64 tokens to every session and 2,071 once invoked, about $0.0003 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

Other skills, from other repositories

asp-ft-release

Release an Aspid.FastTools version end to end. Phase 1 opens the release PR (CHANGELOG section, version files, local tests, Unity EditMode); the user merges it. Phase 2 pushes the v tag after the user's yes and checks what the Release workflow published. The version alone picks the channel. - /asp-ft-release…

VPDPersonal/Aspid.FastTools · 98 tokens

brooks-sweep

Full-sweep mode: runs a unified analysis across all quality dimensions — code decay, architecture, tech debt, and test quality — then applies fixes directly to the codebase. Safe changes are auto-applied; risky changes are confirmed before execution. Drawing on twelve classic engineering books. Triggers when: user…

hyhmrright/brooks-lint · 178 tokens

fable-judge

Adversarial verification of finished work. Treats any "done" as a set of claims, then re-runs the claimed verifications, diffs what actually changed, detects weakened tests and false completion claims, and delivers an evidence-based verdict (VERIFIED / VERIFIED WITH CAVEATS / REFUTED). Use after any agent or model…

Sahir619/fable-method · 124 tokens

brooks-test

Test quality review drawing on twelve classic engineering books — with primary focus on xUnit Test Patterns, The Art of Unit Testing, How Google Tests Software, and Working Effectively with Legacy Code — that diagnoses structural problems in an existing test suite: brittleness, mock abuse, coverage illusions, slow…

hyhmrright/brooks-lint · 161 tokens

pre-pr-audit

Pre-PR confidence audit with 5-dimension scoring. Use when: final check before commit/push/PR, evaluating PR readiness, assessing test quality + risk + coverage holistically. Triggers: pre-pr, readiness check, confidence audit, final verification, ready to PR, how confident. Not for: code review (use…

sd0xdev/sd0x-harness · 95 tokens

vibe-gap-analysis

Assesses production readiness or audits a codebase against its specs. Supports quick static mode, deep 17-dimension audit, or single-dimension focus. Use before a production launch, after a major refactor, when inheriting a codebase, or when someone asks how done the project is.

ash1794/vibe-engineering · 65 tokens