germanfndez/fiveai-skills

lua-basics

Effective Lua programming for FiveM - functions, tables, variables, conditionals, error handling. Use when writing or reviewing Lua code for FiveM resources.

First seen Feb 21, 2026

Installation

$ npx skills add germanfndez/fiveai-skills --skill lua-basics

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from germanfndez/fiveai-skills.

npx skills add germanfndez/fiveai-skills

Browse all from germanfndez/fiveai-skills

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 15
Default branch main
Open issues 0
Status Active

Skill metadata

Parsed from SKILL.md frontmatter.

Version1.0.0

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,437 B
  • docs SUMMARY.md 175 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 296 installs

SKILL.md

Lua Basics

Best practices for writing effective Lua code in FiveM. This skill covers fundamental Lua patterns, performance optimizations, and code quality guidelines specifically for FiveM development.

When to use

  • Writing or reviewing Lua code for FiveM resources.
  • Questions about Lua best practices, naming conventions, or code structure.
  • Optimizing Lua code for performance.
  • Need guidance on functions, tables, variables, conditionals, or error handling in Lua.

How to use

Read individual rule files for detailed explanations and examples:

  • rules/functions.md — Function best practices: size, naming, parameters, exports, guard clauses.
  • rules/tables.md — Table operations: array indices, dereferencing, avoiding table.insert, iterations, array size.
  • rules/variables.md — Variable naming conventions: constants, locals, globals, enums vs booleans.
  • rules/conditionals.md — Conditional patterns: default values, boolean expressions, readability.
  • rules/errors.md — Error handling: assertions, pre-conditions, errors as values, fail loudly.
  • rules/reference-links.md — Official Lua and FiveM documentation resources.