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-core)<a href="https://agentmods.dev/rules/stramp/lost-mines-phandelver/test-driven-development-core"><img src="https://agentmods.dev/badge/rules/stramp/lost-mines-phandelver/test-driven-development-core/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-core"><img src="https://agentmods.dev/badge/rules/stramp/lost-mines-phandelver/test-driven-development-core.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.02745 | $0.02745 |
| Opus 5.5 | $0.01098 | $0.01098 |
| Sonnet 5.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 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.
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.
- 3mo ago 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 12mo ago), licensed MIT. It adds 2,745 tokens to every session, about $0.0110 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.
test-driven-development-core compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| test-driven-development-coreStramp/Lost-Mines-Phandelver | Cursor rule | 2 | 12mo ago | MIT | A | 2,745 | Cursor |
| irisils15/pantheon-legacy | Cursor rule | 12 | 17d ago | MIT | A | 43 | Cursor |
| tddJkudjo/oh-my-cursor | Cursor rule | 1 | 18d ago | MIT | A | 9 | Cursor |
| common-testingEarthChen/ai-assets | Cursor rule | 2 | 6d ago | none | A | 432 | Cursor |
| testing_rulesgaebalai/Cursor-DEF-A-Rule | Cursor rule | 12 | 1y ago | MIT | A | 1,891 | Cursor |
| testing-standardsjim-schilling/splurge-ai-rules | Cursor rule | 3 | 1y ago | MIT | A | 4 | Cursor |
| 122-swift-developmentn0rvyn/cursor-rules | Cursor rule | 2 | 1y ago | none | A | 0 | Cursor |