dev-tools
Run CLI dev tools for game development (world inspection, benchmarks, assets, simulation). Use when user wants to 'check performance', 'inspect world', 'validate assets', 'stress test', or asks about new CLI features.
When & Why to Use This Skill
This Claude skill provides a comprehensive suite of CLI development tools specifically designed for game development within the Stapledons Voyage project. It empowers developers to streamline their workflow by offering automated performance benchmarking, real-time world state inspection, asset validation, and rigorous simulation stress testing, ensuring both game stability and optimal execution efficiency.
Use Cases
- Performance Benchmarking: Run high-iteration benchmarks with CPU profiling to identify bottlenecks and optimize game logic performance.
- World State Debugging: Inspect the current state of the game world using summary or JSON outputs to troubleshoot simulation logic or specific seeds.
- Asset Integrity Checks: Automatically validate game assets and directory structures to prevent runtime errors and ensure resource consistency.
- Simulation Stress Testing: Execute long-duration simulations (up to 100,000+ steps) with per-step state validation to verify system reliability under heavy load.
- AI Integration Testing: Test and verify AI providers, prompt responses, and multimedia generation (Image/TTS) directly through the CLI environment.
| name | Dev Tools |
|---|---|
| description | Run CLI dev tools for game development (world inspection, benchmarks, assets, simulation). Use when user wants to 'check performance', 'inspect world', 'validate assets', 'stress test', or asks about new CLI features. |
Dev Tools
CLI development tools for Stapledons Voyage game. Provides performance benchmarks, world inspection, asset validation, and simulation stress testing.
Quick Start
# Build CLI first
make cli
# Run commands
./bin/voyage world -summary # Quick world state
./bin/voyage bench -n 1000 # Performance benchmarks
./bin/voyage assets # Validate game assets
./bin/voyage sim -steps 1000 # Stress test simulation
When to Use This Skill
Invoke this skill when user asks to:
- "check performance" or "run benchmarks"
- "inspect world" or "show world state"
- "validate assets" or "check assets"
- "stress test" or "test simulation"
- "what CLI tools do we have?"
- Debug simulation issues or performance problems
Available Commands
World Inspection
./bin/voyage world # Full world state (truncated)
./bin/voyage world -summary # Quick stats only
./bin/voyage world -json # Raw JSON output
./bin/voyage world -seed 123 # Use specific seed
./bin/voyage world -steps 100 # Run N steps first
Performance Benchmarks
./bin/voyage bench # Default 1000 iterations
./bin/voyage bench -n 10000 # More iterations
./bin/voyage bench -warmup 50 # Custom warmup
./bin/voyage bench -profile # With CPU profiling
Asset Validation
./bin/voyage assets # Check assets/
./bin/voyage assets -dir ./custom # Custom directory
./bin/voyage assets -v # Verbose (list files)
./bin/voyage assets -fix # Create missing dirs
Simulation Stress Test
./bin/voyage sim # 10000 steps default
./bin/voyage sim -steps 100000 # Longer test
./bin/voyage sim -seed 123 # Specific seed
./bin/voyage sim -validate # Validate state each step
AI Handler Testing
./bin/voyage ai -list # Show available providers
./bin/voyage ai -prompt "Hello" # Auto-detect provider
./bin/voyage ai -generate-image # Image generation
./bin/voyage ai -list-voices # TTS voices
Scripts
scripts/quick_bench.sh
Run benchmarks with filtered output (removes debug noise).
scripts/full_report.sh
Generate comprehensive development report.
scripts/suggest_tools.sh
Analyze codebase for potential new CLI tools.
Workflow
- Build CLI -
make cli - Run command - Execute voyage command
- Interpret results - Check output
- Report issues - Use ailang-feedback for codegen bugs
Suggesting New CLI Tools
When identifying CLI needs, consider:
voyage save- Inspect/manage save filesvoyage replay- Replay recorded inputsvoyage export- Export data for analysisvoyage config- Manage game configurationvoyage starmap- Starmap data tools
To add a new tool:
- Add command case to
cmd/cli/main.go - Implement
run<Command>Command()function - Update this skill documentation
- Run
make cli
Known Issues
Debug output noise: Filter with | grep -v "^tick" - tracked as AILANG bug.
Resources
See resources/cli_reference.md for complete documentation.