Skip to content

Latest commit

 

History

History
158 lines (110 loc) · 6.36 KB

File metadata and controls

158 lines (110 loc) · 6.36 KB

codoop-game

English · 简体中文

From a game idea to a playable, submit-ready offline H5 game

Codex Skill Claude Code Node Runtime deps License

codoop-game is a single creation loop for making desktop Codoop game plugins. Describe a game in plain language; Codex or Claude handles the game card, implementation, proactive playtests, quality gates, and packaging. The result is a portal-ready game.zip and a separate cover.png.

The current compatibility baseline is the local preview harness. Real Codoop Desktop webview validation has not been connected yet, so passing the harness is never presented as Desktop validation.

you describe a game idea                              you decide when to deliver and publish
        │                                                                  ▲
        ▼                                                                  │
┌────────────────── Codex / Claude reads SKILL.md and orchestrates ──────────────────┐
│ game card → expert review → build → harness preview → feedback loop → validate → package │
│              [rules]        [agent]    [script]          [agent]        [scripts] │
│                                                                                     │
│ fixed experts: game design and technical art; level, narrative, and audio join as needed │
└─────────────────────────────────────────────────────────────────────────────────────┘

Install

Codex (Desktop or CLI)

Install from the GitHub marketplace repository:

codex plugin marketplace add Codoop/codoop-game
codex plugin add codoop-game@codoop-game

Restart or reopen Codex, then simply say:

Use $codoop-game to make a farming game that players can pause and continue later.

Claude Code

/plugin marketplace add Codoop/codoop-game
/plugin install codoop-game@codoop-game

If SSH is not configured, use the full HTTPS URL:

/plugin marketplace add https://github.com/Codoop/codoop-game.git
/plugin install codoop-game@codoop-game

For local development:

claude --plugin-dir /path/to/codoop-game

Prerequisites: Node.js 20+ and system zip / unzip. There are no third-party runtime npm dependencies.


Quick start

Tell the installed agent what you want to make:

Use $codoop-game to make a pixel-art space-trading strategy game. Players should be able to stop and return later; give me a submission package and cover when it is ready.

The creation loop:

  1. Writes a one-page game card with the player goal, loop, controls, and continuation model.
  2. Loads game design and technical-art experts; level, narrative, and audio experts join when the idea requires them.
  3. Creates an isolated static H5 project in the creator-selected workspace.
  4. Starts a local harness that mocks desktop FlowCabinGameAPI input, size, and lifecycle events, then proactively asks the creator to play.
  5. Applies one player-visible feedback change per iteration and invites another focused playtest.
  6. Asks the creator for a cover first; generates an original cover.png only when requested.
  7. Validates offline resources, entry point, size, file count, and cover before delivering the package.
dist/
├── game.zip                 # runtime package for the Codoop portal
├── cover.png                # separate product cover, never in the ZIP
└── validation-report.md     # validation outcome written by the agent at delivery

Each project also starts with visual-direction.md (art direction) and playtest-report.md (creator tasks, feedback, and next decision).


Architecture

The project has three kinds of components:

  1. Skill orchestrationskills/codoop-game/SKILL.md defines the conversation, expert gates, preview, and delivery sequence.
  2. Deterministic scripts — create starters, run the preview harness, scan offline restrictions, validate covers, and package the ZIP without relying on agent judgment.
  3. Experts and contractsskills/_shared/ contains design roles; references/ freezes desktop API, package, cover, visual, and quality rules.

See the full Skill architecture for responsibilities, data flow, and quality gates. See installation details for standalone Skill installation and other agents.

Project structure

codoop-game/
├── .codex-plugin/             # Codex plugin manifest
├── .claude-plugin/            # Claude Code plugin and marketplace manifest
├── skills/
│   ├── codoop-game/           # main Skill, scripts, contracts, and starters
│   └── _shared/               # on-demand game expert definitions
├── tests/                     # unit and integration tests
└── docs/                      # public compatibility and architecture docs

Local development

Run all tests:

npm test

Run the complete flow manually:

node skills/codoop-game/scripts/create-game.mjs /tmp my-game --generate-cover
node skills/codoop-game/scripts/preview-harness.mjs /tmp/my-game
node skills/codoop-game/scripts/validate-game.mjs /tmp/my-game
node skills/codoop-game/scripts/validate-cover.mjs /tmp/my-game/cover.png
node skills/codoop-game/scripts/package-game.mjs /tmp/my-game

Use --generate-cover only for development or when a creator has explicitly asked for a generated cover. The normal workflow asks the creator to provide it first.

Contributing

When changing a compatibility contract, update docs/compatibility.md and the corresponding references/ first, then update starters, the harness, validation scripts, and tests. Every behavioral change needs a test, and game.zip must never contain cover.png.

License

MIT