automated-test-planning

automated-test-planning is a skill for Claude Code from testdouble/han. It costs 146 tokens per session (5,935 once invoked), scanned A, original, MIT.

A test-plan generator that examines code for missing test coverage and edge cases. It recommends tests at the public interface—the inputs, outputs, side effects, and interactions visible to real callers—rather than testing private implementation details.

In plain words
What is it for?
Use it to create a standalone test plan for a branch, file, or directory and to decide what behavior-focused tests to write.
Why use it?
It helps identify which important behaviors are not protected by tests without tying tests to code that may later be refactored.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the han-coding plugin — 11 skills shipped together

Good fit Use it to create a standalone test plan for a branch, file, or directory and to decide what behavior-focused tests to write.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add testdouble/han
Claude Code
/plugin install han-coding

Made for: Claude Code.

Or install han-coding, the plugin that ships this one along with the rest of its 11 skills.

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 automated-test-planning

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/testdouble/han/automated-test-planning"><img src="https://agentmods.dev/badge/skills/testdouble/han/automated-test-planning.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 146 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,935 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.00146 $0.05935
Opus 5.5 $0.00058 $0.02374
Sonnet 5.5 $0.00029 $0.01187
Haiku 4.5 $0.00015 $0.00594

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

Security

Grade A, and why

automated-test-planning 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 2mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/detect-test-context.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.

han-coding/skills/automated-test-planning/SKILL.md · 336 lines

How it starts

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

Operating Principles

  • Test behavior through the public API, never internals. Every recommended test verifies observable behavior at a public seam: the inputs a real caller supplies, the outputs and side effects they observe, and the interactions the unit has with the other objects and services it collaborates with. Do not recommend tests that reach into private methods, internal state, or implementation structure — those tests pin the how and break on every refactor. When two designs would produce the same observable behavior, the test must pass for both. If a behavior can only be observed by inspecting internals, that is a signal the behavior belongs at a different seam, not a license to test the internal; note it and move the recommendation to the public boundary that exposes it. This is the depth ceiling: cover the critical behaviors a caller depends on, and stop. Do not specify tests for every branch, every private helper, or every intermediate value.

  • YAGNI is a first-class operating principle for tests. Apply the evidence-based YAGNI rule from ../../references/yagni-rule.md. A test is worth recommending only when (a) the code under review commits to a behavior the test verifies and (b) the failure mode the test would catch is realistic for this codebase. Tests for code paths that don't exist yet, hypothetical adversaries the code doesn't face, hypothetical scaling problems the workload doesn't have, "completeness" with existing tests, or symmetry ("we have a test for create, so we should have one for delete") are YAGNI candidates and go to the Deferred Tests section with the trigger that would justify writing them. When many speculative low-level tests can be replaced by one durable behavioral test that catches the same realistic failure modes, recommend the single test instead. Every test is ongoing maintenance and a brittleness surface.

  • Dispatch in proportion to the question. The size band chosen in Step 1.5 caps the roster, and a narrow question gets one agent and a prose answer rather than a team and a full document. Never dispatch the full roster for a question a single agent can settle BECAUSE the dispatch overhead exceeds the work, and a reader who asked one question pays for a document they did not want.

Read the full file on GitHub · 336 lines

Files

What ships with it

3 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. 2mo ago Changed · +58 lines d2fb1062826a
  2. 3mo ago First seen · 278 lines · 146 tokens per session scan A ea82ef46803a

Subscribe to this mod's changes

automated-test-planning is a skill published in the GitHub repository testdouble/han (362 stars, last pushed 18d ago), licensed MIT. It adds 146 tokens to every session and 5,935 once invoked, about $0.0006 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-30.

Related

automated-test-planning compared with skills from other repositories

automated-test-planning next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
automated-test-planningtestdouble/hanSkill36218d agoMITA146Claude Code
pr-reviewoliver-kriska/claude-elixir-phoenixSkill5783d agoMITA59Claude Code
phx-pr-reviewoliver-kriska/claude-elixir-phoenixSkill5783d agoMITA61Claude Code, Codex
pr-threads-addressposit-dev/skillsSkill57617d agoMITA48Claude Code
timelinetykisgod/quick-questionSkill131mo agoMITA26Claude Code
brieftykisgod/quick-questionSkill131mo agoMITA22Claude Code
PRテンプレート品質チェックs977043/river-reviewSkill8todayMITA58Claude Code