Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add xonovex/platform --skill typescript-to-lua-guidegit clone --depth 1 https://github.com/xonovex/platformWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/xonovex/platform/typescript-to-lua-guide)<a href="https://agentmods.dev/skills/xonovex/platform/typescript-to-lua-guide"><img src="https://agentmods.dev/badge/skills/xonovex/platform/typescript-to-lua-guide/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/xonovex/platform/typescript-to-lua-guide"><img src="https://agentmods.dev/badge/skills/xonovex/platform/typescript-to-lua-guide.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00086 | $0.00848 |
| Opus 5 | $0.00043 | $0.00424 |
| Sonnet 5 | $0.00017 | $0.00170 |
| Haiku 4.5 | $0.00009 | $0.00085 |
Grade A, and why
typescript-to-lua-guide scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 40 lines — stays where its author put it; the contents beside it link to each section on GitHub.
TypeScript-to-Lua Coding Guidelines
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.
Requirements
- TSTL ≥ 1.24; TS strict mode; Lua ≥ 5.3 / LuaJIT 2.1.
Essentials
- Code organization - Favor namespaces/functions over classes for clean Lua output; Lua module idioms in lua-guide, see references/namespaces-vs-classes.md
- TSTL features - Use LuaMultiReturn, decorators when beneficial, see references/multi-return-functions.md, references/tstl-decorators.md
- Performance - Keep tables stable, cache lookups, design for Lua GC and coroutines; the JIT "why" is in lua-opinionated-guide, see references/performance-tips.md, references/coroutine-patterns.md
- Optimization - Avoid heavy TypeScript features, see references/avoiding-heavy-features.md
Gotchas
- Not all TypeScript features translate: generators,
for-await-of, dynamicimport(), and BigInt are unsupported or partially supported - Translation is source-to-source; runtime semantics follow Lua, not JS:
0and""are truthy in Lua, falsy in JS - Lua's table indexing (1-based, no
lengthfor holes) replaces JS arrays: pass-through types abstract this but iteration order changes - Importing JS-only libraries silently fails at translation, only
@typespackages with Lua-runtime equivalents work tstlcis the CLI; build configs are different fromtsc: sharing atsconfig.jsonwith web projects requires carefulcompilerOptionssplit
Progressive disclosure
What ships with it
12 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- eval-queries.json 5.1 KB
- evals.json 2.3 KB
- references/avoiding-heavy-features.md 586 B
- references/coroutine-patterns.md 674 B
- references/lua-interop.md 587 B
- references/multi-return-functions.md 899 B
- references/namespaces-vs-classes.md 672 B
- references/performance-tips.md 1.3 KB
- references/tsconfig.md 670 B
- references/tstl-decorators.md 845 B
- references/type-safety.md 691 B
- SOURCES.md 707 B
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago First seen · 40 lines · 86 tokens per session scan A 0accb57d9b7e
typescript-to-lua-guide is a skill published in the GitHub repository xonovex/platform (5 stars, last pushed 3d ago), licensed MIT. It adds 86 tokens to every session and 848 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-08.
Other skills, from other repositories
onejs-setup-and-overview
Use this skill whenever the user wants to build or set up user interface in a Unity project using OneJS, React, TypeScript, or JSX, e.g. 'add a main menu to my game', 'build a settings screen', 'make a HUD', 'set up OneJS', 'my OneJS panel is blank', 'the UI is not hot reloading'. Covers confirming OneJS is installed…
agent-inspect
Local evidence debugger and trajectory-test toolkit for TypeScript AI agents. Use when capturing framework-faithful traces, asserting TraceContract/TraceFacts, packaging Evidence v2, or inspecting local runs over read-only MCP (gettracefacts).
widen-return-type
When delegating a task affected by this skill, include.
microsoft-typescript
TypeScript is a language for application scale JavaScript development. ALWAYS use when editing or working with .ts, .tsx, .mts, .cts files or code importing "typescript". Consult for debugging, best practices, or modifying typescript, TypeScript.
adding-a-command
Creates a new CLI command following the Commander.js pattern in src/commands/. Handles command registration in src/cli.ts, telemetry tracking via tracked() wrapper, and option parsing. Use when user says add command, new CLI command, create subcommand, or adds files to src/commands/. Do NOT use for modifying existing…
rpg-stat-catalyst
A core TypeScript library for RPG game mathematics. Handles attribute points, leveling curves, and stat derivation (HP, Dmg, etc.).