agentleFS
bookedsolidtechbookedsolidtech/discord-ops/.cursor/rules/002-verify-before-act.mdc

discord-ops / rules

Cursor rule4 starsChanged 8 months agoMITView on GitHub

Requires Claude to read before writing, verify before installing, and confirm before destructive operations

  • Installs packages
  • Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.

    Of the Cursor rule files we read, the 1,531 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository3 other files it gives its agents.

The file

We split this 002-verify-before-act.mdc into the rules it gives an agent

9 rules. About 0 are common, 7 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read before writing: Before editing a file, read the current version.

    line 13
  2. Very specific:

    Verify package existence before installing: Before running npm install <pkg>, composer require <pkg>, or any equivalent, confirm the …

    line 15
  3. Distinctive:

    Confirm before destructive operations: Before git reset, git clean, file deletion, or database drops — state what you're about to do and …

    line 17
  4. Distinctive:

    Check current state before declaring it: Before saying "the build passes" or "there are no TypeScript errors", run the check.

    line 19
  5. Distinctive:

    Verify tool availability before use: Before running a CLI tool (docker, act, composer, drush, etc.), check that it's installed.

    line 21
  6. Distinctive:

    Before any write or edit operation

    line 25
  7. Very specific:

    Before any install, add, require, or update command

    line 26
  8. Distinctive:

    Before any destructive git operation

    line 27
  9. Distinctive:

    Before any claim about current system state

    line 28

≈ “Common” is an estimate: at least 1 in 5 of the 3,030 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
002-verify-before-act.mdc
---
description: Requires Claude to read before writing, verify before installing, and confirm before destructive operations
globs: ["**/*"]
alwaysApply: true
---

# Verify Before Acting

**Read before writing. Verify before installing. Confirm before deleting.**

## Rules

1. **Read before writing.** Before editing a file, read the current version. Never overwrite without knowing what's there. Never assume file contents from memory.

2. **Verify package existence before installing.** Before running `npm install <pkg>`, `composer require <pkg>`, or any equivalent, confirm the package exists and its name is spelled correctly. Use the package registry, not your training data.

3. **Confirm before destructive operations.** Before `git reset`, `git clean`, file deletion, or database drops — state what you're about to do and why. Wait for acknowledgement if there's any doubt.

4. **Check current state before declaring it.** Before saying "the build passes" or "there are no TypeScript errors", run the check. Do not rely on previous results from earlier in the session.

5. **Verify tool availability before use.** Before running a CLI tool (docker, act, composer, drush, etc.), check that it's installed. Don't assume availability.

## When to apply

- Before any write or edit operation
- Before any `install`, `add`, `require`, or `update` command
- Before any destructive git operation
- Before any claim about current system state

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.