/luau-kb:luau-robloxfrom luau-kb
Roblox typing and test setup: luau-lsp definition files and sourcemap, typing GetService, Instance.new, FindFirstChild and IsA, luau CLI mocks vs Studio, Studio MCP. Use when Roblox API types fail or deciding mock vs Studio. Engine behavior is roblox-engine/net/world. 트리거: mock 으로 충분해?, Studio MCP, 정의 파일 설정.
Ships in luau-kb. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
"Roblox 위의 Luau 코드를 어떻게 타입 검사하고, 어떻게 믿을 만하게 시험하나"를 다룬다. 엔진이 실제로 어떻게 동작하나는 roblox-engine·roblox-net·roblox-world 가, 공식 문서 조회는 roblox-docs 가 맡는다. 출발점은 사용자 결정 D-03 이다(decisions/).
luau CLI 다. 엔진 의존 동작은 필요한 부분만 mock 으로 만든다. lune 은 쓰지 않는다.luau-lsp --platform=roblox + 정의 파일에서만 나온다. luau-analyze 는 Instance 를 모른다.references/env-dependence.md §1–2mock 흉내: 줄에 있다. → references/mocks.mdreturn 하고, Deferred 결과는 두 번째 호출에서 읽는다. → references/studio-mcp.md--platform=roblox 로 검사하는지 본다(references/typedefs.md). 그다음 API 별 타입 규칙(references/api-types.md). API 시그니처 자체는 추측하지 말고 roblox-docs 의 api 로 확인한다.| 상황 / 질문 | 읽을 곳 |
|---|---|
| 이 테스트에 Studio 가 필요한가, luau+mock 으로 되나 | references/env-dependence.md §2 |
| 판정 절차, task·신호·Instance 수명의 요약 | references/env-dependence.md §3–5 |
| mock 범위, mock 보다 주입, getfenv 전역 주입 | references/mocks.md §1–3 |
| 검증된 mock 모양, 엔진과의 차이 기록, 충실도 검증 | references/mocks.md §4–7 |
| Studio MCP 도구, 여러 Studio 고르기, studio-sync, 실측 관용구, 내장 skill | references/studio-mcp.md |
Instance.new·GetService·Clone 의 타입 | references/api-types.md §2 |
FindFirstChild·WaitForChild 의 nil, 자식 접근, sourcemap 자식 타입 | references/api-types.md §3–4 |
IsA·ClassName 좁히기, 캐스트 | references/api-types.md §5 |
GetAttribute 가 unknown?, typeof 대 type, Enum 타입 | references/api-types.md §6–8 |
| 이벤트·데이터 타입, 타입이 런타임보다 낙관적인 자리, 검사기가 못 잡는 엔진 호출 | references/api-types.md §9–11 |
game 이 Unknown global, Instance.new 가 any, globalTypes·--definitions | references/typedefs.md §1–3 |
| Rojo sourcemap, LSP 세션(에디터·Claude Code·lsp_probe) | references/typedefs.md §4–5 |
| API 시그니처·보안·스레드 안전성·deprecated 의 문서 근거 | roblox-docs (tools/roblox_docs.py api) |
| 엔진 동작(신호, Instance, Tween, task, Actor, Studio require) | roblox-engine |
| 원격·복제·서비스 / GUI·물리·캐릭터 | roblox-net / roblox-world |
| 순수 Luau 타입, 검사기 옵션, 테스트 하네스 | luau-types, luau-verify, luau-testing |
luau-analyze 로는 Roblox 타입을 볼 수 없다. 정의 파일 없이 --platform=roblox 만 주면 Unknown global 'Instance' 다.GetAttribute 는 unknown? 이다. 쓰기 전에 typeof 로 좁힌다.Changed 1회), 동기로 배달해 Deferred 를 숨기기 쉽다. 차이를 목록으로 남긴다.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub qwreey/qwreey-harness --plugin luau-kb12 skills in this plugin
/luau-perfMeasured Luau performance: benchmark method, metatable, table, closure and string costs, -O2 and --!native effects, GC pressure. Use when Luau code is slow, optimization is asked, or a benchmark is written or read. Engine API cost is roblox-engine. 트리거: 코드가 느려, 최적화해 줘, 벤치마크./luau-runtimeLuau semantics without the Roblox engine: weak tables and GC leaks, swallowed coroutine errors, require-by-string in the luau CLI (init.luau, @self, aliases). Use when weak entries persist, a coroutine error vanishes, or require cannot resolve. In-engine behavior is roblox-engine. 트리거: weak table 안 사라짐, 코루틴 에러 삼킴, require 안 풀림./luau-styleLuau style and idioms with rationale: naming, modules and file splitting, error handling, comments, stylua, and traps the checker misses (table.insert, nil varargs, patterns). Use when writing or reviewing .luau files. Type defects are luau-types; require is luau-runtime. 트리거: 네이밍 기준, 파일 분리, 스타일 리뷰./luau-testingWriting and running Luau tests: luau CLI runner (exit codes, assert, pcall), -O1 vs -O2, golden files, mocks, time-dependent logic (debounce, timers, virtual clock) and GC. Use when writing specs or a runner, or a test fails only under -O2. Check results are luau-verify. 트리거: 테스트 러너 짜기, -O2 에서만 깨짐, 디바운스·타이머 시험./luau-typesHow the Luau type system behaves and breaks: generic inference and f<<T>>, narrowing, recursive aliases, "Code is too complex to typecheck", type functions, false positives, old vs new solver. Use when a .luau type error is confusing or correct code is rejected. Tools are luau-verify; Roblox API types are luau-roblox. 트리거: 타입 에러 이해 안 됨, 제네릭 추론./luau-upstreamLuau ecosystem changes (releases, RFCs, luau-lsp, StyLua, rojo): whether a type limitation is fixed upstream, whether new syntax is safe, and the version-bump procedure. Use when bumping a tool, diagnostics change after an update, or asking if an RFC is usable. 트리거: 버전 올려도 돼?, 업스트림에서 고쳐져?, RFC.Other plugins' skills for the same job