Token导航 LogoToken导航TokenDH.com
前端设计需要联网github未标认证来源可访问许可证需确认审计异常

nodel-recipes节点食谱

Agent Skill

nodel-recipes 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

222

周安装

9

GitHub Stars

1

下载量

70
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/scroix/nodel-skills --skill nodel-recipes

简介

nodel-recipes 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态、代码变更或协作事项进行整理。
  • 提供基于仓库内容的自动化任务处理和代码审查支持。
  • 安装命令:npx skills add https://github.com/scroix/nodel-skills --skill nodel-recipes。
  • 使用前需确认权限范围和维护状态,避免触发不必要的联网或文件操作。

SKILL.md

Nodel Recipe Development

Critical: Jython 2.5 Syntax

Node scripts execute under Jython 2.5.4. You MUST use Python 2.5-era syntax:

# CORRECT - Python 2.5 syntax
except Exception, e:
    console.error('Error: %s' % e)

# WRONG - Python 3 syntax (will fail)
except Exception as e:
    console.error(f'Error: {e}')

See references/jython-syntax.md for complete syntax reference.

Recipe File Structure

A node recipe lives in a folder containing:

  • script.py - Main recipe logic (required)
  • content/index.xml - Custom frontend definition (optional)
  • content/css/custom.css - Custom styles (optional)
  • content/js/custom.js - Custom JavaScript (optional)

Core Concepts

Parameters

Configure node behavior via the web interface:

param_ipAddress = Parameter({'title': 'IP Address', 'schema': {'type': 'string'}})
param_port = Parameter({'title': 'Port', 'schema': {'type': 'integer'}, 'default': 9999})

Local Actions

Commands this node exposes (can be triggered by bindings or REST API):

@local_action({'schema': {'type': 'string', 'enum': ['On', 'Off']}})
def power(arg):
    '''{"group": "Power", "order": 1}'''
    tcp.send('POWER %s\r\n' % arg)

Alternative pattern:

  • Naming convention also works: def local_action_PowerOn(arg=None):...

Local Events

State this node emits (can be bound by other nodes):

local_event_Status = LocalEvent({'schema': {'type': 'object'}})

# Emit when state changes
local_event_Status.emit({'power': 'On', 'volume': 50})

Remote Bindings

Connect to other nodes:

# Call actions on other nodes
remote_action_DisplayPower = RemoteAction()
remote_action_DisplayPower.call('On')

# Receive events from other nodes
def remote_event_DisplayStatus(arg):
    console.info('Display status: %s' % arg)

Lifecycle Functions

def main():
    '''Called when node starts. Set up initial state.'''
    console.info('Node starting...')

@after_main
def setup():
    '''Called after main() and parameter loading. Configure connections.'''
    tcp.setDest('%s:%s' % (param_ipAddress, param_port))

@at_cleanup
def cleanup():
    '''Called when node shuts down. Clean up resources.'''
    tcp.close()

Network Protocols

TCP, UDP, and HTTP are available via the toolkit. See references/toolkit-api.md for complete documentation with examples.

Timers

# Repeating timer (poll every 30 seconds)
Timer(poll_status, 30)

# One-time delayed call
call(setup_connection, 5)

# Stoppable timer
status_timer = Timer(check_status, 60, stopped=True)
status_timer.start()
status_timer.stop()

Console Logging

console.log("Light gray - verbose/debug")
console.info("Blue - informational")
console.warn("Orange - warning")
console.error("Red - error")

Common Patterns

Device Control with Polling

def poll_status():
    tcp.send('STATUS?\r\n')

Timer(poll_status, 30)

def tcp_received(data):
    if 'POWER=' in data:
        local_event_Status.emit({'power': data.split('=')[1]})

Status Monitoring

local_event_Status = LocalEvent({'schema': {'type': 'object', 'properties': {
    'level': {'type': 'integer'},
    'message': {'type': 'string'}
}}})

_lastReceive = 0

def statusCheck():
    diff = (system_clock() - _lastReceive) / 1000.0
    if diff > 90:
        local_event_Status.emit({'level': 2, 'message': 'No response'})
    else:
        local_event_Status.emit({'level': 0, 'message': 'OK'})

Timer(statusCheck, 60)

Dynamic Action Creation

def build_presets():
    for preset in PRESET_NAMES:
        create_local_action('Preset %s' % preset,
            lambda arg, p=preset: activate_preset(p),
            {'group': 'Presets', 'schema': {'type': 'null'}})

Error Handling

@local_action({})
def riskyOperation(arg):
    try:
        result = perform_operation(arg)
        local_event_Success.emit(result)
    except Exception, e:
        console.error('Operation failed: %s' % e)
        local_event_Error.emit(str(e))

Development Philosophy

  • Simplicity First - Keep code minimal and readable
  • Maintainability > Cleverness - Prefer explicit over implicit
  • DRY - Extract common patterns to helper functions
  • Defensive Coding - Handle network failures gracefully

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.91%
按下载量换算27

Claude

32.8%
按下载量换算23

Cursor

17.82%
按下载量换算12

Gemini CLI

8.59%
按下载量换算6

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills