Skip to content

RandallLiuXin/GodotMaker / skills/core/godot-api

godot-api

Unverified

Look up Godot engine class APIs — methods, properties, signals, enums. Use when you need to find which class to use or look up specific API details. Supports version-specific docs — reads the correct API for the project's Godot version.

FileKindSize
SKILL.mdskill md2.0 KB
csharp.mdmarkdown16.9 KB
gdscript.mdmarkdown24.3 KB
tools/class_list.pyscript13.2 KB
tools/ensure_doc_api.shscript4.0 KB
tools/godot_api_converter.pyscript23.5 KB

tools/class_list.py

View on GitHub
CLASS_SCENE = [
    # === Core ===
    "Node",
    "Node2D",
    "Node3D",
    "Resource",
    # === Physics 2D ===
    "CharacterBody2D",
    "RigidBody2D",
    "StaticBody2D",
    "AnimatableBody2D",
    "Area2D",
    "CollisionShape2D",
    "RayCast2D",
    "ShapeCast2D",
    # === Physics 3D ===
    "CharacterBody3D",
    "RigidBody3D",
    "StaticBody3D",
    "AnimatableBody3D",
    "Area3D",
    "CollisionShape3D",
    "RayCast3D",
    "ShapeCast3D",
    # === Visuals ===
    "Sprite2D",
    "AnimatedSprite2D",
    "Sprite3D",
    "AnimatedSprite3D",
    "MeshInstance2D",
    "MeshInstance3D",
    "MultiMeshInstance2D",
    "MultiMeshInstance3D",
    "GPUParticles2D",
    "GPUParticles3D",
    "CPUParticles2D",
    "CPUParticles3D",
    # === Cameras ===
    "Camera2D",
    "Camera3D",
    # === Animation & Timing ===
    "AnimationPlayer",
    "AnimationTree",
    "Tween",
    "Timer",
    # === Audio ===
    "AudioStreamPlayer",
    "AudioStreamPlayer2D",
    "AudioStreamPlayer3D",
    # === Tilemaps ===
    "TileMapLayer",
    "TileSet",
    # === Paths ===
    "Path2D",
    "Path3D",
    "PathFollow2D",
    "PathFollow3D",
    # === UI Core ===
    "Control",
    "CanvasLayer",
    "HBoxContainer",
    "VBoxContainer",
    "GridContainer",
    "MarginContainer",
    "CenterContainer",
    "Label",
    "Button",
    "TextureRect",
    "Panel",
    "ColorRect",
    "ProgressBar",
    # === Navigation ===
    "NavigationAgent2D",
    "NavigationAgent3D",
    "NavigationRegion2D",
    "NavigationRegion3D",
    # === Lights ===
    "PointLight2D",
    "DirectionalLight2D",
    "OmniLight3D",
    "SpotLight3D",
    "DirectionalLight3D",
    # === Shapes (CRITICAL - need exact property names) ===
    "RectangleShape2D",  # .size: Vector2
    "CircleShape2D",  # .radius: float
    "CapsuleShape2D",  # .radius, .height
    "ConvexPolygonShape2D",
    "BoxShape3D",  # .size: Vector3
    "SphereShape3D",  # .radius: float
    "CapsuleShape3D",  # .radius, .height
    "ConvexPolygonShape3D",
    # === Meshes (CRITICAL - need exact property names) ===
    "BoxMesh",  # .size: Vector3
    "SphereMesh",  # .radius, .height, .radial_segments
    "CylinderMesh",  # .top_radius, .bottom_radius, .height
    "CapsuleMesh",  # .radius, .height
    "PlaneMesh",  # .size: Vector2
    "QuadMesh",  # .size: Vector2
    "PrismMesh",  # .size: Vector3
    "TorusMesh",  # .inner_radius, .outer_radius
    # === Materials (CRITICAL - albedo_color not color!) ===
    "StandardMaterial3D",  # .albedo_color, .metallic, .roughness, .emission
    "CanvasItemMaterial",  # For 2D effects
    "ShaderMaterial",  # .shader, set_shader_parameter()
    # === Math Types (CRITICAL - constructors & constants) ===
    "Vector2",  # Vector2(x, y), Vector2.ZERO, .normalized()
    "Vector3",  # Vector3(x, y, z), Vector3.UP, .normalized()
    "Color",  # Color(r, g, b, a), Color.RED, Color.html("#ff0000")
    "Transform2D",  # For positioning
    "Transform3D",  # For positioning
    "Basis",  # For rotations
    "Rect2",  # For UI bounds
    # === Scene Handling ===
    "PackedScene",  # .pack(), .instantiate()
]

