Skip to the content.

This is the command-level reference for the goc implementation. The methodology is described in the main README; the broader context (why “Game of Cards”, agile lineage, where it fits) lives in ABOUT.md.

Install the command

Install goc once per machine with the Python application installer you already trust:

uv tool install game-of-cards

or:

pipx install game-of-cards

Both install the goc console command in an isolated tool environment. Use uv tool install if uv is already part of your Python workflow. Use pipx if you follow the PyPA-recommended path for standalone Python applications.

Plain pip install game-of-cards is useful inside a virtual environment, but it is not the clearest global CLI installation because scripts and dependencies share that environment.

When developing this repository, run the checked-out code instead of any globally installed version:

uv run goc --help
uv run goc validate

Install into a repo

From a project root:

goc install

goc install writes the shared substrate:

It also installs an agent harness. Auto-detection is intentionally simple:

For scripted installs, pass the harness explicitly:

goc install --agents claude
goc install --agents codex
goc install --agents claude,codex

What each harness writes into the repo:

Repo-local development form:

uv run goc install --agents codex

First cards

Once goc install has scaffolded the substrate, the deck is empty. Two ways to seed it:

Upgrade an install

After upgrading the machine-wide goc command, refresh generated files in a repo:

goc upgrade
goc upgrade --agents claude,codex

Generated guidance blocks are marker-bounded so user-authored content outside the markers is preserved.

Claude Code plugin

The claude-plugin/ directory at the root of the game-of-cards repository is a Claude Code plugin that provides all GoC skills and hooks without requiring consuming repos to check generated .claude/skills/ and .claude/hooks/ files into source control.

What the plugin provides

The plugin is enabled in every repo you open, but its hooks act only in a repo that has opted in — one holding the .game-of-cards/deck/ that goc install (run by Skill(kickoff)) creates. Everywhere else all three stay silent: enabling the plugin opts no repo in, and neither does a work-shaped prompt.

Skills and hook scripts are real files, byte-for-byte copies of their source-of-truth under goc/templates/. They cannot be symlinks: Claude Code’s marketplace install extracts only the source: ./claude-plugin subtree, and a symlink pointing outside it silently disappears on consumer install.

Edit the template, never the mirror. goc/templates/skills/ and goc/templates/hooks/ are the source of truth; the sync-plugin-assets pre-commit hook regenerates claude-plugin/ from them and stages the result, and CI runs python scripts/sync_plugin_assets.py --check to fail the build on drift. An edit made directly to claude-plugin/ is overwritten by the next commit.

Prerequisites

Python 3.10+ on PATH — nothing else. The plugin bundles the engine under claude-plugin/goc/ and ships bin/goc, a wrapper that runs it through its launcher file goc/_launch.py (never python3 -m goc.cli, which would let the working directory shadow the engine). Claude Code auto-prepends the plugin’s bin/ to the Bash tool’s PATH while the plugin is enabled, so skill bodies call plain goc <verb> and get the bundled engine. No uv, no pipx install game-of-cards, no venv, no first-call latency.

Because engine and skills ship in the same payload, they cannot skew — the plugin needs no minimum-version check. Installing game-of-cards separately is still supported if you want a global goc binary outside Claude Code (see Install the command); it is not a prerequisite for the plugin, and vendoring skills into source control with --local-skills requires it (the bundled engine refuses that flag).

Skill bodies pull live deck context through inline !`…` shell fences. Each one is written to work under both layouts — it routes through the vendored .claude/skills/_goc-bootstrap.sh wrapper when a repo-local harness supplied it, and falls back to bare goc otherwise, which in plugin mode is the bin/goc wrapper above:

!`b=.claude/skills/_goc-bootstrap.sh; if [ -f $b ]; then sh $b --ready -v; else goc --ready -v; fi 2>&1 | head -22`

So the live queue views render in plugin mode with no repo-local harness present. tests/test_skill_preamble_blocks.py pins the contract: every fence exits zero even when goc is missing entirely, because a fence that exits non-zero aborts the whole skill load.

Install from the marketplace (consumers)

From inside Claude Code, install the plugin once per machine:

/plugin marketplace add zauberzeug/game-of-cards
/plugin install game-of-cards@game-of-cards

Updating after a new release: /plugin install reuses a local clone of the marketplace repository and does not refresh it automatically. Run the marketplace update step before reinstalling:

