Borrowing it
Nothing to install: this file belongs to sinnhirl/cdt-smart-snapshot. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/sinnhirl/cdt-smart-snapshot/main/.cursorrulesgit clone --depth 1 https://github.com/sinnhirl/cdt-smart-snapshotWrote 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/sinnhirl/cdt-smart-snapshot/cursorrules)<a href="https://agentmods.dev/rules/sinnhirl/cdt-smart-snapshot/cursorrules"><img src="https://agentmods.dev/badge/rules/sinnhirl/cdt-smart-snapshot/cursorrules/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/sinnhirl/cdt-smart-snapshot/cursorrules"><img src="https://agentmods.dev/badge/rules/sinnhirl/cdt-smart-snapshot/cursorrules.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.00401 | $0.00401 |
| Opus 5.5 | $0.00160 | $0.00160 |
| Sonnet 5.5 | $0.00080 | $0.00080 |
| Haiku 4.5 | $0.00040 | $0.00040 |
Grade A, and why
cursorrules 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 2mo 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.
What it actually says
cdt-smart-snapshot project rules (AI must comply)
TypeScript hard rules (violation = rewrite)
- No
anytype; noastype assertions; no!non-null assertions - No
// @ts-ignore,// @ts-nocheck,// @ts-expect-errorcomments - Prefer
for..ofoverforEach - Use
import typefor type-only imports; preferinterfaceovertypefor shapes - Use simple
Array<T>form (array-simple rule)
Comments (mandatory — user requirement)
- Every public function/method needs JSDoc: @param, @returns, @throws
- Core algorithms (visibility/diff/dedupe) need a "why" comment at the top of each function
- Inline comments explain intent on complex logic; never translate code line by line
TDD (iron law)
- Write the test first, watch it fail (RED), then minimal implementation (GREEN), then refactor (REFACTOR)
- No production code without a failing test
- Test naming: shouldXxxWhenYyy format
Commit conventions
- Conventional Commits: feat:/fix:/docs:/chore:/refactor:/test:
- Title line ≤ 72 chars
Quality gates
npm run check-formatmust be zero-errornpm run typecheckmust be zero-errornpm run testmust be all green
Project background (read before writing code)
- Positioning: token-efficient perception layer for chrome-devtools-mcp, 3 tools: smart_snapshot (semantic snapshot) / snapshot_diff (incremental) / screenshot_to_disk (file path)
- Stack: Node 22 + TypeScript ESM + @modelcontextprotocol/sdk v1 + puppeteer-core + vitest
- Full spec is in SPEC.md — implement per that spec
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.
- 2mo ago First seen · 34 lines · 401 tokens per session scan A 98d77e14da1b
cursorrules is a cursor rule published in the GitHub repository sinnhirl/cdt-smart-snapshot (0 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 401 tokens to every session, about $0.0016 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.
cursorrules compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| cursorrulessinnhirl/cdt-smart-snapshot | Cursor rule | 0 | 3mo ago | Apache-2.0 | A | 401 | Cursor |
| ponytailDietrichGebert/ponytail | Cursor rule | 185k | 8d ago | MIT | A | 604 | Cursor |
| angular-20angular/angular | Cursor rule | 101k | yesterday | MIT | A | 0 | Cursor |
| dev-standardapache/superset | Cursor rule | 75k | yesterday | Apache-2.0 | A | 1,147 | Cursor |
| prefer-assertions-over-defensive-checksprisma/orm | Cursor rule | 48k | yesterday | Apache-2.0 | A | 0 | Cursor |
| prefer-direct-imports-over-module-mocksprisma/orm | Cursor rule | 48k | yesterday | Apache-2.0 | A | 0 | Cursor |
| shared-plane-packagesprisma/orm | Cursor rule | 48k | yesterday | Apache-2.0 | A | 0 | Cursor |