unit-test-scaffold

unit-test-scaffold is a skill for Claude Code, Codex from zhuyansen/agent-skills-hub. It costs 26 tokens per session (181 once invoked), scanned A, original, MIT.

A recipe for creating a unit test file, with one test for each public function and cases for unusual inputs. Unit tests check small pieces of code separately from the rest of an application.

In plain words
What is it for?
Use it to scaffold tests for a module and produce a short summary of the changes.
Why use it?
It prevents important functions and edge cases from being left without tests, while avoiding guesses when the source file is missing.

Skill for Claude CodeCodex

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

Good fit Use it to scaffold tests for a module and produce a short summary of the changes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/zhuyansen/agent-skills-hub/unit-test-scaffold
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 zhuyansen/agent-skills-hub --skill unit-test-scaffold
Clone the repo
git clone --depth 1 https://github.com/zhuyansen/agent-skills-hub

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 unit-test-scaffold

README.md
[![agentmods](https://agentmods.dev/badge/skills/zhuyansen/agent-skills-hub/unit-test-scaffold/github.svg)](https://agentmods.dev/skills/zhuyansen/agent-skills-hub/unit-test-scaffold)
Your own site
<a href="https://agentmods.dev/skills/zhuyansen/agent-skills-hub/unit-test-scaffold"><img src="https://agentmods.dev/badge/skills/zhuyansen/agent-skills-hub/unit-test-scaffold/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 unit-test-scaffold

Your own site · 80×15
<a href="https://agentmods.dev/skills/zhuyansen/agent-skills-hub/unit-test-scaffold"><img src="https://agentmods.dev/badge/skills/zhuyansen/agent-skills-hub/unit-test-scaffold.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 181 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.
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.00026 $0.00181
Opus 5.5 $0.00010 $0.00072
Sonnet 5.5 $0.00005 $0.00036
Haiku 4.5 $0.00003 $0.00018

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

Security

Grade A, and why

unit-test-scaffold 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.

ops/skillmgr-runs/in/input/library/unit-test-scaffold/SKILL.md · 21 lines

What it actually says

Unit Test Scaffold

Create a unit test file for a module with one test per public function and the edge cases to cover.

When to use

Use this skill when the user asks for it by name or describes this task. Do not use it for unrelated work.

Steps

  1. Read the input the user points to. If none is given, ask for the file or text.
  2. Do the task described above, step by step, and keep the user's own wording where it matters.
  3. Show the result, then a short list of what you changed or found, so the user can check it.

Notes

  • Keep changes small and reversible.
  • Say plainly when the input is incomplete instead of guessing.
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 First seen · 21 lines · 26 tokens per session scan A 442fe8463454

Subscribe to this mod's changes

unit-test-scaffold is a skill published in the GitHub repository zhuyansen/agent-skills-hub (452 stars, last pushed today), licensed MIT. It adds 26 tokens to every session and 181 once invoked, about $0.0001 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-10-11.

Related

Other skills, from other repositories

convex-test

Generate convex-test tests for the app's Convex functions.

openclaw/clawhub · 16 tokens

write-unit-tests

Writing unit and integration tests for the tldraw SDK. Use when creating new tests, adding test coverage, or fixing failing tests in packages/editor or packages/tldraw. Covers Vitest patterns, TestEditor usage, and test file organization.

aisa-group/skill-inject · 53 tokens

claude-code-test

A development rule for a FastAPI and SQLite project that requires tests to run with `pytest -v`, then requires failures to be fixed and tests rerun until coverage reaches 100%. FastAPI is a Python web framework, and pytest is a Python testing tool.

LoNebula/lluminai · 0 tokens

test-master

Generates test files, creates mocking strategies, analyzes code coverage, designs test architectures, and produces test plans and defect reports across functional, performance, and security testing disciplines. Use when writing unit tests, integration tests, or E2E tests; creating test strategies or automation…

Jeffallan/claude-skills · 104 tokens

migrate-xunit-to-xunit-v3

Migrate .NET test projects from xUnit.net v2 to xunit.v3 and fix v3 breaks. Use for package/CPM conversion, OutputType=Exe, preserving the VSTest or MTP runner (including projects currently using YTest.MTP.XUnit2), incompatible TFMs, async void tests, string-to-Type attributes, custom Fact/Theory/BeforeAfterTest…

dotnet/skills · 149 tokens

go-testing

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

Gentleman-Programming/gentle-ai · 26 tokens