your-handle / bga-dev-skill
CC skill and testing harness for BoardGameArena game development
Requires
None
Requires (Dev)
- phpunit/phpunit: ^10.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is not auto-updated.
Last update: 2026-09-14 00:57:56 UTC
README
What This Is
This repository gives you two things for BGA development with Claude Code: a ready-to-use skill file and a local testing harness. The skill file (SKILL.md) teaches Claude Code the project conventions and generation patterns, while the harness provides PHP and JS test scaffolding so generated logic can be validated locally. Use the skill alone if you only want better code generation, or use the full harness if you also want runnable tests.
Installation
Skill Only (No Testing Infrastructure)
- Clone or download this repository.
- Add
SKILL.mdto your Claude Code workspace instructions.
Full Harness
- Clone this repo into your BGA game's development dependencies.
- Install PHP support:
composer require --dev thebgllc/bga-assist
- Install JS support:
npm install --save-dev bga-assist
- Extend
BgaGameTestCasein your PHPUnit tests.
Using with Claude Code
These prompts are designed to map directly to the tested patterns in SampleGameTest.php:
- "What happens if the active player submits only 2 cards?"
- "Write tests for the _checkValidSet function"
- "Generate a states.inc.php for a game with a bidding phase and a resolution phase"
- "I'm getting a PHP error in my action method - what's wrong?"
- "How do I notify only the active player when they draw a card?"
Running Tests
# PHP ./vendor/bin/phpunit # JS npm test
Scope Boundaries
This v1 repo intentionally does not include:
- MCP server setup
- SFTP deployment tooling
- Studio log tailing
- Playwright live Studio E2E tests
- BGA Studio API integration
- Game-specific production implementations