Improving tests

From alexei-led/cc-thingz · View interactive version

Improving tests is an AI agent skill from the GitHub repository alexei-led/cc-thingz. Improve test design, speed, and coverage with behavior-focused tests, useful seams, characterization tests, TDD, and test refactoring. Use when improving tests, optimizing slow suites, adding coverage, refactoring brittle tests, or removing test waste. NOT for fixing production bugs (use fixing-code

How to use this skill

Skill file

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.

The optional coding-posture plugin owns general test-first and refactoring

procedure. This skill adds test-design and language-specific guidance; do not

load both merely to repeat a checklist.

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.

Modes

Choose the mode from the request. Ask only when the choice changes the scope:

Rules

Speed

Performance work records the same command's wall time before and after, names

the bottleneck (discovery, import or compile, setup, test body, external

boundary, runner config, or parallel balance), and leaves a guard against

regression (durations output, per-test ceiling, slow marker, or focused command).

Done when the relevant build/test/lint checks pass on what you changed, or you

name each check that did not run and why.

Report

Mode, tests changed, key changes (path:line — change), coverage and timing

before → after when measured, and each check with pass, fail, or skipped and why.

Platform additions

No target-specific additions.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.