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.
npx agentmods add rules/felipebarcelospro/igniter-js/testing-strategygit clone --depth 1 https://github.com/felipebarcelospro/igniter-jsWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00933 | $0.00933 |
| Opus 5 | $0.00466 | $0.00466 |
| Sonnet 5 | $0.00187 | $0.00187 |
| Haiku 4.5 | $0.00093 | $0.00093 |
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 today.
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.
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_requestfor 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):
- Fix TypeScript errors using code investigation tools
- Re-run analysis to verify fixes
- 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
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.
- today First seen · 142 lines · 933 tokens per session scan A a5c9e91ba873
testing-strategy is a cursor rule published in the GitHub repository felipebarcelospro/igniter-js (242 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 933 tokens to every session, about $0.0047 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-09-01.
Other cursor rules, from other repositories
codegraph
CodeGraph MCP usage guide — when to use which tool.
git
Never mutate git history, remotes, or GitHub repo state.
css
TSF stylesheet conventions, layout debugging, and minification.
javascript
TSF JavaScript syntax, formatting, and minification.
local
Private workspace guidance and gitignored .local search (Grep/Glob are blind).
docs
Readme wording constraints, WordPress readme format, changelog prose style, and public API naming requirements.