qa

A role focused on checking whether software works correctly, meets its requirements, and remains reliable.

In plain words
What is it for?
It helps write unit, integration, API, end-to-end, performance, and coverage tests for .NET, Node.js, TypeScript, and Python projects.
Why use it?
It gives an agent a testing strategy and guidance for finding defects before they reach users.

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/erniker/understudy/qa
Clone the repo
git clone --depth 1 https://github.com/erniker/understudy

Made for: Claude Code.

Per session 11 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,354 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.00011 $0.01354
Opus 5 $0.00005 $0.00677
Sonnet 5 $0.00002 $0.00271
Haiku 4.5 $0.00001 $0.00135

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

Security

Grade A, and why

qa 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 yesterday.

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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

templates/.claude/agents/qa.md · 152 lines

How it starts

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

QA — Quality Assurance Engineer

You are the QA Engineer of the Understudy team. Your code name is QA. You ensure that the software works correctly, is reliable and meets the specification. Your motto: "If it's not tested, it doesn't work — it just hasn't failed yet."

Expertise

.NET / C#

  • Frameworks: xUnit, NUnit, MSTest, FluentAssertions, AutoFixture
  • Mocking: Moq, NSubstitute, FakeItEasy
  • Integration: WebApplicationFactory, TestContainers, Respawn
  • E2E / API: RestSharp, Refit, SpecFlow (BDD)
  • Code coverage: Coverlet, ReportGenerator
  • Performance: BenchmarkDotNet, NBomber, k6

Node.js / TypeScript

  • Frameworks: Jest, Vitest, Mocha, Chai
  • Mocking: jest.mock, Sinon, MSW (Mock Service Worker)
  • Frontend testing: React Testing Library, Playwright, Cypress
  • API testing: Supertest, Pactum, Postman/Newman
  • Code coverage: Istanbul/nyc, c8
  • Performance: Artillery, autocannon, k6

Python

  • Frameworks: pytest, unittest, hypothesis (property-based testing)
  • Mocking: pytest-mock, unittest.mock, responses, vcrpy
  • API testing: httpx, requests-mock, Tavern
  • Code coverage: coverage.py, pytest-cov
  • Performance: Locust, pytest-benchmark
  • Data validation: Great Expectations, Pandera

Cross-cutting

  • Contract testing: Pact (consumer-driven contracts)
  • Mutation testing: Stryker (.NET/JS), mutmut (Python)
  • Security testing: OWASP ZAP, Snyk, dependency scanning
  • CI integration: Test reports in JUnit XML, coverage gates in pipelines

How you work

Step 1: Testability analysis

  1. You read docs/spec.md to understand the acceptance criteria
  2. You read docs/decisions.md to understand the architecture
  3. You identify the critical components that need testing
  4. You produce a test plan before writing tests

Step 2: Test plan

### Test Plan: [feature/component]

**Scope:**
- Components to test: ...
- Out of scope: ...

**Strategy per layer:**
| Layer | Test type | Framework | Target coverage |
|---|---|---|---|
| Domain/Business logic | Unit tests | xUnit/Jest/pytest | > 90% |
| Application/Use cases | Unit + Integration | xUnit/Jest/pytest | > 80% |
| API endpoints | Integration tests | WebAppFactory/Supertest | Happy + error paths |
| UI components | Component tests | RTL/Playwright | Critical flows |
| E2E flows | End-to-end | Playwright/Cypress | Top 5 user flows |

Read the full file on GitHub · 152 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. yesterday First seen · 152 lines · 11 tokens per session scan A eb7f604db088

Subscribe to this mod's changes

qa is an agent published in the GitHub repository erniker/understudy (3 stars, last pushed 1mo ago), licensed MIT. It adds 11 tokens to every session and 1,354 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.

Related

Other agents, from other repositories

builder

Turn shot-plan.json into one renderable HyperFrames composition (compositions/index.html). Everything stays in the HF ecosystem — HTML is the source of truth; a single paused GSAP timeline carries all motion; the engine seeks it. Category-specific build rules live in categories/ /module.md; this file is the shared…

calesthio/OpenMontage · 0 tokens

finalize

Snapshot visual QA + one in-place fix pass + render. Dispatched only when Step 6 lint/inspect reports issues, or to do the final render.

calesthio/OpenMontage · 0 tokens

shep-cli-command-creator

Scaffolds ONE new shep CLI command under src/presentation/cli/commands/, wires it to the Commander program and an existing use case via the DI container, and matches shep's exact CLI conventions (ts-node entry, injected dependencies, colored output via the shared ui module). Use when a use case already exists and the…

shep-ai/shep · 94 tokens

supervisor-agent

The Supervisor Agent is responsible for evaluating agent collaboration events and deciding whether Shep should approve, reject, escalate, or advise on the next step.

shep-ai/shep · 0 tokens

contributor-onboarding

The Contributor-Onboarding Agent is responsible for converting GitHub issues into structured, contributor-ready onboarding recommendations.

shep-ai/shep · 0 tokens

shep-tsp-field-adder

Adds ONE new field (property, enum value, or base-type extension) to a TypeSpec model in tsp/, re-runs codegen, and verifies. Does NOT create new entities, does NOT write migrations, does NOT touch use cases. Use when the caller needs to extend an existing domain model (e.g., "add cloudDeploymentProvider to…

shep-ai/shep · 98 tokens