agentleFS
scroixscroix/nodel-skills/skills/nodel-recipes/SKILL.md

nodel-recipes

Skill2 starsChanged 5 months agoMITView on GitHub

Author or modify Nodel script.py recipes with the bundled Jython 2.5 runtime and Nodel toolkit. Use for recipe actions, events, parameters, timers, device protocols, automation, and integration logic. Do not use for Nodel platform source changes, live-host REST operations, or index.xml, CSS, and JavaScript dashboard work.

The file

We split this skill into the rules it gives an agent

10 rules. About 0 are common, 5 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Create and revise Nodel script.py recipes for device control, automation, and integration work.

    line 8
  2. Distinctive:

    Keep protocol callbacks small: parse input, update connection state, and emit stable events.

    line 15
  3. Distinctive:

    Add cleanup for long-running connections, timers, or processes.

    line 16
  4. Very specific:

    Only script.py is required.

    line 32
  5. Distinctive:

    Do not use Python 3 exception syntax, f-strings, dictionary comprehensions, set literals, or APIs added after Python 2.5.

    line 45
  6. Distinctive:

    Use schemas that match the values actions accept and events emit.

    line 73
  7. Very specific:

    Read references/jython-syntax.md whenever writing language syntax, imports, exception handling, collection code, or standard-library calls.

    line 77
  8. Very specific:

    Read references/toolkit-api.md when using parameters, actions, events, timers, lifecycle decorators, network protocols, HTTP, processes, …

    line 78
  9. Very specific:

    Read references/patterns.md when implementing polling, health status, state arbitration, binary protocols, HTTP integrations, dynamic …

    line 79
  10. Distinctive:

    Keep syntax compatible with Jython 2.5.

    line 83

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Nodel Recipe Development

Create and revise Nodel script.py recipes for device control, automation, and integration work.

Workflow

  1. Inspect the existing recipe, parameter values, bindings, and node logs before changing behavior.
  2. Define parameters and public action/event schemas before protocol or device logic.
  3. Initialize connections and timers only after parameters are available.
  4. Keep protocol callbacks small: parse input, update connection state, and emit stable events.
  5. Add cleanup for long-running connections, timers, or processes.
  6. Exercise the recipe on a disposable or non-production node and inspect err console entries.

Recipe Layout

My Recipe/
├── script.py
└── content
    ├── index.xml
    ├── css
    │   └── custom.css
    └── js
        └── custom.js

Only script.py is required.

Critical Runtime Constraint

Nodel runs node scripts with the bundled Jython 2.5.4-rc1 runtime. Use Python 2.5-era syntax and APIs.

try:
    value = int('42')
except Exception, e:
    console.error('Operation failed: %s' % e)

Do not use Python 3 exception syntax, f-strings, dictionary comprehensions, set literals, or APIs added after Python 2.5. Do not assume CPython packages are available.

Minimal Recipe Shape

param_ipAddress = Parameter({
    'title': 'IP Address',
    'schema': {'type': 'string'}
})

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

@local_action({'schema': {'type': 'string'}})
def Power(arg):
    local_event_Status.emit(arg)

def main():
    console.info('Node starting')

@after_main
def setup():
    local_event_Status.emit('Ready')

@at_cleanup
def cleanup():
    console.info('Node stopping')

Use schemas that match the values actions accept and events emit. Prefer explicit state variables updated by protocol callbacks over probing undocumented internals.

References

  • Read references/jython-syntax.md whenever writing language syntax, imports, exception handling, collection code, or standard-library calls.
  • Read references/toolkit-api.md when using parameters, actions, events, timers, lifecycle decorators, network protocols, HTTP, processes, utilities, or node-state helpers.
  • Read references/patterns.md when implementing polling, health status, state arbitration, binary protocols, HTTP integrations, dynamic bindings, process control, chained operations, logging, or parameter validation.

Completion Check

  • Keep syntax compatible with Jython 2.5.
  • Confirm every toolkit symbol and option against the toolkit reference.
  • Emit event values that match their declared schemas.
  • Handle connection failure, malformed responses, and shutdown without leaving background work running.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.