Agent skill

godot

Godot Engine game development. Use for Godot projects, GDScript/C#, scenes (.tscn), Resources, signals, UI, rendering, and macOS/iOS export.

Stars 0
Forks 0

Install this agent skill to your Project

npx add-skill https://github.com/unfrgivn/abby-game/tree/main/.opencode/skill/godot

SKILL.md

Godot Engine Development Skill

Assistance with Godot 4 game development, covering scenes/nodes, GDScript architecture, UI flows, data-driven Resources, rendering/performance, and platform exports (macOS + iOS).

When to Use This Skill

Trigger this skill when working with:

  • Godot Engine projects (2D/3D)
  • GDScript (preferred) or C# in Godot
  • Scene composition (.tscn), Node hierarchies, and signals
  • Resources (.tres/.res) for data-driven definitions (items, stickers, enemies)
  • UI (Control nodes), input, and focus/touch handling
  • Performance profiling, rendering settings, and asset import
  • Export pipelines (macOS app bundles, iOS Xcode projects)

Project Conventions (Wilds of Cloverhollow)

  • Scenes are small and composable; prefer reusable child scenes.
  • Keep gameplay rules out of UI Nodes.
  • Combat rules should be deterministic and testable.
  • Use Resources for content definitions:
    • StickerDef, EnemyDef, EncounterDef
  • Use autoload singletons sparingly:
    • GameState (save/load + persistent inventory)
    • SceneRouter (scene transitions)

Quick Reference

Node lifecycle

gdscript
extends Node

func _ready() -> void:
    pass

func _process(delta: float) -> void:
    pass

func _physics_process(delta: float) -> void:
    pass

Signals

gdscript
signal sticker_used(sticker_id: String)

func use_sticker(id: String) -> void:
    sticker_used.emit(id)

Resources for data

gdscript
extends Resource
class_name StickerDef

@export var id: String
@export var display_name: String
@export var description: String
@export var power: int
@export var cooldown_turns: int

Saving (minimal)

gdscript
var save_path := "user://save.json"

func save_json(data: Dictionary) -> void:
    var f := FileAccess.open(save_path, FileAccess.WRITE)
    f.store_string(JSON.stringify(data))

func load_json() -> Dictionary:
    if not FileAccess.file_exists(save_path):
        return {}
    var f := FileAccess.open(save_path, FileAccess.READ)
    return JSON.parse_string(f.get_as_text())

Expand your agent's capabilities with these related and highly-rated skills.

mattpocock/skills

setup-pre-commit

Set up Husky pre-commit hooks with lint-staged (Prettier), type checking, and tests in the current repo. Use when user wants to add pre-commit hooks, set up Husky, configure lint-staged, or add commit-time formatting/typechecking/testing.

111,310 9,758
Explore
mattpocock/skills

git-guardrails-claude-code

Set up Claude Code hooks to block dangerous git commands (push, reset --hard, clean, branch -D, etc.) before they execute. Use when user wants to prevent destructive git operations, add git safety hooks, or block git push/reset in Claude Code.

111,310 9,758
Explore
mattpocock/skills

scaffold-exercises

Create exercise directory structures with sections, problems, solutions, and explainers that pass linting. Use when user wants to scaffold exercises, create exercise stubs, or set up a new course section.

111,310 9,758
Explore
mattpocock/skills

edit-article

Edit and improve articles by restructuring sections, improving clarity, and tightening prose. Use when user wants to edit, revise, or improve an article draft.

111,310 9,758
Explore
mattpocock/skills

obsidian-vault

Search, create, and manage notes in the Obsidian vault with wikilinks and index notes. Use when user wants to find, create, or organize notes in Obsidian.

111,310 9,758
Explore
mattpocock/skills

migrate-to-shoehorn

Migrate test files from `as` type assertions to @total-typescript/shoehorn. Use when user mentions shoehorn, wants to replace `as` in tests, or needs partial test data.

111,310 9,758
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results