codexkit-test-hardening

codexkit-test-hardening is a skill for Claude Code, Codex from hoavdc/CodexKit. It costs 28 tokens per session (451 once invoked), scanned A, original, MIT.

A testing guide for adding tests around recently changed code, risky conditions, error handling, data formats, and past regressions. It focuses on checking behavior rather than copying implementation details.

In plain words
What is it for?
Use it after code changes to choose suitable unit, integration, or end-to-end tests for normal cases, failures, and important edge conditions.
Why use it?
It helps prevent changes from breaking existing behavior without filling the codebase with fragile or repetitive tests. It also encourages clear pass/fail criteria and realistic edge cases.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/hoavdc/codexkit/codexkit-test-hardening
Any agent
npx skills add hoavdc/CodexKit --skill codexkit-test-hardening
Clone the repo
git clone --depth 1 https://github.com/hoavdc/CodexKit

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 codexkit-test-hardening

README.md
[![agentmods](https://agentmods.dev/badge/skills/hoavdc/codexkit/codexkit-test-hardening.svg)](https://agentmods.dev/skills/hoavdc/codexkit/codexkit-test-hardening)
Your own site
<a href="https://agentmods.dev/skills/hoavdc/codexkit/codexkit-test-hardening"><img src="https://agentmods.dev/badge/skills/hoavdc/codexkit/codexkit-test-hardening.svg" alt="Measured on agentmods" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 451 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00028 $0.00451
Opus 5 $0.00014 $0.00226
Sonnet 5 $0.00006 $0.00090
Haiku 4.5 $0.00003 $0.00045

Measured yesterday against content hash 60967a923b4b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

codexkit-test-hardening 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 yesterday.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/coverage-gap-finder.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/codexkit-test-hardening/SKILL.md · 59 lines

What it actually says

Test Hardening

Use this skill when code changes are underway or just landed and you need tests that actually protect behavior.

Focus areas

  • changed execution paths
  • high-risk conditionals
  • error handling
  • serialization or contract boundaries
  • regressions that can silently return

Workflow

  1. Identify the behavior that must remain true.
  2. Choose the narrowest test level that can protect it.
  3. Cover happy path, failure path, and one realistic edge.
  4. Verify tests fail before the fix when possible.
  5. Keep fixtures readable and cheap to maintain.

Avoid

  • snapshot-heavy tests with weak intent
  • restating implementation details instead of behavior
  • adding e2e coverage when a unit or integration test is enough

Quality Criteria

  • Every finding is tied to a specific evidence source (log, test, metric)
  • Pass/fail criteria are binary and measurable — no subjective judgments
  • Severity levels are assigned with clear thresholds
  • Remediation steps are provided for all critical and high findings

Verification (4C)

Check Question
Correctness Are all pass/fail criteria applied against the correct standard or rule?
Completeness Were all required dimensions or checklist items evaluated?
Context-fit Does the verification scope match the actual risk level of the deliverable?
Consequence If this passed verification but had a hidden flaw, what is the worst-case impact?

Edge Cases

  • Incomplete data for full assessment — Document which checks were limited and flag for re-verification when data becomes available.
  • Ambiguous pass/fail criteria — Request clarification from the standard owner before scoring. Mark as 'Needs Review'.
  • Multiple overlapping standards — Identify the governing standard and note where others diverge.

Changelog

  • v1.0.0 — Initial release
Files

What ships with it

2 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. yesterday First seen · 59 lines · 28 tokens per session scan A 60967a923b4b

Subscribe to this mod's changes

codexkit-test-hardening is a skill published in the GitHub repository hoavdc/CodexKit (21 stars, last pushed 3mo ago), licensed MIT. It adds 28 tokens to every session and 451 once invoked, about $0.0001 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-09-03.