LuaSkills Development
A LuaSkill is a directory whose name is the skill_id. It holds skill.yaml (entries, help, config), optional
dependencies.yaml (tools, Lua packages, native libraries, managed Node/Python), Lua entry files under runtime/,
and help files. LuaSkills loads it and exposes each entry as a tool named {skill_id}-{entry_name}.
Develop every LuaSkill with luaskills-debug. It embeds the same LuaSkills runtime a host uses, so call runs
the real load and call path, validate applies the real packaging rules, and package builds the exact release
assets LuaSkills installs. Never hand-build zips, guess manifest fields, or test by installing into the user's
Vulcan Code skills.
1. Get luaskills-debug
- Call the
luaskills_debugtool with{"action":"status"}. - If it reports
installed: falseorcompatible: false, call{"action":"install"}and wait for the result. The install downloads the release that matches the LuaSkills series Vulcan Code embeds and verifies its checksum. Do not download luaskills-debug yourself with shell commands. - Use the returned
executablepath in every command below (quote it; it may contain spaces).package_rootis the extracted tool folder andruntime_rootis its private debug runtime. - If
runtime_readyisfalse, run the setup script once before the firstcall, withshell_command:- Windows:
powershell -NoProfile -ExecutionPolicy Bypass -File "<package_root>\setup_runtime.ps1" -Target lua - Linux/macOS:
bash "<package_root>/setup_runtime.sh" lua
- Windows:
validate, package and new work without the runtime setup.
2. Start or open the skill
- New skill:
luaskills-debug new <dir>. The final directory name becomes theskill_id(^[a-z]([a-z0-9-]*[a-z0-9])?$). Use the default standard layout. Pass--layout platformonly when the skill will bundle native libraries for several systems. The template includes a release workflow. - Existing skill: work in its directory. Read
skill.yaml,dependencies.yamland the entry files before changing anything. - Ask the user where the skill should live when it is unclear. Do not create skills inside Vulcan Code's own skill directories.
3. Edit, validate, call — in a loop
- Change
skill.yaml,dependencies.yaml, Lua entries, schemas or help. Follow references/skill-format.md; read the full manual it links when a field or API is not covered there. Never invent manifest fields: LuaSkills rejects unknown fields. - After every change run
luaskills-debug validate --skill-path <dir> --output json. Fix each issue by itscodeandpath, then validate again until it reports no issues. - Exercise the changed entries with the real runtime:
luaskills-debug call --runtime-root <runtime_root> --skill-path <dir> --tool <entry> --args-json '<json>' --output jsonPrefer--args-filefor non-trivial JSON. Checkresult.content, errors and logs; uselist-toolsandinspectto see the registered names and the loading result. - Repeat until every entry behaves as intended. See references/cli.md for host context, SQLite, mirrors and managed runtime options.
Running a skill executes its code: every luaskills-debug command goes through shell_command and its normal
permission checks.
4. Package and publish
luaskills-debug package --skill-path <dir> --out-dir <dir>/dist --output json, with--layout platformfor a platform release and--include <name>for extra top-level entries the skill ships.- Check the report: every asset, its size, and any warning about the LuaSkills Hub limits (100 MiB per package, 600 MiB per version, 1 GiB expanded).
- Explain the release path from references/release.md: push to GitHub, tag
v<version>matchingskill.yaml, let the workflow publish the release, then submit the repository on LuaSkills Hub. Do not push, tag or publish for the user unless they ask.
Rules
- Facts come from the skill source, validate/call output and the referenced manuals, never from memory of older LuaSkills versions.
- Keep the user's files: change only what the task needs, and show what changed.
- Report validation issues and failing calls as they are; do not hide them or work around them with fallbacks.