CLASS_SCRIPT = [
    # Core
    "Node",
    "Node2D",
    "Node3D",
    "Object",
    "RefCounted",
    "Resource",
    # Physics 2D
    "CharacterBody2D",
    "RigidBody2D",
    "StaticBody2D",
    "AnimatableBody2D",
    "Area2D",
    "CollisionShape2D",
    "CollisionPolygon2D",
    "RayCast2D",
    "ShapeCast2D",
    # Physics 3D
    "CharacterBody3D",
    "RigidBody3D",
    "StaticBody3D",
    "AnimatableBody3D",
    "Area3D",
    "CollisionShape3D",
    "CollisionPolygon3D",
    "RayCast3D",
    "ShapeCast3D",
    # Sprites & Visuals
    "Sprite2D",
    "AnimatedSprite2D",
    "Sprite3D",
    "AnimatedSprite3D",
    "MeshInstance2D",
    "MeshInstance3D",
    "MultiMeshInstance2D",
    "MultiMeshInstance3D",
    "GPUParticles2D",
    "GPUParticles3D",
    "CPUParticles2D",
    "CPUParticles3D",
    # Cameras
    "Camera2D",
    "Camera3D",
    # Animation
    "AnimationPlayer",
    "AnimationTree",
    "AnimationMixer",
    "Tween",
    "Timer",
    # Audio
    "AudioStreamPlayer",
    "AudioStreamPlayer2D",
    "AudioStreamPlayer3D",
    # Tilemaps
    "TileMapLayer",
    "TileSet",
    # Paths
    "Path2D",
    "Path3D",
    "PathFollow2D",
    "PathFollow3D",
    # UI Core
    "Control",
    "Container",
    "CanvasLayer",
    "CanvasItem",
    # UI Containers
    "HBoxContainer",
    "VBoxContainer",
    "GridContainer",
    "MarginContainer",
    "CenterContainer",
    "PanelContainer",
    "ScrollContainer",
    "AspectRatioContainer",
    # UI Elements
    "Label",
    "RichTextLabel",
    "Button",
    "TextureButton",
    "LineEdit",
    "TextEdit",
    "SpinBox",
    "Slider",
    "HSlider",
    "VSlider",
    "ProgressBar",
    "CheckBox",
    "CheckButton",
    "OptionButton",
    "ItemList",
    "Tree",
    "Panel",
    "TextureRect",
    "ColorRect",
    # Input
    "Input",  # Input.is_action_pressed(), get_axis(), etc.
    "InputEvent",
    "InputEventKey",
    "InputEventMouseButton",
    "InputEventMouseMotion",
    "InputEventAction",
    # Resources
    "PackedScene",
    "Texture2D",
    "ImageTexture",
    "AtlasTexture",
    "AudioStream",
    "AudioStreamWAV",
    "AudioStreamMP3",
    "AudioStreamOggVorbis",
    "Font",
    "FontFile",
    "Theme",
    "StyleBox",
    "Mesh",
    "ArrayMesh",
    "PrimitiveMesh",
    "BoxMesh",
    "SphereMesh",
    "CylinderMesh",
    "Material",
    "StandardMaterial3D",
    "ShaderMaterial",
    "CanvasItemMaterial",
    # Shapes
    "Shape2D",
    "RectangleShape2D",
    "CircleShape2D",
    "CapsuleShape2D",
    "ConvexPolygonShape2D",
    "Shape3D",
    "BoxShape3D",
    "SphereShape3D",
    "CapsuleShape3D",
    "ConvexPolygonShape3D",
    # Navigation
    "NavigationAgent2D",
    "NavigationAgent3D",
    "NavigationRegion2D",
    "NavigationRegion3D",
    # Lights
    "Light2D",
    "PointLight2D",
    "DirectionalLight2D",
    "Light3D",
    "OmniLight3D",
    "SpotLight3D",
    "DirectionalLight3D",
    # Math types (often needed)
    "Vector2",
    "Vector3",
    "Vector4",
    "Rect2",
    "Transform2D",
    "Transform3D",
    "Basis",
    "Quaternion",
    "AABB",
    "Plane",
    "Color",
    # Critical singletons (not nodes, but essential for scripts)
    "SceneTree",  # get_tree(), change_scene(), create_timer()
    "Engine",  # time_scale, physics ticks
    # Signal/callable (for dynamic connections)
    "Callable",
    "Signal",
    # Often manipulated in scripts
    "Curve",
    "Curve2D",
    "Curve3D",  # For paths
    "Gradient",  # For particles/effects
]

