cursor

A set of project rules and documentation templates for navigating a Next.js web application. It describes the repository layout, technology stack, coding guidance, architecture, and monitoring setup.

In plain words
What is it for?
Use it when asking an agent to understand the project structure, follow its documented conventions, or locate application, API, component, and utility code.
Why use it?
It gives an agent a shared map of the project instead of making it guess where code belongs or how the application is organized.

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/smeubank/cursor-template/cursor
Clone the repo
git clone --depth 1 https://github.com/smeubank/cursor-template

Made for: Cursor.

Per session 2,162 This file is loaded in full into every session.
When invoked 2,162 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.02162 $0.02162
Opus 5 $0.01081 $0.01081
Sonnet 5 $0.00432 $0.00432
Haiku 4.5 $0.00216 $0.00216

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

Security

Grade A, and why

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

.cursor/rules/cursor.mdc ยท 285 lines

How it starts

The opening of the file, as written. The whole thing โ€” 285 lines โ€” stays where its author put it; the contents beside it link to each section on GitHub.

Project Template - Navigation & Overview

๐ŸŽฏ Project Overview

[Your Project Name] is a modern web application built with Next.js, featuring [brief description of your main functionality and purpose].

๐Ÿ—๏ธ Repository Structure

  • /app - CURRENT DEVELOPMENT - Next.js App Router application (port 3000)
  • /admin - Admin dashboard (port 3001) [if applicable]
  • /api - API routes and backend services
  • /components - Reusable UI components
  • /lib - Utility functions and configurations

๐Ÿ”ง Technology Stack

  • Frontend: Next.js 15 (App Router), TypeScript, Tailwind CSS
  • Backend: [Your backend choice - Supabase, Prisma, etc.]
  • UI Library: ShadCN/UI components
  • Monitoring: Sentry with MCP integration
  • Deployment: Vercel

๐Ÿ“‚ Documentation Structure

Core Architecture & Implementation

Feature Development Workflow

Quick Start for New Features:

cp -r .cursor/project/features/001-template .cursor/project/features/00X-feature-name

Workflow: PRFAQ (validate problem) โ†’ PRD (define requirements) โ†’ GTM (plan launch) โ†’ IMPLEMENTATION (build & deploy)

Read the full file on GitHub ยท 285 lines

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 ยท 285 lines ยท 2,162 tokens per session scan A 44c4497347cd

Subscribe to this mod's changes

cursor is a cursor rule published in the GitHub repository smeubank/cursor-template (6 stars, last pushed 1y ago), licensed MIT. It adds 2,162 tokens to every session, about $0.0108 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.