Axiom Games 标志

Axiom Games

社区热门
CharlesWiltgen
axiom-games

使用 SpriteKit、SceneKit 或 RealityKit 构建任何 2D 或 3D 游戏,或添加触控操作或游戏控制器支持时使用。涵盖场景图、ECS、物理效果、动作、游戏循环、渲染、TouchController 和 GCController。

Add to TypingMind

概览

发布者CharlesWiltgen
代码仓库Axiom
技能名称axiom-games
星标数
1.2K
复刻数
86
附带文件
5
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 5 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 CharlesWiltgen 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Axiom Games AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/CharlesWiltgen/Axiom/tree/main/axiom-codex/skills/axiom-games
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/CharlesWiltgen/Axiom.git /tmp/Axiom
mkdir -p .claude/skills
cp -r /tmp/Axiom/axiom-codex/skills/axiom-games .claude/skills/axiom-games
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Axiom Games,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Axiom Games。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Axiom Games 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Games

You MUST use this skill for ANY game development, SpriteKit, SceneKit, RealityKit, touch controls, game controller, or interactive simulation work.

Auditors are skills here. Where this router says "Launch some-auditor agent", invoke the matching Codex skill instead — same procedure, no Claude Code agent required.

Available: axiom-audit-spritekit.

The ones that shell out — builds, tests, simulators, crash symbolication — need shell access to run.

Quick Reference

Symptom / TaskReference
Building a SpriteKit gameSee skills/spritekit.md
Adding touch controls to a game (TouchController)See skills/game-input.md
Game controller input (GCController, polling vs handlers)See skills/game-input.md
Controller Home button settings, spatial accessories OS27See skills/game-input.md
Game window resizing, orientation lock, UIRequiresFullScreen OS27See axiom-uikit (skills/uikit-modernization.md)
SpriteKit API lookupSee skills/spritekit-ref.md
Physics contacts not firingSee skills/spritekit-diag.md
Frame rate drops (SpriteKit)See skills/spritekit-diag.md
Touches not registeringSee skills/spritekit-diag.md
Memory spikes in gameplaySee skills/spritekit-diag.md
Coordinate confusionSee skills/spritekit-diag.md
Scene transition crashesSee skills/spritekit-diag.md
Objects tunneling through wallsSee skills/spritekit-diag.md
SpriteKit node/action referenceSee skills/spritekit-ref.md
SceneKit maintenance/migrationSee axiom-graphics (skills/scenekit.md)
SceneKit API / migration mappingSee axiom-graphics (skills/scenekit-ref.md)
RealityKit (3D, ECS, AR)See axiom-graphics (skills/realitykit.md)
RealityKit API referenceSee axiom-graphics (skills/realitykit-ref.md)
RealityKit diagnosticsSee axiom-graphics (skills/realitykit-diag.md)
RealityKit 27 game features (navmesh, LOD, splats)See axiom-graphics (skills/realitykit-ref.md Part 10)
Long-session game performance tracing (metalperftrace)See axiom-graphics (skills/display-performance.md Part 12)
Porting a Mac/Windows game to MetalSee axiom-graphics (skills/metal-migration.md)
In-game content, asset packs, IAPSee axiom-integration (skills/background-assets.md, skills/in-app-purchases.md)

External Routes

These topics are part of the broader games/3D domain but live in separate skill suites:

SceneKit (3D — soft-deprecated iOS 26):

  • Maintenance and migration planning → See axiom-graphics (skills/scenekit.md)
  • API reference and migration mapping → See axiom-graphics (skills/scenekit-ref.md)

RealityKit (3D — modern):

  • ECS architecture, AR, SwiftUI integration → See axiom-graphics (skills/realitykit.md)
  • API reference → See axiom-graphics (skills/realitykit-ref.md)
  • Troubleshooting → See axiom-graphics (skills/realitykit-diag.md)
  • 27-cycle game-engine layer: navigation mesh + pathfinding, behavior trees, animation graphs, LOD, Gaussian splats → See axiom-graphics (skills/realitykit-ref.md Part 10)

Game performance and porting:

  • Long-session game traces, metalperftrace CLI, Game Performance Overview template → See axiom-graphics (skills/display-performance.md Part 12)
  • Metal migration, shader conversion → See axiom-graphics (skills/metal-migration.md)

In-game content and monetization:

  • Apple-Hosted Background Assets, asset packs, Steam depot conversion → See axiom-integration (skills/background-assets.md)
  • In-app purchase, StoreKit views → See axiom-integration (skills/in-app-purchases.md)