PRIORITY_CLASSES = [
    # Core
    "Node",
    "Node2D",
    "Node3D",
    "Object",
    "RefCounted",
    "Resource",
    # Physics 2D
    "CharacterBody2D",
    "RigidBody2D",
    "StaticBody2D",
    "AnimatableBody2D",
    "Area2D",
    "CollisionShape2D",
    "CollisionPolygon2D",
    "RayCast2D",
    "ShapeCast2D",
    # Physics 3D
    "CharacterBody3D",
    "RigidBody3D",
    "StaticBody3D",
    "AnimatableBody3D",
    "Area3D",
    "CollisionShape3D",
    "CollisionPolygon3D",
    "RayCast3D",
    "ShapeCast3D",
    # Sprites & Visuals
    "Sprite2D",
    "AnimatedSprite2D",
    "Sprite3D",
    "AnimatedSprite3D",
    "MeshInstance2D",
    "MeshInstance3D",
    "MultiMeshInstance2D",
    "MultiMeshInstance3D",
    "GPUParticles2D",
    "GPUParticles3D",
    "CPUParticles2D",
    "CPUParticles3D",
    # Cameras
    "Camera2D",
    "Camera3D",
    # Animation
    "AnimationPlayer",
    "AnimationTree",
    "AnimationMixer",
    "Tween",
    "Timer",
    # Audio
    "AudioStreamPlayer",
    "AudioStreamPlayer2D",
    "AudioStreamPlayer3D",
    # Tilemaps
    "TileMap",
    "TileMapLayer",
    "TileSet",
    # Paths
    "Path2D",
    "Path3D",
    "PathFollow2D",
    "PathFollow3D",
    # UI Core
    "Control",
    "Container",
    "CanvasLayer",
    "CanvasItem",
    # UI Containers
    "HBoxContainer",
    "VBoxContainer",
    "GridContainer",
    "MarginContainer",
    "CenterContainer",
    "PanelContainer",
    "ScrollContainer",
    "AspectRatioContainer",
    # UI Elements
    "Label",
    "RichTextLabel",
    "Button",
    "TextureButton",
    "LineEdit",
    "TextEdit",
    "SpinBox",
    "Slider",
    "HSlider",
    "VSlider",
    "ProgressBar",
    "CheckBox",
    "CheckButton",
    "OptionButton",
    "ItemList",
    "Tree",
    "Panel",
    "TextureRect",
    "ColorRect",
    # Input
    "InputEvent",
    "InputEventKey",
    "InputEventMouseButton",
    "InputEventMouseMotion",
    "InputEventAction",
    # Resources
    "PackedScene",
    "Texture2D",
    "ImageTexture",
    "AtlasTexture",
    "AudioStream",
    "AudioStreamWAV",
    "AudioStreamMP3",
    "AudioStreamOggVorbis",
    "Font",
    "FontFile",
    "Theme",
    "StyleBox",
    "Mesh",
    "ArrayMesh",
    "PrimitiveMesh",
    "BoxMesh",
    "SphereMesh",
    "CylinderMesh",
    "Material",
    "StandardMaterial3D",
    "ShaderMaterial",
    "CanvasItemMaterial",
    # Shapes
    "Shape2D",
    "RectangleShape2D",
    "CircleShape2D",
    "CapsuleShape2D",
    "ConvexPolygonShape2D",
    "Shape3D",
    "BoxShape3D",
    "SphereShape3D",
    "CapsuleShape3D",
    "ConvexPolygonShape3D",
    # Navigation
    "NavigationAgent2D",
    "NavigationAgent3D",
    "NavigationRegion2D",
    "NavigationRegion3D",
    # Lights
    "Light2D",
    "PointLight2D",
    "DirectionalLight2D",
    "Light3D",
    "OmniLight3D",
    "SpotLight3D",
    "DirectionalLight3D",
    # Math types (often needed)
    "Vector2",
    "Vector3",
    "Vector4",
    "Rect2",
    "Transform2D",
    "Transform3D",
    "Basis",
    "Quaternion",
    "AABB",
    "Plane",
    "Color",
]

