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.
In this repository3 other files it gives its agents.
- nodel-devSkill
- nodel-frontendSkill
- nodel-useSkill
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
- Very specific: line 8
Create and revise Nodel script.py recipes for device control, automation, and integration work.
- Distinctive: line 15
Keep protocol callbacks small: parse input, update connection state, and emit stable events.
- Distinctive: line 16
Add cleanup for long-running connections, timers, or processes.
- Very specific: line 32
Only script.py is required.
- Distinctive: line 45
Do not use Python 3 exception syntax, f-strings, dictionary comprehensions, set literals, or APIs added after Python 2.5.
- Distinctive: line 73
Use schemas that match the values actions accept and events emit.
- Very specific: line 77
Read references/jython-syntax.md whenever writing language syntax, imports, exception handling, collection code, or standard-library calls.
- Very specific: line 78
Read references/toolkit-api.md when using parameters, actions, events, timers, lifecycle decorators, network protocols, HTTP, processes, …
- Very specific: line 79
Read references/patterns.md when implementing polling, health status, state arbitration, binary protocols, HTTP integrations, dynamic …
- Distinctive: line 83
Keep syntax compatible with Jython 2.5.
≈ “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.
Files
Nodel Recipe Development
Create and revise Nodel script.py recipes for device control, automation, and integration work.
Workflow
- Inspect the existing recipe, parameter values, bindings, and node logs before changing behavior.
- Define parameters and public action/event schemas before protocol or device logic.
- Initialize connections and timers only after parameters are available.
- Keep protocol callbacks small: parse input, update connection state, and emit stable events.
- Add cleanup for long-running connections, timers, or processes.
- Exercise the recipe on a disposable or non-production node and inspect
errconsole entries.
Recipe Layout
My Recipe/
├── script.py
└── content
├── index.xml
├── css
│ └── custom.css
└── js
└── custom.jsOnly 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.mdwhenever writing language syntax, imports, exception handling, collection code, or standard-library calls. - Read
references/toolkit-api.mdwhen using parameters, actions, events, timers, lifecycle decorators, network protocols, HTTP, processes, utilities, or node-state helpers. - Read
references/patterns.mdwhen 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.
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
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.

