cursorrules

A set of project rules for a Vue application, including how to add interface components, how to handle context references, and how to inspect related files before making changes. It also says the development server is already running on port 3000.

In plain words
What is it for?
Use it when adding Vue interface components, resolving named project contexts, tracing workflows, or checking which files and features may be affected by a change.
Why use it?
It keeps coding work consistent with the project’s chosen tools and file relationships. It prevents unnecessary server restarts and helps avoid changes that overlook connected parts of the codebase.

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

Made for: Cursor.

Per session 358 This file is loaded in full into every session.
When invoked 358 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.00358 $0.00358
Opus 5 $0.00179 $0.00179
Sonnet 5 $0.00072 $0.00072
Haiku 4.5 $0.00036 $0.00036

Measured yesterday against content hash a9c472a97e9b, 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 yesterday.

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 · 45 lines

What it actually says

Creating component

  • Use the shadcn/vue as the component generator, use the "shadcn-vue docs" tool to know which component to add and how to add it.
  • The command to import the component is like this: npx shadcn-vue@latest add COMPONENT.

About server

DO NOT run command to run or restart the server, always assume that server is running at port 3000.

Context Sets Tool Selection

When a user references @context:Name, resolve it via context-sets.jsonsets["context:Name"].

Processing Order

  1. Check workflows first
  • If workflows exist: Start from workflow.start.function and trace to end
  • If workflows empty: Read all files in the context, prioritizing those with functionRefs
  1. File Resolution
  • String → filesIndex[fileId].path → read entire file
  • Object → filesIndex[fileId].path → locate specific functionRefs
  1. Impact Analysis
  • Direct: Check context's uses array
  • Indirect: Check filesIndex[fileId].contexts for shared files
  • When modifying file_X in ContextA, also consider ContextB if both use file_X

Quick Example

User: "Fix the download button in @context:PhotoGallery" → Load PhotoGallery context → See it uses ["DownloadPhoto"] → Find download button via workflow start point or grep functions → Check if changes affect DownloadPhoto via shared files

Key Rules

  • Track changes in memory during session
  • Update context-sets.json only when explicitly requested
  • Use functionRefs for surgical precision when available
  • No warnings for files outside contexts
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. yesterday First seen · 45 lines · 358 tokens per session scan A a9c472a97e9b

Subscribe to this mod's changes

cursorrules is a cursor rule published in the GitHub repository galliani/contextmax (11 stars, last pushed 1y ago), licensed MPL-2.0. It adds 358 tokens to every session, about $0.0018 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-30.