Godot Genre Card Game logo

Godot Genre Card Game

Community
thedivergentai
godot-genre-card-game

Expert blueprint for digital card games (CCG/Deckbuilders) including card data structures (Resource-based), deck management (draw/discard/reshuffle), turn logic, hand layout (arcing), drag-and-drop UI, effect resolution (Command pattern), and visual polish (godot-tweening, shaders). Use for CCG, deckbuilders, or tactical card games. Trigger keywords: card_game, deck_manager, card_data, hand_layout, drag_drop_cards, effect_resolution, command_pattern, draw_pile, discard_pile.

Overview

Publisherthedivergentai
RepositoryGD-Agentic-Skills
Skill namegodot-genre-card-game
Stars
727
Forks
43
Bundled files
16
LicenseLGPL-3.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 16 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by thedivergentai on GitHub. Read the source before you install it.

Installation

Install the Godot Genre Card Game AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/thedivergentai/GD-Agentic-Skills.git /tmp/GD-Agentic-Skills
mkdir -p .claude/skills
cp -r /tmp/GD-Agentic-Skills/skills/godot-genre-card-game .claude/skills/godot-genre-card-game
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Godot Genre Card Game in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Godot Genre Card Game on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Godot Genre Card Game is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

NEVER Do (Expert Anti-Patterns)

Logic & Architecture

  • NEVER hardcode card logic inside UI scripts; strictly encapsulate gameplay effects in Callable objects or Command resources pushed to a LIFO stack.
  • NEVER perform board-state calculations (Power/Toughness) in _process(); strictly use Signal-driven triggers or a centralized EffectStack resolver.
  • NEVER forget LIFO Stack Resolution; strictly use Array.push_back() and Array.pop_back() to resolve reactions from top-to-bottom.

UX & Animation

  • NEVER skip Z-Index management during drag-and-drop; strictly raise the card to the front on click to prevent it sliding under other cards.
  • NEVER allow instant card "teleportation" between piles; strictly use create_tween() / tween_property chains (0.2s+) for pile moves.
  • NEVER use global_position for cards in hand; strictly position them using a Curve2D layout with sample_baked() for smooth arcs.

Deck & State Management

  • NEVER forget to handle Empty Deck scenarios; strictly implement auto-reshuffle of the discard pile to prevent soft-locks.
  • NEVER use floating point numbers for discrete card stats; strictly use int for Costs, Attack, and Health to avoid precision drift.
  • NEVER use standard Control nodes for mass tokens/battlefields; strictly use _draw() custom drawing to bypass SceneTree overhead when rendering 100+ cards or map icons.
  • NEVER rely on SceneTree order for hand logic; strictly manage logical order in an Array and update visuals via queue_redraw().
  • NEVER erase array elements during a standard for loop; strictly iterate in reverse or use filter() to avoid indexing errors.
  • NEVER forget to provide parameterless constructors in _init(); otherwise, Resources will fail to load in the Inspector.

🛠 Expert Components (scripts/)

MANDATORY reads before implementing the matching system:

  1. card_effect_resolution.gd — LIFO effect stack (push_back / pop_back)
  2. card_tween_manager.gd — interruptible pile/hand Tweens (no teleports)
  3. card_data_resource.gd — Inspector-safe Resource card definitions

Original Expert Patterns

Modular Components


Core Loop

  1. Draw → 2. Evaluate → 3. Play → 4. Resolve (LIFO stack) → 5. Discard/End

Decision Trees

Effect stack

NeedAction
Nested reactions / countersMANDATORY card_effect_resolution.gdLIFO only (pop_back)
FIFO sequential animations onlyRare; keep a separate queue — do not reuse the reaction stack

Hand & board

NeedAction
Arc hand layoutCurve2D.sample_baked + card_tween_manager.gd
Drag targetingcard_drag_drop.gd
Dense boards (100+ icons)_draw() / board_state_dictionary.gd — not Control-per-token

Data

NeedAction
Card definitionsMANDATORY card_data_resource.gd (parameterless _init)
Deck RNGdeck_shuffle_bag.gd
Turn phasesturn_state_machine.gd

Skill Chain

PhaseSkillsPurpose
1. Dataresources, custom-resourcesCard properties (Cost, Type, Effect)
2. UIcontrol-nodes, layout-containersHand layout, tooltips
3. Inputdrag-and-drop, state-machinesTargeting, hovering
4. Logiccommand-pattern, signalsLIFO stack, turn phases
5. Polishgodot-tweening, shadersDraw juice, foils

