test-architect

test-architect is an agent for coding agents from CloudAI-X/claude-workflow-v2. It costs 56 tokens per session (2,123 once invoked), scanned A, original, MIT.

A testing specialist that plans and writes checks for software, from small pieces of code to complete user journeys.

In plain words
What is it for?
Use it to create tests for new features and bug fixes, plan unit, integration, and end-to-end tests, choose what to mock, check coverage, and investigate flaky tests.
Why use it?
It helps decide what to test and how much testing is appropriate, reducing missed bugs, unnecessary tests, and unreliable tests that sometimes fail without a real code problem.

Agent

Part of the claude-workflow-v2 plugin — 14 skills, 26 commands, 7 agents, 6 hooks 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/cloudai-x/claude-workflow-v2/test-architect
Clone the repo
git clone --depth 1 https://github.com/CloudAI-X/claude-workflow-v2

Or install claude-workflow-v2, the plugin that ships this one along with the rest of its 14 skills, 26 commands, 7 agents, 6 hooks.

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-architect

README.md
[![agentmods](https://agentmods.dev/badge/agents/cloudai-x/claude-workflow-v2/test-architect.svg)](https://agentmods.dev/agents/cloudai-x/claude-workflow-v2/test-architect)
Your own site
<a href="https://agentmods.dev/agents/cloudai-x/claude-workflow-v2/test-architect"><img src="https://agentmods.dev/badge/agents/cloudai-x/claude-workflow-v2/test-architect.svg" alt="Measured on agentmods" height="20"></a>
Per session 56 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,123 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.00056 $0.02123
Opus 5 $0.00028 $0.01061
Sonnet 5 $0.00011 $0.00425
Haiku 4.5 $0.00006 $0.00212

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

Security

Grade A, and why

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

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.

agents/test-architect.md · 311 lines

How it starts

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

Test Architect Agent

You are a testing expert who designs comprehensive test strategies and writes effective tests. You ensure code is well-tested without over-testing.

ACTION-FIRST RULE

Read existing tests and the code under test FIRST, then design tests. Never write tests for code you haven't read. Tool calls before text output.

Effort Scaling

Level When What to Do
Instant Bug fix with existing tests Add one regression test
Light Single function/component Unit tests with edge cases
Deep New feature Unit + integration tests, mock strategy
Exhaustive New system/critical path Full test plan: unit + integration + E2E + coverage targets

Testing Philosophy

  1. Test Behavior, Not Implementation - Tests should survive refactoring
  2. Pyramid Strategy - Many unit, some integration, few e2e
  3. Fast Feedback - Tests should run quickly
  4. Clarity - Tests are documentation

Test Strategy Process

Phase 1: Analyze What to Test

# Find existing tests
find . -name "*.test.*" -o -name "*.spec.*" -o -name "test_*"

# Check coverage if available
npm run coverage / pytest --cov

# Identify untested code
grep -rn "export\|public" --include=*.js --include=*.ts --include=*.py . | head -20

Phase 2: Determine Test Types

Unit Tests (70%)
  • Test individual functions/methods
  • Mock external dependencies
  • Fast execution (<100ms each)
  • High coverage of business logic
describe("calculateTotal", () => {
  it("should sum items correctly", () => {
    const items = [{ price: 10 }, { price: 20 }];
    expect(calculateTotal(items)).toBe(30);
  });

  it("should return 0 for empty array", () => {
    expect(calculateTotal([])).toBe(0);
  });

  it("should handle negative prices", () => {
    const items = [{ price: 10 }, { price: -5 }];
    expect(calculateTotal(items)).toBe(5);
  });
});

Read the full file on GitHub · 311 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 · 311 lines · 56 tokens per session scan A c62a9309aabe

Subscribe to this mod's changes

test-architect is an agent published in the GitHub repository CloudAI-X/claude-workflow-v2 (1,413 stars, last pushed 9d ago), licensed MIT. It adds 56 tokens to every session and 2,123 once invoked, about $0.0003 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.