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/louisbrulenaudet/monorepo-templateWrote 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/louisbrulenaudet/monorepo-template/typescript-config)<a href="https://agentmods.dev/rules/louisbrulenaudet/monorepo-template/typescript-config"><img src="https://agentmods.dev/badge/rules/louisbrulenaudet/monorepo-template/typescript-config/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/louisbrulenaudet/monorepo-template/typescript-config"><img src="https://agentmods.dev/badge/rules/louisbrulenaudet/monorepo-template/typescript-config.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.01284 |
| Opus 5.5 | $0.00000 | $0.00514 |
| Sonnet 5.5 | $0.00000 | $0.00257 |
| Haiku 4.5 | $0.00000 | $0.00128 |
Grade A, and why
typescript-config 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 28d 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 — 63 lines — stays where its author put it; the contents beside it link to each section on GitHub.
TypeScript Config Presets
Shared presets live in @repo/typescript-config. Apps and libraries extend a runtime preset and never fork compiler options. The preset JSON is the source of truth for which options are set; this rule covers what the JSON cannot say. Changing a shared preset is a monorepo-wide breaking change.
| Preset | For | Runtime shape |
|---|---|---|
strict.json |
never extended directly | shared strict core; the flags that change how code is written are in code-style.mdc |
library.json |
cross-runtime JIT libraries (extends strict) |
lib: es2023, no DOM or Worker globals; noEmit + incremental tsBuildInfoFile |
workers.json |
Worker apps | thin role alias of library.json |
vite-react.json |
React SPAs (extends strict) |
lib includes DOM, types: ["vite/client"]; noEmit |
vite-node.json |
Vite build-time config only (extends strict) |
types: ["node"], no DOM; noEmit |
tests.json |
mixin appended after a runtime preset | no lib / target; tests tsbuildinfo path, tests/ + src/ include, exclude |
Deliberate omissions
- No preset-level
typesfor Workers. Each Worker app sets"types": []and includescloudflare.config.tsand.cloudflare/types: the generated file carriesEnvand the workerd runtime types, and the empty list stops TypeScript auto-loading every visible@types/*-@types/node, installed forvite.config.ts, would put Node globals on Worker code. Runtime types come fromcf workers types, never the shared preset; add@cloudflare/workers-typesonly for a shared library with nocloudflare.config.ts.allowImportingTsExtensionslives inlibrary.json,vite-node.json, andvite-react.json(allnoEmit):cloudflare.config.tsimports its entrypoint as./src/index.ts, and@repo/enums-commonimports its own modules with.tsextensions so Node can load it natively fromcloudflare.config.ts. isolatedDeclarationsis off:@repo/dtos-commonuses schema-first inference (z.infer<typeof Schema>), and the flag would demand a hand-written duplicate type on every exported schema (contracts.mdc).
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.
- 28d ago Changed · -49 lines 9cb0d10f87d4
- 1mo ago Changed 66d47e5db690
- 1mo ago First seen · 112 lines · 0 tokens per session scan A 82bef0e5c419
typescript-config is a cursor rule published in the GitHub repository louisbrulenaudet/monorepo-template (19 stars, last pushed 2d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 1,284 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-09-03.
Other cursor rules, from other repositories
vue3-typescript-auto
Vue 3 with TypeScript Standards.
typescript-standards
TypeScript development standards and type safety.
page_layer_rules
Page layer rules for Next.js App Router pages and layouts.
update-ai-sdk
Update ai-sdk(ai, @ai/) to latest.
graphql-typescript-integration
A TypeScript rule for GraphQL operations that uses the API schema and queries to generate types. It helps type-check data and variables from the GraphQL server through to React components.
chrome-extension-dev-js-typescript-cursorrules-pro
Cursor rules for VSCode extension development with Electron and TypeScript integration.