跳到正文
TakoAPI
返回技能列表

primitives-dsl

由 stusatwork-oss 提供

Web & Frontend Development
564下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

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. 1

    Identify LOOP phases: input, physics, collision, render

  2. 2

    Define POOL bounds for bullet and particle slots

  3. 3

    Name CONTROLBLOCK fields for player state flags and timers

  4. 4

    Specify EVENT routing keys for collision and death events

  5. 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-dsl

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接