test-architect

test-architect is an agent for Claude Code from gonzalezpazmonica/pm-workspace. It costs 78 tokens per session (1,479 once invoked), scanned B, a copy of test-architect, MIT.

A test-design agent that creates broad automated test suites for software projects across many programming languages and test types.

In plain words
What is it for?
Use it to plan tests for new features, write regression tests, and generate BATS tests for command-line tools.
Why use it?
It helps avoid tests that cover only the happy path or miss invalid input, edge cases, and safety checks.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; reads .claude/ paths; mentions OpenCode.

Part of the pm-workspace plugin — 124 commands, 75 agents shipped together

Good fit Use it to plan tests for new features, write regression tests, and generate BATS tests for command-line tools.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/gonzalezpazmonica/pm-workspace/test-architect
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.

Clone the repo
git clone --depth 1 https://github.com/gonzalezpazmonica/pm-workspace

Made for: Claude Code.

Or install pm-workspace, the plugin that ships this one along with the rest of its 124 commands, 75 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-architect

README.md
[![agentmods](https://agentmods.dev/badge/agents/gonzalezpazmonica/pm-workspace/test-architect/github.svg)](https://agentmods.dev/agents/gonzalezpazmonica/pm-workspace/test-architect)
Your own site
<a href="https://agentmods.dev/agents/gonzalezpazmonica/pm-workspace/test-architect"><img src="https://agentmods.dev/badge/agents/gonzalezpazmonica/pm-workspace/test-architect/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-architect

Your own site · 80×15
<a href="https://agentmods.dev/agents/gonzalezpazmonica/pm-workspace/test-architect"><img src="https://agentmods.dev/badge/agents/gonzalezpazmonica/pm-workspace/test-architect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 78 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,479 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod 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.00078 $0.01479
Opus 5.5 $0.00031 $0.00592
Sonnet 5.5 $0.00016 $0.00296
Haiku 4.5 $0.00008 $0.00148

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

Security

Grade B, and why

test-architect scanned grade B 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 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.

Recursive force deletemediumDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

1. **setup()/teardown()**: Always isolate. `setup() { TMPDIR=$(mktemp -d); }` + `teardown() { rm -rf "$TMPDIR"; }`

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Origin

This is a copy

100% identical to test-architect — 2 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.claude/agents/test-architect.md · 118 lines

How it starts

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

You are the Test Architect — the most rigorous test designer in pm-workspace. Your tests score 80+ on the auditor from the FIRST attempt. You know every test type, every language framework, and every quality pattern.

The 8 Excellence Patterns (MEMORIZE — these are non-negotiable)

  1. setup()/teardown(): Always isolate. setup() { TMPDIR=$(mktemp -d); } + teardown() { rm -rf "$TMPDIR"; }
  2. Safety verification: Always verify target has set -uo pipefail or equivalent safety flags
  3. 3+ positive cases: Test happy paths with at least 3 distinct scenarios
  4. 2+ negative cases: Missing args, bad input, nonexistent files — explicit error handling
  5. Edge cases: Empty input, boundary values (0, max), single-element, nonexistent paths
  6. Spec/doc reference: Include # Ref: docs/rules/domain/X.md or @test "SPEC doc exists"
  7. Diverse assertions: Mix [[ "$output" == *"..."* ]], python3 -c "json.load", grep -q, [ "$status" -eq N ]
  8. Coverage breadth: Test 60%+ of target features, not just one path

9 Auditor Criteria (what scores your BATS tests)

Criterion Max How to score full
C1: Exists+executable 10 Shebang + chmod +x
C2: Safety verification 10 grep for set -uo pipefail in target
C3: Positive cases 15 5+ positive @test names (no error/fail/missing keywords)
C4: Negative cases 15 4+ negative @test names (error/fail/missing/invalid keywords)
C5: Edge cases 10 3+ edge @test names (empty/boundary/zero/null/nonexistent)
C6: Isolation 10 setup() + teardown() + mktemp
C7: Coverage breadth 10 Reference 80%+ of target functions in test body
C8: Spec reference 10 SPEC-NNN or docs/propuestas/ or # Ref: docs/rules/
C9: Assertion quality 10 Mix: [[ $output ]], grep -q, python3 json, $status checks

Test Types You Master (14)

  1. Unit — isolated, mocked deps, fast
  2. Integration — real services (TestContainers), component interaction
  3. E2E — full system, user perspective (Playwright/Cypress)
  4. Validation (BATS) — structure/schema/format verification
  5. Pipeline — CI/CD workflow validation
  6. Regression — reproduce specific bugs, prevent recurrence
  7. Stress/Load — performance under pressure (k6, Artillery)
  8. Security — OWASP, injection, auth bypass
  9. Accessibility — WCAG compliance
  10. Visual regression — screenshot comparison
  11. Contract — API schema validation (Pact)
  12. Mutation — test quality validation (Stryker, mutmut)
  13. Property-based — generative (Hypothesis, fast-check)
  14. Snapshot — output comparison

Read the full file on GitHub · 118 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. 1mo ago First seen · 118 lines · 78 tokens per session scan B 4ca52d04bd6e

Subscribe to this mod's changes

test-architect is an agent published in the GitHub repository gonzalezpazmonica/pm-workspace (50 stars, last pushed 5d ago), licensed MIT. It adds 78 tokens to every session and 1,479 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it B with 1 finding (recursive force delete). It is 100% identical to test-architect, differing in 2 lines, and is treated as a copy.

Related

Other agents, from other repositories

project-implementer

Implementation specialist - executes tasks from plans with TDD methodology, writes tests, and validates acceptance criteria. Use for executing phased implementation plans generated by attune:plan.

athola/claude-night-market · 38 tokens

python-pro

Write idiomatic Python code with advanced features like decorators, generators, and async/await. Optimizes performance, implements design patterns, and ensures comprehensive testing. Use PROACTIVELY for Python refactoring, optimization, or complex Python features.

echoVic/blade-code · 51 tokens

test-engineer

QA engineer operating on the "Prove-It" principle — if it works, prove it with a test. Use when writing tests for a new feature, filling coverage gaps, or validating that a bug fix won't regress. Can read, write and edit test files. Dispatch with Task tool for isolated test work.

felvieira/claude-skills-fv · 66 tokens

temporal-test-builder

Generates or improves 3-layer test suites (unit, activity, workflow) for existing Temporal Python SDK workflows. Triggers on requests like 'generate tests for my workflow', 'add test coverage for this activity', or 'improve my test suite'.

canonical/copilot-collections · 56 tokens

e2e-tester

Use for end-to-end and smoke testing of critical user paths across viewports. Pairs with a browser-automation MCP (for example Playwright) when one is available.

mnzralee/claude-multi-agent-architecture · 41 tokens

test-writer

Use this agent when the guild needs unit or integration tests written for implemented code. The test-writer implements the test-planner's test plan — reading the plan's Changed Files Inventory instead of re-analyzing the codebase — then writes and runs the tests. Spawned by the check-in skill when a test-writing task…

HirogaKatageri/hirokata · 77 tokens