cursorrules

cursorrules is a cursor rule for Cursor from jalcantarab/v0-vibecodex. It costs 1,431 tokens per session, scanned A, original, MIT.

A set of project instructions for Cursor, an AI-assisted code editor. It describes the project's tools, coding approach, and expectations; the older .cursorrules file is kept for compatibility, while newer projects use separate files in .cursor/rules/.

In plain words
What is it for?
Use it to guide AI-assisted work on a Next.js and TypeScript project using Tailwind CSS, shadcn/ui, Radix UI, Lucide React, Framer Motion, and pnpm.
Why use it?
It gives the editor consistent context about how the project is built and how its code should be written. The migration note helps avoid relying on a file format that Cursor now treats as legacy.

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/jalcantarab/v0-vibecodex/cursorrules
Clone the repo
git clone --depth 1 https://github.com/jalcantarab/v0-vibecodex

Made for: Cursor.

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

agentmods badge for cursorrules

README.md
[![agentmods](https://agentmods.dev/badge/rules/jalcantarab/v0-vibecodex/cursorrules.svg)](https://agentmods.dev/rules/jalcantarab/v0-vibecodex/cursorrules)
Your own site
<a href="https://agentmods.dev/rules/jalcantarab/v0-vibecodex/cursorrules"><img src="https://agentmods.dev/badge/rules/jalcantarab/v0-vibecodex/cursorrules.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,431 This file is loaded in full into every session.
When invoked 1,431 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.01431 $0.01431
Opus 5 $0.00715 $0.00715
Sonnet 5 $0.00286 $0.00286
Haiku 4.5 $0.00143 $0.00143

Measured 5d ago against content hash 28e7c2ec4d58, 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 5d 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 · 198 lines

How it starts

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

⚠️ Legacy Notice (2025): This file is deprecated

As of July 2025, Cursor uses the .cursor/rules/ directory with modular .mdc files for all new projects. This .cursorrules file is supported for legacy compatibility only. Please migrate your rules to the new modular format for better organization, overrides, and AI context. See the Cursor Rules & Prompt Templates Guide for details and migration steps.

VibeCodex - AI Coding Starter Kit Rules

Project Overview

VibeCodex is an open-source AI coding starter kit designed to help beginners create real projects with AI assistance. The project emphasizes approachability, community-focus, educational value, and practical application.

Tech Stack

  • Framework: Next.js 14+ with App Router
  • Language: TypeScript
  • Styling: Tailwind CSS
  • UI Components: shadcn/ui + Radix UI
  • Icons: Lucide React
  • Animations: Framer Motion
  • Package Manager: pnpm

Key Principles

  1. Beginner-Friendly: All code should be accessible to newcomers
  2. AI-First: Optimize for AI-assisted development workflows
  3. Community-Driven: Encourage contributions and collaboration
  4. Production-Ready: Focus on real-world applications
  5. Educational: Provide clear explanations and learning paths

React Component Guidelines

Component Structure

Always use functional components with hooks:

import { ComponentProps } from 'react'
import { cn } from '@/lib/utils'

interface ComponentNameProps extends ComponentProps<'div'> {
  // Add specific props here
}

export function ComponentName({ className, ...props }: ComponentNameProps) {
  return (
    <div className={cn("base-classes", className)} {...props}>
      {/* Component content */}
    </div>
  )
}

Key Patterns

  • Use PascalCase for component names
  • Export as named exports, not default exports
  • Extend HTML element props when appropriate
  • Use cn() utility for className merging
  • Use Tailwind CSS classes consistently
  • Leverage shadcn/ui components as base

Read the full file on GitHub · 198 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. 5d ago First seen · 198 lines · 1,431 tokens per session scan A 28e7c2ec4d58

Subscribe to this mod's changes

cursorrules is a cursor rule published in the GitHub repository jalcantarab/v0-vibecodex (8 stars, last pushed 1y ago), licensed MIT. It adds 1,431 tokens to every session, about $0.0072 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.