nodes-declarative-patterns
Build n8n nodes using declarative style with JSON-based routing configuration for REST API integrations. Use this skill when implementing standard CRUD operations, configuring requestDefaults, defining routing in operation options, setting up declarative pagination, adding query parameters via routing.send, or processing responses with postReceive. Apply when building REST API nodes with simple request/response patterns and automatic pagination handling.
When & Why to Use This Skill
This Claude skill streamlines the development of n8n nodes by implementing declarative patterns for REST API integrations. It simplifies the creation of robust web automation components by utilizing JSON-based routing, which reduces manual coding for standard CRUD operations, handles complex pagination automatically, and ensures adherence to n8n's best practices for maintainable and scalable integrations.
Use Cases
- Building standardized REST API nodes for n8n using declarative JSON configurations instead of complex programmatic logic.
- Implementing automated offset-based pagination and request defaults (headers, base URLs) for consistent API communication.
- Configuring dynamic UI fields in n8n nodes using displayOptions to show or hide parameters based on selected resources.
- Processing and transforming nested API response data efficiently using post-receive hooks and root property extraction.
| name | Nodes Declarative Patterns |
|---|---|
| description | Build n8n nodes using declarative style with JSON-based routing configuration for REST API integrations. Use this skill when implementing standard CRUD operations, configuring requestDefaults, defining routing in operation options, setting up declarative pagination, adding query parameters via routing.send, or processing responses with postReceive. Apply when building REST API nodes with simple request/response patterns and automatic pagination handling. |
When to use this skill:
- When building REST API integrations with standard CRUD operations
- When configuring requestDefaults (baseURL, headers)
- When defining routing configuration in operation options
- When using routing.request for HTTP method and URL
- When implementing routing.send for body or query parameters
- When setting up declarative pagination (offset-based)
- When using displayOptions to show/hide fields based on resource/operation
- When processing responses with output.postReceive
- When extracting data from nested response properties (rootProperty)
- When adding filters as collection type properties with routing
- When deciding whether to use declarative vs programmatic style
- When working with *.node.ts files that use routing patterns
Nodes Declarative Patterns
This Skill provides Claude Code with specific guidance on how to adhere to coding standards as they relate to how it should handle nodes declarative patterns.
Instructions
For details, refer to the information provided in this file: nodes declarative patterns