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.
npx agentmods add rules/jhl-labs/vibe-project/typescriptgit clone --depth 1 https://github.com/jhl-labs/vibe-projectWhat 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 | $0.00000 | $0.00315 |
| Opus 5 | $0.00000 | $0.00158 |
| Sonnet 5 | $0.00000 | $0.00063 |
| Haiku 4.5 | $0.00000 | $0.00032 |
Grade A, and why
typescript 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 2d 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
TypeScript/JavaScript Rules
Language Preferences
- Maximum line length: 100 characters
- Indentation: 2 spaces
- Use TypeScript strict mode
- Prefer
constoverlet, never usevar - Use arrow functions for callbacks
- Destructure objects and arrays when appropriate
- Use template literals for string interpolation
- Use async/await over .then() chains
Naming
- Files:
kebab-case.ts - Classes/Components:
PascalCase - Functions/Variables:
camelCase - Constants:
UPPER_SNAKE_CASE - Types/Interfaces:
PascalCase(no I/T prefix)
Imports
// Order: external → internal → types
import { something } from 'external-package';
import { internal } from '@/internal';
import type { SomeType } from './types';
Error Handling
// Always handle promise rejections
try {
await asyncOperation();
} catch (error) {
// Handle or rethrow with context
throw new CustomError('Context', { cause: error });
}
Testing
- Use Jest/Vitest
- Test naming:
should_<expected>_when_<condition> - Follow AAA pattern: Arrange, Act, Assert
- Mock external dependencies
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.
- 2d ago First seen · 55 lines · 0 tokens per session scan A ba976d5839a4
typescript is a cursor rule published in the GitHub repository jhl-labs/vibe-project (2 stars, last pushed 7mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 315 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
ai-agent-specialist
Cursor rules for TypeScript, React, Node.js, clean architecture, testing, and WHY-oriented engineering guidance.
astro-typescript-cursorrules-prompt-file
Cursor rules for Astro development with TypeScript integration.
angular-typescript-cursorrules-prompt-file
Cursor rules for Angular development with TypeScript integration.
deno-integration-techniques-cursorrules-prompt-fil
Cursor rules for Deno development with integration techniques.
modern
You are an expert TypeScript developer working on PromptScript - a language and toolchain for standardizing AI instructions across enterprise organizations.
type-inference
Derive TypeScript types from Zod schemas - no hand-written interfaces for wire shapes.