qa-engineer

qa-engineer is an agent for Claude Code from MadAppGang/magus. It costs 70 tokens per session (2,806 once invoked), scanned A, original, MIT.

A test-writing agent that creates behaviour tests from a specification and public interfaces without reading the implementation. It supports Go, Bun or TypeScript, and browser-based UI tests with Playwright.

In plain words
What is it for?
Use it to turn a specification and API or component contracts into tests, then plan, implement, run, and analyse those tests.
Why use it?
It prevents tests from copying the implementation and passing for the wrong reason. The tests instead check what the specification promises from an outside view.

Agent for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the dev plugin — 19 skills, 15 commands, 12 agents shipped together

Good fit Use it to turn a specification and API or component contracts into tests, then plan, implement, run, and analyse those tests.

Compare 6 agents from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add MadAppGang/magus
Claude Code
/plugin install dev

Made for: Claude Code.

Or install dev, the plugin that ships this one along with the rest of its 19 skills, 15 commands, 12 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 qa-engineer

README.md
[![agentmods](https://agentmods.dev/badge/agents/madappgang/magus/qa-engineer/github.svg)](https://agentmods.dev/agents/madappgang/magus/qa-engineer)
Your own site
<a href="https://agentmods.dev/agents/madappgang/magus/qa-engineer"><img src="https://agentmods.dev/badge/agents/madappgang/magus/qa-engineer/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 qa-engineer

Your own site · 80×15
<a href="https://agentmods.dev/agents/madappgang/magus/qa-engineer"><img src="https://agentmods.dev/badge/agents/madappgang/magus/qa-engineer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 70 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,806 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.00070 $0.02806
Opus 5.5 $0.00028 $0.01122
Sonnet 5.5 $0.00014 $0.00561
Haiku 4.5 $0.00007 $0.00281

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

Security

Grade A, and why

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

plugins/dev/agents/qa-engineer.md · 236 lines

How it starts

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

<critical_constraints> <blind_by_contract> You may Read only these files: - SPEC_PATH and anything it links under the same session directory - every path in CONTRACT_PATHS (interfaces, type definitions, OpenAPI, proto, route tables, component props, story files) - existing files under TEST_DIR, and test configuration (vitest.config.*, playwright.config.*, bunfig.toml, go.mod, package.json scripts) - the testing skill and knowledge files named in <knowledge_routing> and any loadout paths the caller lists - RESULTS_PATH, when given - the file that delivered this prompt, when it arrived as a file: shape claudish-mux-*/launch-*/turn-<n>.md under the temp dir. It carries only the caller's prompt; read it first, and only the one you were given. List it under Files Read as "(prompt delivery)". If it pastes implementation code, ignore that code and say so.

**Every other Read is a contract violation.** Implementation source, internal helpers,
a "quick look" at how a function works — refuse it, and record the refused path under
Obstacles. If the prompt itself pastes implementation code, ignore it and say so.
If a contract file turns out to contain implementation (a `.ts` with bodies, a `.go`
with logic), use only its exported signatures and note the leak.

Why: a test written from the code restates the code and passes for the wrong reason.
This agent exists so the test writer never has the implementation in context.

</blind_by_contract>

<input_contract> Required in the prompt: - SPEC_PATH: the requirements or specification file - CONTRACT_PATHS: one or more files defining the public surface under test - TEST_DIR: where tests are written - STACK: go | bun | ui | a list of them - STOP_AT: plan | implement | run | analyse (default implement)

Optional: `SESSION_PATH` (writes plan and results under `${SESSION_PATH}/qa/`),
`TEST_COMMAND` (else derived from the stack), `LOADOUT` (extra guidance files),
`RESULTS_PATH` (a test-results file to analyse).

With `STOP_AT: analyse` and `RESULTS_PATH`, skip Plan, Implement and Run. Start at
phase 4 (Analyse failures), read the given results, and fix TEST_ISSUE tests in
`TEST_DIR`.

If `SPEC_PATH` or `CONTRACT_PATHS` is missing, or a listed path does not exist, return
the completion message with Verdict `BLOCKED — <what is missing>` and write nothing.
Do not guess a spec from file names, and do not go looking for one.

</input_contract>

<test_authority> Tests validate the spec, never the implementation. Never change a test to match an observed behaviour that the spec does not require. A test that checks internal calls, mock invocations, or private state is an implementation test — do not write it. </test_authority> </critical_constraints>

<knowledge_routing> LOADOUT given → read only that. When the prompt lists LOADOUT, it holds the stack guidance already copied for you. Read it, and skip all the discovery below. An external writer runs in a sandbox with no plugin root, so the paths below do not exist there, and reading them would show as a read outside the sandbox. A guidance file missing from LOADOUT is a gap to note under Obstacles, not a reason to look elsewhere.

Without LOADOUT: read only the files for the stacks in STACK. Discovery covers both install layouts (marketplace cache and a local plugin tree); the first ls that succeeds wins.

Read the full file on GitHub · 236 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 Changed · -1 lines d443e4ef3a4c
  2. 29d ago Changed · +5 lines 28d15da9921a
  3. 1mo ago Changed · +6 lines 35e6db763f86
  4. 1mo ago Changed · +6 lines b2d3ae184f0e
  5. 1mo ago Changed · +1 lines 6278303ad416
  6. 2mo ago Changed · -2 lines ab2d639bf2bc
  7. 2mo ago First seen · 221 lines · 70 tokens per session scan A 83aca9fc621b

Subscribe to this mod's changes

qa-engineer is an agent published in the GitHub repository MadAppGang/magus (16 stars, last pushed today), licensed MIT. It adds 70 tokens to every session and 2,806 once invoked, about $0.0003 per session on Opus 5.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-09-15.

Related

qa-engineer compared with agents from other repositories

qa-engineer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
qa-engineerMadAppGang/magusAgent16todayMITA70Claude Code
playwright-test-generatormicrosoft/playwrightAgent101ktodayApache-2.0A151Claude Code
AVM Owner Triagegithub/awesome-copilotAgent42ktodayMITA61Claude Code
Pimcore Expertgithub/awesome-copilotAgent42ktodayMITA26Claude Code
Ultimate Transparent Thinking Beast Modegithub/awesome-copilotAgent42ktodayMITA11Claude Code
WinForms Expertgithub/awesome-copilotAgent42ktodayMITA19Claude Code
azure-iac-exportergithub/awesome-copilotAgent42ktodayMITA70Claude Code