Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add ouzlifaneyassine1-dot/onyx-engine/plugin install onyxWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/ouzlifaneyassine1-dot/onyx-engine/gdscript-patterns)<a href="https://agentmods.dev/skills/ouzlifaneyassine1-dot/onyx-engine/gdscript-patterns"><img src="https://agentmods.dev/badge/skills/ouzlifaneyassine1-dot/onyx-engine/gdscript-patterns.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00079 | $0.01854 |
| Opus 5 | $0.00039 | $0.00927 |
| Sonnet 5 | $0.00016 | $0.00371 |
| Haiku 4.5 | $0.00008 | $0.00185 |
Grade A, and why
gdscript-patterns scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
This is a copy
94% identical to gdscript-patterns — 14 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 151 lines — stays where its author put it; the contents beside it link to each section on GitHub.
GDScript Patterns for Onyx Engine
When writing GDScript for Onyx Engine projects, follow these patterns. They align with Godot 4.x conventions and work well with MCP scene operations.
Type Hints
Always use type hints for clarity and editor support:
var health: int = 100
var speed: float = 5.0
var player_name: String = ""
var velocity: Vector3 = Vector3.ZERO
var is_alive: bool = true
For nodes, use typed references:
@onready var collision_shape: CollisionShape3D = $CollisionShape3D
@onready var camera: Camera3D = $Camera3D
Signals
Define signals at the top of the script, then emit them:
signal died
signal health_changed(new_health: int)
signal item_collected(item_name: String)
func take_damage(amount: int) -> void:
health -= amount
health_changed.emit(health)
if health <= 0:
died.emit()
When connecting via MCP, use onyx_connect_signal with the emitter path, signal name, receiver path, and method name. The receiver script must have the method defined.
Exports
Use @export for inspector-editable properties:
@export var move_speed: float = 5.0
@export var jump_force: float = 10.0
@export var max_health: int = 100
@export var can_double_jump: bool = false
Exports appear in the inspector. MCP can set initial values via onyx_set_prop after the node exists, but exports are best for values the designer tweaks.
Lifecycle Methods
| Method | When it runs | Use for |
|---|---|---|
_ready() |
Once when node enters tree | Initialization, getting node references |
_process(delta: float) |
Every frame | UI, non-physics logic |
_physics_process(delta: float) |
Every physics frame (fixed) | Movement, physics, collision |
For character movement, use _physics_process and move_and_slide().
Node Access
# Prefer $ for direct children
var camera = $Camera3D
# get_node() for dynamic paths
var target = get_node("../Enemy/HealthBar")
# get_parent() / get_children() when needed
var siblings = get_parent().get_children()
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 5d ago First seen · 151 lines · 79 tokens per session scan A c62400206cd3
gdscript-patterns is a skill published in the GitHub repository ouzlifaneyassine1-dot/onyx-engine (0 stars, last pushed 2mo ago), licensed MIT. It adds 79 tokens to every session and 1,854 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. It is 94% identical to gdscript-patterns, differing in 14 lines, and is treated as a copy.
Other skills, from other repositories
zoom-meeting-sdk-unreal
Zoom Meeting SDK for Unreal Engine wrapper integrations. Use when building Unreal projects that embed Zoom meetings with C++ and Blueprint wrappers, including wrapper-to-SDK mapping concerns.
reflection-method-call
Call a C# method by reflection — including private methods. Requires a method schema obtained via 'reflection-method-find'. Supports static methods, instance methods (with optional target deserialization), and main-thread / off-thread execution.
script-execute
Compiles and executes C# code dynamically using Roslyn. Supports a full-code mode (default) and a body-only mode — see the skill body for the difference and for how to pass Unity object references as parameters.
reflection-method-find
Find C# methods across every loaded assembly by name / type / parameters — including private methods. Returns serialized MethodData entries usable as schemas for 'reflection-method-call'.
unity-version-split
Split a C# file into Unity 6.5+ and pre-Unity 6.5 variants. Use when a file needs different implementations for different Unity versions due to API changes (e.g., EntityId vs int, GetEntityId vs GetInstanceID).
script-delete
Delete one or more .cs script files from disk, refresh the AssetDatabase, and wait for Unity compilation to settle before delivering the final result via the request's requestId. Pair with 'script-read' to inspect files before deletion.