Rule
0 installs · 0 said it worked
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 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.mdcThen open a new session; Cursor picks it up from .cursor/rules/.
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.
Related rules
- Nginx config security review with fixes and checker script
Agent skill that reviews nginx configs for TLS, header, alias traversal, admin exposure and rate-limit problems, runs a stdlib checker, and returns a minimal route-preserving fixed config with reload and curl test steps.
Coding · @f
- Cursor rules enforcing clean, readable, maintainable code practices
A Cursor .mdc rule file that guides the assistant toward clean code: named constants, meaningful names, sparing comments, single-purpose functions, DRY, language style standards, extracted conditionals, continuous refactoring, and version control.
Coding · @patrickjs
- Find knowledge concentration risk in a Git repo's history
Analyzes Git history to show per-module bus factor, single-knower hot spots, and duplicate identities, then produces a knowledge-handover plan for the team.
Coding · @f
- Webhook Signature Verifier and Replay Guard for debugging HMAC mismatches
Agent skill that debugs webhook signature failures for Stripe, GitHub, Shopify, Slack or custom schemes, explains mismatches from raw bodies, flags replays, duplicates, weak secrets and plain HTTP endpoints.
Coding · @f
- Claude api: reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming,…
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER — read BEFORE opening the target file; don't skip because it "looks like a one-liner" — whenever: the prompt names Claude/Anthropic in any fo
Coding · @anthropic
License: CC0v1 · published Nov 29, 2026
Comments
No comments yet. If you tried this prompt, say how it went.