Skip to main content
skill CX Codex

suggesting-cursor-rules — Claude Code skill: setup and guide

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.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add spencerpauly/awesome-cursor-skills --skill suggesting-cursor-rules -a claude-code
Open on GitHub

What suggesting-cursor-rules 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.

What it helps with

  • 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 for the agent

  • 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

How to install suggesting-cursor-rules

1Skills CLI (Vercel)

npx skills add spencerpauly/awesome-cursor-skills --skill suggesting-cursor-rules -a claude-code

2Manually: put the files in place

~/.claude/skills/suggesting-cursor-rules/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/suggesting-cursor-rules/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about suggesting-cursor-rules

How to install suggesting-cursor-rules in Claude Code?

Run npx skills add spencerpauly/awesome-cursor-skills --skill suggesting-cursor-rules -a claude-code.

What does suggesting-cursor-rules do?

It tracks repeated conventions during coding sessions and proposes creating .cursor/rules/<name>.mdc files to enforce them permanently.

When does the skill trigger?

It activates when you correct the same pattern two or more times, express frustration, or instruct the agent to always or never follow a style.

Source text

SKILL.md · CC0-1.0
---
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

© spencerpauly · CC0-1.0 · spencerpauly/awesome-cursor-skills

Similar skills

All skills for Agent setup: memory, context, orchestration →

From the same set59

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor