axiom-ios-games by charleswiltgen/axiom
npx skills add https://github.com/charleswiltgen/axiom --skill axiom-ios-games对于任何游戏开发、SpriteKit、SceneKit、RealityKit 或交互式模拟工作,您必须使用此技能。
在以下情况下使用此路由器:
架构、模式和最佳实践 → /skill axiom-spritekit
API 参考和查找 → /skill axiom-spritekit-ref
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
故障排除和诊断 → /skill axiom-spritekit-diag
自动扫描 → 启动 spritekit-auditor 代理或使用 /axiom:audit spritekit(物理位掩码、绘制调用浪费、节点累积、动作内存泄漏、坐标混淆、触摸处理、缺少对象池、缺少调试叠加层)
自 iOS 26 起,SceneKit 已被软弃用。 仅用于维护现有代码。新的 3D 项目应使用 RealityKit。
维护和迁移规划 → /skill axiom-scenekit
API 参考和迁移映射 → /skill axiom-scenekit-ref
对于非游戏的 3D 内容显示(产品查看器、AR 试穿、空间计算),ios-graphics 路由器也会路由到这些 RealityKit 技能。
架构、ECS 和最佳实践 → /skill axiom-realitykit
API 参考和查找 → /skill axiom-realitykit-ref
故障排除和诊断 → /skill axiom-realitykit-diag
| 想法 | 现实 |
|---|---|
| "SpriteKit 很简单,我不需要技能" | 物理位掩码默认为 0xFFFFFFFF,会导致幽灵碰撞。位掩码清单可在 2 分钟内发现此问题。 |
| "我就用 SKShapeNode,它很快" | 每个 SKShapeNode 都是一个单独的绘制调用。50 个就是 50 次绘制调用。axiom-spritekit 提供了预渲染到纹理的模式。 |
| "我可以搞清楚坐标系" | SpriteKit 使用左下角原点(与 UIKit 相反)。锚点又增加了一层复杂性。axiom-spritekit-diag 症状 6 可在 5 分钟内解决。 |
| "物理很简单" | 三个不同的位掩码属性、回调内部的修改规则以及穿透边缘情况。axiom-spritekit 第 3 节涵盖了所有陷阱。 |
| "在我的设备上性能很好" | 不同设备间的性能差异巨大。axiom-spritekit 第 6 节提供了调试叠加层清单。 |
| "SceneKit 对我们的新项目来说没问题" | SceneKit 自 iOS 26 起已被软弃用。没有新功能,只有安全补丁。axiom-scenekit 提供了迁移决策树。 |
| "我以后再学 RealityKit" | 每一行 SceneKit 代码都是迁移债务。axiom-scenekit-ref 提供了概念映射表,使过渡具体化而非抽象化。 |
| "对于简单的 3D 应用,ECS 太复杂了" | 您已经在使用 ECS — Entity + ModelComponent。axiom-realitykit 展示了如何从简单扩展到复杂。 |
| "对于点击,我不需要碰撞形状" | RealityKit 手势需要 CollisionComponent。axiom-realitykit-diag 可在 2 分钟内诊断此问题,而不是花 30 分钟猜测。 |
| "我就用 Timer 进行游戏更新" | 基于 Timer 的更新会丢帧,并且不与渲染同步。axiom-realitykit 提供了系统模式。 |
axiom-spritekit :
0xFFFFFFFF 会导致幽灵碰撞)SKAction.run 闭包中使用 [weak self]axiom-spritekit-ref :
axiom-spritekit-diag :
showsNodeCount 趋势进行内存增长诊断axiom-scenekit :
xcrun scntool)axiom-scenekit-ref :
axiom-realitykit :
registerComponent())axiom-realitykit-ref :
axiom-realitykit-diag :
用户:"我正在构建一个 SpriteKit 游戏" → 调用:/skill axiom-spritekit
用户:"我的物理接触没有触发" → 调用:/skill axiom-spritekit-diag
用户:"如何从纹理创建物理刚体?" → 调用:/skill axiom-spritekit-ref
用户:"我的游戏帧率下降了" → 调用:/skill axiom-spritekit-diag
用户:"如何将 SpriteKit 与 SwiftUI 一起设置?" → 调用:/skill axiom-spritekit
用户:"有哪些可用的动作类型?" → 调用:/skill axiom-spritekit-ref
用户:"物体穿过了墙壁" → 调用:/skill axiom-spritekit-diag
用户:"我需要构建一个 3D 游戏" → 调用:/skill axiom-realitykit
用户:"如何将 3D 模型添加到我的 SwiftUI 应用中?" → 调用:/skill axiom-realitykit
用户:"我的 RealityKit 实体没有显示出来" → 调用:/skill axiom-realitykit-diag
用户:"如何在 RealityKit 中设置物理效果?" → 调用:/skill axiom-realitykit-ref
用户:"我正在从 SceneKit 迁移到 RealityKit" → 调用:/skill axiom-scenekit + /skill axiom-scenekit-ref
用户:"SCNNode 在 RealityKit 中的等价物是什么?" → 调用:/skill axiom-scenekit-ref
用户:"我应该为我的新 3D 项目使用 SceneKit 吗?" → 调用:/skill axiom-scenekit
用户:"点击手势在我的 RealityKit 实体上不起作用" → 调用:/skill axiom-realitykit-diag
用户:"如何在 RealityKit 中设置 ECS?" → 调用:/skill axiom-realitykit
用户:"我的 AR 内容没有跟踪" → 调用:/skill axiom-realitykit-diag
用户:"RealityKit 中有哪些可用的材质?" → 调用:/skill axiom-realitykit-ref
用户:"如何在 RealityKit 中为实体添加动画?" → 调用:/skill axiom-realitykit-ref
用户:"游戏过程中内存持续增长" → 调用:/skill axiom-spritekit-diag
用户:"火焰应该使用哪些粒子发射器设置?" → 调用:/skill axiom-spritekit-ref
用户:"你能扫描我的 SpriteKit 代码以查找常见问题吗?" → 调用:spritekit-auditor 代理
每周安装量
70
代码仓库
GitHub 星标数
601
首次出现
2026年2月5日
安全审计
安装于
opencode66
gemini-cli63
codex62
github-copilot60
kimi-cli59
amp58
You MUST use this skill for ANY game development, SpriteKit, SceneKit, RealityKit, or interactive simulation work.
Use this router when:
Architecture, patterns, and best practices → /skill axiom-spritekit
API reference and lookup → /skill axiom-spritekit-ref
Troubleshooting and diagnostics → /skill axiom-spritekit-diag
Automated scanning → Launch spritekit-auditor agent or /axiom:audit spritekit (physics bitmasks, draw call waste, node accumulation, action memory leaks, coordinate confusion, touch handling, missing object pooling, missing debug overlays)
SceneKit is soft-deprecated as of iOS 26. Use for maintenance of existing code only. New 3D projects should use RealityKit.
Maintenance and migration planning → /skill axiom-scenekit
API reference and migration mapping → /skill axiom-scenekit-ref
For non-game 3D content display (product viewers, AR try-on, spatial computing), the ios-graphics router also routes to these RealityKit skills.
Architecture, ECS, and best practices → /skill axiom-realitykit
API reference and lookup → /skill axiom-realitykit-ref
Troubleshooting and diagnostics → /skill axiom-realitykit-diag
| Thought | Reality |
|---|---|
| "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. axiom-spritekit 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. axiom-spritekit-diag Symptom 6 resolves in 5 min. |
| "Physics is straightforward" | Three different bitmask properties, modification rules inside callbacks, and tunneling edge cases. axiom-spritekit Section 3 covers all gotchas. |
| "The performance is fine on my device" | Performance varies dramatically across devices. axiom-spritekit 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-scenekit has the migration decision tree. |
| "I'll learn RealityKit later" | Every line of SceneKit is migration debt. axiom-scenekit-ref has the concept mapping table so the transition is concrete, not abstract. |
| "ECS is overkill for a simple 3D app" | You're already using ECS — Entity + ModelComponent. axiom-realitykit shows how to scale from simple to complex. |
| "I don't need collision shapes for taps" |
axiom-spritekit :
0xFFFFFFFF causes phantom collisions)[weak self] in all SKAction.run closuresaxiom-spritekit-ref :
axiom-spritekit-diag :
showsNodeCount trendingaxiom-scenekit :
xcrun scntool)axiom-scenekit-ref :
axiom-realitykit :
registerComponent())axiom-realitykit-ref :
axiom-realitykit-diag :
User: "I'm building a SpriteKit game" → Invoke: /skill axiom-spritekit
User: "My physics contacts aren't firing" → Invoke: /skill axiom-spritekit-diag
User: "How do I create a physics body from a texture?" → Invoke: /skill axiom-spritekit-ref
User: "Frame rate is dropping in my game" → Invoke: /skill axiom-spritekit-diag
User: "How do I set up SpriteKit with SwiftUI?" → Invoke: /skill axiom-spritekit
User: "What action types are available?" → Invoke: /skill axiom-spritekit-ref
User: "Objects pass through walls" → Invoke: /skill axiom-spritekit-diag
User: "I need to build a 3D game" → Invoke: /skill axiom-realitykit
User: "How do I add a 3D model to my SwiftUI app?" → Invoke: /skill axiom-realitykit
User: "My RealityKit entity isn't showing up" → Invoke: /skill axiom-realitykit-diag
User: "How do I set up physics in RealityKit?" → Invoke: /skill axiom-realitykit-ref
User: "I'm migrating from SceneKit to RealityKit" → Invoke: /skill axiom-scenekit + /skill axiom-scenekit-ref
User: "What's the RealityKit equivalent of SCNNode?" → Invoke: /skill axiom-scenekit-ref
User: "Should I use SceneKit for my new 3D project?" → Invoke: /skill axiom-scenekit
User: "Tap gestures don't work on my RealityKit entity" → Invoke: /skill axiom-realitykit-diag
User: "How do I set up ECS in RealityKit?" → Invoke: /skill axiom-realitykit
User: "My AR content isn't tracking" → Invoke: /skill axiom-realitykit-diag
User: "What materials are available in RealityKit?" → Invoke: /skill axiom-realitykit-ref
User: "How do I animate entities in RealityKit?" → Invoke: /skill axiom-realitykit-ref
User: "Memory keeps growing during gameplay" → Invoke: /skill axiom-spritekit-diag
User: "What particle emitter settings should I use for fire?" → Invoke: /skill axiom-spritekit-ref
User: "Can you scan my SpriteKit code for common issues?" → Invoke: spritekit-auditor agent
Weekly Installs
70
Repository
GitHub Stars
601
First Seen
Feb 5, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode66
gemini-cli63
codex62
github-copilot60
kimi-cli59
amp58
| RealityKit gestures require CollisionComponent. axiom-realitykit-diag diagnoses this in 2 min vs 30 min guessing. |
| "I'll just use a Timer for game updates" | Timer-based updates miss frames and aren't synchronized with rendering. axiom-realitykit has the System pattern. |