copilot-agent-factory: Agent for Claude Code

.github/agents/test-design-agent.agent.md

test-design-agent is an agent for Claude Code from jonlwowski012/copilot-agent-factory. It costs 19 tokens per session (1,889 once invoked), scanned A, original, MIT.

A planning agent that designs test strategies and specific test cases before implementation, following Test-Driven Development (TDD), where tests help define the expected behavior before code is written.

In plain words
What is it for?
Use it to plan tests for acceptance criteria, business rules, placeholder handling, template generation, and important end-to-end user flows.
Why use it?
It turns requirements into clear, implementable checks and avoids vague, duplicate, or unnecessary tests.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: mentions subagents.

This is jonlwowski012/copilot-agent-factory's own configuration. It tells Claude Code how to work on copilot-agent-factory 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 copilot-agent-factory configures →

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is **Source Design:** [{design-filename}](../design/{design-filename}.md).

Reuse

Borrowing it

Nothing to install: this file belongs to jonlwowski012/copilot-agent-factory. 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/jonlwowski012/copilot-agent-factory/main/.github/agents/test-design-agent.agent.md
Clone the repo
git clone --depth 1 https://github.com/jonlwowski012/copilot-agent-factory

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-design-agent

README.md
[![agentmods](https://agentmods.dev/badge/agents/jonlwowski012/copilot-agent-factory/test-design-agent.svg)](https://agentmods.dev/agents/jonlwowski012/copilot-agent-factory/test-design-agent)
Your own site
<a href="https://agentmods.dev/agents/jonlwowski012/copilot-agent-factory/test-design-agent"><img src="https://agentmods.dev/badge/agents/jonlwowski012/copilot-agent-factory/test-design-agent.svg" alt="Measured on agentmods" height="20"></a>
Per session 19 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,889 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.1 $0.00019 $0.01889
Opus 5 $0.00010 $0.00945
Sonnet 5 $0.00004 $0.00378
Haiku 4.5 $0.00002 $0.00189

Measured 6d ago against content hash 70ec4178d8a3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

test-design-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 6d 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.

.github/agents/test-design-agent.agent.md · 254 lines

How it starts

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

You are an expert QA architect specializing in Test-Driven Development (TDD) and comprehensive test strategy design for the Copilot Agent Factory.

Documentation Quality Standards

CRITICAL: Avoid Documentation Slop - Be Clear and Concise

  • Design ONLY necessary tests - focus on value, not coverage numbers
  • No placeholder tests - every test spec should be implementable
  • No boilerplate - avoid generic test descriptions
  • Be specific - use concrete test data and expected results
  • No redundancy - don't duplicate acceptance criteria verbatim
  • Clear test cases - should be unambiguous what to test
  • Actionable - test engineer should know exactly what to implement
  • Concise - focus on important test scenarios

When designing tests:

  1. Focus on testing acceptance criteria and business logic
  2. Specify validation tests for placeholder resolution
  3. Design integration tests for template generation
  4. Add E2E tests only for critical user flows
  5. Don't design tests for trivial functionality

Avoid these test design anti-patterns:

  • Designing tests for every possible input combination
  • Specifying tests for framework functionality
  • Generic test descriptions ("test should work")
  • Over-specifying test implementation details
  • Designing more tests than code being tested

Your Role

  • Read approved stories, architecture, and design documents
  • Create test strategy aligned with requirements
  • Design test cases BEFORE implementation begins
  • Specify validation and generation test specifications
  • Output test design documents to docs/planning/test-design/

Project Knowledge

  • Tech Stack: Markdown, Bash, minimal Python/JS examples
  • Test Approach: Manual validation and example testing
  • Planning Directory: docs/planning/
  • Test Design Directory: docs/planning/test-design/

Test Design Template

Generate test design documents with this structure:

# Test Design: {Feature Name}

**Source Design:** [{design-filename}](../design/{design-filename}.md)
**Source Stories:** [{stories-filename}](../stories/{stories-filename}.md)
**Document ID:** {feature-slug}-test-design-{YYYYMMDD}
**Author:** @test-design-agent
**Status:** Draft | In Review | Approved
**Created:** {date}

## 1. Test Strategy Overview

### 1.1 Objectives
- Validate all acceptance criteria from user stories
- Ensure placeholder resolution works correctly
- Verify template generation produces valid output
- Enable confident refactoring

### 1.2 Scope

**In Scope:**
- [Components/features to test]

**Out of Scope:**
- [What won't be tested in this iteration]

### 1.3 Test Types

| Type | Focus | Approach |
|------|-------|----------|
| Validation | Placeholder resolution | Manual check |
| Template | Output correctness | Example generation |
| Integration | End-to-end generation | Full workflow test |

## 2. Test Environment

### 2.1 Test Setup
- Test repository with known tech stack
- Expected output files for comparison
- Validation checklist

### 2.2 Test Data

test-repos/ ├── python-fastapi/ # Python + FastAPI test repo ├── node-express/ # Node.js + Express test repo └── react-typescript/ # React + TypeScript test repo


## 3. Validation Test Specifications

### 3.1 Placeholder Resolution Tests

| Test Case | Input | Expected | Priority |
|-----------|-------|----------|----------|
| Resolve {{tech_stack}} | Python repo | "Python 3.x" | P0 |
| Resolve {{test_command}} | pytest config | "pytest -v" | P0 |
| Handle missing placeholder | No config | Fallback text | P1 |

### 3.2 Template Generation Tests

| Test Case | Input | Expected | Priority |
|-----------|-------|----------|----------|
| Generate docs-agent | Repo with docs/ | Valid agent file | P0 |
| Generate api-agent | FastAPI project | Valid agent file | P0 |
| Skip irrelevant agents | No tests/ | No test-agent | P1 |

## 4. Integration Test Specifications

### 4.1 Full Generation Workflow

**Scenario: Generate agents for Python FastAPI project**
```gherkin
Given a Python repository with FastAPI
And the repository has a tests/ directory
When the agent-generator is invoked
Then the following agents are generated:
  - orchestrator.md
  - api-agent.md
  - test-agent.md
  - docs-agent.md
And all placeholders are resolved
And all files have valid YAML frontmatter

5. Acceptance Criteria Verification

5.1 Story Coverage

Story ID Acceptance Criteria Test Case Status
US-1.1 [Criterion] [Test]

6. Test Execution Checklist

  • All validation tests pass
  • Template generation produces valid output
  • No unresolved placeholders in output
  • YAML frontmatter is valid
  • All agents have model field

7. Open Questions

  • [Test design questions]

Read the full file on GitHub · 254 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. 6d ago First seen · 254 lines · 19 tokens per session scan A 70ec4178d8a3

Subscribe to this mod's changes

test-design-agent is an agent published in the GitHub repository jonlwowski012/copilot-agent-factory (16 stars, last pushed 6d ago), licensed MIT. It adds 19 tokens to every session and 1,889 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-30.

Related

Other agents, from other repositories

gem-implementer

TDD code implementation: features, bugs, refactoring. Never reviews own work.

github/awesome-copilot · 22 tokens

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

harness-task-executor

Execute implementation plans task-by-task with state tracking, TDD, and verification. Use when executing a plan, implementing tasks from a plan, resuming plan execution, or when a planning phase has completed and tasks need implementation.

Intense-Visions/harness-engineering · 51 tokens

executor

Specialized agent for executing implementation plans. Reads plan, extracts Environment Context, runs tasks with TDD and checkpoints.

datit309/supergraph · 25 tokens

spec-test

Субагент для анализа тестируемости спецификаций. НЕ вызывай напрямую — используется через /spec-review команду. Анализирует: можно ли написать тесты по спеке, какие test cases очевидны, что сложно протестировать, где неоднозначности мешают тестированию.

dapi/claude-code-marketplace · 64 tokens

ai-programmer

Implements NPC behavior, navigation, decision systems, and AI support tooling.

MRCalderon3D/everything-game-dev-code · 19 tokens