solanabr

solana-game

2
0
# Install this skill:
npx skills add solanabr/solana-game-skill --skill "solana-game"

Install specific skill from multi-skill repository

# Description

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.

# SKILL.md


name: solana-game
description: 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.
user-invocable: true


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

Layer Examples Skill File(s)
Unity/C# Game mechanics, UI, wallet unity-sdk.md, csharp-patterns.md
Mobile/RN Mobile apps, MWA, offline mobile.md, react-native-patterns.md
Web/Frontend Next.js, React, wallet frontend-framework-kit.md
Game Architecture On-chain state, economics game-architecture.md
Program/Anchor On-chain game logic programs-anchor.md
Program/Pinocchio High-perf programs programs-pinocchio.md

2. Pick the Right Agent

Task Type Agent Model
High-level design game-architect opus
Unity code unity-engineer sonnet
Mobile code mobile-engineer sonnet
Learning/tutorials solana-guide sonnet
Documentation tech-docs-writer sonnet

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 connection unity-sdk.md
Unity NFT loading unity-sdk.md
Unity transaction building unity-sdk.md, csharp-patterns.md
C# async patterns csharp-patterns.md
React Native mobile game mobile.md, react-native-patterns.md
Mobile Wallet Adapter mobile.md
Offline sync mobile.md
Web wallet connection solana-dev β†’ frontend-framework-kit.md
Kit vs web3.js solana-dev β†’ kit-web3-interop.md
Game state architecture game-architecture.md
PSG1 console playsolana.md
PlayDex achievements playsolana.md
In-game purchases payments.md
Arcium rollups payments.md
Testing Unity testing.md
Testing React Native testing.md, react-native-patterns.md
Security review solana-dev β†’ security.md
DeFi integration solana-dev β†’ payments.md
Token standards solana-dev β†’ payments.md
Anchor program solana-dev β†’ programs-anchor.md
Pinocchio program solana-dev β†’ programs-pinocchio.md
Program testing solana-dev β†’ testing.md

Commands

Command Description
/build-unity Build Unity projects (WebGL, Desktop, PSG1)
/test-dotnet Run .NET/C# tests (Unity Test Framework)
/build-react-native Build React Native projects
/test-react-native Run React Native tests
/quick-commit Quick commit with conventional messages

Agents

Agent Purpose
game-architect Game design, architecture, on-chain state, token economics
unity-engineer Unity/C# implementation, wallet, NFT, transactions
mobile-engineer React Native, MWA, offline-first, deep linking
solana-guide Education, tutorials, concept explanations
tech-docs-writer README files, API docs, integration guides

# Supported AI Coding Agents

This skill is compatible with the SKILL.md standard and works with all major AI coding agents:

Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.