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/stramp/lost-mines-phandelver/test-driven-development-coregit clone --depth 1 https://github.com/Stramp/Lost-Mines-PhandelverWhat 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.02745 | $0.02745 |
| Opus 5 | $0.01373 | $0.01373 |
| Sonnet 5 | $0.00549 | $0.00549 |
| Haiku 4.5 | $0.00275 | $0.00275 |
Grade A, and why
test-driven-development-core 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 yesterday.
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 — 330 lines — stays where its author put it; the contents beside it link to each section on GitHub.
🧪 Test-Driven Development (TDD) - Core
🎯 Objetivo
ALWAYS seguir o paradigma Test-Driven Development (TDD) para código crítico e reutilizável, garantindo que testes sejam escritos ANTES da implementação, seguindo o ciclo Red-Green-Refactor.
🚨 REGRA PRINCIPAL - TEST-FIRST 🚨
ALWAYS escrever testes ANTES da implementação quando:
- ✅ Criando nova função helper/utility (em
Utils/ouHelpers/) - ✅ Implementando lógica de negócio (cálculos, validações, transformações)
- ✅ Criando novos motores (
*Motor.cpp- PointBuy, Multiclass, RaceBonus) - ✅ Criando novos validators (
*Validator.cpp) - ✅ Adicionando cálculos complexos (modificadores, proficiências, atributos)
- ✅ Implementando regras de negócio (regras D&D, multiclassing, point buy)
- ✅ Refatorando código crítico (escrever testes primeiro para garantir comportamento)
NEVER implementar código crítico sem testes correspondentes.
🔄 O Ciclo Red-Green-Refactor
1. Red: Escrever Teste que Falha
ALWAYS começar escrevendo o teste que define o comportamento esperado:
// ✅ CORRETO - Teste primeiro
BEGIN_DEFINE_SPEC(FPointBuyMotorSpec, "MyProject2.CreateSheet.PointBuy",
EAutomationTestFlags::ProductFilter | EAutomationTestFlags::ApplicationContextMask)
FPointBuyMotor* Motor;
END_DEFINE_SPEC(FPointBuyMotorSpec)
void FPointBuyMotorSpec::Define()
{
Describe("CalculatePointBuyCost", [this]()
{
It("deve calcular custo correto para score 15 (9 pontos)", [this]()
{
// Arrange
int32 Score = 15;
// Act
int32 Result = FPointBuyMotor::CalculatePointBuyCost(Score);
// Assert
TestEqual("Custo para score 15 deve ser 9", Result, 9);
});
});
}
Por que começar pelo teste:
- Define o contrato antes da implementação
- Força pensar na interface primeiro
- Garante que o teste pode detectar erros
- Confirma que a infraestrutura de teste funciona
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.
- yesterday First seen · 330 lines · 2,745 tokens per session scan A ccb78da4ab18
test-driven-development-core is a cursor rule published in the GitHub repository Stramp/Lost-Mines-Phandelver (2 stars, last pushed 9mo ago), licensed MIT. It adds 2,745 tokens to every session, about $0.0137 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.
Other cursor rules, from other repositories
angular-20
This rule provides comprehensive best practices and coding standards for Angular development, focusing on modern TypeScript, standalone components, signals, and performance optimizations.
dev-standard
Apache Superset development standards and guidelines for Cursor IDE.
coolify-ai-docs
Master reference to all Coolify AI documentation in .ai/ directory.
typescript
Changes to these high-fan-out internals can affect every message, delta, element, or rerun. Keep work in them minimal, and benchmark changes with representative stress-test apps.
python_lib
Tips and guidelines specific to the development of the Streamlit Python library, not applicable to scripts and e2e tests.
specs
This directory contains product and tech specs for Streamlit features.