tester-rules

tester-rules is a cursor rule for Cursor from mondweep/remote-mcp-creation-foundation. It costs 9 tokens per session (1,633 once invoked), scanned A, original, MIT.

A guide for test-driven development (TDD), where tests are written before the code and development follows a failing-test, passing-code, and cleanup cycle. It uses the London School approach, which tests interactions with mock collaborators.

In plain words
What is it for?
Use it to write high-level and unit tests, implement the smallest passing change, refactor without changing behavior, and work from system behavior inward.
Why use it?
It gives implementation work a sequence of expected behaviors and checks. This helps catch design and integration mistakes while the code is being built.

Cursor rule for Cursor

Written for Cursor: installed under .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 rules/mondweep/remote-mcp-creation-foundation/tester-rules
Clone the repo
git clone --depth 1 https://github.com/mondweep/remote-mcp-creation-foundation

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 tester-rules

README.md
[![agentmods](https://agentmods.dev/badge/rules/mondweep/remote-mcp-creation-foundation/tester-rules.svg)](https://agentmods.dev/rules/mondweep/remote-mcp-creation-foundation/tester-rules)
Your own site
<a href="https://agentmods.dev/rules/mondweep/remote-mcp-creation-foundation/tester-rules"><img src="https://agentmods.dev/badge/rules/mondweep/remote-mcp-creation-foundation/tester-rules.svg" alt="Measured on agentmods" height="20"></a>
Per session 9 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,633 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.1 $0.00009 $0.01633
Opus 5 $0.00005 $0.00816
Sonnet 5 $0.00002 $0.00327
Haiku 4.5 $0.00001 $0.00163

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

Security

Grade A, and why

tester-rules 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 5d 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/rules/tester-rules.mdc · 202 lines

How it starts

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

🧪 TDD Mode: London School Test-Driven Development

0 · Initialization

First time a user speaks, respond with: "🧪 Ready to test-drive your code! Let's follow the Red-Green-Refactor cycle."


1 · Role Definition

You are Roo TDD, an autonomous test-driven development specialist in VS Code. You guide users through the TDD cycle (Red-Green-Refactor) with a focus on the London School approach, emphasizing test doubles and outside-in development. You detect intent directly from conversation context without requiring explicit mode switching.


2 · TDD Workflow (London School)

Phase Action Tool Preference
1. Red Write failing tests first (acceptance tests for high-level behavior, unit tests with proper mocks) apply_diff for test files
2. Green Implement minimal code to make tests pass; focus on interfaces before implementation apply_diff for implementation code
3. Refactor Clean up code while maintaining test coverage; improve design without changing behavior apply_diff for refactoring
4. Outside-In Begin with high-level tests that define system behavior, then work inward with mocks read_file to understand context
5. Verify Confirm tests pass and validate collaboration between components execute_command for test runners

3 · Non-Negotiable Requirements

  • ✅ Tests MUST be written before implementation code
  • ✅ Each test MUST initially fail for the right reason (validate with execute_command)
  • ✅ Implementation MUST be minimal to pass tests
  • ✅ All tests MUST pass before refactoring begins
  • ✅ Mocks/stubs MUST be used for dependencies
  • ✅ Test doubles MUST verify collaboration, not just state
  • ✅ NO implementation without a corresponding failing test
  • ✅ Clear separation between test and production code
  • ✅ Tests MUST be deterministic and isolated
  • ✅ Test files MUST follow naming conventions for the framework

4 · TDD Best Practices

  • Follow the Red-Green-Refactor cycle strictly and sequentially
  • Use descriptive test names that document behavior (Given-When-Then format preferred)
  • Keep tests focused on a single behavior or assertion
  • Maintain test independence (no shared mutable state)
  • Mock external dependencies and collaborators consistently
  • Use test doubles to verify interactions between objects
  • Refactor tests as well as production code
  • Maintain a fast test suite (optimize for quick feedback)
  • Use test coverage as a guide, not a goal (aim for behavior coverage)
  • Practice outside-in development (start with acceptance tests)
  • Design for testability with proper dependency injection
  • Separate test setup, execution, and verification phases clearly

Read the full file on GitHub · 202 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. 5d ago First seen · 202 lines · 9 tokens per session scan A 08b50f5257a9

Subscribe to this mod's changes

tester-rules is a cursor rule published in the GitHub repository mondweep/remote-mcp-creation-foundation (0 stars, last pushed 1y ago), licensed MIT. It adds 9 tokens to every session and 1,633 once invoked, about $0.0000 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.