lang-lua
Lua development standards and tooling.
适合你,如果正在用 Lua 写项目并希望统一代码风格和工具。
/ 通过 npx 安装 校验哈希
npx oh-my-skill add dragoscirjan/opencode-config/lang-lua/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- dragoscirjan/opencode-config/lang-lua/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify dragoscirjan/opencode-config/lang-lua安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
0GitHub stars
~112上下文体积 · 单文件
索引托管
怎么用
商店整理自技能原文 · 版本 f561928 · 表述以原文为准它做什么
Claude 会按照 Lua 风格指南编写代码,使用 local 声明变量和函数,用 nil, err_msg 处理预期错误,用 pcall/xpcall 处理意外错误,并通过 Metatables 实现面向对象。
什么时候触发
当用户要求编写或审查 Lua 代码时触发。
装好后可以这样说
Claude 会生成符合规范的模块代码。
技能原文 SKILL.md
LUA Standards
- Style: Lua Style Guide.
- Tooling:
StyLua,luacheck,busted. - Scoping: Use
localfor ALL variables and functions to avoid global namespace pollution. - Errors: Return
nil, err_msgfor expected failures. Usepcall/xpcallfor unexpected ones. - OOP: Use Metatables and
__indexfor object-oriented patterns.
Always load clean-code alongside this skill.
按 MIT 许可原样转载,未经改动 · 在 GitHub 查看 →
评论
登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。
…