- name
SKILL.md
The skill file stays in the publisher's repository.
Paste the copied command in a terminal. It installs this SKILL.md into that agent.
npx skills add gamedev-skills/awesome-gamedev-agent-skills --skill card-game -a cursor -yPaste the copied command in a terminal. It installs this SKILL.md into that agent.
npx skills add gamedev-skills/awesome-gamedev-agent-skills --skill card-game -a claude-code -yPaste the copied command in a terminal. It installs this SKILL.md into that agent.
npx skills add gamedev-skills/awesome-gamedev-agent-skills --skill card-game -a codex -yPaste the copied command in a terminal. It installs this SKILL.md into that agent.
npx skills add gamedev-skills/awesome-gamedev-agent-skills --skill card-game -a grok -ySend the copied message in a Grok Bot chat. The Bot fetches this SKILL.md from GitHub and adds it to the skills all your Bots share.
Install this skill: https://github.com/gamedev-skills/awesome-gamedev-agent-skills/tree/HEAD/skills/genres/card-gameFrom the publisher
Owns the rules engine of a card game: zones, draw, costs, effect resolution, rewards and balance math, including the run structure of a roguelike deckbuilder. Engine skills supply the data assets and UI.
When not to use: grid dungeon runs (roguelike); board games with matching or pushing
rules (puzzle); an RPG with a small card minigame (start in rpg).
Balatro's run is 8 antes of three blinds (small 1x, big 1.5x, boss mostly 2x the ante's base score). Slay the Spire's enemies show their next action (intent), which is what makes a PvE card game a planning puzzle rather than a guess. Copy the idea, never the cards.
# Pseudocode. One zone per card instance; moving = remove from one list, append to another.
def draw(player, n):
for _ in range(n):
if not player.draw_pile:
if not player.discard:
return on_empty_draw(player) # deck-out loss, fatigue, or simply stop
player.draw_pile = player.discard; player.discard = []
shuffle(player.draw_pile, player.rng) # seeded Fisher-Yates (refs §6)
card = player.draw_pile.pop()
if len(player.hand) >= HAND_CAP:
move(card, to=player.discard); log("burned", card) # define overdraw explicitly
else:
player.hand.append(card)
def play(card, player, targets):
if player.energy < cost(card) or not legal(card, targets):
return False # nothing changed yet
player.energy -= cost(card)
move(card, frm=player.hand, to=player.limbo) # in play while resolving
for op in card.ops:
push_effect(op, Ctx(player, card, targets))
resolve_stack() # refs §2
move(card, frm=player.limbo, to=destination(card)) # discard, exhaust, board
return True
Holding the card in a "limbo" zone while it resolves keeps a draw effect from reshuffling the card that is being played back into the draw pile.
0..i. Use Fisher-Yates with an inclusive upper bound and check the engine's range
convention (refs §6).references/effect-resolution.md: read when writing the op interpreter, the stack or queue,
triggers and keywords, targeting and fizzle rules, deckbuilder versus constructed structure,
shuffle code and per-engine RNG calls, or cost curves.Related: godot-resources or unity-scriptableobjects (card data assets), game-ui-ux with
godot-ui-control (hand layout, drag and targeting UI), save-systems (run and collection
saves), game-ai (opponent choice), game-feel (card hover, play and hit feedback).
Last verified: 2026-11-11.
math.comb (60 cards, 4 copies: 39.9% in 7, 52.8% in 10).>
---name: card-gamedescription: >---# skills/genres/card-game/SKILL.mdFAQ
Download skills/genres/card-game/SKILL.md from the publisher, or copy the path and open the repository. PlugMCP lists the skill and does not host the file.
The publisher keeps it at https://github.com/gamedev-skills/awesome-gamedev-agent-skills.
Claude, Cursor, Codex, and Grok Build can read a SKILL.md you add from the publisher's repository. Grok Bot installs it when you send the skill's GitHub folder link in a chat.