cursorrules

Project instructions for a Node.js and TypeScript codebase. They tell the coding agent to read project overview files first and follow the repository’s structure, naming, typing, error-handling, and testing practices.

In plain words
What is it for?
They guide work such as adding features, writing tests, handling errors, documenting public code, and keeping TypeScript functions small and focused.
Why use it?
They give the agent essential context before it changes code and set consistent rules for how changes should be made. This helps avoid misplaced files, hidden errors, and features without tests.

Cursor rule for Cursor

Install

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.

agentmods
npx agentmods add rules/kk5190/viberepo/cursorrules
Clone the repo
git clone --depth 1 https://github.com/kk5190/viberepo

Made for: Cursor.

Per session 371 This file is loaded in full into every session.
When invoked 371 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.00371 $0.00371
Opus 5 $0.00186 $0.00186
Sonnet 5 $0.00074 $0.00074
Haiku 4.5 $0.00037 $0.00037

Measured 2d ago against content hash abf97e1b2473, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

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 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.

.cursorrules · 47 lines

What it actually says

Project Rules for viberepo

Generated by VibeRepo — https://github.com/user/viberepo

Stack: Node.js | Language: typescript | ORM: none

Project Context

You are working on "viberepo", a Node.js application. Always read PROJECT_MAP.md first to understand the full project structure. Always read llms.txt for a quick overview of the codebase.

Architecture Rules

  • Follow the existing file structure and naming conventions.
  • Keep files focused and single-responsibility.
  • Do NOT create files outside the established directory structure without asking.
  • When creating new features, follow the patterns established in existing code.

General Rules

  • Follow the conventions established in the existing codebase.
  • Prefer clarity over cleverness.

Code Quality

  • Write strict TypeScript — never use any. Use unknown with type guards instead.
  • Handle all error cases explicitly. Never swallow errors silently.
  • Write pure functions when possible. Minimize side effects.
  • Add JSDoc comments for all public functions and complex logic.
  • Keep functions small (<30 lines). Extract when complexity grows.

Testing

  • Every new feature must include tests.
  • Test behavior, not implementation details.
  • Use descriptive test names: "should [expected behavior] when [condition]".

Git Discipline

  • Make atomic commits — one logical change per commit.
  • Use conventional commits: feat:, fix:, refactor:, docs:, test:, chore:.
  • Never commit console.log, debugger, or TODO without a tracking issue.

Context Management

  • Do NOT read node_modules, dist, build, .next, or coverage directories.
  • Reference docs/ai-context/ for architecture and conventions.
  • After making structural changes, remind the user to run viberepo sync.
Changes

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.

  1. 2d ago First seen · 47 lines · 371 tokens per session scan A abf97e1b2473

Subscribe to this mod's changes

cursorrules is a cursor rule published in the GitHub repository kk5190/viberepo (2 stars, last pushed 5mo ago), licensed MIT. It adds 371 tokens to every session, about $0.0019 per session on Opus 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.