frontend-test-runner

frontend-test-runner is an agent for Claude Code from gonzalezpazmonica/pm-workspace. It costs 21 tokens per session (1,006 once invoked), scanned A, a copy of frontend-test-runner, MIT.

An automated tester for React and Angular front ends, including unit tests, component tests, and end-to-end tests that simulate user actions.

In plain words
What is it for?
Use it after commits to detect the project’s test tools, run the appropriate checks, and pass failures to a front-end developer for fixing.
Why use it?
It finds broken code and user flows after changes, while checking whether the project still builds and measuring test coverage.

Agent for Claude Code

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

Part of the pm-workspace plugin — 124 commands, 75 agents shipped together

Good fit Use it after commits to detect the project’s test tools, run the appropriate checks, and pass failures to a front-end developer for fixing.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/gonzalezpazmonica/pm-workspace/frontend-test-runner
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/gonzalezpazmonica/pm-workspace

Made for: Claude Code.

Or install pm-workspace, the plugin that ships this one along with the rest of its 124 commands, 75 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 frontend-test-runner

README.md
[![agentmods](https://agentmods.dev/badge/agents/gonzalezpazmonica/pm-workspace/frontend-test-runner/github.svg)](https://agentmods.dev/agents/gonzalezpazmonica/pm-workspace/frontend-test-runner)
Your own site
<a href="https://agentmods.dev/agents/gonzalezpazmonica/pm-workspace/frontend-test-runner"><img src="https://agentmods.dev/badge/agents/gonzalezpazmonica/pm-workspace/frontend-test-runner/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 frontend-test-runner

Your own site · 80×15
<a href="https://agentmods.dev/agents/gonzalezpazmonica/pm-workspace/frontend-test-runner"><img src="https://agentmods.dev/badge/agents/gonzalezpazmonica/pm-workspace/frontend-test-runner.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 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,006 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 100% copy Near-identical to another mod 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.00021 $0.01006
Opus 5 $0.00010 $0.00503
Sonnet 5 $0.00004 $0.00201
Haiku 4.5 $0.00002 $0.00101

Measured 9d ago against content hash 8e05f9e02d0b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

frontend-test-runner 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 9d 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.

Origin

This is a copy

100% identical to frontend-test-runner — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.claude/agents/frontend-test-runner.md · 144 lines

How it starts

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

Frontend Test Runner

Ejecuta tests unitarios, de componente y E2E para proyectos React/Angular. Equivalente frontend del agente test-runner (.NET).


Protocolo de Arranque

  1. Leer package.json → detectar stack
  2. Verificar node_modules/ existe → si no: npm ci
  3. Verificar compilación: npx tsc --noEmit
  4. Ejecutar protocolo de tests según stack detectado

Detección Automática de Stack

package.json → scripts + devDependencies
  "vitest"         → Vitest runner
  "jest"           → Jest runner
  "@playwright"    → Playwright E2E
  "cypress"        → Cypress E2E
  angular.json     → ng test (Karma o Jest)
  "storybook"      → Storybook interaction tests

Si no hay runner configurado → sugerir setup con Vitest + Playwright.


Flujo de Ejecución

Paso 1 — Tests unitarios y de componente

# Vitest (React/Vue)
npx vitest run --coverage --reporter=verbose

# Jest (React legacy)
npx jest --coverage --verbose

# Angular
npx ng test --watch=false --code-coverage --browsers=ChromeHeadless
  • ✅ Todos pasan → Paso 2
  • 🔴 Fallos → Delegar a frontend-developer (max 2 intentos)

Paso 2 — Tests E2E

# Playwright
npx playwright test --reporter=list

# Cypress
npx cypress run --browser chromium
  • ✅ Todos pasan → Paso 3
  • 🔴 Fallos → Analizar: ¿flaky o bug real?
    • Flaky (pasa en retry) → Marcar y continuar
    • Bug real → Delegar a frontend-developer

Paso 3 — Verificar coverage

Leer reporte de coverage (istanbul/v8):

  • ✅ Coverage ≥ TEST_COVERAGE_MIN_PERCENT (80%) → Éxito
  • 🔴 Debajo → Orquestar mejora (Paso 4)

Paso 4 — Mejora de coverage

  1. architect analiza gaps (qué componentes/hooks sin tests)
  2. business-analyst define test cases desde spec
  3. frontend-developer implementa tests
  4. Re-ejecutar (max 2 ciclos → escalar a humano)

Delegación

Problema Agente Info enviada
Tests fallan frontend-developer Error completo + ficheros
Fallan 2+ veces Humano Reporte ambos intentos
Coverage gap architect % actual + gaps + threshold
Test cases business-analyst Análisis + reglas negocio
Implementar tests frontend-developer Casos + patterns proyecto

Read the full file on GitHub · 144 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. 9d ago First seen · 144 lines · 21 tokens per session scan A 8e05f9e02d0b

Subscribe to this mod's changes

frontend-test-runner is an agent published in the GitHub repository gonzalezpazmonica/pm-workspace (49 stars, last pushed 3d ago), licensed MIT. It adds 21 tokens to every session and 1,006 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to frontend-test-runner, differing in 0 lines, and is treated as a copy.

Related

Other agents, from other repositories

frontend-test-runner

Post-commit frontend test execution — unit, component, e2e, coverage.

gonzalezpazmonica/savia · 21 tokens

frontend-tester

Frontend testing expert for comprehensive test coverage using Vitest, Playwright, and accessibility testing.

smicolon/ai-kit · 21 tokens

angular-validator

Phase 6 — run Angular frontend validation gates (lint, typecheck, unit tests, build, e2e) and merge results into validation artifacts. Use when running /validate for features that change Angular source.

loiane/specs-driven-development-spring-angular · 46 tokens

react19-test-guardian

Test suite fixer and verification specialist. Migrates all test files to React 19 compatibility and runs the suite until zero failures. Uses memory to track per-file fix progress and failure history. Does not stop until npm test reports 0 failures. Invoked as a subagent by react19-commander.

archubbuck/workspace-architect · 67 tokens

svelte-testing

Testing specialist for Svelte/SvelteKit applications with expertise in unit testing, component testing, E2E testing using Vitest and Playwright, following modern testing best practices.

alexnelja/mcp-toolkit · 39 tokens

shadcn-testing-engineer

Expert in testing shadcn components with Jest, React Testing Library, Playwright, visual regression testing, accessibility testing, and component testing strategies. PROACTIVELY use this agent for testing questions, test architecture, CI/CD testing pipelines, or when ensuring component reliability and quality. MUST BE…

mozinator/code-agents-for-shadcn · 87 tokens