godot
This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.
What this skill does
# Godot Engine Development Skill
Specialized guidance for developing games and applications with Godot Engine, with emphasis on effective collaboration between LLM coding assistants and Godot's unique file structure.
## Overview
Godot projects use a mix of GDScript code files (.gd) and text-based resource files (.tscn for scenes, .tres for resources). While GDScript is straightforward, the resource files have strict formatting requirements that differ significantly from GDScript syntax. This skill provides file format expertise, proven architecture patterns, validation tools, code templates, and debugging workflows to enable effective development of Godot projects.
## When to Use This Skill
Invoke this skill when:
- Working on any Godot Engine project
- Creating or modifying .tscn (scene) or .tres (resource) files
- Implementing game systems (interactions, attributes, spells, inventory, etc.)
- Debugging "file failed to load" or similar resource errors
- Setting up component-based architectures
- Creating signal-driven systems
- Implementing resource-based data (items, spells, abilities)
## Key Principles
### 1. Understand File Format Differences
**GDScript (.gd) - Full Programming Language:**
```gdscript
extends Node
class_name MyClass
var speed: float = 5.0
const MAX_HEALTH = 100
func _ready():
print("Ready")
```
**Scene Files (.tscn) - Strict Serialization Format:**
```
[ext_resource type="Script" path="res://script.gd" id="1"]
[node name="Player" type="CharacterBody3D"]
script = ExtResource("1") # NOT preload()!
```
**Resource Files (.tres) - NO GDScript Syntax:**
```
[ext_resource type="Script" path="res://item.gd" id="1"]
[resource]
script = ExtResource("1") # NOT preload()!
item_name = "Sword" # NOT var item_name = "Sword"!
```
### 2. Critical Rules for .tres and .tscn Files
**NEVER use in .tres/.tscn files:**
- `preload()` - Use `ExtResource("id")` instead
- `var`, `const`, `func` - These are GDScript keywords
- Untyped arrays - Use `Array[Type]([...])` syntax
**ALWAYS use in .tres/.tscn files:**
- `ExtResource("id")` for external resources
- `SubResource("id")` for inline resources
- Typed arrays: `Array[Resource]([...])`
- Proper ExtResource declarations before use
### 3. Separation of Concerns
**Keep logic in .gd files, data in .tres files:**
```
src/
spells/
spell_resource.gd # Class definition + logic
spell_effect.gd # Effect logic
resources/
spells/
fireball.tres # Data only, references scripts
ice_spike.tres # Data only
```
This makes LLM editing much safer and clearer.
### 4. Component-Based Architecture
Break functionality into small, focused components:
```
Player (CharacterBody3D)
├─ HealthAttribute (Node) # Component
├─ ManaAttribute (Node) # Component
├─ Inventory (Node) # Component
└─ StateMachine (Node) # Component
├─ IdleState (Node)
├─ MoveState (Node)
└─ AttackState (Node)
```
**Benefits:**
- Each component is a small, focused file
- Easy to understand and modify
- Clear responsibilities
- Reusable across different entities
### 5. Signal-Driven Communication
Use signals for loose coupling:
```gdscript
# Component emits signals
signal health_changed(current, max)
signal death()
# Parent connects to signals
func _ready():
$HealthAttribute.health_changed.connect(_on_health_changed)
$HealthAttribute.death.connect(_on_death)
```
**Benefits:**
- No tight coupling between systems
- Easy to add new listeners
- Self-documenting (signals show available events)
- UI can connect without modifying game logic
## Using Bundled Resources
### Validation Scripts
Validate .tres and .tscn files before testing in Godot to catch syntax errors early.
**Validate .tres file:**
```bash
python3 scripts/validate_tres.py resources/spells/fireball.tres
```
**Validate .tscn file:**
```bash
python3 scripts/validate_tscn.py scenes/player/player.tscn
```
Use these scripts when:
- After creating or editing .tres/.tscn files programmatically
- When debugging "failed to load" errors
- Before committing scene/resource changes
- When user reports issues with custom resources
### Reference Documentation
Load reference files when needed for detailed information:
**`references/file-formats.md`** - Deep dive into .gd, .tscn, .tres syntax:
- Complete syntax rules for each file type
- Common mistakes with examples
- Safe vs risky editing patterns
- ExtResource and SubResource usage
**`references/architecture-patterns.md`** - Proven architectural patterns:
- Component-based interaction system
- Attribute system (health, mana, etc.)
- Resource-based effect system (spells, items)
- Inventory system
- State machine pattern
- Examples of combining patterns
Read these references when:
- Implementing new game systems
- Unsure about .tres/.tscn syntax
- Debugging file format errors
- Planning architecture for new features
### Code Templates
Use templates as starting points for common patterns. Templates are in `assets/templates/`:
**`component_template.gd`** - Base component with signals, exports, activation:
```gdscript
# Copy and customize for new components
cp assets/templates/component_template.gd src/components/my_component.gd
```
**`attribute_template.gd`** - Numeric attribute (health, mana, stamina):
```gdscript
# Use for any numeric attribute with min/max
cp assets/templates/attribute_template.gd src/attributes/stamina_attribute.gd
```
**`interaction_template.gd`** - Interaction component base class:
```gdscript
# Extend for custom interactions (pickup, door, switch, etc.)
cp assets/templates/interaction_template.gd src/interactions/lever_interaction.gd
```
**`spell_resource.tres`** - Example spell with effects:
```bash
# Use as reference for creating new spell data
cat assets/templates/spell_resource.tres
```
**`item_resource.tres`** - Example item resource:
```bash
# Use as reference for creating new item data
cat assets/templates/item_resource.tres
```
## Workflows
### Workflow 1: Creating a New Component System
Example: Adding a health system to enemies.
**Steps:**
1. **Read architecture patterns reference:**
```bash
# Check for similar patterns
Read references/architecture-patterns.md
# Look for "Attribute System" section
```
2. **Create base class using template:**
```bash
cp assets/templates/attribute_template.gd src/attributes/attribute.gd
# Customize the base class
```
3. **Create specialized subclass:**
```bash
# Create health_attribute.gd extending attribute.gd
# Add health-specific signals (damage_taken, death)
```
4. **Add to scene via .tscn edit:**
```
[ext_resource type="Script" path="res://src/attributes/health_attribute.gd" id="4_health"]
[node name="HealthAttribute" type="Node" parent="Enemy"]
script = ExtResource("4_health")
value_max = 50.0
value_start = 50.0
```
5. **Test immediately in Godot editor**
6. **If issues, validate the scene file:**
```bash
python3 scripts/validate_tscn.py scenes/enemies/base_enemy.tscn
```
### Workflow 2: Creating Resource Data Files (.tres)
Example: Creating a new spell.
**Steps:**
1. **Reference the template:**
```bash
cat assets/templates/spell_resource.tres
```
2. **Create new .tres file with proper structure:**
```tres
[gd_resource type="Resource" script_class="SpellResource" load_steps=3 format=3]
[ext_resource type="Script" path="res://src/spells/spell_resource.gd" id="1"]
[ext_resource type="Script" path="res://src/spells/spell_effect.gd" id="2"]
[sub_resource type="Resource" id="Effect_1"]
script = ExtResource("2")
effect_type = 0
magnitude_min = 15.0
magnitude_max = 25.0
[resource]
script = ExtResource("1")
spell_name = "Fireball"
spell_id = "fireball"
mana_cost = 25.0
effects = Array[ExtResource("2")]([SubResource("Effect_1")])
```
3. **Validate before testing:**
```bash
python3 scripts/validate_tres.pRelated in Design
contribute
IncludedLocal-only OSS contribution command center. Auto-refreshes the user's in-flight PR and issue state on invoke so conversations start with full context — no need to brief Claude on what's in flight. Helps the user find issues to contribute to on GitHub, builds per-repo dossiers of what each upstream expects (CLA, DCO, branch convention, AI policy, draft-first, review bots, issue templates), runs deterministic gates before any external action so AI-assisted contributions don't reach maintainers as slop. State is markdown-only: candidate files at ~/.contribute-system/candidates/, repo dossiers at ~/.contribute-system/research/, append-only event log at ~/.contribute-system/log.jsonl. No database, no cloud calls. Use when the user asks about their PRs / issues / contributions, wants to find new work to take on, claim an issue, build/refresh a repo's dossier, or draft a Design Issue or PR. Trigger with "/contribute", "what's my PR status", "find a contribution", "claim issue X", "draft a Design Issue for Y", "refresh dossier for Z".
architectural-analysis
IncludedUser-triggered deep architectural analysis of a codebase or scoped subtree across eight modes — information architecture, data flow, integration points, UI surfaces, interaction patterns, data model, control flow, and failure modes. This skill should be used when the user asks to "diagram this codebase," "map the architecture," "show the data flow," "give me an ERD," "trace control flow," "find the integration points," "verify the layout pattern," "audit the UX architecture," or any similar request whose primary deliverable is mermaid diagrams plus cited reports under docs/architecture/. Dispatches haiku/sonnet sub-agents in parallel for per-mode exploration, then verifies every citation mechanically before any node lands in a diagram. Not for one-off prose explanations of code (use code-explanation) or for high-level system design from scratch (use system-design).
mcp
IncludedModel Context Protocol (MCP) server development and tool management. Languages: Python, TypeScript. Capabilities: build MCP servers, integrate external APIs, discover/execute MCP tools, manage multi-server configs, design agent-centric tools. Actions: create, build, integrate, discover, execute, configure MCP servers/tools. Keywords: MCP, Model Context Protocol, MCP server, MCP tool, stdio transport, SSE transport, tool discovery, resource provider, prompt template, external API integration, Gemini CLI MCP, Claude MCP, agent tools, tool execution, server config. Use when: building MCP servers, integrating external APIs as MCP tools, discovering available MCP tools, executing MCP capabilities, configuring multi-server setups, designing tools for AI agents.
react-native-skia
IncludedDesign, build, debug, and optimise high-polish animated graphics in React Native or Expo using @shopify/react-native-skia, Reanimated, and Gesture Handler. Use when the user wants canvas-driven UI, shaders, paths, rich text, image filters, sprite fields, Skottie, video frames, snapshots, web CanvasKit setup, or performance tuning for custom motion-heavy elements such as loaders, hero art, cards, charts, progress indicators, particle systems, or gesture-driven surfaces. Also use when the user asks for fluid, glow, glass, blob, parallax, 60fps/120fps, or GPU-friendly animated effects in React Native, even if they do not explicitly say "Skia". Do not use for ordinary form/layout work with standard views.
plaid
IncludedProduct Led AI Development — guides founders from idea to launched product. Six capabilities: Idea (discover a product idea), Validate (pressure-test the idea against fatal flaws, problem reality, competition, and 2-week MVP feasibility), Plan (vision intake + document generation), Design (translate image references into a design.md spec), Launch (go-to-market strategy), and Build (roadmap execution). Use when someone says "PLAID", "plaid idea", "help me find an idea", "product idea", "idea from my business", "idea from my expertise", "plaid validate", "validate my idea", "pressure-test", "is this idea good", "find fatal flaws", "validate the problem", "plan a product", "define my vision", "generate a PRD", "product strategy", "plaid design", "design from image", "translate image to design", "create design.md", "extract design tokens", "plaid launch", "go-to-market", "launch plan", "GTM strategy", "launch playbook", "plaid build", "build the app", "start building", or "execute the roadmap".
nextjs-framer-motion-animations
IncludedAdds production-safe Motion for React or Framer Motion animations to Next.js apps, including reveal, hover and tap micro-interactions, whileInView, stagger, AnimatePresence, layout and layoutId transitions, reorder, scroll-linked UI, and lightweight route-content transitions. Use when the user asks to add, refactor, or debug Motion or Framer Motion in App Router or Pages Router codebases, especially around server/client boundaries, reduced motion, LazyMotion, bundle size, hydration, or route transitions. Avoid for GSAP-style timelines, WebGL or 3D scenes, heavy scroll storytelling, or CSS-only effects unless Motion is explicitly requested.