improving-tests

improving-tests is a skill for Claude Code, Codex from alexei-led/cc-thingz. It costs 79 tokens per session (895 once invoked), scanned A, original, MIT.

A workflow for improving automated tests so they check real software behavior, run efficiently, and resist unnecessary breakage. TDD, or test-driven development, means writing a test before the code it requires.

In plain words
What is it for?
Use it to add useful coverage, refactor fragile tests, remove wasted tests, speed up slow test suites, create characterization tests, or work test-first.
Why use it?
It helps tests catch meaningful regressions without making normal development slow or brittle. It treats code coverage as a signal rather than the sole goal.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to add useful coverage, refactor fragile tests, remove wasted tests, speed up slow test suites, create characterization tests, or work test-first.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/alexei-led/cc-thingz/improving-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 alexei-led/cc-thingz --skill improving-tests
Clone the repo
git clone --depth 1 https://github.com/alexei-led/cc-thingz

Made for: Claude Code, Codex.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/alexei-led/cc-thingz/improving-tests"><img src="https://agentmods.dev/badge/skills/alexei-led/cc-thingz/improving-tests.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 79 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 895 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.00079 $0.00895
Opus 5.5 $0.00032 $0.00358
Sonnet 5.5 $0.00016 $0.00179
Haiku 4.5 $0.00008 $0.00089

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

Security

Grade A, and why

improving-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 21d 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.

src/skills/improving-tests/SKILL.md · 76 lines

How it starts

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

Test Improvement

Make tests catch real behavior regressions without blocking safe changes. Suite latency is a quality attribute; coverage is a signal, not the goal.

Without write access, return proposed changes (file, change, reason) instead of applying them.

Read the reference for each language in scope; it covers test patterns and suite speed. Use the matching writing-<lang> skill for toolchain commands.

  • C#: references/csharp.md
  • Go: references/go.md
  • Java/Kotlin: references/java-kotlin.md
  • Python: references/python.md
  • Rust: references/rust.md
  • TypeScript/JavaScript: references/typescript.md
  • Browser, Playwright, HTMX: references/web.md

Modes

If the mode is missing, ask which one:

  • review: find weak, duplicate, brittle, missing, slow, or flaky tests.
  • refactor: simplify tests without changing covered behavior.
  • coverage: add tests for uncovered business behavior and error paths.
  • tdd: one red-green-refactor slice at a time.
  • performance: cut suite latency without weakening behavior.
  • full: all of the above.

Rules

  • Ask before adding a test framework, runner plugin, or tool. Learn the framework, helpers, and conventions from nearby tests and follow them first.
  • Change production code only inside an approved TDD slice. If no safe behavior seam exists, stop and report what production change would create one.
  • Test through the contract users or adjacent modules rely on: public module, API, CLI, component, or service. Use an integration seam when behavior depends on real wiring (database, filesystem, HTTP, serialization, config); a unit seam when behavior is pure and cheap.
  • Mock only system boundaries (network, clock, randomness, filesystem, subprocesses, external services). Prefer real collaborators or in-memory fakes for domain code.
  • Assert behavior, not private helpers, call counts, or layout. Business-critical arguments get exact matches.
  • Parameterize cases that share setup and assertions; keep separate tests when that reads clearer.
  • Delete shallow or duplicate tests once stronger boundary tests cover the behavior.
  • Characterization tests before risky changes to legacy code capture current visible behavior, quirks included, at the public boundary.
  • TDD: each slice has one test that failed for the expected reason before the smallest passing code, and refactoring happens only while green. No bulk suites for imagined behavior.
  • If a code-graph tool (GitNexus, codegraph) is installed and fresh, use it to find affected flows and high fan-in code that needs regression coverage.

Read the full file on GitHub · 76 lines

Files

What ships with it

8 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. 21d ago Changed · -1 lines · -10 tokens per session 314ef0731930
  2. 22d ago Changed · -101 lines 43b4b39bdbdd
  3. 1mo ago First seen · 178 lines · 89 tokens per session scan A bf615c114ffe

Subscribe to this mod's changes

improving-tests is a skill published in the GitHub repository alexei-led/cc-thingz (38 stars, last pushed 11d ago), licensed MIT. It adds 79 tokens to every session and 895 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

go-testing

Trigger: Go tests, go test coverage, Bubbletea teatest, golden files. Apply focused Go testing patterns.

Gentleman-Programming/gentle-ai · 26 tokens

ring:running-dev-cycle

Running the backend dev cycle: implements every task in a rolling-wave plan.md (ring:writing-plans format) for a Go/TS service, driving specialist agents through Gate 0 implementation/TDD, Gate 8 parallel review, and Gate 9 validation per epic, elaborating later phases at each phase boundary. Use when starting or…

LerianStudio/ring · 122 tokens

gentle-ai

Use Gentle AI harness discipline for Pi work: clarify first, preserve OpenSpec artifacts, use strict TDD where available, delegate through subagents when useful, and protect review workload.

Gentleman-Programming/gentle-pi · 40 tokens

ring:instrumenting-streaming-events

Instrumenting streaming events: wires lib-streaming event emission end-to-end into a Lerian Go service via a 13-gate cycle (catalog, Builder bootstrap, Emit sites, outbox, HTTP manifest, NoopEmitter fallback, integration and chaos tests), dispatching ring:backend-go under TDD. Consumes the validated…

LerianStudio/ring · 102 tokens

ring:implementing-tasks

Implementing a single planned task (Task N.M.T) end-to-end: selects the right backend agent by language and service type, drives one TDD RED->GREEN turn, then verifies coverage, lint, license headers, runtime, and delivery before handoff. Runs as Gate 0 before ring:reviewing-code. Use to drive ONE task inside an…

LerianStudio/ring · 103 tokens

cpp-testing

A guide for testing C++17/20 code with GoogleTest, GoogleMock, CMake, and CTest. It covers unit and integration tests, test discovery, coverage, and sanitizers.

loulanyue/awesome-claude-notes · 55 tokens