brainstorming
Structured design dialogue that validates ideas before implementation begins.
macos-game-testing
Test the Nathaniel macOS game. Use when asked to test the macOS version, verify changes work on Mac, run sanity tests on desktop, or when the user says "test macOS", "run on mac", "verify mac build".
Full skill instructions
This skill provides reliable testing of the Nathaniel SpriteKit game on macOS using the embedded GameCommandServer HTTP API.
The game uses SpriteKit with custom scene coordinates. Unlike iOS Simulator, there are no reliable external UI automation tools for macOS SpriteKit games.
Always use the GameCommandServer HTTP API (port 8765) for:
XcodeBuildMCP is used only for: building, running, and stopping the app.
# 1. Build and run the macOS app
mcp__XcodeBuildMCP__build_run_macos
# 2. Wait 2-3 seconds for app to load, then check server health
curl -s http://localhost:8765/health
# 3. Get current game state
curl -s http://localhost:8765/state | jq .
# 4. Navigate and interact using actions
curl -s http://localhost:8765/action -X POST -H "Content-Type: application/json" -d '{"name":"startGame"}'
# Set session defaults for XcodeBuildMCP
mcp__XcodeBuildMCP__session-set-defaults:
projectPath: /Users/ruairi/dev/Nathaniel/Nathaniel.xcodeproj
scheme: Nathaniel macOS
# Build and run (opens the app automatically)
mcp__XcodeBuildMCP__build_run_macos
After the app launches, wait 2-3 seconds, then verify the server is running:
# Check health - should return {"status":"ok"}
curl -s http://localhost:8765/health
If it fails, the app may not have fully launched. Wait and retry.
Use the HTTP API to navigate through menus:
Main Menu -> Level Select:
curl -s http://localhost:8765/action -X POST \
-H "Content-Type: application/json" \
-d '{"name":"startGame"}'
Level Select -> Level 1:
curl -s http://localhost:8765/action -X POST \
-H "Content-Type: application/json" \
-d '{"name":"level_1"}'
Get game state:
curl -s http://localhost:8765/state | jq .
# Returns: scene, score, lives, resources, playerPosition, hermesPosition, enemyCount
Get interactive nodes:
curl -s http://localhost:8765/nodes | jq .
# Returns: all clickable elements with frame coordinates
Click at coordinates (scene coordinates, not screen):
curl -s http://localhost:8765/tap -X POST \
-H "Content-Type: application/json" \
-d '{"x": 500, "y": 300}'
Execute named actions:
# Select characters
curl -s http://localhost:8765/action -X POST -d '{"name":"selectNathaniel"}'
curl -s http://localhost:8765/action -X POST -d '{"name":"selectHermes"}'
# Toggle between characters (switches and animates camera)
curl -s http://localhost:8765/action -X POST -d '{"name":"toggleCharacter"}'
# Move character
curl -s http://localhost:8765/action -X POST -d '{"name":"moveNathaniel","params":{"x":"500","y":"300"}}'
# Target enemy
curl -s http://localhost:8765/action -X POST -d '{"name":"targetEnemy","params":{"index":"0"}}'
Get screenshot from GameCommandServer and save to file:
# Save screenshot as PNG file
curl -s http://localhost:8765/screenshot | jq -r .data | base64 -d > /tmp/macos-screenshot.png
# View the screenshot
open /tmp/macos-screenshot.png
Or use macOS screencapture for the entire window:
# Capture the Nathaniel window
screencapture -l $(osascript -e 'tell app "Nathaniel" to id of window 1') /tmp/nathaniel-window.png
mcp__XcodeBuildMCP__stop_mac_app:
appName: Nathaniel
startGame - Go to level selectoptions - Open optionscredits - Open creditslevel_1 through level_5 - Start specific levelback - Return to main menuselectNathaniel - Select NathanielselectHermes - Select HermestoggleCharacter - Toggle between Nathaniel and Hermes (animates camera)moveNathaniel (params: x, y) - Move to positionmoveHermes (params: x, y) - Move Hermes to positiontargetEnemy (params: index) - Target enemy by indexback - Return to main menuAdjust game settings for easier testing:
# Get current settings
curl -s http://localhost:8765/settings | jq .
# Make player invincible
curl -s http://localhost:8765/settings -X POST \
-H "Content-Type: application/json" \
-d '{"playerInvincible": true}'
# Give infinite resources
curl -s http://localhost:8765/settings -X POST \
-H "Content-Type: application/json" \
-d '{"infiniteResources": true}'
# Reset all settings to defaults
curl -s http://localhost:8765/settings/reset -X POST
# Start at main menu
curl -s http://localhost:8765/state | jq '.scene'
# Should be "MainMenuScene"
# Go to level select
curl -s http://localhost:8765/action -X POST -d '{"name":"startGame"}'
sleep 0.5
curl -s http://localhost:8765/state | jq '.scene'
# Should be "LevelSelectScene"
# Go back
curl -s http://localhost:8765/action -X POST -d '{"name":"back"}'
sleep 0.5
curl -s http://localhost:8765/state | jq '.scene'
# Should be "MainMenuScene"
# Navigate to level 1
curl -s http://localhost:8765/action -X POST -d '{"name":"startGame"}'
sleep 0.5
curl -s http://localhost:8765/action -X POST -d '{"name":"level_1"}'
sleep 2
# Check initial state
curl -s http://localhost:8765/state | jq '{scene, lives, enemyCount}'
# Select Hermes and move
curl -s http://localhost:8765/action -X POST -d '{"name":"selectHermes"}'
curl -s http://localhost:8765/action -X POST -d '{"name":"moveHermes","params":{"x":"600","y":"400"}}'
# In GameScene, toggle between characters
curl -s http://localhost:8765/action -X POST -d '{"name":"toggleCharacter"}'
sleep 0.5
# Take screenshot to verify camera moved
curl -s http://localhost:8765/screenshot | jq -r .data | base64 -d > /tmp/after-toggle.png
| Issue | Solution |
|---|---|
curl: Connection refused | App not running or GameCommandServer not started (DEBUG builds only) |
| Actions return "not found" | Wrong scene - check state.scene first |
| Clicks don't register | Verify coordinates are in scene space (use /nodes to get frames) |
| Build fails | Check Xcode is installed, try xcodebuild -version |
| App won't stop | Use pkill -f Nathaniel or Activity Monitor |
com.ruarfff.NathanielStructured design dialogue that validates ideas before implementation begins.
Comprehensive design intelligence for web and mobile UI/UX across 10 technology stacks.
Comprehensive implementation plans for multi-step tasks, breaking down specs into bite-sized, testable steps.
Introduction to the obra skills system with mandatory skill invocation rules and best practices.
Execute a written implementation plan with critical review and task checkpoints.
Delegate independent tasks to specialized agents working concurrently with isolated context.
Isolated git worktrees with smart directory selection and safety verification.
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
Plan searchable and shareable content that drives traffic, builds authority, and generates leads.
README-first repository scanner that extracts commands and classifies reproduction candidates without executing them.
Brainstorm and prioritize marketing strategies tailored to your SaaS stage, budget, and goals.
Plan and optimize your website's page hierarchy, navigation, URL structure, and internal linking.
The world's fastest calendar for remote work
Capture, organize, and utilize your knowledge effortlessly.
Instant Summaries of Audio & Video Interviews with AnySummary
Transform PDFs into engaging mind maps.
Chat with any PDF instantly
Create an optimal daily plan using your voice
A productivity platform to centralize organizational knowledge and workflows with contextual AI assistance.
AskYourPDF Pricing Plans: Tailored to Your Needs