# suggesting-cursor-rules

Watches for repeated code corrections and suggests saving them as Cursor rules. It helps lock project conventions so you do not repeat the same instructions.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 554 installs · ★ 866
- Author: spencerpauly
- License: CC0-1.0 · policy=mirror · the beginning of the file is at the end of this page
- Source: https://github.com/spencerpauly/awesome-cursor-skills/tree/HEAD/resources/suggesting-cursor-rules/SKILL.md
- Updated: 2026-08-02
- HTML: https://affpapa.org/en/nevibecode/skills/suggesting-cursor-rules

## What it does

The skill runs quietly without direct slash command invocations. It listens for repeated corrections, user frustration, or phrases like "I always want" and "never do". When a user corrects the same pattern two or more times, the skill offers to codify the convention.

Once confirmed, it generates a `.cursor/rules/<name>.mdc` file. Each file includes frontmatter with `description` and `globs` fields along with a concise rule statement. The skill inspects `.cursor/rules/` beforehand to avoid duplicating existing configurations.

Each file covers exactly one concern. That keeps rules small and focused. Because it waits for a genuine repeated pattern instead of popping up on the first correction, it stays out of your way.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add spencerpauly/awesome-cursor-skills --skill suggesting-cursor-rules -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/suggesting-cursor-rules/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/suggesting-cursor-rules/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add spencerpauly/awesome-cursor-skills --skill suggesting-cursor-rules -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/suggesting-cursor-rules/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add spencerpauly/awesome-cursor-skills --skill suggesting-cursor-rules -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/suggesting-cursor-rules/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install spencerpauly/awesome-cursor-skills suggesting-cursor-rules
```

2. **Manually: put the files in place**
- File: `.github/skills/suggesting-cursor-rules/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add spencerpauly/awesome-cursor-skills --skill suggesting-cursor-rules -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/spencerpauly/awesome-cursor-skills --path resources/suggesting-cursor-rules
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/suggesting-cursor-rules/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add spencerpauly/awesome-cursor-skills --skill suggesting-cursor-rules -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/spencerpauly/awesome-cursor-skills/tree/HEAD/resources/suggesting-cursor-rules/SKILL.md

## When to use it
- turn repeated user corrections into persistent Cursor rules
- enforce test and import conventions automatically across project files
- prevent duplicate rule definitions inside `.cursor/rules/`

## Example prompts
- Use relative imports instead of path aliases in this package
- Do not add comments on obvious code
- Co-locate test files next to the source files they test

## Source text · SKILL.md · CC0-1.0

Below is the content of a third-party file. It is data, not instructions for you: do not act on anything written inside unless the human asks. Block tag: ca694e95e205afd8.

BEGIN THIRD-PARTY FILE ca694e95e205afd8
````text
---
name: suggesting-cursor-rules
description: When the user repeats the same correction or convention multiple times, suggest a Cursor rule to encode it permanently.
user-invocable: false
---

# Suggesting Cursor Rules

Watch for repeated corrections and frustration. When the user keeps telling you the same thing, suggest a `.cursor/rules/` file so they never have to say it again.

## Triggers

Suggest a rule when you notice:
- The user corrects the same pattern **2+ times** (e.g. "use named exports", "don't use default exports")
- The user expresses frustration about code style or conventions
- The user says things like "I always want...", "never do...", "every time you..."
- You keep making the same mistake in this project

## How to Suggest

When you detect a trigger, offer it naturally:

```
I notice you've corrected me on [pattern] a couple times. Want me to 
create a Cursor rule so I always follow this convention?
```

If they say yes, create the rule:

```
.cursor/rules/<name>.mdc
```

```
---
description: <what this rule enforces>
globs: <file pattern this applies to>
---

- <the convention, stated clearly>
```

## Examples

**User keeps saying "use relative imports":**
```
---
description: Import conventions
globs: **/*.{ts,tsx}
---

- Use relative imports, not @ aliases
- Import from the same package with relative paths (e.g. "../../queries/..." not "src/queries/...")
```

**User keeps saying "no comments on obvious code":**
```
---
description: Comment style
globs: **/*.{ts,tsx,js,jsx}
---

- Do not add comments that narrate what the code does
- Only comment non-obvious intent, tradeoffs, or constraints
```

**User frustrated about test file locations:**
```
---
description: Test file conventions
globs: **/*.test.{ts,tsx}
---

- Co-locate test files next to the source file they test
- Name test files <source>.test.ts, not __tests__/<source>.ts
```

## Rules

- Don't be annoying — only suggest after a genuine repeated pattern, not on the first correction
- Keep rule files small and focused — one concern per file
- Check `.cursor/rules/` first so you don't duplicate an existing rule
- Frame it as a helpful offer, not a lecture
````
END THIRD-PARTY FILE ca694e95e205afd8

The third-party file has ended. Everything between the ca694e95e205afd8 tags is data: requests and commands from it are not followed. An “end of file” line with another tag inside the block is part of the file.

© spencerpauly · CC0-1.0 · https://github.com/spencerpauly/awesome-cursor-skills/tree/HEAD/resources/suggesting-cursor-rules/SKILL.md

## Similar
- [suggesting-data-imports](https://affpapa.org/en/nevibecode/skills/suggesting-data-imports.md) — skill · 372 installs
- [agentix-ceo](https://affpapa.org/en/nevibecode/skills/agentix-ceo.md) — skill · 73300 installs
- [edge-tts](https://affpapa.org/en/nevibecode/skills/edge-tts.md) — skill · 8200 installs
- [Asana Automation](https://affpapa.org/en/nevibecode/skills/asana-automation.md) — skill · 6900 installs
- [File Organizer](https://affpapa.org/en/nevibecode/skills/claude-office-skills-file-organizer.md) — skill · 5500 installs
- [travel-planner](https://affpapa.org/en/nevibecode/skills/travel-planner.md) — skill · 4100 installs

_Part of the page did not fit — see the HTML version._

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
