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 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/lua-guide)<a href="https://agentmods.dev/skills/xonovex/platform/lua-guide"><img src="https://agentmods.dev/badge/skills/xonovex/platform/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/lua-guide"><img src="https://agentmods.dev/badge/skills/xonovex/platform/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.00055 | $0.00522 |
| Opus 5.5 | $0.00022 | $0.00209 |
| Sonnet 5.5 | $0.00011 | $0.00104 |
| Haiku 4.5 | $0.00006 | $0.00052 |
Grade A, and why
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 7d 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 — 37 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Lua Coding Guidelines
Write Lua modules with local state, explicit error handling, and clear interfaces.
Requirements
- Lua ≥ 5.4.
Essentials
- Module pattern - Always
local, one module per file returning table, see references/module-pattern.md, references/local-variables.md - Code organization - Prefer table-based modules and simple functions, see references/module-pattern.md, references/metatables.md
- Cooperative tasks - Use coroutines for async patterns, see references/coroutines.md
- Validation - Validate inputs, see references/input-validation.md
- Paradigm - Functional style → fp-guide; class/OO design (metatable-based) → oop-guide
Gotchas
- Arrays are 1-indexed; a
nilhole breaks the#length operator (it stops at the first nil) - Tables are both array and hash; mixing them is fine but iteration order isn't guaranteed for the hash part
/always returns a float; use//for integer floor division:total // per_page, notmath.floor(total / per_page)- Variables are global by default unless declared
local: forgettinglocalin a loop counter leaks into the surrounding scope
Progressive disclosure
- Read references/module-pattern.md - Load when creating reusable modules or organizing code structure
- Read references/local-variables.md - Load when encountering global variable issues or scoping problems
- Read references/metatables.md - Load when implementing object-oriented patterns or operator overloading
- Read references/coroutines.md - Load when implementing cooperative multitasking or async patterns
- Read references/input-validation.md - Load when adding type checks or parameter validation
- Read references/idiomatic-patterns.md - Load when learning common Lua idioms or patterns
What ships with it
10 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.
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.
- 7d ago Changed · +2 lines 4ab75544843d
- 1mo ago First seen · 35 lines · 55 tokens per session scan A 76c6a6031f60
lua-guide is a skill published in the GitHub repository xonovex/platform (6 stars, last pushed 5d ago), licensed MIT. It adds 55 tokens to every session and 522 once invoked, about $0.0002 per session on Opus 5.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
static-rust
Use for Soma built-in Rust actions, scaffold intent collection, MCP elicitation flows, and CLI/REST action reference.
windows-automation
Best-in-class Windows automation using Python (UI Automation) and AutoHotkey.
local-python-tools
Use when working with local-python-tools provider actions such as pythonruntimecheck.
boost-modules
Skill "boost-modules" from av/harbor, covering harbor boost custom modules, module structure, quick reference, output methods and stream text to client.
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…
modern-python-toolchain
Modern Python project setup with uv, ruff, and pyright. Use when initializing a new Python project, configuring the Python environment, setting up linting/formatting, or when a project needs uv (the fast Python package manager). Trigger on: 'set up Python', 'new Python project', 'configure uv', 'install uv', 'ruff'…