test-design

test-design is a skill for Claude Code, Codex from Crearize/ai-dev-helm. It costs 44 tokens per session (4,082 once invoked), scanned A, original, MIT.

A test-planning method focused on defining trustworthy expected results before writing code or tests. TDD, or test-driven development, is the practice of writing tests before implementation.

In plain words
What is it for?
Use it before implementing a feature or bug fix to identify possible failures, document the evidence behind expected results, assess risk, and create an independent test-design note.
Why use it?
It reduces the risk of tests copying the same mistakes as the code they check, especially when an AI writes both the implementation and its tests.

Skill for Claude CodeCodex

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

Good fit Use it before implementing a feature or bug fix to identify possible failures, document the evidence behind expected results, assess risk, and create an independent test-design note.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/crearize/ai-dev-helm/test-design
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 Crearize/ai-dev-helm --skill test-design
Clone the repo
git clone --depth 1 https://github.com/Crearize/ai-dev-helm

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 test-design

README.md
[![agentmods](https://agentmods.dev/badge/skills/crearize/ai-dev-helm/test-design/github.svg)](https://agentmods.dev/skills/crearize/ai-dev-helm/test-design)
Your own site
<a href="https://agentmods.dev/skills/crearize/ai-dev-helm/test-design"><img src="https://agentmods.dev/badge/skills/crearize/ai-dev-helm/test-design/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 test-design

Your own site · 80×15
<a href="https://agentmods.dev/skills/crearize/ai-dev-helm/test-design"><img src="https://agentmods.dev/badge/skills/crearize/ai-dev-helm/test-design.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,082 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.00044 $0.04082
Opus 5.5 $0.00018 $0.01633
Sonnet 5.5 $0.00009 $0.00816
Haiku 4.5 $0.00004 $0.00408

Measured 1mo ago against content hash 603cea6138f8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

test-design 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 1mo 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.

skills/project/test-design/SKILL.md · 196 lines

How it starts

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

Test Design Skill - テストオラクル起点のテスト設計

導入先の補足ファイル documents/development/project/test-design.md があれば、その段で読む。補足ファイルは製品への当てはめ(コマンド・パス・ポート等)だけを持ち、本スキルの規則(完了条件・レビュー体制・優先度・フラグ・hook の契約・止まる場面)を緩めない。食い違えば本スキルが優先する。

実行フロー

Step 0: 適用判定(リスクレベルの自己判定) — Low は対象外(メモ不要)
  ↓ High / Medium
Step 1: この変更の最重要リスク(上位3つ)
  ↓
Step 2: 保証すべき状態遷移・不変条件
  ↓
Step 3: Failure Mode → テスト層のマッピング
  ↓
Step 4: テストオラクル定義(本スキルの中核)
  ↓
Step 5: ファルシフィケーション項目
  ↓
テスト設計メモを docs/superpowers/plans/YYYY-MM-DD-<feature>-test-design.md に保存(非コミット)→ 実装・TDD へ

段ごとに読むファイル

段 読むファイル 中身
Step 1〜5(テスト設計メモを書くとき) references/memo-template.md メモのテンプレート(そのままコピーして使う。記入例つき)
quality-check Step 3 から遡及実行されたとき references/quality-check-connection.md quality-check Step 3 との接続(遡及ルール、verified / retroactive、ミューテーションテストとの接続、照合結果の記録先)

完了条件

  • リスクレベルを自己判定した(quality-policy §1。複数領域は最高レベル / 迷ったら1段階高く)
  • Low リスクではない(Low ならメモ不要でここで終了)
  • メモを docs/superpowers/plans/YYYY-MM-DD-<feature>-test-design.md に作成した(非コミット)
  • 5項目すべてを記入した(最重要リスク上位3 / 状態遷移・不変条件 / Failure Mode → テスト層 / テストオラクル定義 / ファルシフィケーション項目)
  • 各期待値に実装以外の根拠(仕様書・要件・計算根拠)を明記した
  • 根拠が特定できない期待値を、設計・要件から導くか、設計の目的に沿って選び設計との差異に記録した(あった場合)
  • Failure Mode → テスト層は quality-policy §3 を参照して選んだ(表の転記をしていない)
  • 実装コード・テストコードを書く前にここまで完了している

確認の場面と進め方(毎回守る)

根拠が特定できない期待値が出てきた場合、それは仕様が未定であるというシグナルである。実装で埋めない(実装から逆算しない)。まず設計・要件・機能ドキュメントから導く。導けないときは、設計の目的に最も沿う期待値を選び、根拠欄に「設計に記載なし(設計との差異として報告)」と書いて、設計との差異に記録する(documents/development/development-policy.md §1.0「承認後の進め方」)。設計の承認後はユーザーに途中で確認しない。設計の目的に照らしても期待値を選べない重要な製品判断なら、X4(差異の設計を 1 通で示す)に当たる。


目的

テストコードを書けることと、正しいテストオラクルを設計できることは別能力である。

実装した AI 自身がテストを書くと、実装を通すことが目的化し(リワードハッキング)、実装の誤りをテストが一緒に間違える相関故障が起きる。テストの Green は「書いたテストの範囲で期待どおりに動いた」ことしか意味せず、期待値そのものが誤っていれば Green は誤りを追認するだけになる。

本スキルは、実装コードを書く前に「何が壊れうるか」「期待値の根拠はどこにあるか」「どうすればこの実装が間違っていることを証明できるか」を文書化し、実装と検証を同じ最適化ループから引き剥がす。

Read the full file on GitHub · 196 lines

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. 1mo ago Changed 603cea6138f8
  2. 1mo ago Changed · -57 lines bb687abfb76a
  3. 1mo ago Changed · +1 lines 3c4e33a0c71d
  4. 1mo ago Changed 51b74c31729e
  5. 1mo ago Changed 3934da6fdbbc
  6. 1mo ago Changed · +3 lines 59c117297964
  7. 2mo ago Changed 55f885cb7585
  8. 2mo ago Changed · +8 lines 027351fd0957
  9. 3mo ago First seen · 241 lines · 44 tokens per session scan A aab1314e29e0

Subscribe to this mod's changes

test-design is a skill published in the GitHub repository Crearize/ai-dev-helm (6 stars, last pushed 8d ago), licensed MIT. It adds 44 tokens to every session and 4,082 once invoked, about $0.0002 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-31.

Related

test-design compared with skills from other repositories

test-design next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
test-designCrearize/ai-dev-helmSkill68d agoMITA44Claude Code, Codex
engram-testing-coverageGentleman-Programming/engramSkill8.4k6d agoMITA25Claude Code, Codex
iterative-developmentalinaqi/maggySkill7123d agoMITA24Claude Code
tddglebis/claude-skillsSkill417todayMITA92Claude Code
mobiai-mobile-tddArisGuimera/MobiAI-CoreSkill495todayMITA38Claude Code
nw-leanux-methodologynWave-ai/nWaveSkill63611d agoMITA37Claude Code
nw-ddd-eventsourcingnWave-ai/nWaveSkill63611d agoMITA38Claude Code