Agent skill
conestoga-game-dev
Use for Conestoga game development, validation/fallback handling, UI headless toggle, and test workflow in this repo. Covers make/uv commands, Gemini fallback patterns, and Pygame headless settings.
Stars
163
Forks
31
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/development/conestoga-game-dev
SKILL.md
Conestoga Game Dev Skill
Quick Context
- Code:
src/conestoga/game/(runner.py,gemini_gateway.py,events.py,state.py,ui.py,validators.py,fallback_monitor.py). - Entry:
conestogascript oruv run python -m conestoga.main. - Tests:
uv run pytest(CI defaults headless), headless toggle viaUI_HEADLESS=1orCI=1; setUI_HEADLESS=0for visible window. - Make targets:
make install-dev,make lint,make format,make test,make run.
Gemini & Fallback Rules
- Only Gemini 3 models via
GeminiGateway; offline/quota setsresource_exhausted. - Validator enforces 2–3 choices, unique IDs/text, and effect targets (allowed resources, catalog items).
- FallbackMonitor tracks fallback source/reason; UI logs fallback/timeout;
gemini_onlineflag controls offline badge. - Modify resources only via
GameState.modify_resource(raises on unknown fields).
Testing
- Run
uv run pytest; optional SHACL test skips if pyshacl missing. - Scripts:
scripts/test-pre.sh/scripts/test-post.sh(Docker opt-in viaRUN_DOCKER=1, compose filedocker-compose.test.yml, temp dirTEST_RUN_DIR). - Headless UI tests set
UI_HEADLESS=1; useUI_HEADLESS=0locally to view windows.
Key Files
- Validation/fallback:
src/conestoga/game/validators.py,fallback_monitor.py,gemini_gateway.py,runner.py. - UI:
src/conestoga/game/ui.py(headless toggle, logging). - Tests:
tests/test_game.py,tests/test_ui_headless.py,tests/test_audit.py,tests/test_ontology.py. - Docs:
README.mdheadless note; ontologyontology/conestoga.ttl.
Patterns to Preserve
- Prefetch-first events, on-demand resolutions.
- Validate before mutation; fallback on validation/timeout/quota.
- UI logs choices, outcomes, fallback usage.
Didn't find tool you were looking for?