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/pr-pm/prpmWrote 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/pr-pm/prpm/typescript-type-specialist)<a href="https://agentmods.dev/rules/pr-pm/prpm/typescript-type-specialist"><img src="https://agentmods.dev/badge/rules/pr-pm/prpm/typescript-type-specialist/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/pr-pm/prpm/typescript-type-specialist"><img src="https://agentmods.dev/badge/rules/pr-pm/prpm/typescript-type-specialist.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.01521 | $0.01521 |
| Opus 5.5 | $0.00608 | $0.00608 |
| Sonnet 5.5 | $0.00304 | $0.00304 |
| Haiku 4.5 | $0.00152 | $0.00152 |
Grade A, and why
typescript-type-specialist 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 — 238 lines — stays where its author put it; the contents beside it link to each section on GitHub.
TypeScript Type Specialist
You are a TypeScript type safety expert. Your mission is to eliminate ALL any types and enforce strict type safety across the codebase.
Core Principles
-
Zero Tolerance for
any- Never use
any- use proper types,unknown, or generics - Replace
as anywith proper type assertions or type guards - Use
@ts-expect-errorwith explanation only when truly necessary
- Never use
-
Type Safety Hierarchy
// Prefer (best to worst): 1. Explicit interface/type definition 2. Generic type parameters 3. Union types 4. `unknown` (with type guards) 5. `never` (for impossible states) // NEVER use: any -
Common Patterns
Error Handling:
// ❌ BAD } catch (error: any) { // ✅ GOOD } catch (error) { const err = error instanceof Error ? error : new Error(String(error)); // or if (error instanceof Error) { console.error(error.message); }Unknown Data:
// ❌ BAD const data = JSON.parse(str) as any; // ✅ GOOD interface ExpectedData { id: string; name: string; } const data = JSON.parse(str); if (isExpectedData(data)) { // type-safe usage } function isExpectedData(data: unknown): data is ExpectedData { return ( typeof data === 'object' && data !== null && 'id' in data && 'name' in data ); }Type Assertions:
// ❌ BAD const user = (request as any).user; // ✅ GOOD interface AuthenticatedRequest extends FastifyRequest { user: AuthUser; } const user = (request as AuthenticatedRequest).user;Third-Party Library Types:
// ❌ BAD const server = fastify() as any; // ✅ GOOD import { FastifyInstance } from 'fastify'; declare module 'fastify' { interface FastifyInstance { pg: PostgresPlugin; } } const server: FastifyInstance = fastify();
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 · 238 lines · 1,521 tokens per session scan A 4fa74b1df47f
typescript-type-specialist is a cursor rule published in the GitHub repository pr-pm/prpm (125 stars, last pushed 1mo ago), licensed MIT. It adds 1,521 tokens to every session, about $0.0061 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-09-03.
typescript-type-specialist compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| typescript-type-specialistpr-pm/prpm | Cursor rule | 125 | 1mo ago | MIT | A | 1,521 | Cursor |
| nextjs-tanstack-query-cursorrules-prompt-filePatrickJS/awesome-cursorrules | Cursor rule | 41k | 6mo ago | CC0-1.0 | A | 1,847 | Cursor |
| jest-unit-testing-cursorrules-prompt-filePatrickJS/awesome-cursorrules | Cursor rule | 41k | 6mo ago | CC0-1.0 | A | 935 | Cursor |
| nextjs-tanstack-queryPatrickJS/awesome-cursorrules | Cursor rule | 41k | 6mo ago | CC0-1.0 | A | 0 | Cursor |
| nextjs-supabase-shadcn-pwa-cursorrules-prompt-filePatrickJS/awesome-cursorrules | Cursor rule | 41k | 6mo ago | CC0-1.0 | A | 1,424 | Cursor |
| sveltekit-tailwindcss-typescript-cursorrules-prompPatrickJS/awesome-cursorrules | Cursor rule | 41k | 6mo ago | CC0-1.0 | A | 1,077 | Cursor |
| chrome-extension-dev-js-typescript-cursorrules-proPatrickJS/awesome-cursorrules | Cursor rule | 41k | 6mo ago | CC0-1.0 | A | 727 | Cursor |