Predefined Cursor rules to help you get the most out of AI-assisted development. These rules were heavily inspired by @aashari's Cursor AI Prompting Rules. They were created as part of my vibe coding boilerplate project, vibeship-boilerplate, but they work just as well for general AI-assisted development.
-
.cursor/rules/always-on.mdc
Persistent base rules applied to all AI actions. Defines project structure, style, and behavior. -
.cursor/rules/request.mdc
Use when asking AI to build new features, refactor code, or make specific improvements. -
.cursor/rules/diagnose.mdc
Use when asking AI to re-examine or resolve issues that weren’t fully fixed previously.
- Open a Cursor project.
- Add rules to
.cursor/rules/
- Pick the Right Rule for Your Intent When Prompting:
- General AI Help: No action needed —
always-on.mdc
applies automatically. - Building a new feature or Refactoring: Add
@request
to your prompt to guide AI behavior. - Dealing with a stubborn bug or Diagnosis: Add
@diagnose
to your prompt to have AI re-analyze and resolve issues.
- General AI Help: No action needed —
- Continue interacting with Cursor as usual.
The applied rule context helps Cursor generate more relevant and consistent results based on your project’s standards.
By using these pre-written rules, you ensure that:
- AI follows your project structure and coding conventions.
- AI applies consistent problem-solving methods.
- You get higher quality, more reliable AI-powered suggestions.
These rules make AI feel more like a pair programming partner who actually understands your project.