lua-engineering
lua engineering guidance seeded from the harness forge knowledge base. use when the repo or task is dominated by .lua files, neovim plugins, openresty, love2d, embedded scripting, luajit, or host-specific lua automation where runtime compatibility matters.
- License 许可
- GPL-3.0
- 最近更新
- 2026-05-19
- Stars
- ★ 6
- Forks
- 1
01 前言 Front Matter
- name
- lua-engineering
- origin
- Harness Forge
- description
- lua engineering guidance seeded from the harness forge knowledge base. use when the repo or task is dominated by .lua files, neovim plugins, openresty, love2d, embedded scripting, luajit, or host-specific lua automation where runtime compatibility matters.
02 资源文件 12
- 参考文档references/agent-patterns.md836 B
- 参考文档references/debugging-and-testing.md537 B
- 参考文档references/debugging-playbook.md795 B
- 参考文档references/examples.md470 B
- 参考文档references/game-and-addon-patterns.md614 B
- 参考文档references/language-idioms.md515 B
- 参考文档references/neovim-and-editor-patterns.md637 B
- 参考文档references/openresty-patterns.md630 B
- 参考文档references/output-templates.md296 B
- 参考文档references/repo-exploration.md1.0 KB
- 参考文档references/runtime-profiles.md637 B
- 参考文档references/tooling-and-quality.md450 B
03 SKILL.md 正文
Lua Engineering
Use this skill when the repository is Lua-first and the safest next move depends on runtime flavor, host APIs, coroutine behavior, editor or game integration, or disciplined module boundaries.
Activation
- the task touches
.luafiles, host-specific Lua config, Neovim plugins, OpenResty services, Love2D gameplay code, or embedded automation - the runtime may vary across Lua 5.x, LuaJIT, or a host-specific flavor such as Luau or editor-embedded Lua
- the change depends on module contracts, async or coroutine behavior, or host lifecycle hooks
Load Order
rules/common/README.mdrules/common/coding-style.mdrules/common/patterns.mdrules/common/testing.mdrules/common/security.mdrules/lua/README.mdrules/lua/coding-style.mdrules/lua/patterns.mdrules/lua/testing.mdrules/lua/security.mdtemplates/workflows/implement-lua-change.mdknowledge-bases/seeded/lua/docs/overview.mdknowledge-bases/seeded/lua/docs/frameworks.mdknowledge-bases/seeded/lua/docs/examples-guide.md- the closest matching file in
knowledge-bases/seeded/lua/examples/ knowledge-bases/seeded/lua/docs/review-checklist.mdskills/lua-engineering/references/
Execution Contract
- identify the active runtime and host before changing code: pure Lua, LuaJIT, Neovim, OpenResty, Love2D, or embedded automation
- preserve local module conventions and avoid accidental global state
- prefer small table-based modules, explicit contracts, and readable control flow over metatable-heavy cleverness unless the repo already relies on it
- treat coroutine, event-loop, and host-lifecycle behavior as first-class design constraints
- validate with the host's actual entrypoint, tests, formatting, or language-server checks before finalizing
Outputs
- touched-file plan grouped by module or host surface
- implementation or debugging summary with the exact runtime assumption that changed
- validation path with formatter, tests, host smoke steps, or editor checks
- compatibility note when the runtime flavor or host API assumptions changed
Validation
- use the repo's preferred test and formatting path first
- confirm the target runtime version and host before using syntax or standard-library APIs
- use LuaLS diagnostics and annotations when the repo already depends on them
- add or update Busted tests when the code is pure enough to isolate from the host
- consult
knowledge-bases/seeded/lua/docs/review-checklist.mdbefore finalizing a patch or design note
Escalation
- escalate when the repo mixes Lua versions or host APIs with incompatible assumptions
- escalate when performance-sensitive LuaJIT or FFI behavior is changed without evidence
- escalate when host lifecycle, coroutine scheduling, or plugin loading order are unclear
Supplemental Engineering References
skills/lua-engineering/references/repo-exploration.mdskills/lua-engineering/references/output-templates.mdskills/lua-engineering/references/agent-patterns.mdskills/lua-engineering/references/debugging-playbook.mdskills/lua-engineering/references/language-idioms.mdskills/lua-engineering/references/runtime-profiles.mdskills/lua-engineering/references/neovim-and-editor-patterns.mdskills/lua-engineering/references/openresty-patterns.mdskills/lua-engineering/references/game-and-addon-patterns.mdskills/lua-engineering/references/debugging-and-testing.mdskills/lua-engineering/references/tooling-and-quality.mdskills/lua-engineering/references/examples.md
04 同仓库更多 Skills
typescript-engineering
typescript and javascript engineering guidance seeded from the harness forge knowledge base. use when the repo or task is dominated by .ts, .tsx, package.json, tsconfig, node.js services, react, next.js, frontend tooling, or multi-package workspaces where type boundaries matter.
token-budget-optimizer
compact context, reuse existing runtime artifacts, and choose the smallest authoritative surface before expanding prompt history. use when the task is growing large, when earlier repo intelligence already exists, or when repeated rescans would waste tokens without adding new evidence.
test-strategy-and-coverage
Define right-sized test layers and coverage priorities for a change.
speckit-taskstoissues
Convert existing tasks into actionable, dependency-ordered GitHub issues for the feature based on available design artifacts.
speckit-tasks
Generate an actionable, dependency-ordered tasks.md for the feature based on available design artifacts.
speckit-specify
Create or update the feature specification from a natural language feature description.