agentleFS
JunnDungJunnDung/cursor-agent-starter-kit/.cursor/rules/09-approval-workflow.mdc

cursor-agent-starter-kit / rules

Cursor rule1 starsChanged 6 months agoMITView on GitHub

Approval gates before executing code changes. Prevents accidental or unintended modifications.

The file

We split this 09-approval-workflow.mdc into the rules it gives an agent

8 rules. About 0 are common, 8 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before executing code changes, present the plan and wait for explicit approval.

    line 10
  2. Distinctive:

    Use when the user asks to:

    line 14
  3. Distinctive:

    run potentially destructive commands

    line 19
  4. Distinctive:

    Read the relevant files and understand the scope.

    line 25
  5. Distinctive:

    Do NOT execute until the user explicitly approves.

    line 55
  6. Distinctive:

    Only after approval. Execute exactly what was planned.

    line 59
  7. Distinctive:

    Run verification commands and report results.

    line 63
  8. Distinctive:

    If the user says "just do it", "do it now", or similar urgent language, proceed immediately.

    line 71

≈ “Common” is an estimate: at least 1 in 5 of the 7,324 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
09-approval-workflow.mdc
---
description: Approval gates before executing code changes. Prevents accidental or unintended modifications.
alwaysApply: false
priority: high
tags: [workflow, approval, safety]
---

# Approval Workflow Rule

Before executing code changes, present the plan and wait for explicit approval.

## When this rule applies

Use when the user asks to:
- implement a feature
- refactor code
- fix a bug
- add dependencies
- run potentially destructive commands

## Steps

### 1. Analyze

Read the relevant files and understand the scope.

### 2. Plan

Present the execution plan before touching any code:

```txt
## Execution Plan

**Files to change:**
- file1: what will change
- file2: what will change

**Files to add:**
- new-file: purpose

**Verification:**
- command to run

**Risks:**
- risk 1
- risk 2

Reply "yes", "approve", or "proceed" to execute.
Reply "no" or "cancel" to stop.
Reply "modify X" to adjust before execution.
```

### 3. Wait

Do NOT execute until the user explicitly approves.

### 4. Execute

Only after approval. Execute exactly what was planned.

### 5. Verify

Run verification commands and report results.

## Trivial tasks

For trivial tasks (small fixes, one-line changes), use judgment — apply directly but summarize the change.

## Emergency exception

If the user says "just do it", "do it now", or similar urgent language, proceed immediately.

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.