What problem does it solve?
This Skill helps you prevent runtime crashes and “API hallucination” in Y3 by systematically reviewing existing game-business Lua files for syntax correctness, event correctness, and API/API-parameter compliance.
Core Features & Use Cases
- Four-phase Lua review: determines review scope, checks basic syntax and module/include path consistency, validates API calls, and verifies event names and event parameter names.
- Known-issue pattern matching: detects high-frequency incorrect APIs/usage by matching entries from the project’s curated api-issues knowledge base.
- Deterministic auto-fixes (with confirmation): applies 1:1 replacements for clearly defined wrong patterns (e.g., specific API substitutions and event parameter name corrections), while outputting suggestions for non-deterministic cases.
- Review scope control: supports full-project review or user-specified directory/file subsets, and produces a structured CRITICAL/WARNING/INFO report.
Quick Start
Ask the AI to run the y3-lua-review skill to review all Lua business scripts under the Y3 EntryMap and produce a CRITICAL/WARNING/INFO report with deterministic auto-fix candidates.