Skip to content

f5inet/OpenCodeGameStudios

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

133 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

OpenCode Game Studios

OpenCode Game Studios Banner

โšก Evolved from Claude Code Game Studios (CCGS) โ€” now a standalone framework with workflow selection, phase gates, pre-workflow prototyping, and hybrid discovery-to-production pipelines.

License Agents Skills Commands Hooks Tests Built for OpenCode


๐Ÿ“‘ Table of Contents


๐Ÿ’ก Motivation

Game development is a multi-disciplinary process โ€” design, writing, architecture, programming, art, audio, QA, release โ€” that's hard to coordinate with AI assistants in ad-hoc chat sessions. OpenCode Game Studios provides a structured framework for the full game lifecycle:

  • Pre-workflow exploration โ€” Rapidly prototype 2-4 ideas with zero commitment before choosing a development workflow
  • Design-first pipeline โ€” Brainstorm โ†’ systems map โ†’ section-by-section GDDs โ†’ cross-GDD review, before any code is written
  • Phase gates โ€” Formal checkpoints between phases with PASS/CONCERNS/FAIL verdicts that prevent advancing with gaps
  • Workflow selection โ€” Choose Hybrid (lightweight discovery then production) or Full OCGS (process-heavy from day one), depending on team size and project maturity
  • 49 coordinated agents โ€” From creative director to engine specialists, each with defined responsibilities, delegation maps, and strict domain boundaries
  • 51 slash commands โ€” Route through the right skill every time, from /brainstorm to /launch-checklist

This project evolved from CCGS and runs on OpenCode.


โš ๏ธ Active Development โ€” This is a living framework. Things will break, change, and improve. Report bugs at github.com/striderZA/OpenCodeGameStudios/issues.


๐Ÿ“Š Port Status

Component CCGS (Claude Code) OpenCode Status
๐Ÿค– Agents 49 agents (.claude/agents/) 49 agents (.opencode/agents/) โœ…
โŒจ๏ธ Skills 72 skills (.claude/skills/) 76 skills (.opencode/skills/) โœ… +4
โŒจ๏ธ Commands โ€” 51 commands (.opencode/commands/) โœ… New
๐Ÿ”— Plugins 12 bash hooks (.claude/hooks/) 3 TS plugins (.opencode/plugins/) โœ… 183 tests
๐Ÿ“ Rules 11 rule files (.claude/rules/) 11 rule files (.opencode/rules/) โœ…
โš™๏ธ Config CLAUDE.md + .claude/settings.json AGENTS.md + opencode.json โœ…

๐Ÿš€ Quick Start

opencode

Type / to browse all 76 skills and 51 commands, or /start for onboarding.

๐ŸŽฎ Demo Game

See OCGS-Pong โ€” a complete Pong game built entirely with this toolchain. Demonstrates the full workflow from concept through implementation using OCGS agents and skills.


๐Ÿงฉ Modular Framework

The framework is partitioned into 19 pluggable theme modules. Only install what you need for your project:

