Lua
Lua scripting for game development, embedded systems, and configuration. Use for .lua files.From its SKILL.md
npx -y skills add G1Joshi/Agent-Skills --skill luaAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 12 stars12 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
1.2 KB, 285 tokens by cl100k_base, as published. Nobody here has run it
Lua
A powerful, efficient, lightweight, embeddable scripting language.
When to Use
- Game Development (Roblox, WoW, Love2D)
- Embedded Systems
- Configuration scripting (Neovim, Nginx)
- Extending applications
Quick Start
print("Hello, World!")
function factorial(n)
if n == 0 then
return 1
else
return n * factorial(n - 1)
end
end
Core Concepts
Tables
The only complex data structure in Lua. Used as arrays, dictionaries, sets, and objects.
t = { key = "value", [1] = "first" }
print(t.key)
Metatables
Allow changing the behavior of tables (e.g., operator overloading, inheritance).
Indices
Arrays are 1-indexed (start at 1, not 0).
Best Practices
Do:
- Use
localvariables by default (performance and scope) - Use standard libraries where possible
- Understand table length operator
#behavior with holes
Don't:
- Pollute the global namespace
- Ignore
nil(undefined variables arenil)
References
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.