solana-game

Solana game development with Unity, React Native, and web. Extends solana-dev-skill with gaming-specific patterns including Solana.Unity-SDK, Mobile Wallet Adapter, PlaySolana/PSG1, wallet integration, NFT systems, transaction building, and game architecture. For program development (Anchor, Pinocchio), delegates to core solana-dev skill.

install
source · Clone the upstream repo
git clone https://github.com/solanabr/solana-game-skill
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/solanabr/solana-game-skill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skill" ~/.claude/skills/solanabr-solana-game-skill-solana-game && rm -rf "$T"
manifest: skill/SKILL.md
source content

Solana Game Development Skill

Extends: solana-dev-skill - Core Solana development (programs, frontend, testing, security)

What This Skill Is For

Use this skill when the user asks for:

Unity Game Development

  • Unity game development with Solana integration
  • Wallet connection in Unity (Phantom, Solflare, InGame, Web3Auth)
  • NFT loading, display, and game asset integration
  • Transaction building and signing in C#
  • PlaySolana/PSG1 console development

Mobile Game Development (React Native)

  • React Native mobile games with Solana
  • Mobile Wallet Adapter integration
  • Offline-first game architecture
  • Deep linking with Solana wallets
  • Cross-platform iOS/Android development

Web Frontend (Gaming Context)

  • Next.js/React frontends with Solana
  • Wallet connection with framework-kit
  • NFT galleries and game UIs
  • Transaction UX patterns

Game Architecture

  • On-chain vs off-chain game state
  • Player progression and achievements
  • Token economics and in-game currencies
  • Multiplayer architecture with blockchain validation

Program Development (Delegate to Core Skill)

Default Stack Decisions (Opinionated)

1) Unity Games: Unity 6000+ LTS

  • Solana.Unity-SDK 3.1.0+ via UPM
  • Modern Input System, UI Toolkit
  • .NET 9 / C# 13
  • Assembly definitions for organization

2) Mobile Games: React Native 0.76+ with Expo

  • Mobile Wallet Adapter 2.x
  • Zustand 5.x for state
  • MMKV 3.x for storage
  • TanStack Query 5.x for RPC data

3) Web: framework-kit first

  • @solana/client + @solana/react-hooks
  • @solana/kit for transactions
  • Next.js 15 with App Router

4) Testing

  • Unity: Edit Mode + Play Mode tests
  • React Native: Jest + RNTL + Detox
  • Web: Vitest + React Testing Library
  • Programs: LiteSVM, Mollusk, Surfpool (see core skill)

5) Platform Targets

  • Default: Desktop (Windows/macOS) and WebGL
  • Mobile: When explicitly specified
  • PSG1: When explicitly targeting PlaySolana

Operating Procedure

1. Classify the Task Layer

LayerExamplesSkill File(s)
Unity/C#Game mechanics, UI, walletunity-sdk.md, csharp-patterns.md
Mobile/RNMobile apps, MWA, offlinemobile.md, react-native-patterns.md
Web/FrontendNext.js, React, walletfrontend-framework-kit.md
Game ArchitectureOn-chain state, economicsgame-architecture.md
Program/AnchorOn-chain game logicprograms-anchor.md
Program/PinocchioHigh-perf programsprograms-pinocchio.md

2. Pick the Right Agent

Task TypeAgentModel
High-level designgame-architectopus
Unity codeunity-engineersonnet
Mobile codemobile-engineersonnet
Learning/tutorialssolana-guidesonnet
Documentationtech-docs-writersonnet

3. Apply Platform-Specific Patterns

Unity:

  • Use WalletService pattern with events
  • TransactionBuilder for building transactions
  • NFTService with texture caching
  • Async/await for all blockchain operations

React Native:

  • Mobile Wallet Adapter for wallet connection
  • Zustand stores for game state
  • MMKV for offline persistence
  • Network-aware sync patterns

Web:

  • framework-kit hooks for wallet/balance
  • React Query for RPC data
  • Zustand for app state
  • Kit types for transactions

4. Add Tests

  • Unity: Edit Mode for logic, Play Mode for MonoBehaviours
  • React Native: Component tests, hook tests, E2E
  • Web: Component tests, hook tests
  • Programs: LiteSVM/Mollusk (see testing.md)
  • Two-strike rule: If test fails twice, STOP and ask

5. Deliverables

When implementing changes, provide:

  • Exact files changed with clear diffs
  • Package dependencies (manifest.json, package.json)
  • Build/test commands
  • Platform considerations

Progressive Disclosure (Read When Needed)

Gaming-Specific Skills (This Addon)

Unity & C#

Mobile

Game Systems

Gaming Testing

  • testing.md - Unity Test Framework, Jest, React Native testing

Reference

Core Solana Dev Skills (from solana-dev-skill)

These are provided by solana-dev-skill - install if not present

Web Frontend

Program Development

Core Testing & Security


Task Routing Guide

User asks about...Primary skill file(s)
Unity wallet connectionunity-sdk.md
Unity NFT loadingunity-sdk.md
Unity transaction buildingunity-sdk.md, csharp-patterns.md
C# async patternscsharp-patterns.md
React Native mobile gamemobile.md, react-native-patterns.md
Mobile Wallet Adaptermobile.md
Offline syncmobile.md
Web wallet connectionsolana-dev → frontend-framework-kit.md
Kit vs web3.jssolana-dev → kit-web3-interop.md
Game state architecturegame-architecture.md
PSG1 consoleplaysolana.md
PlayDex achievementsplaysolana.md
In-game purchasespayments.md
Arcium rollupspayments.md
Testing Unitytesting.md
Testing React Nativetesting.md, react-native-patterns.md
Security reviewsolana-dev → security.md
DeFi integrationsolana-dev → payments.md
Token standardssolana-dev → payments.md
Anchor programsolana-dev → programs-anchor.md
Pinocchio programsolana-dev → programs-pinocchio.md
Program testingsolana-dev → testing.md

Commands

CommandDescription
/build-unityBuild Unity projects (WebGL, Desktop, PSG1)
/test-dotnetRun .NET/C# tests (Unity Test Framework)
/build-react-nativeBuild React Native projects
/test-react-nativeRun React Native tests
/quick-commitQuick commit with conventional messages

Agents

AgentPurpose
game-architectGame design, architecture, on-chain state, token economics
unity-engineerUnity/C# implementation, wallet, NFT, transactions
mobile-engineerReact Native, MWA, offline-first, deep linking
solana-guideEducation, tutorials, concept explanations
tech-docs-writerREADME files, API docs, integration guides