{"data":{"slug":"discovered-8bff8d9be7a4b2c5856bc1f79f96b873aa1ec1c2c1a1dba3","title":"Roblox Luau Architecture And Dependency Governance V27","summary":"Review Luau module boundaries, static require dependencies, circular dependencies, public interfaces, and project layering without unsafe automatic rewrites.","url":"https:\/\/skillshunter.net\/skills\/discovered-8bff8d9be7a4b2c5856bc1f79f96b873aa1ec1c2c1a1dba3","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/discovered-8bff8d9be7a4b2c5856bc1f79f96b873aa1ec1c2c1a1dba3","markdown_url":"https:\/\/skillshunter.net\/skills\/discovered-8bff8d9be7a4b2c5856bc1f79f96b873aa1ec1c2c1a1dba3.md","download_url":"https:\/\/skillshunter.net\/skills\/discovered-8bff8d9be7a4b2c5856bc1f79f96b873aa1ec1c2c1a1dba3\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Before making changes, inventory modules and entrypoints, and verify important relationships against the actual Studio DataModel and source. When cycles are reported, identify the smallest shared contract or interface that can break the cycle and plan a narrow refactor with explicit callers and acceptance tests.","instructions":"---\nname: roblox-luau-architecture-and-dependency-governance-v27\ndescription: Review Luau module boundaries, static require dependencies, circular dependencies, public interfaces, and project layering without unsafe automatic rewrites.\n---\n\n# Roblox Luau Architecture and Dependency Governance\n\nUse this skill when a task spans several modules, services, controllers, shared packages, or project layers.\n\n## Architecture discovery\n\n- Identify the selected game project and source mapping.\n- Inspect the Rojo project file where present.\n- Inventory modules and entrypoints before changing the structure.\n- Use V27's dependency report as a conservative guide, then verify important relationships against the actual Studio DataModel and source.\n\n## Dependency rules\n\n- Prefer dependencies that point toward stable, lower-level interfaces.\n- Keep pure shared types\/configuration separate from stateful server services.\n- Avoid circular initialization dependencies.\n- Keep server-only systems from depending on client-only modules.\n- Avoid accidental duplication of the same system in multiple services.\n- Document intentional plugin\/runtime-loaded modules.\n\n## Cycle review\n\nWhen V27 reports a cycle:\n1. Read every module in the reported strongly connected group.\n2. Identify the smallest shared contract or interface that can break the cycle.\n3. Check module initialization order and side effects.\n4. Plan a narrow refactor with explicit callers and acceptance tests.\n5. Change one boundary, then run type checks and relevant tests.\n\nDo not split, move, rename, or delete modules solely because a regex-based report labels them in a cycle or as potentially unreferenced.\n\n## Unreferenced module review\n\nThe report's candidates can still be loaded by entrypoints, plugin code, string-built module paths, runtime registries, or Rojo mappings. Search all loading paths and verify runtime use before any removal.\n\n## Rojo mapping\n\nCompare the filesystem paths, project `$path` mappings, and actual Instance hierarchy. The V27 filesystem dependency graph is approximate whenever Rojo maps a source directory to a different logical service path.\n\n## Change contract\n\nFor architecture changes, provide:\n- Current dependency direction and identified problem.\n- Intended module ownership and public interfaces.\n- Callers and systems affected.\n- Migration and rollback strategy.\n- Static checks and runtime tests.\n- Explicit list of unverified dynamic paths.\n","use_cases":["Reviewing Luau module boundaries and dependencies in a Roblox project","Identifying and resolving circular dependencies in a Roblox game","Ensuring proper separation of shared types and stateful services","Validating Rojo project mappings against the Studio DataModel","Planning refactors based on dependency reports"],"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-architecture-and-dependency-governance-v27\/SKILL.md","source_commit":"eb2be117f63d6442c0f9b6d9d38bbdd7adf9374c","license":null,"version":null,"listing_approved_at":"2026-11-30","created_at":"2026-11-29T11:00:43.000000Z","updated_at":"2026-11-30T06:51:47.000000Z","seo_title":"Roblox Luau Architecture Review and Dependency Governance","seo_description":"Analyze and govern Luau module dependencies, architecture, and project layering in Roblox games using V27 tools.","seo_keywords":["Roblox Luau","dependency governance","module boundaries","circular dependencies","project layering","Rojo mapping","architecture review"]}}