xiaohongshu
xiaohongshu
godot-add-signals
Use when Godot code has tight coupling via get_node(), get_parent(), or direct references creating brittle dependencies. Detects coupling patterns and transforms to signal-based communication. Components become independent, testable, and reusable. Preserves exact behavior while improving architec...
Full skill instructions
Components communicate via signals, not direct references. Coupling makes code brittle and hard to test.
Finds patterns like:
# player.gd
func take_damage(amount):
health -= amount
get_node("../UI/HealthBar").update(health) # TIGHT COUPLING
get_parent().get_node("ScoreManager").reduce_score() # FRAGILE PATH
Transforms to:
# player.gd
signal health_changed(new_health)
func take_damage(amount):
health -= amount
health_changed.emit(health) # SIGNAL - NO COUPLING
# main.gd (or scene setup)
func _ready():
player.health_changed.connect(ui.health_bar.update)
player.health_changed.connect(score_manager.on_player_damaged)
Identifies:
get_node("../path") - Upward path navigationget_parent().something - Parent dependenciesfind_child("name") - Runtime searcheshas_method() - Tight interface couplingOld code has spaghetti dependencies via get_node chains.
Want to test components in isolation without full scene tree.
Components should work in different contexts without modification.
Changes to scene structure break unrelated functionality.
Before (Tight Coupling):
# enemy.gd
extends CharacterBody2D
func die():
var player = get_node("../Player") # FRAGILE PATH
player.add_score(100)
var audio = get_parent().get_node("AudioManager") # TIGHT COUPLING
audio.play_sound("enemy_death")
queue_free()
After (Signal-Based):
# enemy.gd
extends CharacterBody2D
signal died(score_value: int)
signal death_sound_requested(sound_name: String)
func die():
died.emit(100)
death_sound_requested.emit("enemy_death")
queue_free()
# main.gd (orchestrator)
func _ready():
for enemy in enemies:
enemy.died.connect(player.add_score)
enemy.death_sound_requested.connect(audio_manager.play_sound)
One emitter, multiple listeners (health changed → update UI + save game + achievement check).
Announce something happened without knowing who cares.
Request service without knowing provider (request_ammo → whoever handles ammo).
Notify when state changes (entered_water, jumped, landed).
Identifies coupling types:
Chooses appropriate solution:
Works with:
Don't add signals if:
Examples of valid coupling:
Events (past tense):
health_changeditem_collectedenemy_diedRequests (imperative):
damage_requestedplay_soundspawn_particleState Changes:
entered_stateexited_statestate_changed| Before (Coupled) | After (Signal-Based) |
|---|---|
get_node("../Player").damage() | damage_dealt.emit() → player listens |
get_parent().update_ui() | ui_update_requested.emit() → UI listens |
owner.score += 10 | score_changed.emit(10) → owner listens |
find_child("Camera").shake() | screen_shake_requested.emit() → camera listens |
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience