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/jketreno/clareWrote 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/jketreno/clare/clare-assertive)<a href="https://agentmods.dev/rules/jketreno/clare/clare-assertive"><img src="https://agentmods.dev/badge/rules/jketreno/clare/clare-assertive/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/jketreno/clare/clare-assertive"><img src="https://agentmods.dev/badge/rules/jketreno/clare/clare-assertive.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.00000 | $0.00620 |
| Opus 5.5 | $0.00000 | $0.00248 |
| Sonnet 5.5 | $0.00000 | $0.00124 |
| Haiku 4.5 | $0.00000 | $0.00062 |
Grade A, and why
clare-assertive 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 — 76 lines — stays where its author put it; the contents beside it link to each section on GitHub.
[A] Assertive — Tests Define Invariants, Not Implementations
Every test you write must enforce something that must always be true, not something the implementation currently happens to do.
The Invariant Test Pattern
Before writing a test, ask: "What must be true even if someone rewrites the implementation from scratch?"
That answer is your test.
// ❌ Confirms implementation — useless after regeneration
it('addTax returns 110 when given 100 and 0.1', () => {
expect(addTax(100, 0.1)).toBe(110);
});
// ✅ Enforces invariant — survives any correct implementation
it('tax is always added to the original amount, never subtracted', () => {
fc.assert(
fc.property(
fc.float({ min: 0, max: 1_000_000 }),
fc.float({ min: 0, max: 1 }),
(amount, rate) => {
fc.pre(amount > 0 && rate >= 0);
expect(addTax(amount, rate)).toBeGreaterThanOrEqual(amount);
}
)
);
});
Required Test Types per Module
- Unit invariant tests — at least one property-based test per critical function
- Schema-lock test — for any public API or event contract
- Architecture test — in
tests/architecture/for structural rules
Test Naming Convention
Use the pattern: [subject] [never/always/must/cannot] [condition]
'users can never have duplicate emails''API responses always include a request ID''payment amounts must always be positive''auth tokens cannot be longer than 30 days'
Property-Based Test Starters
import fc from 'fast-check'; // TypeScript/JavaScript
// Roundtrip (encode/decode, serialize/deserialize)
fc.assert(fc.property(fc.string(), s => decode(encode(s)) === s));
// Monotonicity (more input → more/equal output)
fc.assert(fc.property(fc.integer({ min: 0 }), n => process(n + 1) >= process(n)));
// Idempotency (doing it twice = doing it once)
fc.assert(fc.property(fc.anything(), x => normalize(normalize(x)) === normalize(x)));
The Test-the-Test Exercise
After writing tests:
- Delete the implementation
- Ask AI to regenerate it
- Run the tests
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 · 76 lines · 0 tokens per session scan A 315f9f227e8e
clare-assertive is a cursor rule published in the GitHub repository jketreno/clare (5 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 620 tokens. 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
fuzzing
Fuzzing setup and guidelines for skia-rs.
testing-and-quality
The testcomprehensive.py provides systematic testing of all 31 MCP tools.
smoke-monkey-tester
Smoke tests for core functionality and monkey/chaos tests aiming to break the system with randomized inputs. / TR: Sistemin temel fonksiyonlarını kontrol eden smoke testler ve rastgele girdilerle sistemi çökertmeyi hedefleyen monkey/chaos testleri.
testing
Testing conventions for Ion Design System using Jest and Angular Testing Library.
STAGE_S5_TEST_POINTS
A staged workflow for turning approved requirements into a complete list of test points. It checks required earlier documents and records any requirement that has no matching test point.
pre-flight-check
Mandatory fail-fast quality gate — run Typecheck, Lint, Test, and Security Audit sequentially before declaring any task done or committing code.