Build 2D games and animations using SpriteKit for iOS. Covers SKScene, SKSpriteNode, SKAction, SKPhysicsBody, SKEmitterNode, tile maps, SKCameraNode, and SwiftUI integration with SpriteView.
Ships in all-ios-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Build 2D games and interactive animations for iOS 26+ using SpriteKit and Swift 6.3. Covers scene lifecycle, node hierarchy, actions, physics, particles, camera, touch handling, and SwiftUI integration.
SKScene identity stable when hosted by SpriteView.// DON'T: Scene is recreated on every body evaluation
var body: some View {
SpriteView(scene: GameScene(size: CGSize(width: 390, height: 844)))
}
// DO: Create once and reuse
@State private var scene = GameScene(size: CGSize(width: 390, height: 844))
var body: some View {
SpriteView(scene: scene)
}
A node can only have one parent. Remove from the current parent first or create a separate instance. Adding a node that already has a parent crashes.
// DON'T: Bodies collide but didBegin is never called
player.physicsBody?.categoryBitMask = PhysicsCategory.player
enemy.physicsBody?.categoryBitMask = PhysicsCategory.enemy
// DO: Set contactTestBitMask to receive contact callbacks
player.physicsBody?.contactTestBitMask = PhysicsCategory.enemy
SKShapeNode uses a separate draw call per instance. Prefer SKSpriteNode
with a texture for repeated elements to enable batched rendering.
// DON'T
enemy.run(SKAction.moveBy(x: -800, y: 0, duration: 3.0))
addChild(enemy)
// DO: Remove after leaving the visible area
enemy.run(SKAction.sequence([
SKAction.moveBy(x: -800, y: 0, duration: 3.0),
SKAction.removeFromParent()
]))
addChild(enemy)
Set physicsWorld.contactDelegate = self in didMove(to:), not in
update(_:) or after a delay.
didMove(to:) for setup, not initscaleMode chosen appropriately for the game's designignoresSiblingOrder set to true on SKView for performancezPosition used consistently when ignoresSiblingOrder is enabledcontactDelegate set in didMove(to:)contactTestBitMask set for any pair needing didBegin/didEnd callbacksisDynamic = falseSKShapeNode avoided in performance-critical paths; SKSpriteNode preferred.removeFromParent() in sequencetargetNode set when particles should stay in world space@State when used with SpriteView in SwiftUIupdate(_:) uses delta time for frame-rate-independent movementWhat SKILL.md sets; muted values are Claude Code's defaults
95 skills in this plugin
/accessorysetupkitDiscover and configure Bluetooth and Wi-Fi accessories using AccessorySetupKit. Use when presenting a privacy-preserving accessory picker, defining discovery descriptors for BLE or Wi-Fi devices, handling accessory session events, migrating from CoreBluetooth permission-based scanning, or setting up accessories without requiring broad Bluetooth permissions./activitykitBuild or review Live Activities and Dynamic Island experiences with ActivityKit, including lifecycle, layouts, push updates, and scheduled delivery. Use for time-sensitive Lock Screen or Dynamic Island state; route ordinary widgets to widgetkit./adattributionkitMeasure ad effectiveness with privacy-preserving attribution using AdAttributionKit. Use when registering ad impressions, handling attribution postbacks, updating conversion values, implementing re-engagement attribution, configuring publisher or advertiser apps, or replacing SKAdNetwork with AdAttributionKit for ad measurement./all-ios-skills:spritekitfrom all-ios-skills
npx claudepluginhub thienqo/ios-skills --plugin all-ios-skillsOther plugins' skills for the same job