/plugin marketplace update zauberzeug/game-of-cards
/plugin install game-of-cards@game-of-cards

If /plugin marketplace update is not available in your Claude Code build, the equivalent round-trip is:

/plugin marketplace remove zauberzeug/game-of-cards
/plugin marketplace add zauberzeug/game-of-cards
/plugin install game-of-cards@game-of-cards

Skipping the marketplace update installs from a stale local clone — the old bytes are used even after an explicit reinstall.

Install the plugin (local development)

Clone or check out this repository, then point Claude Code at the plugin directory:

claude --plugin-dir /path/to/game-of-cards/claude-plugin

Claude Code reads the plugin manifest from .claude-plugin/plugin.json and loads skills and hooks automatically.

Skills from the plugin are namespaced as game-of-cards:<skill> in the UI but still fire via the description-matching auto-invoke logic.

Coexistence with the repo-local harness

A repo installed with goc install --local-skills — or with goc install --agents claude before the plugin became the Claude default — has the GoC skills checked in under .claude/skills/, the GoC hook scripts under .claude/hooks/, GoC hook entries in .claude/settings.json, and skills_source: vendored pinned in .game-of-cards/config.yaml. The plugin and that repo-local harness can coexist:

To switch the repo to the plugin, let goc upgrade remove the vendored layout:

  1. Set skills_source: plugin in .game-of-cards/config.yaml.
  2. Run goc upgrade and answer y when it offers to remove the leftover vendored layout (echo y | goc upgrade when scripting it).

The cleanup removes only what GoC installed — its skill directories, its hook scripts, and its entries in .claude/settings.json — and leaves the repo’s own skills, hook scripts, and settings in place. Any goc can run the switch, including the engine bundled in the plugin, which is what a bare goc runs inside a Claude Code session with the plugin enabled.

Do not hand-delete .claude/skills/ instead. That deletes the repo’s own skills along with GoC’s, and because skills_source is still vendored, the next goc upgrade re-vendors every GoC skill, hook script, and settings entry, so the hooks fire twice again.

Codex plugin

The codex-plugin/ directory at the root of the game-of-cards repository is a Codex plugin. It is exposed through the repo marketplace file at .agents/plugins/marketplace.json.

What the plugin provides

Install from the repo marketplace

Add this repository as a Codex plugin marketplace:

codex plugin marketplace add zauberzeug/game-of-cards

Then open Codex’s plugin browser with /plugins, choose the Game of Cards marketplace source, and install game-of-cards.

For local development against a checkout:

codex plugin marketplace add /path/to/game-of-cards

Hooks and CLI behavior

Codex plugin hooks are opt-in in the current runtime. To enable the GoC hook set, add this to .codex/config.toml or ~/.codex/config.toml and restart Codex:

[features]
plugin_hooks = true

Codex does not currently document plugin bin/ auto-PATH behavior. The plugin therefore ships skills/_goc-bootstrap.sh, which invokes the bundled engine through the sibling bin/goc wrapper, and every Codex skill carries a ## Codex GoC Command block that resolves goc through it. In this source repo, use uv run goc ...; in plugin-only consumer repos, run <plugin-root>/skills/_goc-bootstrap.sh <verb> (the helper sits under ~/.codex/plugins/cache/ when the plugin root is not obvious from the loaded skill path). Install game-of-cards with pipx or uv tool only when using vendored Codex skills without the plugin payload.

Versioning and release

The Codex plugin version is locked to the game-of-cards PyPI package version. There is no separate Codex release cadence — gh workflow run release.yml -f version=X.Y.Z rewrites codex-plugin/.codex-plugin/plugin.json together with the other publish-channel manifests, mirrors the rewritten __version__ into codex-plugin/goc/__init__.py, and commits the result back to main before tagging. Because consumers add the marketplace as codex plugin marketplace add zauberzeug/game-of-cards, Codex reads the new version directly from the repo’s main branch — there is no separate package registry to push to. tests/test_version_surfaces.py enforces that codex-plugin/.codex-plugin/plugin.json::version matches goc/__init__.py::__version__, and goc validate’s plugin-mirror parity check (run in CI on every commit) keeps the bundled engine in sync with the source tree.

To consume a release after it lands, run codex plugin marketplace update zauberzeug/game-of-cards and reinstall, the same pattern as the Claude Code plugin.

OpenClaw plugin

