Suggesting Cursor Rules: When Correcting the Same Convention Repeatedly, Write It as a Cursor Rule

Preface

When using Cursor’s Agent to modify code, a common scenario is: you repeatedly emphasize “use relative path imports,” “don’t add comments to obvious code,” or “keep test files next to source files”—yet in the next conversation turn, it still writes code according to its default habits. Correcting it in chat each time means the agreement only remains in that conversation’s context; you have to start over with a new thread or project.

Cursor itself supports writing project conventions into the repository via .cursor/rules/, allowing the Agent to consistently comply. However, many people don’t proactively create Rules or don’t know when to create them. suggesting-cursor-rules is an Agent Skill: when the Agent notices you repeatedly correcting the same type of issue, it will proactively suggest formalizing the agreement into a Rule file, rather than letting you remain a “human linter.”

Below, we introduce this Skill’s positioning, trigger conditions, Rule writing guidelines, and how to enable it locally.

What is this

suggesting-cursor-rules comes from the Cursor-Native category in the awesome-cursor-skills repository. The official description is: when a user repeats the same correction or convention multiple times, it suggests creating a Cursor Rule to permanently encode the convention into the project.

The Skill metadata includes user-invocable: false, meaning this is not a Skill that users manually trigger from the command palette. Instead, it is a behavioral guideline that the Agent follows automatically during conversations once installed in .cursor/skills/.

It works in conjunction with Cursor’s Skills mechanism: Skills are reusable SKILL.md instruction files that teach the Agent how to complete specific tasks; this Skill teaches “when and how to suggest writing Rules”—forming a Meta workflow that coordinates Rules and Skills (the same repository also includes similar Skills like suggesting-cursor-hooks and building-skills-from-patterns).

Core functionality

The Skill requires the Agent to observe repetitive patterns in conversations, naturally propose creating Rules when conditions are met, and after user approval, generate rule files under .cursor/rules/.

Trigger conditions

Officially listed scenarios include:

  • The user corrects the same pattern at least twice (e.g., insisting on named export, forbidding default export)
  • The user shows impatience with code style or team conventions
  • The user uses expressions like “I always have to…”, “Never do…”, or “You always…”
  • The Agent repeatedly makes the same type of mistake in this project

Note: The Skill explicitly requires not pushing for a Rule on the first correction to avoid being intrusive; only suggest when a real, identifiable repetitive pattern emerges.

Suggestion approach

Upon detecting a trigger, use a brief, optional tone to propose, for example:

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

After user approval, create a file in the project:

.cursor/rules/<name>.mdc

Example file structure:

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

- <the convention, stated clearly>

Constraints when generating Rules

  • Check .cursor/rules/ first to see if similar rules already exist, avoiding duplication
  • Keep each file focused on a single topic, short and concise
  • Present suggestions in a helpful tone rather than a preachy manner

Installation and activation

According to awesome-cursor-skills, Skills are directly copyable SKILL.md files that will be automatically discovered by the Agent when placed in one of these locations:

  • .cursor/skills/ in the project directory
  • .cursor/skills/ for personal scope (described as personal or project directories in the documentation)

The source file path for this Skill in the repository is:

resources/suggesting-cursor-rules/SKILL.md

A typical approach is: obtain SKILL.md from the official directory, then copy it to your local or repository’s .cursor/skills/suggesting-cursor-rules/ (or a subdirectory name you prefer, subject to Cursor’s Skill directory discovery rules). The fetched materials don’t provide a separate npm installation command or one-click plugin marketplace installation steps; copying SKILL.md to .cursor/skills/ is the standard method.

Once enabled, you don’t need to remind “remember to suggest Rules” in every conversation—the Skill content guides the Agent on when to observe and when to propose.

Typical usage (official examples)

The following three examples from the Skill’s included Examples show “what users repeatedly request → how to write corresponding Rules”.

User repeatedly requests relative path 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 repeatedly objects to 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 is dissatisfied with test file placement:

---
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

In real projects, globs and bullets should be adjusted to your team’s actual conventions; the Skill only defines the process and format, not the specific conventions themselves.

Use cases and considerations

Who it’s for

  • Those who use Cursor Agent in the same repository long-term and have stable code style or architectural conventions
  • Those who already use or plan to use .cursor/rules/, wanting conventions to transition from “chat memory” to “repository configuration”
  • Those willing to upgrade conversations to version-controllable Rules after repeated corrections (2+ times)

Limitations and notes

  • The Skill doesn’t automatically create Rules; user approval is required before writing files
  • user-invocable: false means this isn’t a “user command triggered” tool; effectiveness depends on whether the Agent loads and follows this Skill
  • Rules only govern Agent behavior when matching globs; lint, CI, hooks, etc. still need separate configuration (the same series’ suggesting-cursor-hooks targets scenarios of repeated check runs)
  • The materials don’t describe version-specific differences in .mdc Rule frontmatter across Cursor versions; refer to your current Cursor documentation and editor behavior

Conclusion

suggesting-cursor-rules solves not the syntax problem of “how to write a Rule,” but rather “when to write verbal conventions into .cursor/rules/“—converging repeated corrections into project-level, commit-worthy conventions. If you’re already using Cursor Skills, adding this alongside other Cursor-Native Skills in .cursor/skills/ is a low-cost step.

Official Skill source and full documentation:

https://github.com/spencerpauly/awesome-cursor-skills/tree/main/resources/suggesting-cursor-rules

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye