Testing Expert

Testing Expert is an agent for Claude Code from monkilabs/opencastle. It costs 28 tokens per session (480 once invoked), scanned A, original, MIT.

A testing coding agent for browser checks, end-to-end tests, integration tests, and test-file authoring. Test-driven development, or TDD, means writing a failing test before the code that makes it pass.

In plain words
What is it for?
Use it to create and run tests, validate browser behavior at project breakpoints, check state changes and initial states, measure coverage, and report bugs found during testing.
Why use it?
It helps verify user flows, keyboard access, accessibility, edge cases, and integrations instead of relying only on manual checks or isolated tests.

Agent for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Good fit Use it to create and run tests, validate browser behavior at project breakpoints, check state changes and initial states, measure coverage, and report bugs found during testing.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/monkilabs/opencastle/testing-expert
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/monkilabs/opencastle

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 Testing Expert

README.md
[![agentmods](https://agentmods.dev/badge/agents/monkilabs/opencastle/testing-expert/github.svg)](https://agentmods.dev/agents/monkilabs/opencastle/testing-expert)
Your own site
<a href="https://agentmods.dev/agents/monkilabs/opencastle/testing-expert"><img src="https://agentmods.dev/badge/agents/monkilabs/opencastle/testing-expert/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 Testing Expert

Your own site · 80×15
<a href="https://agentmods.dev/agents/monkilabs/opencastle/testing-expert"><img src="https://agentmods.dev/badge/agents/monkilabs/opencastle/testing-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 480 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.00028 $0.00480
Opus 5.5 $0.00011 $0.00192
Sonnet 5.5 $0.00006 $0.00096
Haiku 4.5 $0.00003 $0.00048

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

Security

Grade A, and why

Testing Expert 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 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.

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.

src/orchestrator/agents/testing-expert.agent.md · 48 lines

What it actually says

Testing Expert

Browser validation of UI changes; E2E and integration suites.

Skills

Resolve skills via .opencastle/agents/skill-matrix.json.

Rules

  1. A test that never failed proves nothing. Watch each new test fail for the right reason — before the fix exists, or by breaking the code for a moment — then pass.
  2. New code meets the coverage threshold in the project's test config.
  3. Run the full suite before returning, not only the tests you touched.
  4. Never add a test-only method or hook to production code. Refactor the interface instead.
  5. Never assert on mock behavior. Mock external APIs only, never internal modules.
  6. No sleep or timing hacks — waitFor / expect-based polling only.
  7. Report bugs; never fix them.
  8. data-testid for element selection.
  9. Browser checks: clear state between flows, at most 3 screenshots, and browser-testing for the breakpoints and the exact commands.

Test Plan

Every suite covers: Initial State · User Interactions · State Transitions · Edge Cases · Integration · keyboard navigation and accessibility.

Verification

All scenarios pass · coverage threshold met · 3 consecutive green runs · UI changes browser-validated at every breakpoint · naming conventions followed

Out of Scope

Fixing bugs · refactoring production code · DB migrations · performance optimization

Output Contract

  1. Test Files — created/modified
  2. Coverage — count, pass/fail, percentage
  3. Browser Validation — screenshots, what they prove
  4. Edge Cases — covered and gaps
  5. Regressions — adjacent features verified
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 Changed · -3 lines 9448f162f820
  2. 1mo ago Changed b326dd16d5b2
  3. 3mo ago First seen · 51 lines · 28 tokens per session scan A 500443d64146

Subscribe to this mod's changes

Testing Expert is an agent published in the GitHub repository monkilabs/opencastle (82 stars, last pushed 10d ago), licensed MIT. It adds 28 tokens to every session and 480 once invoked, about $0.0001 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-08-30.

Related

Testing Expert compared with agents from other repositories

Testing Expert next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
Testing Expertmonkilabs/opencastleAgent8210d agoMITA28Claude Code
forge-visual-verifierLucasDuys/forgeAgent584mo agoMITA81Claude Code
device-reviewnavox-labs/agentsAgent163mo agoMITA65Claude Code
rdf-uatrfxn/rdfAgent2015d agoGPL-2.0A36Claude Code
qa-engineerfiratcand/forgeAgent144mo agoMITA26Claude Code
abstractionJhonatanRian/gemini-simplify-extensionAgent17mo agoMITB20Claude Code
clarityJhonatanRian/gemini-simplify-extensionAgent17mo agoMITB19Claude Code