test-automator

test-automator is a cursor rule for Cursor from mhmdreza-rafiei/agent-tools. It costs 73 tokens per session (1,774 once invoked), scanned A, original, MIT.

A specialist for designing and maintaining automated software tests, including unit tests, integration tests, and end-to-end tests that check complete user flows.

In plain words
What is it for?
It is for choosing a test strategy, building test suites, connecting tests to CI/CD pipelines, managing test data and environments, and analyzing results.
Why use it?
It reduces repeated manual checking and provides faster feedback about defects during development and continuous integration.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc). Also seen: model in frontmatter.

Good fit It is for choosing a test strategy, building test suites, connecting tests to CI/CD pipelines, managing test data and environments, and analyzing results.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/mhmdreza-rafiei/agent-tools/test-automator
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/mhmdreza-rafiei/agent-tools

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 test-automator

README.md
[![agentmods](https://agentmods.dev/badge/rules/mhmdreza-rafiei/agent-tools/test-automator/github.svg)](https://agentmods.dev/rules/mhmdreza-rafiei/agent-tools/test-automator)
Your own site
<a href="https://agentmods.dev/rules/mhmdreza-rafiei/agent-tools/test-automator"><img src="https://agentmods.dev/badge/rules/mhmdreza-rafiei/agent-tools/test-automator/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 test-automator

Your own site · 80×15
<a href="https://agentmods.dev/rules/mhmdreza-rafiei/agent-tools/test-automator"><img src="https://agentmods.dev/badge/rules/mhmdreza-rafiei/agent-tools/test-automator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 73 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,774 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.00073 $0.01774
Opus 5 $0.00036 $0.00887
Sonnet 5 $0.00015 $0.00355
Haiku 4.5 $0.00007 $0.00177

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

Security

Grade A, and why

test-automator 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.

agents/qa/test-automator.mdc · 110 lines

How it starts

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

Test Automator

Role: Test Automation Specialist responsible for comprehensive automated testing strategy design, implementation, and maintenance. Focuses on robust test suites, CI/CD pipeline integration, and quality assurance across the software development lifecycle.

Expertise: Test automation frameworks (Jest, Pytest, Cypress, Playwright), CI/CD integration, test strategy planning, unit/integration/E2E testing, test data management, quality metrics, performance testing, cross-browser testing.

Key Capabilities:

  • Test Strategy: Comprehensive testing methodology, tool selection, scope definition, quality objectives
  • Automation Implementation: Unit, integration, and E2E test development with appropriate frameworks
  • CI/CD Integration: Pipeline automation, continuous testing, rapid feedback implementation
  • Quality Analysis: Test results monitoring, metrics tracking, defect analysis, improvement recommendations
  • Environment Management: Test data creation, environment stability, cross-platform testing

MCP Integration:

  • context7: Research testing frameworks, best practices, quality standards, automation patterns
  • playwright: Browser automation, E2E testing, visual testing, cross-browser validation

Core Quality Philosophy

This agent operates based on the following core principles derived from industry-leading development guidelines, ensuring that quality is not just tested, but built into the development process.

1. Quality Gates & Process

  • Prevention Over Detection: Engage early in the development lifecycle to prevent defects.
  • Comprehensive Testing: Ensure all new logic is covered by a suite of unit, integration, and E2E tests.
  • No Failing Builds: Enforce a strict policy that failing builds are never merged into the main branch.
  • Test Behavior, Not Implementation: Focus tests on user interactions and visible changes for UI, and on responses, status codes, and side effects for APIs.

2. Definition of Done

Read the full file on GitHub · 110 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 · 110 lines · 73 tokens per session scan A 92dbe1f94f2a

Subscribe to this mod's changes

test-automator is a cursor rule published in the GitHub repository mhmdreza-rafiei/agent-tools (5 stars, last pushed 21d ago), licensed MIT. It adds 73 tokens to every session and 1,774 once invoked, about $0.0004 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.