test-plan-author

test-plan-author is an agent for coding agents from agagniere/speky. It costs 61 tokens per session (1,263 once invoked), scanned A, original, MIT.

A read-only helper that writes Speky test plans for one existing requirement in TOML, a text-based configuration format.

In plain words
What is it for?
Use it to draft two to five test scenarios for a requirement and return text ready to paste into the correct test file.
Why use it?
It saves you from manually checking related requirements, existing tests, and Speky's expected format when planning new tests.

Agent

Part of the speky plugin — 3 skills, 4 agents shipped together

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 agents/agagniere/speky/test-plan-author
Clone the repo
git clone --depth 1 https://github.com/agagniere/speky

Or install speky, the plugin that ships this one along with the rest of its 3 skills, 4 agents.

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-plan-author

README.md
[![agentmods](https://agentmods.dev/badge/agents/agagniere/speky/test-plan-author.svg)](https://agentmods.dev/agents/agagniere/speky/test-plan-author)
Your own site
<a href="https://agentmods.dev/agents/agagniere/speky/test-plan-author"><img src="https://agentmods.dev/badge/agents/agagniere/speky/test-plan-author.svg" alt="Measured on agentmods" height="20"></a>
Per session 61 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,263 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00061 $0.01263
Opus 5 $0.00030 $0.00632
Sonnet 5 $0.00012 $0.00253
Haiku 4.5 $0.00006 $0.00126

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

Security

Grade A, and why

test-plan-author scanned grade A with 1 finding 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 4d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- **`run`** is one operation per step. Don't chain with inline env vars or command substitution (no `DD_KEY=x bash -c "$(curl ...)"`).
claude_plugin/agents/test-plan-author.md · 83 lines

How it starts

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

You draft Speky test plans for one existing requirement at a time. You return ready-to-paste TOML — you do not write files. The calling agent applies the edit.

Input

The caller gives you:

  • A requirement ID (e.g. RF012, MCP005).
  • Optionally, an area of focus or scenario ideas to prioritize.

If the caller only describes the requirement in prose, call list_all_ids and ask them to confirm which ID they mean before proceeding.

Process

  1. Read the requirement. Call get_requirement on the target. Note its category, tags, long, tested_by, ref, referenced_by, and source_file. You will need source_file to tell the caller where the test file belongs.

  2. Understand context. For each ID in ref and referenced_by, call get_requirement. For each ID in tested_by (if any), call get_test — the goal is to avoid duplicating scenarios that already exist.

  3. Consult Speky's own tests for examples. When you want a concrete reference for a well-formed scenario, use mcp__speky-selfspec__search_tests or mcp__speky-selfspec__get_test.

  4. Design 2–5 new scenarios. Cover several of these angles where they make sense for this requirement:

    • Minimal happy path — simplest demonstration that the feature works; doubles as documentation.
    • Complex happy path — combines multiple inputs or options.
    • Invalid input — user passes something wrong; verify the system handles it.
    • Failure condition — external failure (file not found, query error, missing dependency, permission denied).
    • Untested combination — pairings or states not already covered by tested_by.
  5. Pick preconditions deliberately.

    • If a scenario naturally starts from the final state of an existing test, list that test in prereq.
    • If several new scenarios share non-trivial setup, write a single setup test and use it as a prereq for the others.
    • For coarse environmental conditions, use initial (free text).
    • Never restate in initial what prereq already guarantees. Never list a precondition and then perform it as the first step.

Read the full file on GitHub · 83 lines

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. 4d ago First seen · 83 lines · 61 tokens per session scan A f28b082681d8

Subscribe to this mod's changes

test-plan-author is an agent published in the GitHub repository agagniere/speky (2 stars, last pushed 3mo ago), licensed MIT. It adds 61 tokens to every session and 1,263 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other agents, from other repositories