write-test

A procedure for designing unit-test cases for functions or modules, covering normal inputs, boundary values, and errors. Unit tests check small parts of a program in isolation.

In plain words
What is it for?
Use it to produce test-case tables with inputs, expected results, side effects, and scenario types for public functions.
Why use it?
It reduces missed edge cases and explains how to mock databases or networks so tests stay repeatable.

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/superman1006/meetmind/write-test
Any agent
npx skills add superman1006/MeetMind --skill write-test
Clone the repo
git clone --depth 1 https://github.com/superman1006/MeetMind

Made for: Claude Code, Codex.

Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 171 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.00171
Opus 5 $0.00014 $0.00086
Sonnet 5 $0.00006 $0.00034
Haiku 4.5 $0.00003 $0.00017

Measured 2d ago against content hash 103ae7174365, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

write-test 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.

apps/runtime/src/skills/write-test/SKILL.md · 17 lines

What it actually says

单元测试设计技能

为目标函数 / 模块设计测试用例,输出一张用例表,每行包含:

  • 用例名:描述被测场景的一句话。
  • 输入:构造的入参。
  • 预期:期望的返回或副作用。
  • 类型:正常路径 / 边界值 / 异常分支。

要求:每个公开函数至少覆盖「一条正常路径 + 一条边界 + 一条异常」。 对涉及外部依赖(DB / 网络)的部分说明如何 mock,保持测试可重复、不依赖环境。

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 First seen · 17 lines · 28 tokens per session scan A 103ae7174365

Subscribe to this mod's changes

write-test is a skill published in the GitHub repository superman1006/MeetMind (57 stars, last pushed 2mo ago), licensed MIT. It adds 28 tokens to every session and 171 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-08-30.