cursor_rules_editing

cursor_rules_editing is a cursor rule for Cursor from markmhendrickson/neotoma. It costs 38 tokens per session (1,027 once invoked), scanned A, original, MIT.

A rule explaining where coding-agent rules and commands should be edited and how their local copies are refreshed.

In plain words
What is it for?
Maintaining source files and synchronizing them into the project’s Cursor configuration.
Why use it?
It prevents direct edits to generated copies that would later be overwritten.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/. Also seen: mentions 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/markmhendrickson/neotoma/cursor_rules_editing
Clone the repo
git clone --depth 1 https://github.com/markmhendrickson/neotoma

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 cursor_rules_editing

README.md
[![agentmods](https://agentmods.dev/badge/rules/markmhendrickson/neotoma/cursor_rules_editing.svg)](https://agentmods.dev/rules/markmhendrickson/neotoma/cursor_rules_editing)
Your own site
<a href="https://agentmods.dev/rules/markmhendrickson/neotoma/cursor_rules_editing"><img src="https://agentmods.dev/badge/rules/markmhendrickson/neotoma/cursor_rules_editing.svg" alt="Measured on agentmods" height="20"></a>
Per session 38 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,027 The whole file, excluding the scripts and references it only reads on demand.
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.1 $0.00038 $0.01027
Opus 5 $0.00019 $0.00513
Sonnet 5 $0.00008 $0.00205
Haiku 4.5 $0.00004 $0.00103

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

Security

Grade A, and why

cursor_rules_editing 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_rules_editing.mdc · 100 lines

How it starts

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

⚠️ DO NOT EDIT THIS FILE DIRECTLY

This is a copy of: foundation/agent_instructions/cursor_rules/cursor_rules_editing.mdc

Source of truth: foundation/agent_instructions/cursor_rules/cursor_rules_editing.mdc

To edit this rule:

1. Edit the source file: foundation/agent_instructions/cursor_rules/cursor_rules_editing.mdc

2. Run '/setup_cursor_copies' to sync changes

This file will be overwritten when running setup_cursor_copies.

Cursor Rules Editing Rule

Purpose

Ensures agents always edit the source files for cursor rules and commands, never the copies in .cursor/rules/ or .cursor/commands/ directories.

Source of Truth Locations

Foundation rules and commands:

  • Source: foundation/agent_instructions/cursor_rules/ and foundation/agent_instructions/cursor_commands/
  • Copies: .cursor/rules/ and .cursor/commands/ (created by /setup_cursor_copies)

Repository rules:

  • Source: docs/ subdirectories (e.g., docs/foundation/, docs/conventions/, docs/developer/)
  • Copies: .cursor/rules/ (created by /setup_cursor_copies)

Repository commands:

  • Source: docs/ subdirectories or repository-specific command locations
  • Copies: .cursor/commands/ (created by /setup_cursor_copies)

Rule

MUST NOT edit files in .cursor/rules/ or .cursor/commands/

These directories contain copies that are:

  • Automatically generated by /setup_cursor_copies
  • Overwritten when running /setup_cursor_copies
  • Not the source of truth

Agent Actions

When Editing Rules or Commands

  1. Identify the source file:

    • Foundation rules: foundation/agent_instructions/cursor_rules/{name}.mdc
    • Foundation commands: foundation/agent_instructions/cursor_commands/{name}.md
    • Repository rules: docs/{subdirectory}/{name}_rules.mdc or docs/{subdirectory}/{name}_rules.md
    • Repository commands: docs/{subdirectory}/{name}_command.md or repository-specific command locations
  2. Edit the source file directly

Read the full file on GitHub · 100 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 · 100 lines · 38 tokens per session scan A ed0b8bce0c42

Subscribe to this mod's changes

cursor_rules_editing is a cursor rule published in the GitHub repository markmhendrickson/neotoma (31 stars, last pushed 3d ago), licensed MIT. It adds 38 tokens to every session and 1,027 once invoked, about $0.0002 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-09-03.