write-tests

write-tests is a skill for Claude Code from greglas75/zuvo. It costs 87 tokens per session (22,958 once invoked), scanned A, original, MIT.

A test-writing workflow for adding tests to existing production code, handling one file at a time and checking whether the tests cover the file's public behavior.

In plain words
What is it for?
Use it to add or improve tests for existing files, either by naming a file, choosing a directory, or discovering uncovered files automatically.
Why use it?
It helps find untested code and provides checks that test coverage is complete rather than relying on the writer's judgment.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is 1. ../../shared/includes/codesift-setup.md -- [READ | MISSING -> DEGRADED].

Part of the zuvo plugin — 57 skills, 48 agents, 5 hooks shipped together

Good fit Use it to add or improve tests for existing files, either by naming a file, choosing a directory, or discovering uncovered files automatically.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/greglas75/zuvo
agentmods
npx agentmods add skills/greglas75/zuvo/write-tests

Made for: Claude Code.

Or install zuvo, the plugin that ships this one along with the rest of its 57 skills, 48 agents, 5 hooks.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/greglas75/zuvo/write-tests"><img src="https://agentmods.dev/badge/skills/greglas75/zuvo/write-tests.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 87 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 22,958 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 warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Rogue Agent · line 381
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
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.00087 $0.22958
Opus 5.5 $0.00035 $0.09183
Sonnet 5.5 $0.00017 $0.04592
Haiku 4.5 $0.00009 $0.02296

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

Security

Grade A, and why

write-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 2d 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/write-tests/SKILL.md · 1,008 lines

How it starts

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

zuvo:write-tests — Single-File Test Pipeline

Generate high-quality tests for production code. Each file goes through the full pipeline individually — no batching of files or pipeline steps, no skipping verification in normal mode, no skipping the coverage gate or audit.

The pipeline's spine is inventory-first + executable proof: the public surface is enumerated and FROZEN before the first test is written, and the only authority on coverage completeness is scripts/test-coverage-gate.py — a program, not the writer's own claim.

Scope: Existing production files with missing or partial test coverage. Out of scope: New feature tests (use zuvo:build), mass anti-pattern repair (use zuvo:fix-tests), audit without writing (use zuvo:test-audit).

Argument Parsing

Input Behavior
[file.ts] Write tests for one production file
[directory/] Write tests for all production files in the directory
auto Discover uncovered files, process one at a time until done
--dry-run Run Phase 0 + Step 1 for all files, print plan, stop
--no-cache Re-run discovery/classification from scratch: ignore any cached CodeSift index answer and any previously built queue for this run
--resume <basename> Resume ONE file from its persisted checkpoint: load contracts/<basename>.coverage.json + contracts/<basename>.contract.md, verify production_sha256 against the file on disk (mismatch → refuse and demand re-inventory — the existing hash rule), take classification from the contract (skip Phase 0.5/Step 1 re-derivation), then jump by state: manifest inventory + contract present → Step 2; final → Step 3; final with Q-scores synced → Step 3.3
--invoked-by <skill> Run on behalf of the named skill (refactor's Phase 3.6 Step 0, for one): no snapshot, no closing commit, and the report ends with Backlog writes: <path>, … (or Backlog writes: none) for that skill's closing commit. Without it the run is standalone and commits its own writes
--resume-run <ledger> Resume an auto-mode queue from its run ledger (see Auto-mode context boundary): reload run-level facts + remaining queue, continue with the next file in a clean window

Read the full file on GitHub · 1,008 lines

Files

What ships with it

5 files 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. 2d ago Changed · +27 lines 131241b54eea
  2. 8d ago Changed · +17 lines 1d73c294c296
  3. 9d ago Changed · +13 lines 3177cea940f7
  4. 10d ago Changed · +2 lines 721669d72a02
  5. 20d ago Changed · +5 lines e4218ca302b6
  6. 25d ago Changed · +9 lines 4e3f04c2d9cf
  7. 27d ago Changed · +84 lines c4395a24a671
  8. 1mo ago Changed · -5 lines 96d87a6e89bc
  9. 1mo ago First seen · 856 lines · 87 tokens per session scan A 83da2c2e14a3

Subscribe to this mod's changes

write-tests is a skill published in the GitHub repository greglas75/zuvo (8 stars, last pushed today), licensed MIT. It adds 87 tokens to every session and 22,958 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-09-03.