es-module-nodejs-guidelines-cursorrules-prompt-fil — Cursor rule
Cursor rule for Node.js development with ES module syntax. It enforces short responses, prioritizes task steps, and controls verbosity via Vx flags.
.cursor/rules/es-module-nodejs-guidelines-cursorrules-prompt-fil.mdcWhat es-module-nodejs-guidelines-cursorrules-prompt-fil does
This instruction sets Cursor to write code using Node.js ES modules and recent ECMAScript features. The model splits work into prioritized steps and avoids repeating itself. If the assistant cannot complete an implementation, it inserts TODO: comments instead of failing silently.
A built-in verbosity scale ranges from V0 to V3. The default V0 produces code golf responses with minimal text, while V3 delivers verbose implementations with extracted functions following DRY.
Every file must begin with its path as a single-line comment. Explanations are reserved for unusual libraries or obscure logic, focusing on intent rather than mechanical mechanics.
What it helps with
- switch Cursor code output to Node.js ES module syntax
- cut filler text and apologies from assistant replies
- regulate code output length using V0 to V3 verbosity flags
- enforce file path comments at the top of generated files
Example prompts for the agent
- Build a file parser using Node.js ES modules V1
- Refactor this CommonJS helper to modern ESM syntax V0
- Implement a request handler with modular functions V3
How to install es-module-nodejs-guidelines-cursorrules-prompt-fil
Manually: put the files in place
.cursor/rules/es-module-nodejs-guidelines-cursorrules-prompt-fil.mdcFrontmatter: description, globs, alwaysApply
Manually: put the files in place
.claude/rules/es-module-nodejs-guidelines-cursorrules-prompt-fil.mdThe paths frontmatter field limits the files: move globs from the source into paths
AGENTS.md
Codex reads AGENTS.md: paste the rule text there
Manually: put the files in place
.github/instructions/es-module-nodejs-guidelines-cursorrules-prompt-fil.instructions.mdThe applyTo field sets which files it applies to: move globs from the source into applyTo
Manually: put the files in place
.devin/rules/es-module-nodejs-guidelines-cursorrules-prompt-fil.mdManually: put the files in place
.clinerules/es-module-nodejs-guidelines-cursorrules-prompt-fil.mdStep by step, with commands for each platform: Cursor rules: .mdc files, four modes and what replaced .cursorrules
Questions about es-module-nodejs-guidelines-cursorrules-prompt-fil
How do I install es-module-nodejs-guidelines-cursorrules-prompt-fil in Cursor?
Save the rule file to .cursor/rules/es-module-nodejs-guidelines-cursorrules-prompt-fil.mdc in your project root.
What does this rule change in Cursor?
It directs the model to use ES imports and modern Node.js APIs, keep answers minimal, and fix errors directly without apologizing.
What do the Vx parameters mean in prompts?
They control output depth: V0 defaults to code golf, V1 stays concise, V2 keeps it simple, and V3 outputs verbose code with extracted functions.
Source text
es-module-nodejs-guidelines-cursorrules-prompt-fil.mdc · CC0-1.0
--- description: "Cursor rules for ES Module development with Node.js guidelines." globs: **/* alwaysApply: false --- ## 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
© PatrickJS · CC0-1.0 · PatrickJS/awesome-cursorrules