.agents/skills/lua-scripting-guide/SKILL.md
Guide for `action:lua` nodes, including how runtime data is exposed, how `input` works, Lua table conversion, and how return values become downstream output. Use when creating or explaining Lua nodes.
npx skillsauth add FlameInTheDark/emerald lua-scripting-guideInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill when the task is to create, review, or explain an action:lua node.
action:lua on the normal execution chain.data.config.script.tool:lua node today.input.input.<field> as the source of truth.input is the clearest form.{{input.items[0]}}input.items[1]return to produce node output.{"result": <value>} downstream.nil produces an empty output object.local first = input.items and input.items[1] or nil
return {
ok = input.status == "ready",
first_item = first,
count = input.items and #input.items or 0
}
input is passed as a function argument.input.<field> is clearer.devops
Guide for Emerald template interpolation, runtime context lookup, and pipeline parameter passing. Use when writing prompts, config fields, JSON params, or explaining how `input`, `arguments`, and other template values resolve.
devops
Reference for valid Emerald node and edge topology, branching handles, and live-edit safety rules. Use when reasoning about graph structure, adding or removing nodes, reconnecting edges, or validating pipeline edits.
tools
Design, create, and safely edit Emerald pipelines. Use this skill when an LLM needs to produce valid nodes/edges JSON for pipeline tools or reason about existing workflows.
development
Compact reference for important Emerald node families, common config shapes, and when to use each category. Use when choosing nodes, understanding existing nodes, or mapping a user request to pipeline components.