/skills:lua-engineeringfrom skills
Design, implement, embed, debug, test, profile and deploy Lua applications and scripting APIs. Use for PUC Lua 5.1 through 5.5, LuaJIT and Luau distinctions; language semantics, tables and metatables, modules and hot reload, coroutines and errors, C/C++ embedding and native modules, garbage collection and performance, LuaRocks and tooling, sandboxing, persistence, networking, portable libraries, and simulation or event-driven game rules. Keep Unreal-specific integration in unreal-lua-engineering.
Ships in skills. 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.
Build against the actual runtime and host contract. Use this skill as a routed engineering knowledge base; load only the references required by the task. Keep a small script small. Do not impose an application framework, sandbox, coroutine scheduler or native extension when the task does not need one.
Evidence snapshot: 2026-11-22. Lua 5.5 is current in this snapshot; Lua 5.4 remains an important deployed embedding target. Refresh patch levels, bug reports and tool syntax support before dependency selection. Read versions and source policy.
| Task or failure | Reference |
|---|---|
| Choose a runtime, support several versions or migrate | Versions and portability |
| Check truthiness, scope, multiple returns or iteration | Language semantics |
| Represent arrays, maps, sparse values, IDs or graphs | Tables and data models |
| Implement methods, inheritance, proxies or weak tables | Metatables and object models |
| Load modules, control environments or replace code | Modules, environments and reload |
| Handle errors, cleanup, cancellation and coroutines | Errors, resources and coroutines |
| Parse text, UTF-8, patterns or binary protocols | Strings, patterns and binary data |
| Adopt global declarations, named varargs or 5.5 APIs | Lua 5.5 changes |
| Organize modules, interfaces, configuration and lifecycle | Application architecture |
| Save/load state, exchange JSON or migrate schemas | Persistence and data exchange |
| Handle time, randomness and numerical accuracy | Numbers, time and randomness |
| Use files, sockets, HTTP or host-specific APIs | I/O, networking and hosts |
| Embed Lua and maintain stack/registry contracts | Embedding and the C API |
| Manage native handles, callbacks, threads and teardown | Native lifetime and async |
| Expose capabilities to untrusted code | Sandboxing and capabilities |
| Measure allocations, GC, boundary cost and throughput | Performance and GC |
| Use LuaJIT, FFI, Luau typing or codegen | LuaJIT and Luau |
| Configure LuaLS, linting, formatting, packages and types | Tooling and dependencies |
| Debug a failure or build a meaningful test matrix | Testing and debugging |
| Build native modules or deploy across platforms | Deployment and native modules |
| Implement simulation, rules, commands or replay | Simulation and event systems |
| Find manuals, source, errata and validation provenance | Sources and evidence |
Read the matching references for version-specific evidence and exceptions. Apply only mechanisms relevant to the task.
For conceptual requests, give the design and examples. For implementation requests, continue through working code and verification. A standalone Lua test does not certify an engine or native integration.
Run from this skill directory with an explicit interpreter:
/path/to/lua scripts/runtime_probe.lua
/path/to/lua scripts/semantic_checks.lua
python3 scripts/run_lua_checks.py --lua /path/to/lua
Repeat --lua to compare supported PUC/LuaJIT executables. The Python runner uses argument arrays and a bounded timeout; it installs nothing, downloads nothing and executes no project files. Probes execute bundled trusted diagnostic chunks. Results are observations, not a complete conformance or sandbox certificate. Luau/restricted hosts need their own launch adapters.
Lua can implement substantial domain logic. Place bulk operations, engine lifecycle, OS services and authority checks at an appropriate host boundary. Preserve the option to optimize selected systems without scattering host details through every rule.
For Unreal, use unreal-lua-engineering for engine versions, UObjects, worlds, replication, packaging and build evidence. Do not make this general Lua skill depend on a game engine, package manager or editor.
agents/openai.yaml (opens in a new tab)assets/icon.svg (opens in a new tab)assets/minimal_host.c (opens in a new tab)assets/rules.lua (opens in a new tab)assets/runtime-contract.json (opens in a new tab)references/application-architecture.md (opens in a new tab)references/deployment-and-native-modules.md (opens in a new tab)references/embedding-c-api.md (opens in a new tab)references/errors-resources-and-coroutines.md (opens in a new tab)references/io-networking-and-hosts.md (opens in a new tab)references/language-semantics.md (opens in a new tab)references/lua55-changes.md (opens in a new tab)references/luajit-and-luau.md (opens in a new tab)references/metatables-and-object-models.md (opens in a new tab)references/modules-environments-and-reload.md (opens in a new tab)references/native-lifetime-and-async.md (opens in a new tab)references/numbers-time-and-randomness.md (opens in a new tab)references/performance-and-gc.md (opens in a new tab)references/persistence-and-data-exchange.md (opens in a new tab)references/sandboxing-and-capabilities.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (getty/skills) — no native marketplace selected
npx claudepluginhub p/getty-skills129 skills in this plugin
/ai-playable-gamesUse when building a game or simulation that bots or LLM agents must play — observation and order interface, agent API or MCP server, AI seats beside humans, fog of war, replays; or when an AI player cheats, stalls, misreads the state or follows text other players wrote./ai-web-scrapingUse when scraping, crawling or extracting structured data from websites, especially with an LLM — Crawl4AI, Firecrawl, Scrapy, Crawlee, Playwright, browser-use; building a dataset or RAG corpus, watching pages for changes, or a scraper that returns empty, duplicated or invented records./cedar-engineeringUse when writing, validating or debugging Cedar authorization policies — .cedar and .cedarschema files, permit/forbid, entities and hierarchies, RBAC/ABAC/ReBAC, templates, multi-tenant access, partial evaluation, Amazon Verified Permissions, migrating to or from Cedar.Other plugins' skills for the same job