agentsclimarketplace

Lua

Skill G1Joshi/Agent-Skills/skills/languages/lua

Lua scripting for game development, embedded systems, and configuration. Use for .lua files.From its SKILL.md

Install
npx -y skills add G1Joshi/Agent-Skills --skill lua

Assembled 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 local variables 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 are nil)

References

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.