Rule

0 installs · 0 said it worked

PatrickJS@patrickjs·
CodingRule· for Cursor

Cursor rules for writing modular ES module Node.js code

Cursor rule set that steers the assistant toward ES module syntax, modular and DRY code, short responses with optional verbosity levels V0-V3, TODO comments for unfinished code, and purpose-focused comments with filename headers.

People use this for

  • cursor rules for node js
  • es module nodejs coding guidelines
  • cursor ai rules modular javascript
  • write modular node code prompt
  • nodejs esm project rules for assistant
Name
cursor-rules-for-writing-modular-es-module-nodejs-code
Works with
Cursor
License
CC0(as observed at the source)
Version
v1 · updated Nov 29, 2026
Imported · UnclaimedCC0

Imported on Nov 29, 2026 from github.com . License observed at the source on Nov 29, 2026: CC0.

Are you the author?Claim this profileRequest removal

Use this rule

$ curl -fsSL "https://promptcommunity.dev/api/v1/posts/cursor-rules-for-writing-modular-es-module-nodejs-code-n22q/export/mdc" -o .cursor/rules/cursor-rules-for-writing-modular-es-module-nodejs-code.mdc

Then open a new session; Cursor picks it up from .cursor/rules/.

Download cursor-rules-for-writing-modular-es-module-nodejs-code.mdc
Manual install

Save cursor-rules-for-writing-modular-es-module-nodejs-code.mdc as .cursor/rules/cursor-rules-for-writing-modular-es-module-nodejs-code.mdc for this project or ~/.cursor/rules/cursor-rules-for-writing-modular-es-module-nodejs-code.mdc for every project, then start a new session.

Rule


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

No result recorded yet. Added it? File a Tried-it report so the next person knows how it went in your editor.

Tried it

Reports from people who added this rule to their editor. They roll up into the badges above.

No one has filed a report yet. Try the prompt and be the first.

License: CC0v1 · published Nov 29, 2026

Comments

No comments yet. If you tried this prompt, say how it went.