# Unified list for both scene and script generation (99% scene / 95% script coverage)
CLASS_UNIFIED = [
    # === Core ===
    "Node",
    "Node2D",
    "Node3D",
    "Object",
    "RefCounted",
    "Resource",
    # === Physics 2D ===
    "CharacterBody2D",
    "RigidBody2D",
    "StaticBody2D",
    "AnimatableBody2D",
    "Area2D",
    "CollisionShape2D",
    "CollisionPolygon2D",
    "RayCast2D",
    "ShapeCast2D",
    # === Physics 3D ===
    "CharacterBody3D",
    "RigidBody3D",
    "StaticBody3D",
    "AnimatableBody3D",
    "Area3D",
    "CollisionShape3D",
    "CollisionPolygon3D",
    "RayCast3D",
    "ShapeCast3D",
    # === Sprites & Visuals ===
    "Sprite2D",
    "AnimatedSprite2D",
    "Sprite3D",
    "AnimatedSprite3D",
    "MeshInstance2D",
    "MeshInstance3D",
    "MultiMeshInstance2D",
    "MultiMeshInstance3D",
    "GPUParticles2D",
    "GPUParticles3D",
    "CPUParticles2D",
    "CPUParticles3D",
    # === Cameras ===
    "Camera2D",
    "Camera3D",
    # === Animation & Timing ===
    "AnimationPlayer",
    "AnimationTree",
    "Tween",
    "Timer",
    # === Audio ===
    "AudioStreamPlayer",
    "AudioStreamPlayer2D",
    "AudioStreamPlayer3D",
    # === Tilemaps ===
    "TileMapLayer",
    "TileSet",
    # === Paths ===
    "Path2D",
    "Path3D",
    "PathFollow2D",
    "PathFollow3D",
    "Curve2D",
    "Curve3D",
    # === UI Core ===
    "Control",
    "Container",
    "CanvasLayer",
    "CanvasItem",
    # === UI Containers ===
    "HBoxContainer",
    "VBoxContainer",
    "GridContainer",
    "MarginContainer",
    "CenterContainer",
    "PanelContainer",
    "ScrollContainer",
    # === UI Elements ===
    "Label",
    "Button",
    "TextureButton",
    "LineEdit",
    "ProgressBar",
    "Slider",
    "HSlider",
    "VSlider",
    "CheckBox",
    "Panel",
    "TextureRect",
    "ColorRect",
    # === Input ===
    "Input",
    "InputEvent",
    # === Resources ===
    "PackedScene",
    "Texture2D",
    "AudioStream",
    "Mesh",
    "Material",
    "StandardMaterial3D",
    "ShaderMaterial",
    "CanvasItemMaterial",
    # === Shapes ===
    "Shape2D",
    "RectangleShape2D",
    "CircleShape2D",
    "CapsuleShape2D",
    "ConvexPolygonShape2D",
    "Shape3D",
    "BoxShape3D",
    "SphereShape3D",
    "CapsuleShape3D",
    "ConvexPolygonShape3D",
    # === Meshes ===
    "PrimitiveMesh",
    "BoxMesh",
    "SphereMesh",
    "CylinderMesh",
    "CapsuleMesh",
    "PlaneMesh",
    # === Navigation ===
    "NavigationAgent2D",
    "NavigationAgent3D",
    "NavigationRegion2D",
    "NavigationRegion3D",
    # === Lights ===
    "Light2D",
    "PointLight2D",
    "DirectionalLight2D",
    "Light3D",
    "OmniLight3D",
    "SpotLight3D",
    "DirectionalLight3D",
    # === Math types ===
    "Vector2",
    "Vector3",
    "Vector4",
    "Rect2",
    "Transform2D",
    "Transform3D",
    "Basis",
    "Quaternion",
    "AABB",
    "Plane",
    "Color",
    # === Singletons/utilities ===
    "SceneTree",
    "Engine",
    "Callable",
    "Signal",
]

