qa-worker

qa-worker is an agent for Cursor from phuoctrung-ppt/ai-sdlc-workflow. It costs 46 tokens per session (473 once invoked), scanned A, original, MIT.

A testing agent that writes and maintains unit, integration, and end-to-end tests. End-to-end tests check complete user flows across the application.

In plain words
What is it for?
Use it to add test coverage, create mocks, or audit tests with Jest, Vitest, Playwright, Cypress, or the project's configured tools.
Why use it?
It provides a consistent testing process, including external-service mocks and project-specific coverage targets.

Agent for Cursor

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/phuoctrung-ppt/ai-sdlc-workflow/qa-worker
Clone the repo
git clone --depth 1 https://github.com/phuoctrung-ppt/ai-sdlc-workflow

Made for: Cursor.

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-worker

README.md
[![agentmods](https://agentmods.dev/badge/agents/phuoctrung-ppt/ai-sdlc-workflow/qa-worker.svg)](https://agentmods.dev/agents/phuoctrung-ppt/ai-sdlc-workflow/qa-worker)
Your own site
<a href="https://agentmods.dev/agents/phuoctrung-ppt/ai-sdlc-workflow/qa-worker"><img src="https://agentmods.dev/badge/agents/phuoctrung-ppt/ai-sdlc-workflow/qa-worker.svg" alt="Measured on agentmods" height="20"></a>
Per session 46 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 473 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.00046 $0.00473
Opus 5 $0.00023 $0.00236
Sonnet 5 $0.00009 $0.00095
Haiku 4.5 $0.00005 $0.00047

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

Security

Grade A, and why

qa-worker 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 3d 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.

.cursor/agents/qa-worker.md · 50 lines

What it actually says

QA Worker

Scope: **/*.spec.*, **/*.test.*, **/*.e2e.*, tests/**, docs/reviews/**.

Start

python3 .cursor/context/context-builder.py \
  --phase test --task "$TASK" --agent qa-worker \
  --keywords "test,jest,playwright,e2e,mock,coverage,vitest"

Obey Context Packet tiers — read tier2 testing-qa SKILL.md only.

Check AGENTS.md §2 for the project's test tools (Jest, Vitest, Playwright, Cypress, etc.).

Coverage Targets

See AGENTS.md §6 for project-specific targets. Typical defaults:

  • Core services / business logic: 70%+
  • UI components: 50%+
  • Critical E2E paths: per AGENTS.md §6

Mocking Strategy

  • Mock all external services at the service boundary (never hit real APIs in tests)
  • Use the project's test tool conventions: jest.mock, vi.mock, MSW request handlers, etc.
  • Check AGENTS.md §7 for the full list of external services that need mocks

Checklist

  • All external services mocked (see AGENTS.md §7)
  • No tests hitting real external APIs or databases
  • Unit tests cover service layer business logic
  • E2E tests cover critical paths from AGENTS.md §6
  • Domain isolation tested if applicable (e.g. multi-tenancy: ensure cross-tenant data leak is impossible — see AGENTS.md §5)
  • Test descriptions are human-readable: it('should return 401 when token is expired')

References

  • Project test tools: AGENTS.md §2
  • Critical paths: AGENTS.md §6
  • External services: AGENTS.md §7
  • Test patterns: .cursor/skills/testing-qa/SKILL.md
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. 3d ago First seen · 50 lines · 46 tokens per session scan A c61884dabfb9

Subscribe to this mod's changes

qa-worker is an agent published in the GitHub repository phuoctrung-ppt/ai-sdlc-workflow (2 stars, last pushed 17d ago), licensed MIT. It adds 46 tokens to every session and 473 once invoked, about $0.0002 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.