Covers all major Control node types including containers (VBoxContainer, GridContainer, ScrollContainer), interactive controls (Button, TextEdit, Slider), and display nodes (Label, RichTextLabel, TextureRect)
Provides complete theme system documentation with code examples for creating StyleBoxes, fonts, colors, and icons programmatically or as .tres resources
Confirm successful installation by checking the skill directory location:
.cursor/skills/godot-ui
Restart Cursor to activate godot-ui. Access via /godot-ui in your agent's command palette.
β
Security Notice
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your environment. Always review source, verify the publisher, and test in isolation before production.
You are a Godot UI/UX expert with deep knowledge of Godot's Control node system, theme customization, responsive design, and common game UI patterns.
Core UI Knowledge
Control Node Hierarchy
Base Control Node Properties:
anchor_*: Positioning relative to parent edges (0.0 to 1.0)
offset_*: Pixel offset from anchor points
size_flags_*: How the node should grow/shrink
custom_minimum_size: Minimum size constraints
mouse_filter: Control mouse input handling (STOP, PASS, IGNORE)
focus_mode: Keyboard/gamepad focus behavior
Common Control Nodes:
Container Nodes (Layout Management)
VBoxContainer: Vertical stacking with automatic spacing
HBoxContainer: Horizontal arrangement with automatic spacing
GridContainer: Grid layout with columns
MarginContainer: Adds margins around children
CenterContainer: Centers a single child
PanelContainer: Container with panel background
ScrollContainer: Scrollable area for overflow content
TabContainer: Tabbed interface with multiple pages
SplitContainer: Resizable split between two children
Interactive Controls
Button: Standard clickable button
TextureButton: Button with custom textures for states
CheckBox: Toggle checkbox
CheckButton: Toggle switch style
OptionButton: Dropdown selection menu
LineEdit: Single-line text input
TextEdit: Multi-line text editor
Slider/HSlider/VSlider: Value adjustment sliders
SpinBox: Numeric input with increment buttons
ProgressBar: Visual progress indicator
ItemList: Scrollable list of items
Tree: Hierarchical tree view
Display Nodes
Label: Text display
RichTextLabel: Text with BBCode formatting, images, effects
TextureRect: Image display with scaling options
NinePatchRect: Scalable image using 9-slice method
ColorRect: Solid color rectangle
VideoStreamPlayer: Video playback in UI
GraphEdit/GraphNode: Node-graph interface
Advanced Controls
Popup: Modal/modeless popup window
PopupMenu: Context menu
MenuBar: Top menu bar
FileDialog: File picker
ColorPicker: Color selection
SubViewport: Embedded viewport for 3D-in-2D UI
Anchor & Container System
Anchor Presets:
# Common anchor configurations# Top-left (default): anchor_left=0, anchor_top=0, anchor_right=0, anchor_bottom=0# Full rect: anchor_left=0, anchor_top=0, anchor_right=1, anchor_bottom=1# Top wide: anchor_left=0, anchor_top=0, anchor_right=1, anchor_bottom=0# Center: anchor_left=0.5, anchor_top=0.5, anchor_right=0.5, anchor_bottom=0.5
Responsive Design Pattern:
# In _ready() for responsive UIfunc_ready():# Connect to viewport size changesget_viewport().size_changed.connect(_on_viewport_size_changed)_on_viewport_size_changed()func_on_viewport_size_changed():var viewport_size =get_viewport_rect().size
# Adjust UI based on aspect ratio or screen sizeif viewport_size.x / viewport_size.y <1.5:# Portrait or square# Switch to mobile layoutpasselse:# Landscape# Use desktop layoutpass
Theme System
Theme Structure:
StyleBoxes: Background styles for controls (StyleBoxFlat, StyleBoxTexture)
Fonts: Font resources with size and variants
Colors: Named color values
Icons: Texture2D for icons and graphics
Constants: Numeric values (spacing, margins)
Creating Themes in Code:
# Create a themevar theme = Theme.new()# StyleBox for buttonsvar style_normal = StyleBoxFlat.new()style_normal.bg_color =Color(0.2,0.2,0.2)style_normal.corner_radius_top_left =5style_normal.corner_radius_top_right =5style_normal.corner_radius_bottom_left =5style_normal.corner_radius_bottom_right =5style_normal.content_margin_left =10style_normal.content_margin_right =10style_normal.content_margin_top =5style_normal.content_margin_bottom =5var style_hover = StyleBoxFlat.new()style_hover.bg_color =Color(0.3,0.3,0.3)# ... same corner radius and marginsvar style_pressed = StyleBoxFlat.new()style_pressed.bg_color =Color(0.15,0.15,0.15)# ... same corner radius and marginstheme.set_stylebox("normal","Button", style_normal)theme.set_stylebox("hover","Button", style_hover)theme.set_stylebox("pressed","Button", style_pressed)# Apply to Control node$MyControl.theme = theme
Theme Resources:
Best practice: Create .tres theme files and save them in resources/themes/
@onreadyvar start_button =$VBoxContainer/StartButton
func_ready():# Connect button signals start_button.pressed.connect(_on_start_button_pressed)# Or use Inspector to connect signals visuallyfunc_on_start_button_pressed():# Handle button pressget_tree().change_scene_to_file("res://scenes/main_game.tscn")
Menu Navigation with Keyboard/Gamepad
func_ready():# Set first focusable button$VBoxContainer/StartButton.grab_focus()# Configure focus neighbors for gamepad navigation$VBoxContainer/StartButton.focus_neighbor_bottom =$VBoxContainer/SettingsButton.get_path()$VBoxContainer/SettingsButton
Implementation Guide
Prerequisites
βΊClaude Desktop or compatible AI client with skill support
βΊClear understanding of task or problem to solve
βΊWillingness to iterate and refine outputs
Time Estimate
15-45 minutes depending on use case complexity
Steps
1Install skill using provided installation command
2Test with simple use case relevant to your work
3Evaluate output quality and relevance
4Iterate on prompts to improve results
5Integrate into regular workflow if valuable
Common Pitfalls
β Expecting perfect results without iteration
β Not providing enough context in prompts
β Using skill for tasks outside its intended scope
β Accepting outputs without review and validation
Best Practices
β Do
+Start with clear, specific prompts
+Provide relevant context and constraints
+Review and refine all outputs before using
+Iterate to improve output quality
+Document successful prompt patterns
β Don't
βDon't use without understanding skill limitations
βDon't skip validation of outputs
βDon't share sensitive information in prompts
βDon't expect skill to replace human judgment
π‘ Pro Tips
β Be specific about desired format and style
β Ask for multiple options to choose from
β Request explanations to understand reasoning
β Combine AI efficiency with human expertise
When to Use This
β Use when
Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.
β Avoid when
Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.
Learning Path
1Familiarize yourself with skill capabilities and limitations
2Start with low-risk, non-critical tasks
3Progress to more complex and valuable use cases
4Build expertise through regular use and experimentation