primitives-dsl
stusatwork-oss 제작
Web & Frontend Development요약
Universal game architecture DSL with six primitives (LOOP, TILEGRID, CONTROLBLOCK, POOL, EVENT, DISPATCHER)
설명
이 스킬이 하는 일
A DSL of six named primitives — LOOP, TILEGRID, CONTROLBLOCK, POOL, EVENT, DISPATCHER — that appear consistently across 68K-era loops, Cell/SPU orchestration, CUDA kernels, and ECS engines. Each invocation produces a Primitive Map, Dataflow Sketch, worked example, and portability notes using the same vocabulary every time.
A fixed six-primitive vocabulary eliminates architectural ambiguity when documenting or translating engine designs across platforms that share no common terminology.
사용 시점
- Porting a 2D game loop from 68K assembly to a modern ECS engine
- Explaining engine architecture to an AI agent without ambiguity
- Refactoring a tangled update cycle into explicit state and event flow
- Mapping legacy Cell/SPU code to equivalent CUDA kernel patterns
- Designing a constrained-device sim loop with bounded allocators
예시 워크플로
User asks: Apply primitives-dsl to design a loop for a classic 2D shooter
- 1
Identify LOOP phases: input, physics, collision, render
- 2
Define POOL bounds for bullet and particle slots
- 3
Name CONTROLBLOCK fields for player state flags and timers
- 4
Specify EVENT routing keys for collision and death events
- 5
Produce Primitive Map table, Dataflow Sketch, and Portability Notes for 68K, Cell, CUDA, and ECS
A table-based Primitive Map with Dataflow Sketch and platform portability notes across four architectures
설치
clawhub install stusatwork-oss/primitives-dslCLI 명령을 실행하거나, 프롬프트를 Claude Code, Cursor, Codex 등 사용하는 코딩 에이전트에 붙여넣으세요.