your-handle/bga-dev-skill
Composer 安装命令:
composer require your-handle/bga-dev-skill
包简介
CC skill and testing harness for BoardGameArena game development
README 文档
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
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2026-07-05