# Send Universal Game Primitives to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "primitives-dsl",
    "name": "Universal Game Primitives",
    "source": "tencent",
    "type": "skill",
    "category": "AI 智能",
    "sourceUrl": "https://clawhub.ai/stusatwork-oss/primitives-dsl",
    "canonicalUrl": "https://clawhub.ai/stusatwork-oss/primitives-dsl",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/primitives-dsl",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=primitives-dsl",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "assets/quick_card.md",
      "references/architecture_mapping.md",
      "references/example_mall_tick.md",
      "references/example_npc_step.md",
      "references/example_shooter.md",
      "SKILL.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "primitives-dsl",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-04T07:46:58.020Z",
      "expiresAt": "2026-05-11T07:46:58.020Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=primitives-dsl",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=primitives-dsl",
        "contentDisposition": "attachment; filename=\"primitives-dsl-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "primitives-dsl"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/primitives-dsl"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/primitives-dsl",
    "downloadUrl": "https://openagent3.xyz/downloads/primitives-dsl",
    "agentUrl": "https://openagent3.xyz/skills/primitives-dsl/agent",
    "manifestUrl": "https://openagent3.xyz/skills/primitives-dsl/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/primitives-dsl/agent.md"
  }
}
```
## Documentation

### What this skill does

Provides a small, portable DSL of six universal primitives that appear across 68K-era loops, Cell/PPU+SPU orchestration, CUDA/GPU kernels, and modern ECS engines.

Primitives: LOOP · TILEGRID · CONTROLBLOCK · POOL · EVENT · DISPATCHER

Use this skill to:

Design a game/sim loop that ports cleanly across platforms
Translate between architectures (68K ↔ Cell ↔ CUDA ↔ ECS)
Explain engine structure to AI agents with minimal ambiguity
Produce "worked examples" using the same primitive vocabulary every time

### When to use it

Starting a new subsystem and want a portable mental model
Refactoring chaos into explicit state + flow
Mapping legacy code to modern patterns
Designing constrained-device / edge / "shareware for the future" loops

### When NOT to use it

Don't invent new primitives (keep the vocabulary stable)
Don't debate engine religion (Unity vs Unreal vs custom). Translate, don't preach.
Don't skip the concrete artifact: every use must end in a diagram, table, or pseudocode

### The DSL (definitions)

LOOP
A repeated update cycle with explicit phases. Owns time slicing and ordering.

TILEGRID
A spatial index with stable adjacency rules (2D/3D grids, nav tiles, zone cells, chunk maps).

CONTROLBLOCK
A compact, authoritative state record (flags, counters, handles, timers) used to coordinate behavior and enforce constraints.

POOL
A bounded allocator for frequently-created things (entities, bullets, particles, jobs). No unbounded new in hot paths.

EVENT
A structured message representing "something happened" with minimal payload and explicit routing metadata.

DISPATCHER
Routes work and events to handlers (CPU threads, SPUs, GPU kernels, ECS systems). Also where scheduling policy lives.

### Output contract (what you must produce)

When invoked, produce:

Primitive Map — Identify which parts of the system correspond to each primitive
Dataflow Sketch — Text diagram or table describing movement of state/events
One Worked Example — Or cite an existing example file
Portability Notes — How this maps to 68K / Cell / CUDA / ECS

### Invocation patterns (copy/paste prompts)

"Apply primitives-dsl to design a loop for ___ . Provide a Primitive Map + Dataflow + Portability."

"Translate this architecture into LOOP/TILEGRID/CONTROLBLOCK/POOL/EVENT/DISPATCHER."

"Given these constraints (___), propose a primitives-dsl design and a worked example."

### Guardrails / style rules

Use primitive names in ALL CAPS
Prefer tables over paragraphs for mappings
Use tight pseudocode (no full implementations)
Always name the CONTROLBLOCK fields explicitly
Always specify POOL bounds (even if guessed)
EVENTS must have a routing key or channel
DISPATCHER must declare policy: FIFO, priority, fixed-step, budgeted, etc.

### References

Quick Card: assets/quick_card.md — One-page reference
Architecture Mapping: references/architecture_mapping.md — Platform translation table + full code examples
Worked Examples:

references/example_shooter.md — Classic shooter loop
references/example_mall_tick.md — GLITCHDEXMALL zone sim
references/example_npc_step.md — NPC state machine step

### External Resources

Anthropic Skills Repository — Skill creation patterns
Alien Bash II — 68K source extraction (Glenn Cumming, open domain)
NVIDIA CUDA Programming Guide — Modern GPU primitive patterns
Cell Broadband Engine Programming Handbook — SPE work distribution
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: stusatwork-oss
- Version: 1.0.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-04T07:46:58.020Z
- Expires at: 2026-05-11T07:46:58.020Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/primitives-dsl)
- [Send to Agent page](https://openagent3.xyz/skills/primitives-dsl/agent)
- [JSON manifest](https://openagent3.xyz/skills/primitives-dsl/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/primitives-dsl/agent.md)
- [Download page](https://openagent3.xyz/downloads/primitives-dsl)