contextmax: Cursor rule for Cursor

.cursorrules

cursorrules is a cursor rule for Cursor from galliani/contextmax. It costs 358 tokens per session, scanned A, original, MPL-2.0.

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

Written for Cursor: installed under .cursor/.

This is galliani/contextmax's own configuration. It tells Cursor how to work on contextmax itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything contextmax configures →

Reuse

Borrowing it

Nothing to install: this file belongs to galliani/contextmax. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/galliani/contextmax/main/.cursorrules
Clone the repo
git clone --depth 1 https://github.com/galliani/contextmax

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/galliani/contextmax/cursorrules/github.svg)](https://agentmods.dev/rules/galliani/contextmax/cursorrules)
Your own site
<a href="https://agentmods.dev/rules/galliani/contextmax/cursorrules"><img src="https://agentmods.dev/badge/rules/galliani/contextmax/cursorrules/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cursorrules

Your own site · 80×15
<a href="https://agentmods.dev/rules/galliani/contextmax/cursorrules"><img src="https://agentmods.dev/badge/rules/galliani/contextmax/cursorrules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00358 $0.00358
Opus 5.5 $0.00143 $0.00143
Sonnet 5.5 $0.00072 $0.00072
Haiku 4.5 $0.00036 $0.00036

Measured 1mo ago against content hash a9c472a97e9b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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 · 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.json → sets["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. 1mo ago 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.0014 per session on Opus 5.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.