What problem does it solve?
Lua projects often suffer from global leakage, inconsistent formatting, and weak typing, making maintenance hard. This Skill provides a structured set of standards to prevent these issues, ensuring safer, cleaner Lua code and conversations.
Core Features & Use Cases
- Local scope everywhere: enforce local variables and avoid polluting the global namespace.
- Typing annotations: LuaLS EmmyLua-style annotations for IDE support and checks.
- Formatting and linting: StyLua for formatting and luacheck for linting across projects.
- Error handling and modules: pcall/xpcall patterns and a clean module pattern for safe exports.
Use case: Apply these standards when building Neovim configs, Hammerspoon scripts, LÖVE2D games, or any Lua project to improve readability and reliability.
Quick Start
Install and configure LuaLS, StyLua, and luacheck, then run formatting and linting across your Lua codebase.