Windowing and orientation (OS27):

  • Every app resizes at 27, iPhone included. UIRequiresFullScreen now means discrete snap-resizing for games (not a fullscreen opt-out); orientation lock is a preference; minimum size via sizeRestrictions → See axiom-uikit (skills/uikit-modernization.md)
  • Game runs in iPhone Mirroring: trackpad/mouse input reaches custom gestures as indirect events, and the scene always reports portrait → See axiom-uikit (skills/uikit-modernization.md)
  • Metal drawable sizing, render-target reallocation, and quality throttling during live resize → See axiom-graphics (skills/resizable-rendering.md)

Decision Tree

dot
digraph games {
    start [label="Game development" shape=ellipse];
    what [label="Which framework?" shape=diamond];
    sprite_what [label="SpriteKit need?" shape=diamond];

    start -> what;
    what -> sprite_what [label="SpriteKit (2D)"];
    what -> "skills/game-input.md" [label="touch controls / game controllers"];
    what -> "axiom-graphics/scenekit" [label="SceneKit (3D legacy)"];
    what -> "axiom-graphics/realitykit" [label="RealityKit (3D modern)"];
    what -> "axiom-graphics/metal-migration" [label="porting (Metal)"];

    sprite_what -> "skills/spritekit.md" [label="architecture/patterns"];
    sprite_what -> "skills/spritekit-ref.md" [label="API lookup"];
    sprite_what -> "skills/spritekit-diag.md" [label="broken/slow"];
}
  1. Building/designing a 2D SpriteKit game? → skills/spritekit.md
  2. How to use a specific SpriteKit API? → skills/spritekit-ref.md
  3. SpriteKit broken or performing badly? → skills/spritekit-diag.md
  4. Adding touch controls, or handling game controller input? → skills/game-input.md
  5. Maintaining existing SceneKit code? → See axiom-graphics (skills/scenekit.md)
  6. SceneKit API reference or migration mapping? → See axiom-graphics (skills/scenekit-ref.md)
  7. Building new 3D game or experience? → See axiom-graphics (skills/realitykit.md)
  8. How to use a specific RealityKit API? → See axiom-graphics (skills/realitykit-ref.md)
  9. RealityKit entity not visible, gestures broken, performance? → See axiom-graphics (skills/realitykit-diag.md)
  10. Migrating SceneKit to RealityKit? → See axiom-graphics (skills/scenekit.md) (migration tree) + See axiom-graphics (skills/scenekit-ref.md) (mapping table)
  11. Building AR game? → See axiom-graphics (skills/realitykit.md)
  12. Porting a Mac/Windows game to Apple platforms? → See axiom-graphics (skills/metal-migration.md)
  13. Unlocking in-game content (asset packs, IAP)? → See axiom-integration (skills/background-assets.md, skills/in-app-purchases.md)
  14. Game needs fullscreen/orientation lock, or breaks when its window resizes? → See axiom-uikit (skills/uikit-modernization.md)
  15. Want automated SpriteKit code scan? → spritekit-auditor agent

Automated Scanning

SpriteKit audit → axiom-audit-spritekit

Detects anti-patterns AND architectural gaps:

  • Physics bitmask issues (default 0xFFFFFFFF, missing contactTestBitMask, magic numbers)
  • Draw call waste (SKShapeNode in gameplay, missing texture atlases)
  • Node accumulation and runaway spawn-in-update() without cleanup
  • Action memory leaks (strong self, .repeatForever without withKey:)
  • Coordinate confusion (touch.location(in: self.view) instead of in: self)
  • Silent input dead zones (custom touchesBegan without isUserInteractionEnabled)
  • Missing object pooling for hot spawns
  • Missing/ungated debug overlays
  • Leaked scenes (transition without removeAllActions() and child cleanup)
  • Missing time-step clamping → spiral-of-death teleports bodies through walls
  • HUD attached to scene root instead of camera (drifts with scrolling)
  • Fast bodies without usesPreciseCollisionDetection (tunneling)

Scores: PERFORMANT / DEGRADED / UNPLAYABLE

Critical Patterns

SpriteKit (skills/spritekit.md):

  • PhysicsCategory struct with explicit bitmasks (default 0xFFFFFFFF causes phantom collisions)
  • Camera node pattern for viewport + HUD separation
  • SKShapeNode pre-render-to-texture conversion
  • [weak self] in all SKAction.run closures
  • Delta time with spiral-of-death clamping

SpriteKit diagnostics (skills/spritekit-diag.md):

  • 5-step bitmask checklist (2 min vs 30-120 min guessing)
  • Debug overlays as mandatory first diagnostic step
  • Tunneling prevention flowchart
  • Memory growth diagnosis via showsNodeCount trending

