testing-strategy

testing-strategy is a cursor rule for Cursor from felipebarcelospro/igniter-js. It costs 933 tokens per session, scanned A, original, Apache-2.0.

A project rule for validating completed features through feature analysis and real API requests instead of creating automated test files by default.

In plain words
What is it for?
Use it after implementing a feature to inspect its files and errors, fix issues, and check each discovered endpoint with API requests.
Why use it?
It focuses verification on the running API and helps identify TypeScript errors and available endpoints before testing behavior.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc).

Good fit Use it after implementing a feature to inspect its files and errors, fix issues, and check each discovered endpoint with API requests.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/felipebarcelospro/igniter-js/testing-strategy
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/felipebarcelospro/igniter-js

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 testing-strategy

README.md
[![agentmods](https://agentmods.dev/badge/rules/felipebarcelospro/igniter-js/testing-strategy/github.svg)](https://agentmods.dev/rules/felipebarcelospro/igniter-js/testing-strategy)
Your own site
<a href="https://agentmods.dev/rules/felipebarcelospro/igniter-js/testing-strategy"><img src="https://agentmods.dev/badge/rules/felipebarcelospro/igniter-js/testing-strategy/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-strategy

Your own site · 80×15
<a href="https://agentmods.dev/rules/felipebarcelospro/igniter-js/testing-strategy"><img src="https://agentmods.dev/badge/rules/felipebarcelospro/igniter-js/testing-strategy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 933 This file is loaded in full into every session.
When invoked 933 The same file — it is already loaded in full.
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.00933 $0.00933
Opus 5.5 $0.00373 $0.00373
Sonnet 5.5 $0.00187 $0.00187
Haiku 4.5 $0.00093 $0.00093

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

Security

Grade A, and why

testing-strategy 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 3mo 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.

packages/mcp-server/testing-strategy.mdc · 142 lines

How it starts

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

Testing Strategy & Validation Protocol

Core Testing Philosophy

PREFERRED APPROACH: API Testing over Automated Tests

  • ✅ DO: Use analyze_feature + make_api_request for validation
  • ❌ DON'T: Create automated tests unless explicitly requested by user
  • 🎯 GOAL: Validate functionality through real API calls, not test files

Post-Implementation Workflow

1. Feature Analysis (MANDATORY)

After implementing any feature, ALWAYS run:

analyze_feature({
  featurePath: "src/features/user-management", // or single file
  projectRoot: "auto-detect",
  includeStats: true
})

This provides:

  • 📁 Complete file structure and organization
  • 🔍 TypeScript error detection and counts
  • 📊 File statistics (size, lines, types)
  • 🌐 API endpoint discovery
  • 💡 Specific recommendations for next steps

2. Error Resolution (IF NEEDED)

If analyze_feature shows errors (needs_attention status):

  1. Fix TypeScript errors using code investigation tools
  2. Re-run analysis to verify fixes
  3. Store insights as memories for future reference

3. API Validation Testing

Once feature is healthy, test via API calls:

// For each endpoint discovered by analyze_feature
make_api_request({
  method: "POST",
  url: "/api/users",
  body: { name: "Test User", email: "[email protected]" },
  headers: { "Content-Type": "application/json" }
})

4. Results Documentation

Store successful patterns:

store_memory({
  type: "api_mapping",
  title: "User Management API Testing Results",
  content: "Endpoints tested, successful requests, validation patterns",
  tags: ["api", "testing", "user-management"],
  confidence: 0.9
})

When to Create Automated Tests

ONLY create automated tests when:

  • ✅ User explicitly requests test files
  • ✅ User mentions "vitest", "jest", "test files"
  • ✅ User says "write tests for this"
  • ✅ Complex business logic needs unit testing
  • ✅ Library/utility functions need testing

Read the full file on GitHub · 142 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. 3mo ago First seen · 142 lines · 933 tokens per session scan A a5c9e91ba873

Subscribe to this mod's changes

testing-strategy is a cursor rule published in the GitHub repository felipebarcelospro/igniter-js (240 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 933 tokens to every session, about $0.0037 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-09-01.

Related

testing-strategy compared with cursor rules from other repositories

testing-strategy next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
testing-strategyfelipebarcelospro/igniter-jsCursor rule2401mo agoApache-2.0A933Cursor
design-standardsbernierllc/agents-environment-configCursor rule11todayMITA0Cursor
phpsybrew/the-seo-frameworkCursor rule4894d agoGPL-3.0A0Cursor
code-stylesybrew/the-seo-frameworkCursor rule4894d agoGPL-3.0A0Cursor
docssybrew/the-seo-frameworkCursor rule4894d agoGPL-3.0A0Cursor
local-filessybrew/the-seo-frameworkCursor rule4894d agoGPL-3.0A0Cursor
javascriptsybrew/the-seo-frameworkCursor rule4894d agoGPL-3.0A0Cursor