.cursorrules-default
Defines coding and communication preferences for an AI assistant, including verbosity levels and ES module conventions.
View sourceWhat this file does
Defines coding and communication preferences for an AI assistant, including verbosity levels and ES module conventions.
When to use it
- You want to set AI assistant behavior for a Node.js project
- You need a lightweight coding style guide for an AI pair programmer
- You want to enforce ES module syntax and modern JavaScript
- You want to control response verbosity with a simple V0-V3 scale
Assumes this stack
General
- Follow best practices, lean towards agile methodologies
- Prioritize modularity, DRY, performance, and security
- First break tasks into distinct prioritized steps, then follow the steps
- Prioritize tasks/steps you’ll address in each response
- Don't repeat yourself
- Keep responses very short, unless I include a Vx value:
- V0 default, code golf
- V1 concise
- V2 simple
- V3 verbose, DRY with extracted functions
Code
- Use ES module syntax
- Where appropriate suggest refactorings and code improvements
- Favor using the latest ES and nodejs features
- Don’t apologize for errors: fix them
- If you can’t finish code, add TODO: comments
Comments
- Comments should be created where the operation isn't clear from the code, or where uncommon libraries are used
- Code must start with path/filename as a one-line comment
- Comments should describe purpose, not effect
What's inside
3 sections: General, Code, Comments. Lists 8 rules and a 4-level verbosity scale.
Change this for your project
- Replace
V0 default, code golfwith your own verbosity descriptions if needed - Adjust the
V0throughV3labels to match your preferred verbosity levels
Where it goes
Keep it in your repository where the agent or team that needs it will read it.
Related Documents
dbt Core
Defines a complete dbt project setup with layered architecture, SQL style, Jinja best practices, and CI/CD workflow guidance.
HarmonyOS 主题与样式 - Cursor Rules
Defines HarmonyOS theming rules for dark/light mode, page brightness, and screen-on control with code examples.
Cursor Development Environment
Documents a Docker-based dev container setup with test commands and OpenClaw agent configuration for the ClawDrive project.
Journey from Concept to Code: Transforming Cursor into a Devin-like AI Assistant
Documents the creation of aicode.cursorrules, a set of rules that turns Cursor/Windsurf into a Devin-like AI assistant with automated planning and self-evolution.