Skip to main content
rule

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.

Install into Cursor · Manually: put the files in place All methods and platforms ↓
.cursor/rules/es-module-nodejs-guidelines-cursorrules-prompt-fil.mdc
Open on GitHub

What 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.mdc

Frontmatter: description, globs, alwaysApply

Step 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

Similar IDE rules

All IDE rules for Backend and APIs →

From the same set210

fortran A Cursor rule for modern Fortran practices covering modules, types, arrays, builds, and tests. Use it when working on scientific Fortran code. ★ 41,024repo stars flutter-development-guidelines-cursorrules-prompt-file Locks down folder layout, naming and Dart style for Flutter apps built on MVVM with Riverpod. Useful when the agent scatters files across the project. ★ 41,024repo stars flutter-app-expert-cursorrules-prompt-file Configures Cursor for Flutter 3.x development with Clean Architecture, BLoC, and Material 3 design. Guides code structure and testing practices. ★ 41,024repo stars fastapi A Cursor rule for FastAPI work in Python. It guides project structure, API design, models, security, database code, testing, and deployment. ★ 41,024repo stars engineering-ticket-template-cursorrules-prompt-file This Cursor rule turns development requests into structured engineering tickets with implementation details, acceptance criteria, and testing notes. ★ 41,024repo stars embedded-stm32-hal A Cursor rule that keeps the agent inside embedded C/C++ conventions: STM32 HAL, interrupts, DMA and tight memory budgets. ★ 41,024repo stars elixir-phoenix-docker-setup-cursorrules-prompt-fil Configures Cursor for Elixir and Phoenix development inside Docker. Enforces senior engineering practices, Conventional Commits, and quick replies via the VV prefix. ★ 41,024repo stars elixir-engineer-guidelines-cursorrules-prompt-file A Cursor rule that frames work as senior Elixir engineering and sets a change-message format. Useful for Phoenix projects using the listed stack. ★ 41,024repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor