file-operations-guidelines

file-operations-guidelines is a cursor rule for Cursor from mondweep/remote-mcp-creation-foundation. It costs 3 tokens per session (172 once invoked), scanned A, original, MIT.

A set of instructions for safely reading and changing files with tools such as read_file, apply_diff, and search_and_replace. It explains required paths, common mistakes, and checks to make before editing.

In plain words
What is it for?
Use it when an agent needs to read, modify, or write files and should verify paths and content before applying changes.
Why use it?
It helps prevent failures caused by missing files, incorrect paths, missing parameters, or edits made without first checking the existing content.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it when an agent needs to read, modify, or write files and should verify paths and content before applying changes.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/mondweep/remote-mcp-creation-foundation/file-operations-guidelines
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.

Clone the repo
git clone --depth 1 https://github.com/mondweep/remote-mcp-creation-foundation

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 file-operations-guidelines

README.md
[![agentmods](https://agentmods.dev/badge/rules/mondweep/remote-mcp-creation-foundation/file-operations-guidelines.svg)](https://agentmods.dev/rules/mondweep/remote-mcp-creation-foundation/file-operations-guidelines)
Your own site
<a href="https://agentmods.dev/rules/mondweep/remote-mcp-creation-foundation/file-operations-guidelines"><img src="https://agentmods.dev/badge/rules/mondweep/remote-mcp-creation-foundation/file-operations-guidelines.svg" alt="Measured on agentmods" height="20"></a>
Per session 3 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 172 The whole file, excluding the scripts and references it only reads on demand.
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.00003 $0.00172
Opus 5 $0.00002 $0.00086
Sonnet 5 $0.00001 $0.00034
Haiku 4.5 $0.00000 $0.00017

Measured 7d ago against content hash 17cd636aebca, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

file-operations-guidelines 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 7d 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/file-operations-guidelines.mdc · 32 lines

What it actually says

File Operations Guidelines

read_file

<read_file>
  <path>File path here</path>
</read_file>

Required Parameters:

  • path: The file path to read

Common Errors to Avoid:

  • Attempting to read non-existent files
  • Using incorrect or relative paths
  • Missing the path parameter

Best Practices:

  • Always check if a file exists before attempting to modify it
  • Use read_file before apply_diff or search_and_replace to verify content
  • For large files, consider using start_line and end_line parameters to read specific sections

write_to_file

<write_to_file>
  <path>File path here</path>
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. 7d ago First seen · 32 lines · 3 tokens per session scan A 17cd636aebca

Subscribe to this mod's changes

file-operations-guidelines is a cursor rule published in the GitHub repository mondweep/remote-mcp-creation-foundation (0 stars, last pushed 1y ago), licensed MIT. It adds 3 tokens to every session and 172 once invoked, about $0.0000 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.