# godot-genre-card-game

A skill that gives your agent a working blueprint for CCGs and deckbuilders in Godot: card data, deck flow, turn phases, drag-and-drop, effect resolution.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 371 installs · ★ 893
- Author: thedivergentai
- License: LGPL-3.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/thedivergentai/Game-Dev-Agentic-Skills/tree/HEAD/skills/godot-genre-card-game/SKILL.md
- Updated: 2026-10-16
- HTML: https://affpapa.org/en/nevibecode/skills/godot-genre-card-game

## What it does

The skill lays out how to build a digital card game in Godot: cards as Resources with Inspector-editable fields, a deck manager handling draw, discard and reshuffle, a state machine for turn phases, an arcing hand laid out on a `Curve2D`, and dragging through `_get_drag_data()`. Effects and nested reactions resolve on a LIFO stack using `Array.push_back()` and `Array.pop_back()`.

It ships concrete scripts: `card_effect_resolution.gd` for the effect stack, `card_tween_manager.gd` for interruptible pile and hand tweens, `card_data_resource.gd` for card definitions, `deck_shuffle_bag.gd` for even randomization, `turn_state_machine.gd` for phases, plus `card_drag_drop.gd`, `board_query_filter.gd`, `board_state_dictionary.gd` and `deck_builder_validator.gd`. Decision tables and a pitfalls list come with them.

The skill bans board-state math inside `_process()` and card logic inside UI scripts. Resources need a parameterless `_init()`, otherwise they fail to load in the Inspector. Dense boards with 100+ tokens should be drawn with `_draw()` instead of one Control per token. For cards in hand, `global_position` is the wrong tool — position them along the curve.

## Requirements
- Works with: Godot

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add thedivergentai/Game-Dev-Agentic-Skills --skill godot-genre-card-game -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/godot-genre-card-game/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/godot-genre-card-game/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add thedivergentai/Game-Dev-Agentic-Skills --skill godot-genre-card-game -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/godot-genre-card-game/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add thedivergentai/Game-Dev-Agentic-Skills --skill godot-genre-card-game -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/godot-genre-card-game/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install thedivergentai/Game-Dev-Agentic-Skills godot-genre-card-game
```

2. **Manually: put the files in place**
- File: `.github/skills/godot-genre-card-game/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add thedivergentai/Game-Dev-Agentic-Skills --skill godot-genre-card-game -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/thedivergentai/Game-Dev-Agentic-Skills --path skills/godot-genre-card-game
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/godot-genre-card-game/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add thedivergentai/Game-Dev-Agentic-Skills --skill godot-genre-card-game -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/thedivergentai/Game-Dev-Agentic-Skills/tree/HEAD/skills/godot-genre-card-game/SKILL.md

## When to use it
- fan out cards in hand along an arc
- resolve nested card effects and counter-play on a stack
- shuffle a deck without skewing the distribution
- move a turn through draw, play and combat phases
- validate a deck against building constraints

## Example prompts
- Build a deck manager in Godot with draw, discard and auto-reshuffle on an empty deck
- Resolve card effects through a LIFO stack with nested triggers
- Set up dragging cards from hand onto the board with z-index raised on click

## Similar
- [godot-gdscript](https://affpapa.org/en/nevibecode/skills/godot-gdscript.md) — skill · 6500 installs
- [godot-physics](https://affpapa.org/en/nevibecode/skills/godot-physics.md) — skill · 6300 installs
- [godot-mcp-enhanced](https://affpapa.org/en/nevibecode/mcp/godot-mcp-enhanced.md) — MCP server · ★ 103
- [godot](https://affpapa.org/en/nevibecode/rules/godot.md) — rule · ★ 3579
- [make-game](https://affpapa.org/en/nevibecode/skills/make-game.md) — skill · 1100 installs
- [spritecook-use-assets-in-godot](https://affpapa.org/en/nevibecode/skills/spritecook-use-assets-in-godot.md) — skill · 555 installs

From the same set: [thedivergentai/game-dev-agentic-skills](https://affpapa.org/en/nevibecode/by/thedivergentai/game-dev-agentic-skills.md) — 50 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
