claude-scaffold: Agent for Claude Code

.claude/agents/test-architect.md

test-architect is an agent for Claude Code from pyramidheadshark/claude-scaffold. It costs 23 tokens per session (539 once invoked), scanned A, original, MIT.

A test-planning agent that creates the initial structure of a test suite from an approved design document before implementation starts. It writes BDD scenarios, which describe expected behaviour in Given/When/Then form, and pytest test stubs.

In plain words
What is it for?
Creating feature files, pytest placeholders, test step stubs, shared test fixtures, and updating the project’s development status.
Why use it?
It helps teams define and organise tests before code is written, including both expected and failure cases.

Agent for Claude Code

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

This is pyramidheadshark/claude-scaffold's own configuration. It tells Claude Code how to work on claude-scaffold itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything claude-scaffold configures →

Reuse

Borrowing it

Nothing to install: this file belongs to pyramidheadshark/claude-scaffold. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/pyramidheadshark/claude-scaffold/main/.claude/agents/test-architect.md
Clone the repo
git clone --depth 1 https://github.com/pyramidheadshark/claude-scaffold

Made for: Claude Code.

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/pyramidheadshark/claude-scaffold/test-architect/github.svg)](https://agentmods.dev/agents/pyramidheadshark/claude-scaffold/test-architect)
Your own site
<a href="https://agentmods.dev/agents/pyramidheadshark/claude-scaffold/test-architect"><img src="https://agentmods.dev/badge/agents/pyramidheadshark/claude-scaffold/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/pyramidheadshark/claude-scaffold/test-architect"><img src="https://agentmods.dev/badge/agents/pyramidheadshark/claude-scaffold/test-architect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 539 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.00023 $0.00539
Opus 5 $0.00012 $0.00269
Sonnet 5 $0.00005 $0.00108
Haiku 4.5 $0.00002 $0.00054

Measured 8d ago against content hash bfc2628deed9, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, 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 8d 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-architect.md · 62 lines

What it actually says

Agent: test-architect

Purpose

Generates the complete test suite skeleton from a finalized design document. Produces .feature files and pytest stubs. All tests are written BEFORE implementation begins.

When to Use

After design-doc.md is approved (status = APPROVED). Before any source code in src/ is written.

/agent:test-architect

Workflow

  1. Reads design-doc.md section 4 (Scenarios) and section 7 (Test Plan)
  2. Creates one .feature file per scenario in tests/features/
  3. Creates step definition stubs in tests/features/steps/
  4. Creates unit test stubs for all domain objects mentioned in section 6.2
  5. Creates tests/conftest.py with standard fixtures
  6. Updates dev/status.md — marks Phase 1 complete, Phase 2 active

BDD Scenario Quality Rules

  • Each scenario covers exactly ONE user behaviour
  • Scenarios must be independent — no shared mutable state between scenarios
  • Use concrete examples in steps, not abstract descriptions
  • Given/When/Then structure is mandatory — no And-only steps
  • Negative scenarios (sad paths) are as important as happy paths

Output Structure

tests/
├── conftest.py
├── unit/
│   ├── core/
│   │   └── test_{domain_entity}.py   (stubs, all failing)
│   └── services/
│       └── test_{service_name}.py    (stubs, all failing)
├── integration/
│   └── test_api_{resource}.py        (stubs, all failing)
└── features/
    ├── {scenario_name}.feature
    └── steps/
        └── test_{scenario_name}_steps.py

Instructions for Claude Code

  1. Every test stub must have a pytest.mark.xfail(reason="not implemented") marker initially
  2. Remove xfail markers as implementation is completed — never delete tests
  3. Feature files must be syntactically valid Gherkin — run pytest --collect-only to verify
  4. Do not import from src/ in test stubs — use placeholder comments for now
  5. After creating tests, run pytest --collect-only to verify discovery works
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. 8d ago First seen · 62 lines · 23 tokens per session scan A bfc2628deed9

Subscribe to this mod's changes

test-architect is an agent published in the GitHub repository pyramidheadshark/claude-scaffold (4 stars, last pushed 4mo ago), licensed MIT. It adds 23 tokens to every session and 539 once invoked, about $0.0001 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-31.