返回 Skill 列表
extension
分类: 开发与工程无需 API Key

Nodes Programmatic Patterns

使用编程风格构建n8n节点,完全控制执行、数据处理和API调用。在实现execute()方法、为API请求创建辅助函数、使用基于游标的逻辑处理分页、为动态下拉列表实现loadOptions、处理二进制数据、构建webhook或轮询触发器或处理复杂的数据转换时,请使用此技能。适用于构建触发节点、GraphQL集成、非HTTP协议或任何需要自定义执行逻辑的场景。

person作者: jakexiaohubgithub

When to use this skill:

  • When implementing execute() methods with getInputData/getNodeParameter
  • When writing helper functions for API requests (apiRequest, apiRequestAllItems)
  • When implementing cursor-based or custom pagination logic
  • When building loadOptions methods for dynamic dropdown options
  • When handling binary data downloads and uploads
  • When building webhook triggers with signature validation
  • When implementing polling triggers with getWorkflowStaticData
  • When processing items in loops with try-catch and continueOnFail
  • When creating new objects from input data (never modify input directly)
  • When working with this.helpers.httpRequest for API calls
  • When handling multiple sequential API calls
  • When building GraphQL integrations or non-HTTP protocols
  • When needing custom authentication flows beyond declarative routing

Nodes Programmatic 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 programmatic patterns.

Instructions

For details, refer to the information provided in this file: nodes programmatic patterns