Перейти к основному содержимому

Lang Lua

Navigate, test, and lint Lua modules.

Skill metadata​

SourceBundled (installed by default)
Pathskills/software-development/lang-lua
Version1.1.0
AuthorVibeOS
LicenseMIT
Platformslinux, macos, windows

Reference: full SKILL.md​

к сведению

The following is the complete skill definition that VibeOS loads when this skill is triggered. This is what the agent sees as instructions when the skill is active.

Lua Language Pack Skill

Drive Lua work with the project index and standard CLI recipes. LSP hint: lua-language-server (editor-side when applicable). Zero new core tools.

What this language is (beginner)​

Крошечный встраиваемый язык. Часто внутри игр, Neovim, Redis, роутеров и плагинов.

Лучше всего для:

  • скрипты игровых движков (Love2D и др.)
  • конфиг/плагины Neovim
  • встраиваемая логика в C/C++ хостах
  • лёгкие скрипты там, где уже есть Lua runtime

When to Use​

Выбирай этот pack, если:

  • хост-система уже требует Lua
  • есть .luarc.json / selene.toml / *.rockspec
  • нужен маленький скриптовый язык внутри приложения

Manifests (автодетект репозитория): .luarc.json, selene.toml, *.rockspec

Обычно рядом: Часто рядом с C/C++ хостом.

См. также skill choose-language-pack, если цель ещё не ясна.

When NOT to use​

  • общее приложение / веб → TypeScript / Python
  • системный код → Rust / Go / Zig

Prerequisites​

vibeos pack apply lang-lua --apply
vibeos pack apply project-intelligence --apply

How to Run​

vibeos project index build
luacheck . || selene .
busted

Quick Reference​

GoalCommand
Apply packvibeos pack apply lang-lua --apply
Doctorvibeos language doctor lua
Primary testbusted
Choose guideskill choose-language-pack

Procedure​

  1. Если язык ещё не выбран для нового проекта — сначала choose-language-pack.
  2. Work from the project root that matches pack manifests.
  3. Index query → read_file → edit → path-scoped tests when iterating.
  4. Prefer the package manager / toolchain already locked in the repo.
  5. Explain non-obvious toolchain choices in plain language for the user.

Pitfalls​

  • Love2D / Neovim / Redis Lua differ — follow project tooling.
  • Prefer project-local rockspecs.
  • Do not invent core tools; stay on terminal + read_file + index CLI.

Verification​

vibeos language doctor lua
luacheck . || selene . || true