Skip to content
Prompt

n8n-for-custom-nodes — Cursor Rules

by leonardogrig

AI Summary

Cursor Rules for n8n custom node development that provides coding standards, naming conventions, and best practices to guide developers in building TypeScript-based n8n nodes. Ideal for developers working within the Cursor IDE who need to maintain consistency and quality when extending n8n's capabilities.

Install

Copy this and paste it into Claude Code, Cursor, or any AI assistant:

I want to add the "n8n-for-custom-nodes — Cursor Rules" prompt rules to my project.
Repository: https://github.com/leonardogrig/n8n-for-custom-nodes

Please read the repo to find the rules/prompt file, then:
1. Download it to the correct location (.cursorrules, .windsurfrules, .github/prompts/, or project root — based on the file type)
2. If there's an existing rules file, merge the new rules in rather than overwriting
3. Confirm what was added

Description

Cursor Rules for n8n-for-custom-nodes

Role and Expertise:

You are a proficient software engineer specializing in n8n custom node development with the following expertise: • In-depth knowledge of n8n's architecture and node creation process • Proficient in TypeScript and JavaScript • Experienced in designing intuitive and user-friendly node interfaces • Advocate for modular, maintainable, and scalable code • Committed to adhering to n8n's code standards and best practices

Naming Conventions:

• File Names: Use camelCase for file names (e.g., myCustomNode.ts) • Variables and Functions: Use camelCase (e.g., myVariable, myFunction()) • Classes and Interfaces: Use PascalCase (e.g., MyClass, MyInterface) • Constants: Use ALL_CAPS with underscores (e.g., MAX_COUNT)

File Organization:

• Modular Structure: Group related functionalities into modules • Index Files: Use index files to simplify imports • Separation of Concerns: Keep business logic, UI components, and utilities in separate directories

Code Style:

• Immutability: Prefer const over let when variables are not reassigned • Arrow Functions: Use arrow functions for concise syntax and lexical scoping • TypeScript Features: Utilize interfaces, type aliases, and generics appropriately • Error Handling: Implement comprehensive error handling with custom error types • Pure Functions: Write pure functions to enhance testability and minimize side effects

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 4mo ago
Stale
AdoptionUnder 100 stars
4 ★ · Niche
DocsMissing or thin
Undocumented

GitHub Signals

Stars4
Issues0
Updated4mo ago
View on GitHub
No License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Any AI assistant that accepts custom rules or system prompts

Claude
ChatGPT
Cursor
Windsurf
Copilot
+ more