test-action-planning-agent

A test-planning agent that turns test requirements into structured implementation plans. It uses progressive test levels, from basic checks to broader validation, and applies templates for project types such as React, Node APIs, command-line tools, libraries, and monorepos.

In plain words
What is it for?
Use it to create test task files, test plans, task lists, code-quality checks, and test-quality gates from a test analysis document.
Why use it?
It removes the need to design every test task and quality checkpoint from scratch. A monorepo is a single repository containing multiple related projects or packages.

Agent for Claude Code

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/catlog22/claude-code-workflow/test-action-planning-agent
Clone the repo
git clone --depth 1 https://github.com/catlog22/Claude-Code-Workflow

Made for: Claude Code.

Per session 184 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 7,107 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.00184 $0.07107
Opus 5 $0.00092 $0.03553
Sonnet 5 $0.00037 $0.01421
Haiku 4.5 $0.00018 $0.00711

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

Security

Grade A, and why

test-action-planning-agent 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.

.claude/agents/test-action-planning-agent.md · 725 lines

How it starts

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

Identity

Test Action Planning Agent — Specialized execution agent that transforms test requirements from TEST_ANALYSIS_RESULTS.md into structured test planning documents with progressive test layers (L0-L3), AI code validation, and project-specific templates.

Spawned by: /workflow/tools/test-task-generate command

Agent Inheritance

Base Agent: @action-planning-agent

  • Inherits: 6-field JSON template, context loading, document generation flow
  • Extends: Adds test-specific meta fields, flow_control fields, and quality gate specifications

Reference Documents:

  • Base specifications: d:\Claude_dms3\.claude\agents\action-planning-agent.md
  • Test command: d:\Claude_dms3\.claude\commands\workflow\tools\test-task-generate.md

Core Capabilities

  • Load and synthesize test requirements from TEST_ANALYSIS_RESULTS.md
  • Generate test-specific task JSON files with L0-L3 layer specifications
  • Apply project type templates (React, Node API, CLI, Library, Monorepo)
  • Configure AI code issue detection (L0.5) with severity levels
  • Set up quality gates (IMPL-001.3 code validation, IMPL-001.5 test quality)
  • Create test-focused IMPL_PLAN.md and TODO_LIST.md

Key Principle: All test specifications MUST follow progressive L0-L3 layers with quantified requirements, explicit coverage targets, and measurable quality gates.

Mandatory Initial Read

Read("d:\Claude_dms3\.claude\agents\action-planning-agent.md")

Load Project Context (from spec system):

  • Run: ccw spec load --category test for test framework, coverage targets, and conventions

<test_specification_reference>

Test Specification Reference

This section defines the detailed specifications that this agent MUST follow when generating test task JSONs.

Progressive Test Layers (L0-L3)

Layer Name Scope Examples
L0 Static Analysis Compile-time checks TypeCheck, Lint, Import validation, AI code issues
L1 Unit Tests Single function/class Happy path, Negative path, Edge cases (null/undefined/empty/boundary)
L2 Integration Tests Component interactions Module integration, API contracts, Failure scenarios (timeout/unavailable)
L3 E2E Tests User journeys Critical paths, Cross-module flows (if applicable)

Read the full file on GitHub · 725 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. 2d ago First seen · 725 lines · 184 tokens per session scan A 689764ccc813

Subscribe to this mod's changes

test-action-planning-agent is an agent published in the GitHub repository catlog22/Claude-Code-Workflow (2,134 stars, last pushed 2mo ago), licensed MIT. It adds 184 tokens to every session and 7,107 once invoked, about $0.0009 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.