spritekit — Claude Code skill for 2D games in SpriteKit
A skill that gives your coding agent a SpriteKit reference: scenes, sprites, physics, particles and SwiftUI integration for 2D games.
npx skills add dpearson2699/swift-ios-skills --skill spritekit -a claude-codeWhat spritekit does
The skill covers SpriteKit on iOS 26+ with Swift 6.3. It walks through scenes built on SKScene and SKView, sprites with SKSpriteNode, animation via SKAction, physics with SKPhysicsBody and contact detection, particles from SKEmitterNode, tile maps, SKCameraNode, and embedding scenes in SwiftUI with SpriteView.
Sections are split by topic: scene setup, nodes and sprites, actions, physics, touch handling, camera, effects, SwiftUI integration. There is also a common-mistakes section and a review checklist. Your agent pulls from this when you ask it to build a game scene or debug collisions.
The material targets iOS 26+ and Swift 6.3, so examples may not compile on older versions. Install runs through npx skills add; GitHub Copilot users get a separate gh skill install command.
What it helps with
- build a game scene on SKScene from scratch
- set up collision masks for physics bodies
- animate a sprite from a texture sequence
- add a particle burst for an explosion
- embed a SpriteKit scene in a SwiftUI view
Example prompts for the agent
- create an SKScene with a player and ground, add physics
- set contactTestBitMask so the player detects enemy contact
- show me how to embed SpriteView in a SwiftUI screen
How to install spritekit
1Skills CLI (Vercel)
npx skills add dpearson2699/swift-ios-skills --skill spritekit -a claude-code2Manually: put the files in place
~/.claude/skills/spritekit/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/spritekit/
1Skills CLI (Vercel)
npx skills add dpearson2699/swift-ios-skills --skill spritekit -a codex2Manually: put the files in place
.agents/skills/spritekit/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add dpearson2699/swift-ios-skills --skill spritekit -a cursor2Manually: put the files in place
.cursor/skills/spritekit/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install dpearson2699/swift-ios-skills spritekit2Manually: put the files in place
.github/skills/spritekit/SKILL.md1Skills CLI (Vercel)
npx skills add dpearson2699/swift-ios-skills --skill spritekit -a gemini-cli2Platform CLI
gemini skills install https://github.com/dpearson2699/swift-ios-skills --path skills/spritekitManually: put the files in place
.devin/skills/spritekit/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add dpearson2699/swift-ios-skills --skill spritekit -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about spritekit
How do I install spritekit in Claude?
Run npx skills add dpearson2699/swift-ios-skills --skill spritekit -a claude-code. The skill lands in ~/.claude/skills/spritekit/SKILL.md.
What does spritekit do?
It hands your agent a SpriteKit reference covering scenes, sprites, actions, physics, particles, camera and SwiftUI integration. Useful when writing 2D game code without digging through docs.
Which versions does the skill target?
It targets iOS 26+ and Swift 6.3. On older versions some examples from the skill may not compile.