Module Description
core Framework skeleton โ€” directors, onboarding, /start, /help (required)
art Aseprite MCP, art bible, asset specs, art generation
design Game mechanics, systems design, combat, balance, playtesting
architecture Technical planning, ADRs, architecture review
stories Epics, stories, dev workflow, code review
programming Gameplay, AI, engine, network agents + coding rules
ui UX design, UI programming, accessibility
audio Audio direction, sound design
narrative Story, world-building, dialogue
level-design Level layout, encounter design
qa Testing strategy, bug tracking, profiling, skill testing
release Release management, sprints, changelogs, hotfixes
prototyping Rapid prototyping, concept exploration
live-ops Post-launch content, community management
localization i18n, translation pipeline
engine-godot Godot 4 specialists (GDScript, C#, shaders, GDExtension)
engine-unity Unity specialists (DOTS, shaders, Addressables, UI)
engine-unreal Unreal Engine 5 specialists (GAS, Blueprint, replication, UMG)
data Data file conventions and validation
# Install modules
node .opencode/modules/install.mjs add core
node .opencode/modules/install.mjs add engine-godot art design qa

# List all available and installed modules
node .opencode/modules/install.mjs list

# See module details
node .opencode/modules/install.mjs info core

# Remove a module (preserves user-modified files)
node .opencode/modules/install.mjs remove art

Module sources live in .opencode/modules/<name>/ and are copied into the framework directories on install. User-modified files are detected during removal and left in place.


๐Ÿ”Œ Recommended Plugins

These plugins enhance the OpenCode experience and are recommended for all game development sessions:

Plugin Purpose
dynamic-context-purging Dynamic context pruning โ€” automatically manages context window size, indexes content for search, and prevents context overflow during long sessions
Superpowers Enhanced skill library โ€” provides structured workflows for brainstorming, test-driven development, writing plans, code review, and parallel agent dispatch

Add them to your opencode.json:

{
  "plugin": [
    "./.opencode/plugins/ccgs-hooks.ts",
    "PLUGIN_NAME"
  ]
}

๐Ÿ—บ๏ธ Key Mappings

CCGS (Claude Code) OpenCode
.claude/skills/*.md โ†’ .opencode/skills/*.md
.claude/agents/*.md โ†’ .opencode/agents/*.md
.claude/hooks/*.sh โ†’ .opencode/plugins/ccgs-hooks.ts
.claude/rules/*.md โ†’ .opencode/rules/*.md
CLAUDE.md โ†’ AGENTS.md
.claude/settings.json โ†’ opencode.json

๐Ÿง  Model Mapping

CCGS OpenCode
opus ๐Ÿ™ kimi-k2.6
sonnet ๐Ÿ–‹๏ธ qwen3.6-plus
haiku ๐Ÿƒ deepseek-v4-flash

๐ŸŽฏ Model Assignment Strategy

Tier Model Agents Rationale
Directors (Tier 1) opencode-go/kimi-k2.6 3 (creative-director, technical-director, producer) Heaviest model for strategic planning, architecture decisions, and cross-team coordination
Workhorses (Tier 2-3) opencode-go/qwen3.6-plus 43 (all other agents) Balanced model for day-to-day design, implementation, testing, and review tasks
Lightweight (Special) opencode-go/deepseek-v4-flash 3 (community-manager, devops-engineer, sound-designer) Fast, low-latency model for simple, repetitive, or always-running agents

Note: Subagents invoked via the task tool inherit the caller's model regardless of their frontmatter model: field. See Known Issues.

The default session model (set via opencode -m) should match the tier of work:

  • opencode -m opencode-go/kimi-k2.6 โ€” director-level sessions
  • opencode -m opencode-go/qwen3.6-plus โ€” general development sessions
  • opencode -m opencode-go/deepseek-v4-flash โ€” quick QA or maintenance sessions

๐Ÿ”„ Customizing Models

OpenCode supports any model provider โ€” switch the studio to your preferred models, including local ones, with a single command.

Quick switch

# Preview the change first
node utils/assign-models.js --dry-run --map '{
  "opencode-go/kimi-k2.6":         "anthropic/claude-opus-4",
  "opencode-go/qwen3.6-plus":      "openai/gpt-4o",
  "opencode-go/deepseek-v4-flash": "ollama/llama3.2"
}'

# Apply it
node utils/assign-models.js --map '{
  "opencode-go/kimi-k2.6":         "anthropic/claude-opus-4",
  "opencode-go/qwen3.6-plus":      "openai/gpt-4o",
  "opencode-go/deepseek-v4-flash": "ollama/llama3.2"
}'

Or save your mapping to a JSON file and refer to it:

node utils/assign-models.js --config my-models.json

Provider examples

Provider Model ID Format Example
OpenCode (default) opencode-go/<model> opencode-go/qwen3.6-plus
Anthropic Claude anthropic/<model> anthropic/claude-opus-4, anthropic/claude-sonnet-4
OpenAI openai/<model> openai/gpt-4o, openai/o3
Google Gemini google/<model> google/gemini-2.5-pro
Ollama (local) ollama/<model> ollama/llama3.2, ollama/mistral
OpenAI-compatible <endpoint>/<model> http://localhost:11434/v1/llama3.2

Tip: Run opencode models to list all models available through your configured providers. See the OpenCode provider docs for setup instructions.


๐Ÿ“ Directory Tree

/
โ”œโ”€โ”€ AGENTS.md                  ๐Ÿ“‹ Project configuration
โ”œโ”€โ”€ opencode.json              โš™๏ธ OpenCode config (permissions, plugins)
โ”œโ”€โ”€ .opencode/
โ”‚   โ”œโ”€โ”€ commands/              โŒจ๏ธ 51 slash commands (routes to skills)
โ”‚   โ”œโ”€โ”€ agents/                ๐Ÿค– 49 agent definitions
โ”‚   โ”œโ”€โ”€ skills/                ๐Ÿ› ๏ธ 76 skill workflows
โ”‚   โ”œโ”€โ”€ plugins/
โ”‚   โ”‚   โ”œโ”€โ”€ ccgs-hooks.ts      ๐Ÿ”— Session lifecycle, validation
โ”‚   โ”‚   โ”œโ”€โ”€ drift-detector.ts  ๐Ÿ” Template drift detection
โ”‚   โ”‚   โ”œโ”€โ”€ changelog-generator.ts ๐Ÿ“ Changelog generation
โ”‚   โ”‚   โ””โ”€โ”€ tests/             ๐Ÿงช 11 test suites (140 tests)
โ”‚   โ”œโ”€โ”€ rules/                 ๐Ÿ“ 11 coding standards
โ”‚   โ””โ”€โ”€ modules/               ๐Ÿงฉ 19 pluggable theme modules
โ”‚       โ”œโ”€โ”€ install.mjs        CLI: add/remove/list modules
โ”‚       โ”œโ”€โ”€ installed.json     Module manifest
โ”‚       โ”œโ”€โ”€ core/              Core module (always installed)
โ”‚       โ”œโ”€โ”€ art/               Art module (aseprite MCP, art bible)
โ”‚       โ””โ”€โ”€ ...                19 modules total
โ”œโ”€โ”€ design/                    ๐ŸŽจ Game design documents
โ”œโ”€โ”€ docs/
โ”‚   โ”œโ”€โ”€ CONTRIBUTING.md        ๐Ÿ“– Framework contribution guide
โ”‚   โ”œโ”€โ”€ authoring-agents.md    ๐Ÿค– Agent authoring guide
โ”‚   โ”œโ”€โ”€ authoring-skills.md    ๐Ÿ› ๏ธ Skill authoring guide
โ”‚   โ”œโ”€โ”€ architecture/          ๐Ÿ—๏ธ ADRs
โ”‚   โ””โ”€โ”€ engine-reference/      ๐Ÿ“š Engine API reference
โ”œโ”€โ”€ tests/
โ”‚   โ”œโ”€โ”€ agents/                ๐Ÿ” Agent framework validation
โ”‚   โ”œโ”€โ”€ workflow/              ๐Ÿ”„ Workflow integrity (refs, paths, gates, invariants)
โ”‚   โ”œโ”€โ”€ [game-specific tests]
โ”‚   โ””โ”€โ”€ [spawned by test-setup]
โ”œโ”€โ”€ production/                ๐Ÿ“Š Sprint plans, session logs
โ”œโ”€โ”€ utils/                     ๐Ÿ”ง Developer utilities
โ”‚   โ””โ”€โ”€ assign-models.js       ๐ŸŽฏ Batch-model assignment tool
โ””โ”€โ”€ ...                        ๐ŸŽฎ Game source & assets

๐Ÿ”Œ Plugin Architecture

The OCGS plugin system is documented in .opencode/plugins/README.md. Three TypeScript plugins implement the original 12 CCGS bash hooks plus extensions:

Plugin Purpose
ccgs-hooks.ts Session lifecycle, commit validation, asset checks, agent logging, gap detection
drift-detector.ts Detects agent/skill/command template drift on session start and file writes
changelog-generator.ts Generates CHANGELOG.md from conventional commits since last tag

Hooks Mapping

All 12 bash hooks from CCGS ported to ccgs-hooks.ts:

# Bash Hook ๐Ÿ”Œ OpenCode Event ๐Ÿงช Tests
1 session-start.sh session.created 18
2 session-stop.sh session.idle / server.instance.disposed 10
3 detect-gaps.sh session.created 15
4 log-agent.sh tool.execute.before (task) 5
5 log-agent-stop.sh tool.execute.after (task) 4
6 validate-assets.sh tool.execute.after 16
7 validate-commit.sh tool.execute.before (git commit) 17
8 validate-push.sh tool.execute.before (git push) 13
9 validate-skill-change.sh tool.execute.after 12
10 pre-compact.sh experimental.session.compacting 14
11 post-compact.sh experimental.compaction.autocontinue 5
12 notify.sh Utility (showNotification) โ€”

๐Ÿงช Run plugin test suite: node .opencode/plugins/tests/test-<name>.mjs ๐Ÿงช Run workflow integrity suite: node tests/workflow/run-all.mjs

Contributing to the Framework

See CONTRIBUTING.md for guides on adding agents, skills, commands, rules, and plugins.


๐Ÿ—๏ธ Studio Hierarchy

๐ŸŽฌ  creative-director    ๐Ÿ”ง  technical-director    ๐ŸŽฏ  producer
โ”œโ”€โ”€ ๐ŸŽจ  art-director        โ”œโ”€โ”€ ๐Ÿ’ป  lead-programmer
โ”œโ”€โ”€ ๐ŸŽต  audio-director      โ”œโ”€โ”€ ๐Ÿงช  qa-lead
โ”œโ”€โ”€ ๐Ÿ“–  narrative-director  โ”œโ”€โ”€ ๐Ÿ“ฆ  release-manager
โ”œโ”€โ”€ ๐ŸŽฎ  game-designer       โ””โ”€โ”€ ๐ŸŒ  localization-lead
โ””โ”€โ”€ ... (49 agents total)

๐Ÿ› Known Issues

Issue Impact Workaround
Subagent model resolution via task โ€” Agent model: frontmatter fails with ProviderModelNotFoundError for models that work when used directly via opencode -m <model>. Subagents inherit the caller's model per OpenCode docs, so the frontmatter model may only apply when the agent runs as a primary session. Agents using opencode-go/kimi-k2.6 and opencode-go/deepseek-v4-flash as subagents via task Use opencode-go/qwen3.6-plus for subagent-heavy workflows, or start dedicated sessions with opencode -m <model> for director-level agents. Root cause being tracked upstream in OpenCode.

๐Ÿ“„ License

MIT โ€” Free for any use.


Built with โค๏ธ for AI-assisted game development
OpenCode Game Studios ยท CCGS Port
MIT License ยท Free for any use

โ˜• Support development

About

OpenCode port of the original Claude-Code-Game-Studios framework ๐Ÿค–

Resources

License

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 71.0%
  • TypeScript 29.0%