Token导航 LogoToken导航

Agent Skill · 研究检索

node-red(节点红)

用于辅助提示词、系统指令、Agent 行为约束和工作流模板的整理。它适合让 Agent 规范任务边界、统一输出格式、拆分操作步骤或优化提示词可复用性。使用时需要保留真实业务约束,不要把示例当硬规则;涉及自动执行、外部工具或高风险操作时,应在提示词中明确确认步骤、权限边界和失败处理方式。

node-red 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 40,765。

总安装 1,248周安装 51GitHub Stars 18下载 184核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:node-red(节点红)
来源仓库:https://github.com/jwiegley/claude-prompts
仓库路径:skills/node-red
安装命令:
npx skills add https://github.com/jwiegley/claude-prompts --skill node-red
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/jwiegley/claude-prompts --skill node-red

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

node-red 用于辅助提示词、系统指令和工作流模板的整理。适合让 Agent 规范任务边界、统一输出格式或拆分操作步骤,需保留真实业务约束。通过 npx skills add 命令从指定仓库安装,需结合原始 README 核验具体用法。涉及自动执行或高风险操作时,应在提示词中明确确认步骤和权限边界。

node-red 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/node-red

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/jwiegley/claude-prompts --skill node-red;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

node-red 怎么安装?

在终端执行 npx skills add https://github.com/jwiegley/claude-prompts --skill node-red。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

node-red 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

node-red 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

node-red 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

node-red 用的人多吗?

公开数据是累计安装 1,248 次,近一周安装 51 次,下载 184 次,GitHub 18 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

node-red 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
node-red

节点红 · 本页

1,24818接触敏感数据未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Node-RED Flow Development

This skill provides comprehensive support for Node-RED development, including flow creation, modification, validation, and deployment through the Admin API.

When to Use This Skill

Use this skill when:

  • Creating or modifying Node-RED flows (flows.json files)
  • Building MQTT, HTTP API, or data pipeline integrations
  • Debugging or validating flow configurations
  • Working with function nodes and context storage
  • Deploying flows via the Node-RED Admin API
  • Converting requirements into Node-RED flow implementations

Available Resources

Scripts (scripts/)

Execute these Python scripts for common Node-RED operations:

  • generate_uuid.py - Generate valid Node-RED node IDs python scripts/generate_uuid.py [count]
  • validate_flow.py - Validate flow JSON structure and wire connections python scripts/validate_flow.py <flow.json>
  • wire_nodes.py - Connect nodes programmatically python scripts/wire_nodes.py <flow.json> <source_id> <target_id> [output_port]
  • create_flow_template.py - Generate boilerplate flows python scripts/create_flow_template.py <mqtt|http-api|data-pipeline|error-handler> [output.json]

References (references/)

Consult these detailed references as needed:

  • node_schemas.md - Complete schemas for all Node-RED node types
  • api_reference.md - Node-RED Admin API documentation with examples
  • function_snippets.md - Reusable function node code patterns

Assets (assets/)

Use these templates and boilerplate files:

  • templates/mqtt_flow.json - Complete MQTT pub/sub flow with error handling
  • templates/http_api_flow.json - REST API with CRUD operations and authentication
  • boilerplate/function_async.js - Async function node patterns
  • boilerplate/function_context.js - Context storage examples

Core Workflow

Creating a New Flow

  1. Determine the flow type needed (MQTT, HTTP API, data processing, etc.)
  2. Generate a template using scripts/create_flow_template.py
  3. Modify the template to match requirements
  4. Validate the flow using scripts/validate_flow.py
  5. Deploy via Admin API or save as flows.json

Modifying Existing Flows

  1. Read and parse the flows.json file
  2. Identify nodes by type and ID
  3. Make modifications while preserving:

- Wire connections (arrays of node IDs) - Tab references (z property) - Node coordinates (x, y)

  1. Validate changes before saving
  2. Use scripts/wire_nodes.py to connect nodes if needed

