{"data":{"slug":"discovered-5288da6a8f430d305aa8649d2a729f4c3340d31849c2788d","title":"Roblox Luau Static Analysis V27","summary":"Analyze Roblox Luau projects using the official luau-analyze CLI for type checking, linting, and evidence-based static diagnostics. This process identifies source directories, type modes, and inventory files without claiming to be a parser or type checker.","url":"https:\/\/skillshunter.net\/skills\/discovered-5288da6a8f430d305aa8649d2a729f4c3340d31849c2788d","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/discovered-5288da6a8f430d305aa8649d2a729f4c3340d31849c2788d","markdown_url":"https:\/\/skillshunter.net\/skills\/discovered-5288da6a8f430d305aa8649d2a729f4c3340d31849c2788d.md","download_url":"https:\/\/skillshunter.net\/skills\/discovered-5288da6a8f430d305aa8649d2a729f4c3340d31849c2788d\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Before running the analysis, ensure the official `luau-analyze` CLI is available and identify the actual game project root and source directories. Start with stable leaf modules and avoid mass edits of type directives.","instructions":"---\nname: roblox-luau-static-analysis-v27\ndescription: Analyze Roblox Luau projects with the official luau-analyze CLI, incremental strict typing, and evidence-based static diagnostics.\n---\n\n# Roblox Luau Static Analysis\n\nUse this skill when writing, reviewing, diagnosing, or improving Luau code quality.\n\n## Establish the baseline\n\n- Identify the actual game project root and source directories.\n- Inspect the current type-mode directives and any `.luaurc` files.\n- Check whether the official `luau-analyze` CLI is available.\n- Use the V27 offline audit to inventory source files, type modes, and conservative architecture signals.\n- Use `luau-analyze` for type checking and linting; do not claim the offline inventory is a parser or type checker.\n\n## Gradual type migration\n\n- Start with stable leaf modules, pure helpers, shared data definitions, and low-dependency interfaces.\n- Add parameter types, return types, generic constraints, optional-field handling, and shared payload types.\n- Move one bounded module or subsystem at a time to `--!strict`.\n- Run the analyzer and relevant tests after each change.\n- Prefer precise records and unions over broad `any` casts.\n- Keep intentional dynamic\/reflection-heavy modules in a justified mode until they can be typed safely.\n\nNever add `--!strict` to every script in one mass edit. Never automatically alter type directives or suppress diagnostics to make a report green.\n\n## Diagnostics workflow\n\n1. Capture the baseline analyzer output.\n2. Sort issues by runtime risk, affected callers, and shared-interface impact.\n3. Fix root causes rather than hiding errors with casts.\n4. Update affected callers and tests together.\n5. Re-run static checks and focused Studio tests.\n6. Report unresolved diagnostics and skipped tests.\n\n## Honest evidence\n\n- Keep compiler\/type-checker output separate from Studio runtime logs.\n- Record the exact CLI mode, project config, and files analyzed.\n- Distinguish analyzer errors from heuristic warnings.\n- A clean analyzer run does not prove the experience is correct at runtime.\n","use_cases":["Diagnose and improve Luau code quality","Perform type checking and linting on Roblox Luau projects","Inventory source files and type modes using V27 offline audit","Gradually migrate to strict typing with evidence-based diagnostics"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/Aziz24666\/Codex_Roblox_skills\/blob\/eb2be117f63d6442c0f9b6d9d38bbdd7adf9374c\/v27\/skills\/roblox-luau-static-analysis-v27\/SKILL.md","source_commit":"eb2be117f63d6442c0f9b6d9d38bbdd7adf9374c","license":null,"version":null,"listing_approved_at":"2026-11-30","created_at":"2026-11-29T11:00:45.000000Z","updated_at":"2026-11-30T06:51:47.000000Z","seo_title":"Roblox Luau Static Analysis with luau-analyze CLI","seo_description":"Use the official luau-analyze CLI for Roblox Luau static analysis, type checking, and evidence-based diagnostics to improve code quality and architecture signals.","seo_keywords":["Roblox Luau static analysis","luau-analyze CLI","type checking","code quality diagnostics","Roblox Luau type migration"]}}