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.
git clone --depth 1 https://github.com/Stramp/Lost-Mines-PhandelverWrote 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.
[](https://agentmods.dev/rules/stramp/lost-mines-phandelver/test-driven-development)<a href="https://agentmods.dev/rules/stramp/lost-mines-phandelver/test-driven-development"><img src="https://agentmods.dev/badge/rules/stramp/lost-mines-phandelver/test-driven-development/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.
<a href="https://agentmods.dev/rules/stramp/lost-mines-phandelver/test-driven-development"><img src="https://agentmods.dev/badge/rules/stramp/lost-mines-phandelver/test-driven-development.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.04668 | $0.04668 |
| Opus 5.5 | $0.01867 | $0.01867 |
| Sonnet 5.5 | $0.00934 | $0.00934 |
| Haiku 4.5 | $0.00467 | $0.00467 |
Grade A, and why
test-driven-development 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 1mo 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.
How it starts
The opening of the file, as written. The whole thing — 569 lines — stays where its author put it; the contents beside it link to each section on GitHub.
🧪 Test-Driven Development (TDD) Rule
🎯 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.
- 1mo ago First seen · 569 lines · 4,668 tokens per session scan A 16e437da49fa
test-driven-development is a cursor rule published in the GitHub repository Stramp/Lost-Mines-Phandelver (2 stars, last pushed 10mo ago), licensed MIT. It adds 4,668 tokens to every session, about $0.0187 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-08-31.
Other cursor rules, from other repositories
mcpnuke-tests
Test conventions for mcpnuke — enforces TDD workflow.
debug-issue
When the user reports a bug, an error, or unexpected behavior. Enforces four structured phases — reproduction, failing test, root cause isolation, fix and verify — to stop guess-and-check loops.
common-testing
Testing requirements: 80% coverage, TDD workflow.
testing_rules
A testing guide covering TDD, where tests are written before code, and BDD, where expected behavior is described in Given-When-Then form.
tdd
Test-driven development — red-green-refactor cycle.
testing-standards
testing guidelines and expectations.