Working with Function Nodes

For function nodes, reference:

  • assets/boilerplate/function_async.js for async operations
  • assets/boilerplate/function_context.js for context storage
  • references/function_snippets.md for specific patterns

Available objects in function nodes:

  • msg - Message object
  • node - Node API (send, done, error, warn, log, status)
  • context - Node-scoped storage
  • flow - Flow-scoped storage
  • global - Global storage
  • RED - Runtime API
  • env - Environment variables

Deploying Flows

To deploy flows via the Admin API:

  1. Retrieve current configuration: GET /flows
  2. Modify the configuration as needed
  3. Deploy with appropriate deployment type: POST /flows Headers: Node-RED-Deployment-Type: full|nodes|flows|reload
  4. Verify deployment success

Common Patterns

Message Flow Structure

Every Node-RED message follows this pattern:

  • Primary data in msg.payload
  • Topic/category in msg.topic
  • Unique ID in msg._msgid
  • Additional properties as needed

Error Handling

Implement error handling using:

  1. Try-catch blocks in function nodes
  2. Catch nodes to intercept errors
  3. Status nodes to monitor node states
  4. Dedicated error output wires

Environment Variables

Use environment variables for configuration:

  • In node properties: $(ENV_VAR_NAME)
  • In function nodes: env.get("ENV_VAR_NAME")
  • Via Docker: -e KEY=value

Context Storage Levels

Choose appropriate context level:

  • Node context: Local to single node
  • Flow context: Shared within flow/tab
  • Global context: System-wide sharing
  • Persistent: Survives restarts (configure in settings.js)

Validation Checklist

Before deploying flows, verify:

  • JSON syntax is valid
  • All wire connections reference existing node IDs
  • Tab references (z property) are correct
  • Function node JavaScript is syntactically valid
  • Required configuration nodes exist (MQTT brokers, etc.)
  • Environment variables are properly referenced
  • Error handling is implemented

Quick Commands

Generate five Node-RED UUIDs:

python scripts/generate_uuid.py 5

Create an MQTT flow template:

python scripts/create_flow_template.py mqtt my-mqtt-flow.json

Validate a flow file:

python scripts/validate_flow.py flows.json

Wire two nodes together:

python scripts/wire_nodes.py flows.json inject-node-id debug-node-id

Node-RED Configuration

Default File Locations

  • Flows: ~/.node-red/flows_<hostname>.json
  • Settings: ~/.node-red/settings.js
  • Custom nodes: ~/.node-red/node_modules/

Running Node-RED

  • Normal mode: node-red
  • Safe mode (no flow execution): node-red --safe
  • Custom flow file: node-red myflows.json

Best Practices

  1. Use appropriate node types: Prefer change nodes over function nodes for simple transformations
  2. Implement error handling: Always include catch nodes for critical paths
  3. Document flows: Use comment nodes and node descriptions
  4. Organize with tabs: Separate flows by logical function or system
  5. Version control: Store flows.json in git with meaningful commit messages
  6. Test incrementally: Deploy and test small changes frequently
  7. Monitor performance: Use status nodes and debug output wisely

Troubleshooting

For common issues:

  • Invalid JSON: Use scripts/validate_flow.py to find syntax errors
  • Broken wires: Check that all wired node IDs exist
  • Missing configurations: Ensure broker/server configs are included
  • Function errors: Test JavaScript in isolation first
  • API deployment fails: Verify authentication and check revision conflicts

Additional Resources

For detailed specifications and examples:

  • Consult references/node_schemas.md for node property details
  • Review references/api_reference.md for API operations
  • Use references/function_snippets.md for tested code patterns
  • Copy templates from assets/templates/ as starting points

平台分布

Codex

37.02%
按下载量换算68

Claude

31.34%
按下载量换算58

Cursor

16.9%
按下载量换算31

Gemini CLI

8.4%
按下载量换算15

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills