# Lua Development Guidelines

> Objective: Define standards for clean, performant, and maintainable Lua scripting across embedding environments (OpenResty/nginx, Redis, game engines), covering scoping, idioms, OOP, error handling, performance, and testing.

::: tip Source File
View the full rule: [`.agent/rules/lua.md`](https://github.com/snowdreamtech/template/blob/main/.agent/rules/lua.md)
:::

## Sections

- 1. Scope, Variables & Module Pattern
- 1. Idiomatic Lua
- 1. Tables & Object-Oriented Programming
- 1. Error Handling
- 1. Performance, Testing & Tooling