KEY_CODES = {
    "W": 87,
    "A": 65,
    "S": 83,
    "D": 68,
    "Up": 4194320,
    "Down": 4194322,
    "Left": 4194319,
    "Right": 4194321,
    "Space": 32,
    "Enter": 4194309,
    "Escape": 4194305,
    "Shift": 4194328,
    "Ctrl": 4194326,
    "Alt": 4194332,
    "Mouse1": 1,
    "Mouse2": 2,
}

# C# Key enum names for input mapping in Godot .NET
KEY_ENUM_CS = {
    "W": "Key.W",
    "A": "Key.A",
    "S": "Key.S",
    "D": "Key.D",
    "Up": "Key.Up",
    "Down": "Key.Down",
    "Left": "Key.Left",
    "Right": "Key.Right",
    "Space": "Key.Space",
    "Enter": "Key.Enter",
    "Escape": "Key.Escape",
    "Shift": "Key.Shift",
    "Ctrl": "Key.Ctrl",
    "Alt": "Key.Alt",
    "Mouse1": "MouseButton.Left",
    "Mouse2": "MouseButton.Right",
}
rea-changelog-updatemorluto/reaPrepare or rewrite REA release changelogs and GitHub release notes from pinned Git history, with verified contributor thanks and Release Please synchronization.Stars: 471kUpdated Claude CodeCodexVerifiedInstall
academy-guideanthropics/skillsStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials, and use cases from Claude Academy (academy.claude.com), Anthropic's learning hub. Trigger on: "how do I", "how can I", "getting started with", "what can Claude do", "teach me", "learn to use"; questions about artifacts, projects, skills, plugins, connectors, MCP; requests about rolling Claude out to a team, class, or organization; and any ask for training materials, onboarding content, or learning resources. Use it when the user is learning how to use a feature or product — not when they are mid-task and just want the task done. This skill composes with other skills: after consulting product documentation to answer how a Claude feature works, also check here for a matching course or tutorial — a docs-grounded answer and an Academy recommendation belong together. Only recommend on a strong match; never invent Academy content.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
claude-apianthropics/skillsReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER — read BEFORE opening the target file; don't skip because it "looks like a one-liner" — whenever: the prompt names Claude/Anthropic in any form (Claude, Anthropic, Fable, Opus, Sonnet, Haiku, `anthropic`, `@anthropic-ai`, `claude-*`, `us.anthropic.*`, `[1m]`); the user asks about an LLM (pricing/model choice/limits/caching) — never answer from memory; OR the task is LLM-shaped with provider unstated (agent/MCP/tool-definition/multi-agent/RAG/LLM-judge/computer-use; generate/summarize/extract/classify/rewrite/converse over NL; debugging refusals/cutoffs/streaming/tool-calls/tokens). SKIP only when another provider is being worked on (overrides all triggers): OpenAI/GPT/Gemini/Llama/Mistral/Cohere/Ollama named in the query; OR `grep -rE 'openai|langchain_openai|google.generativeai|genai|mistralai|cohere|ollama'` over the project hits (run this grep FIRST if no provider named — don't Read the file).Stars: 198kUpdated Claude CodeCodexUnverifiedInstall
doc-coauthoringanthropics/skillsGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision docs, or similar structured content. This workflow helps users efficiently transfer context, refine content through iteration, and verify the doc works for readers. Trigger when user mentions writing docs, creating proposals, drafting specs, or similar documentation tasks.Stars: 198kUpdated Claude CodeCodexVerifiedInstall