From game-dev-skills
Guide GameplayKit simulation and gameplay-architecture work. Use when Codex works on GKEntity, GKComponent, GKComponentSystem, GKState, GKStateMachine, GKGraph, GKAgent, GKGoal, GKBehavior, GKRandom, SpriteKit or SceneKit integration, pathfinding, agents, state machines, reusable gameplay logic, or game simulation validation.
How this skill is triggered — by the user, by Claude, or both
Slash command
/game-dev-skills:gameplaykit-simulation-workflowThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
When a task combines SwiftData with SwiftUI, keep SwiftData directly coupled to SwiftUI through Apple's data-driven path: `modelContainer`, environment `modelContext`, `@Query`, SwiftData model objects, and bindings. Do not add repositories, stores, service layers, DTO mirrors, view-model caches, wrapper objects, or other abstraction layers between SwiftData and SwiftUI. If this skill is not th...
When a task combines SwiftData with SwiftUI, keep SwiftData directly coupled to SwiftUI through Apple's data-driven path: modelContainer, environment modelContext, @Query, SwiftData model objects, and bindings. Do not add repositories, stores, service layers, DTO mirrors, view-model caches, wrapper objects, or other abstraction layers between SwiftData and SwiftUI. If this skill is not the right owner for SwiftData-backed SwiftUI work, hand off to apple-dev-skills:swiftui-app-architecture-workflow instead of inventing an intermediate data layer.
Use this skill when the problem is gameplay logic rather than rendering. GameplayKit is the owner when entities, components, systems, states, agents, pathfinding, or reproducible gameplay services need to stay separate from SpriteKit, SceneKit, RealityKit, SwiftUI, or ad hoc view code.
Use Xcode MCP DocumentationSearch, Xcode-local documentation, Dash Apple API Reference docsets, or readable official Apple documentation before making GameplayKit-specific claims. Generic no-JS web search/open results, snippets, metadata shells, or bare Apple Developer URLs are not enough evidence that Apple docs were read:
Apple documents GameplayKit as a framework for organizing game logic and providing reusable gameplay features such as random number generation, AI, pathfinding, and agent behavior. Use that boundary to keep simulation out of renderer-specific code unless the project intentionally couples them.
import GameplayKitGKEntity, GKComponent, GKComponentSystemGKState, GKStateMachineGKGraph, GKGraphNode, GKGridGraphGKAgent, GKAgent2D, GKAgent3D, GKGoal, GKBehavior, GKPathGKRandomSource, GKRandomDistribution, GKRuleSystemGKScene, GKSKNodeComponent, and SpriteKit scene-editor integrationGKSKNodeComponent or explicit adapter components when SpriteKit nodes and GameplayKit entities need to stay synchronized.spritekit-game-workflow when SpriteKit scene, node, action, physics, or .sks behavior owns the work.scenekit-game-workflow when SceneKit scene graph, assets, camera, lighting, or 3D physics owns the work.xcode-game-profiling-workflow when per-frame component updates, pathfinding, agents, or renderer synchronization become performance-sensitive.swift-lang for general Swift API design, concurrency, error handling, source organization, or test style that is not game-specific.apple-dev-skills:xcode-testing-workflow for Xcode test plans, UI tests, Instruments, xctrace, or test execution mechanics.Return the GameplayKit owner, selected GameplayKit surface, renderer synchronization boundary, files or systems changed, pure-test path, integration validation path, and remaining open gameplay decisions.
npx claudepluginhub gaelic-ghost/socket --plugin game-dev-skillsCreates, edits, and verifies skills using a test-driven development approach with pressure scenarios and subagents.