Common Pitfalls

PitfallSolution
FIFO pop_front on reaction stackUse LIFO pop_back in card_effect_resolution.gd
Instant pile snapsTween via card_tween_manager.gd
Float ATK/HPUse int stats on Resources

Elite notes (optional polish)

  • Holographic foil: UV scroll shader on card Control — not required for stack correctness.
  • Card history: signal bus logger for replay/debug; keep off the hot resolve path.

Expert knowledge (on demand)

LLM-ignorance rule: If a general agent would not know it before reading, load the reference — never delete expert deltas.

Reference

Progressive disclosure: open Official Documentation links only when researching a specific API; load Related Skills when routing to a peer domain — do not preload the whole lattice.

Official Documentation

  • Resources — CardData as .tres Resources so designers edit cost/stats without touching UI scripts.
  • GDScript exports@export / @export_group patterns that drive Inspector-authored card definitions.
  • Control_get_drag_data / _can_drop_data / _drop_data and set_drag_preview for native card drag-and-drop.
  • Custom GUI controls — building interactive card faces with _gui_input, mouse_filter, and _draw for dense boards.
  • Size and anchors — anchoring hand/board zones so layouts survive resolution changes.
  • Using Containers — when HBox/Grid help deck-builder grids vs manual hand arcing.
  • Tween — interruptible create_tween() / tween_property juice for draw, play, and discard moves.
  • Beziers, curves and paths — math behind arcing hand layouts instead of circular fudge factors.
  • Curve2Dsample_baked() for smooth non-circular fan positions and rotations.
  • Random number generation — seeded RNG and shuffle-bag fairness for draw piles.
  • Using signals — Resource changed and effect-stack signals that keep UI reactive without _process polling.
  • Your first 2D shader — canvas_item foil/rarity shaders on card faces.

Related Skills

Prerequisites
  • godot-project-foundations — scene tree, Autoloads, and import basics before wiring DeckManager and card scenes.
  • godot-resource-data-patterns.tres ownership, duplication, and emit_changed so match buffs never leak into authored card files.
  • godot-gdscript-mastery — typed Arrays, Callables/Commands, and match phases used by effect stacks and turn machines.
  • godot-ui-containers — Control layout, anchors, and mouse_filter habits required for hand/board hit-testing.
Complements
  • godot-tweening — kill/parallel Tween patterns so rapid plays do not teleport or stack dead tweens.
  • godot-signal-architecture — bus/signal graphs for draw, play, resolve, and discard without UI owning game rules.
  • godot-input-handling — pointer vs action maps when cards share the viewport with keyboard shortcuts and accessibility drag.
  • godot-turn-system — Draw/Main/Combat/End phase ownership that this skill's turn state machine plugs into.
  • godot-shaders-basics — canvas_item rarity foils and highlight materials beyond the skill's starter hologram snippet.
Downstream / consumers
  • godot-monte-carlo-balancer — simulate mulligans, mana curves, and win-rate vs cost/power so card stats stay fair under RNG.
  • godot-genre-roguelike — run-based deckbuilders that consume CardData, shops, and per-act draft pools.
  • godot-inventory-system — collection/deck-builder UIs that persist owned cards separately from the in-match piles.
  • godot-ability-system — keyword/status effects (Poison, Taunt, Shield) resolved as reusable ability resources on the stack.
Master
  • godot-master — library router and mirrored module entry for cross-skill discovery.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Godot Genre Card Game AI skill do?

Expert blueprint for digital card games (CCG/Deckbuilders) including card data structures (Resource-based), deck management (draw/discard/reshuffle), turn logic, hand layout (arcing), drag-and-drop UI, effect resolution (Command pattern), and visual polish (godot-tweening, shaders). Use for CCG, deckbuilders, or tactical card games. Trigger keywords: card_game, deck_manager, card_data, hand_layout, drag_drop_cards, effect_resolution, command_pattern, draw_pile, discard_pile.

Why use Godot Genre Card Game on TypingMind?

Because you install it once and use it with any model. Godot Genre Card Game is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Godot Genre Card Game in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/thedivergentai/GD-Agentic-Skills/tree/main/skills/godot-genre-card-game. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Godot Genre Card Game?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Godot Genre Card Game?

As many as you like. As long as a model supports skills, you can use Godot Genre Card Game with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Godot Genre Card Game AI skill free?

Yes. It is published on GitHub by thedivergentai under the LGPL-3.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