Game input (skills/game-input.md):

  • One GCController pipeline — touch controls surface as a GCController, existing logic unchanged
  • TCTouchController.isSupported gate + connect/render/touch-routing setup
  • Half-screen collider shapes for movement and camera (never small circles)
  • Safe-area-adjusted anchor offsets for fullscreen games
  • GCMouse delta look/aim + GCKeyboard key state (iPad pointer, iPhone Mirroring)
  • Controller Home button settings + visionOS spatial accessories OS27

Anti-Rationalization

ThoughtReality
"SpriteKit is simple, I don't need a skill"Physics bitmasks default to 0xFFFFFFFF and cause phantom collisions. The bitmask checklist catches this in 2 min.
"I'll just use SKShapeNode, it's quick"Each SKShapeNode is a separate draw call. 50 of them = 50 draw calls. spritekit.md has the pre-render-to-texture pattern.
"I can figure out the coordinate system"SpriteKit uses bottom-left origin (opposite of UIKit). Anchor points add another layer. spritekit-diag.md Symptom 6 resolves in 5 min.
"Physics is straightforward"Three different bitmask properties, modification rules inside callbacks, and tunneling edge cases. spritekit.md Section 3 covers all gotchas.
"The performance is fine on my device"Performance varies dramatically across devices. spritekit.md Section 6 has the debug overlay checklist.
"SceneKit is fine for our new project"SceneKit is soft-deprecated iOS 26. No new features, only security patches. axiom-graphics (skills/scenekit.md) has the migration decision tree.
"ECS is overkill for a simple 3D app"You're already using ECS — Entity + ModelComponent. axiom-graphics (skills/realitykit.md) shows how to scale from simple to complex.
"I don't need collision shapes for taps"RealityKit gestures require CollisionComponent. axiom-graphics (skills/realitykit-diag.md) diagnoses this in 2 min vs 30 min guessing.
"I'll overlay UIButtons for touch controls"TouchController renders in your Metal pass and surfaces as a GCController — existing controller logic just works. UIButton overlays mean a second input path and per-frame UIKit cost. game-input.md Section 2.
"Touch controls = put every controller button on screen"A 1:1 mapping clutters the play area and demands 3+ fingers. game-input.md Section 5 has the redesign patterns (context icons, hide unused, collapse combos).
"Games are fullscreen — resizability doesn't apply to me"At 27 every app resizes, iPhone included. UIRequiresFullScreen only gets a game discrete snap-resizing, not a fixed canvas. axiom-uikit (skills/uikit-modernization.md) has the scene-geometry and minimum-size patterns.

Example Invocations

User: "I'm building a SpriteKit game" → See skills/spritekit.md

User: "My physics contacts aren't firing" → See skills/spritekit-diag.md

User: "How do I create a physics body from a texture?" → See skills/spritekit-ref.md

User: "Frame rate is dropping in my game" → See skills/spritekit-diag.md

User: "What action types are available?" → See skills/spritekit-ref.md

User: "Objects pass through walls" → See skills/spritekit-diag.md

User: "I'm porting my controller game to iPhone and need touch controls" → See skills/game-input.md

User: "How do I handle game controller input?" → See skills/game-input.md

User: "How do I read spatial accessory input on visionOS?" → See skills/game-input.md

User: "My game's layout breaks when the window is resized" → See axiom-uikit (skills/uikit-modernization.md)

User: "I need to build a 3D game" → Invoke: See axiom-graphics (skills/realitykit.md)

User: "I'm migrating from SceneKit to RealityKit" → Invoke: See axiom-graphics (skills/scenekit.md) + See axiom-graphics (skills/scenekit-ref.md)

User: "Can you scan my SpriteKit code for common issues?" → axiom-audit-spritekit

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Axiom Games AI 技能有什么作用?

使用 SpriteKit、SceneKit 或 RealityKit 构建任何 2D 或 3D 游戏,或添加触控操作或游戏控制器支持时使用。涵盖场景图、ECS、物理效果、动作、游戏循环、渲染、TouchController 和 GCController。

为什么在 TypingMind 中使用 Axiom Games?

因为您只需安装一次,就能搭配任何模型使用。Axiom Games 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Axiom Games?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/CharlesWiltgen/Axiom/tree/main/axiom-codex/skills/axiom-games。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Axiom Games?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Axiom Games 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Axiom Games 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Axiom Games AI 技能免费吗?

是的。CharlesWiltgen 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