/xonovex-languages:typescript-to-lua-guidefrom xonovex-languages
Guides writing TypeScript that compiles cleanly to Lua via TSTL 1.24+ for game scripting, Defold, and embedded engines. Covers namespaces, LuaMultiReturn, decorators, table stability, and Lua interop boundaries.
Ships in xonovex-languages. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The output is Lua. For Lua runtime semantics and idioms: module pattern, coroutines, metatables, error handling, string building. Apply lua-guide; for hot-path tuning of the generated code apply lua-opinionated-guide. This skill covers only the TS→Lua transpiler boundary: what translates, how to shape TS source for clean Lua, and TSTL-specific features.
for-await-of, dynamic import(), and BigInt are unsupported or partially supported0 and "" are truthy in Lua, falsy in JSlength for holes) replaces JS arrays: pass-through types abstract this but iteration order changes@types packages with Lua-runtime equivalents worktstlc is the CLI; build configs are different from tsc: sharing a tsconfig.json with web projects requires careful compilerOptions splitSOURCES.md (opens in a new tab)eval-queries.json (opens in a new tab)evals.json (opens in a new tab)moon.yml (opens in a new tab)references/avoiding-heavy-features.md (opens in a new tab)references/coroutine-patterns.md (opens in a new tab)references/lua-interop.md (opens in a new tab)references/multi-return-functions.md (opens in a new tab)references/namespaces-vs-classes.md (opens in a new tab)references/performance-tips.md (opens in a new tab)references/tsconfig.md (opens in a new tab)references/tstl-decorators.md (opens in a new tab)references/type-safety.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub xonovex/platform --plugin xonovex-languages6 skills in this plugin
/lua-guideUse when editing general-purpose Lua 5.4+: modules, scripts, configuration. Triggers on `.lua` files and prompts about module patterns, local scoping, metatables, coroutines, error handling, even when the user doesn't say 'Lua'./lua-opinionated-guideUse when tuning performance-critical Lua hot paths: the tunings especially benefit LuaJIT, and the principles apply to vanilla Lua 5.4 too. A focused overlay that covers only hot-path performance, not Lua fundamentals. Triggers on `.lua` files in performance-sensitive or LuaJIT projects and on prompts about JIT-friendly tables, table pre-allocation, cache lookups, stable table shapes, or hot-path tuning, even when the user doesn't say 'LuaJIT'./python-guideUse when writing or editing Python 3.12+ for APIs, data processing, scripting, or tooling. Triggers on `.py` files and prompts about async functions, type hints, dataclasses, pathlib, pytest, generators, context managers, f-strings, even when the user doesn't say 'Python'./shell-scripting-guideUse when writing or editing POSIX shell or Bash automation. Triggers on `.sh` files, `#!/usr/bin/env bash` shebangs, and prompts about scripting CI tasks, build helpers, devops automation, or one-off pipelines, even when the user doesn't say 'shell'. Apply for strict mode, quoting, parameter expansion, exit codes, idempotency, shellcheck/shfmt./sql-postgresql-guideUse when editing PostgreSQL 15+ queries, schemas, or migrations. Triggers on `.sql` files, migration files, schema files, and prompts about CTEs, indexing, JSONB, RLS, EXPLAIN ANALYZE, or constraints, even when the user doesn't say 'Postgres'.