godot-gdscript-patterns
/godot-gdscript-patterns
Określa wewnętrzny kontrakt wykonawczy zespołu dla pracy z GDScript w Godot 4: sygnały, sceny, maszyny stanów i wzorce optymalizacji.
- Repozytorium
- blackgoat-agentskills ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 21.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 2
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 21.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Określa wewnętrzny kontrakt wykonawczy zespołu dla pracy z GDScript w Godot 4: sygnały, sceny, maszyny stanów i wzorce optymalizacji.
Oryginalny opis (EN)
Squad-internal execution contract for Godot 4 GDScript work — signals, scenes, state machines, and optimization patterns. Use if the project uses Godot / GDScript. Loaded by agents via their Methodology Dependencies table; user-facing triggers belong to the /bgpdd-X pipelines.
Jak działa
- Use this skill when
- Do not use this skill when
- Quick card
- Worker Execution Contract
- Resources
- Limitations
- Procedural Memories (Learned Lessons)
Podgląd SKILL.md
---
name: godot-gdscript-patterns
description: "Squad-internal execution contract for Godot 4 GDScript work — signals, scenes, state machines, and optimization patterns. Use if the project uses Godot / GDScript. Loaded by agents via their Methodology Dependencies table; user-facing triggers belong to the /bgpdd-X pipelines."
risk: safe
source: community
date_added: "2026-02-27"
---
# Godot GDScript Patterns
Production patterns for Godot 4.x game development with GDScript, covering architecture, signals, scenes, and optimization.
## Use this skill when
- Building games with Godot 4
- Implementing game systems in GDScript
- Designing scene architecture
- Managing game state
- Optimizing GDScript performance
- Learning Godot best practices
## Do not use this skill when
- The task is unrelated to godot gdscript patterns
- You need a different domain or tool outside this scope
## Quick card
Derived from the contract below for a ≤ 3-file change; no new rules (convention #8).
1. State goal, constraints and inputs before editing (§ Worker Execution Contract).
2. Validate in-engine; reading a script is not verification (§ Worker Execution Contract).
3. Pool return: `remove_child()` first; guard pops with `is_instance_valid()` (§ Procedural Memories).
4. Atomic save: `.tmp`, verify, `.bak`, rename (§ Procedural Memories).
5. Never hardcode a key; derive it from `OS.get_unique_id()` (§ Procedural Memories).
- Brief → the quick note (What / Where / How verified)
- Artifact → the capture at `{quick-root}/evidence/check.md`
- Handoff → the `## Result` bullet in `note.md`
## Worker Execution Contract
For a change of ≤ 3 files outside a pipeline, the Quick card above is the contract; the full contract applies inside a lane. The rules below and the learned lessons in § Procedural Memories together form this contract.
- Clarify goals, constraints, and required inputs.
- Apply relevant best practices and validate outcomes.
- Provide actionable steps and verification.
- If detailed examples are required, open `resources/implementation-playbook.md`.
## Resources
- `resources/implementation-playbook.md` for detailed patterns and examples.
## Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
## Procedural Memories (Learned Lessons)
- **[2026-06-27] (Object Pool Invalidation & Dangling Pointers):** When returning a node to a pool, always call `remove_child()` if it has a parent to avoid parent-hierarchy bugs. Guard all pop loops with `is_instance_valid(node)` to filter out nodes freed externally or automatically by Godot.
- **[2026-06-27] (Ghost Processing):** Components inside pooled nodes must check parent activity (e.g. `if not parent.get("is_active"): return`) at the start of process/physics ticks to prevent background processing of inactive entities.
- **[2026-06-27] (Safe I/O Overwrite Guard):** If loading save files fails (corrupt JSON, decryption errors), immediately set a `save_failed_no_overwrite` flag to `true`. Block all subsequent `save_game()` attempts to prevent overwriting the user's corrupt save with a blank default template.
- **[2026-06-27] (Atomic Two-Step Write):** When writing save state, always write first to a temporary file (`.tmp`), verify it exists, move the old save to a backup (`.bak`), and finally rename the `.tmp` to the target path.
- **[2026-06-27] (Device-Unique Encryption Keys):** Never hardcode static passwords or keys in code. Construct keys dynamically at runtime using `OS.get_unique_id()` concatenated with a static salt and MD5 hashed. Provide a secure fallback key string if `get_unique_id()` returns empty.
- **[2026-06-28] (UI Navigation Orchestration):** When implementing persistent navigation systems (e.g. bottom Navigation Bars, tab bars), always implement the top-level MainScreen/MainMenu UI orchestration container that manages and coordinates the visibility of the sub-screen panels (Dashboard, Map, Upgrades, Shop) in response to navigation events. Do not deploy loose panels without a central container.
Pliki w paczce (2)
- SKILL.md 4 KB
- resources/implementation-playbook.md 19 KB
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · muhammadshaharyarnaeem/blackgoat-agentskills | 100 | MIT |
| FrancoStino/opencode-skills-collection | 100 | MIT |
| sickn33/agentic-awesome-skills | 100 | MIT |
| wshobson/agents | 100 | MIT |
Migawka bazy z 13.11.2026 · wersja paczki ccee00208482 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 1 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100godot
Prowadzi projekty Godot 4: sceny i węzły, GDScript, C# i GDExtension, fizykę, animacje, UI, eksport i wydajność. - 100godot
Pomaga budować gry w Godot 4: skrypty GDScript dla ruchu, sygnałów i maszyn stanów, shadery, testy headless z wiersza poleceń i eksport buildów w CI. - 100godot-gdscript
Wyjaśnia wewnętrzne mechanizmy Godot 4 i GDScript: serwery, sygnały, wątki, zasoby oraz techniki wydajności. - 100godot
Wspiera tworzenie, testowanie, automatyzację, eksport i wdrażanie gier Godot 4.x, w tym GDScript, GdUnit4, PlayGodot oraz CI i deployment. - 100godot-code-review
Przegląda kod GDScript i C# w Godot według listy dobrych praktyk, typowych antywzorców i pułapek specyficznych dla Godot. - 100godot-testing
Prowadzi testowanie projektów Godot metodą TDD z GUT i gdUnit4, dla GDScript i C#.