The openclaw-plugin/ directory at the root of the game-of-cards repository is a plugin for OpenClaw — a Node-based personal AI assistant distributed through ClawHub. It is a peer to the Claude Code plugin: same engine, same skills, same deck — different host shape.

What the plugin provides

Prerequisites

The only host prerequisite is python3 (3.10+) on PATH. No uv and no separate pipx install game-of-cards step are required — the engine is bundled.

Install from ClawHub (consumers)

openclaw skills install game-of-cards

The same artifact is published to npm as game-of-cards; consumers that prefer npm can add it via OpenClaw’s plugin loading mechanism (see https://docs.openclaw.ai/plugins).

Install the plugin (local development)

Clone or check out this repository, then point OpenClaw at the local openclaw-plugin/ directory per OpenClaw’s local-plugin docs. The plugin’s TypeScript entry point (openclaw-plugin/index.ts) is bundled with esbuild on prepublishOnly; for local development the bundled dist/index.js is checked in so the plugin is loadable without a build step.

Known limitation: subagent tool projection

OpenClaw (≤ 2026.5.6) does not project the plugin’s registered goc tool to spawned subagents — the plugin-tool allowlist ignores tools.subagents.tools.alsoAllow. Main sessions are unaffected; subagent flows degrade by surfacing the tool as unavailable. Upstream tracker: https://github.com/openclaw/openclaw/pull/51388. Workaround guidance lives in the plugin README.

Migrating a legacy deck layout

Versions before 0.0.4 stored the deck under deck/ at the project root. From 0.0.4 onward the deck lives under .game-of-cards/deck/. Both layouts work for single-tree repos, but if both trees exist at the same time, goc will refuse to operate — any command other than goc migrate exits with an error naming both paths.

Why dual-tree is fatal

Two deck trees cause silent drift: a stale goc binary (installed globally as 0.0.3) writes to deck/; the local uv run goc (0.0.4) writes to .game-of-cards/deck/. Both validate independently. The divergence is invisible until a human diffs the two trees. This happened in practice — 12 hours of parallel writes in May 2026, reconciled in commit 004756d.

How to recover

goc migrate          # interactive — asks for confirmation before removing legacy tree
goc migrate --yes    # non-interactive
goc migrate --dry-run  # preview what would change

goc migrate inspects both trees, refuses if the same card has different content in each (drift), migrates legacy-only cards to canonical, then removes deck/. After a clean migration, goc validate confirms integrity.

If the same card appears in both trees with differing content, resolve the drift manually:

  1. Decide which version is authoritative.
  2. Copy the authoritative file into .game-of-cards/deck/<card>/README.md.
  3. Re-run goc migrate.

If you prefer to delete the stale tree directly: rm -rf deck/ removes the legacy path; rm -rf .game-of-cards/deck/ removes the canonical path. Only remove the tree you are certain is fully superseded.

Daily commands

goc
goc --board
goc -v --status all
goc new rename-the-button-to-export
goc status rename-the-button-to-export active
goc wait rename-the-button-to-export --reason external
goc done rename-the-button-to-export
goc validate

Common verbs:

Command Purpose
goc Show the open queue, sorted by leverage.
goc --board Show a kanban board by status.
goc new <title> Create a card under the nearest ancestor’s .game-of-cards/deck/<title>/; requires a prior goc install.
goc status <title> <state> Move a card through open, active, disproved, or superseded. The enum still accepts the deprecated blocked; use goc wait instead.
goc wait <title> --reason <r> Set the impediment overlay — the card stays open and visible, and is withheld only from --ready. --clear removes it.
goc decide <title> --decision X --because Y Record a human decision and lower the card gate.
goc done <title> Close a card after every Definition-of-Done checkbox is ticked.
goc validate Validate card frontmatter and schema constraints.
goc install Install the methodology into the current repo.
goc upgrade Re-sync generated templates in an existing install.
goc migrate Merge legacy deck/ into .game-of-cards/deck/ and remove the stale tree.

status, human_gate, and the impediment overlay (waiting_on + waiting_until) are orthogonal axes: a card can be active and carry waiting_on: external. The legacy status: blocked conflated them and is deprecated — it still parses for backwards compatibility but is being removed in a follow-up release. Migrate a legacy blocked card by dropping it to open when it was waiting on a prerequisite card (that wait is now derived from the advances graph and self-clears), or by setting goc wait <title> --reason external when the wait is exogenous.

Run goc --help or goc <command> --help for the full CLI surface.