csharp-godot

csharp-godot is a skill for Claude Code from jame581/GodotPrompter. It costs 34 tokens per session (3,794 once invoked), scanned A, original, MIT.

A guide to using C# with the Godot game engine. It explains project setup, C# conventions, differences from GDScript, and how the two languages work together.

In plain words
What is it for?
Use it to set up a C# Godot project, translate GDScript patterns into C#, work with signals and exported properties, and connect C# with Godot scenes.
Why use it?
It helps C# developers avoid errors caused by Godot APIs and patterns that differ from ordinary C# code.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the godot-prompter plugin — 61 skills, 9 agents, 2 hooks shipped together

Good fit Use it to set up a C# Godot project, translate GDScript patterns into C#, work with signals and exported properties, and connect C# with Godot scenes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jame581/godotprompter/csharp-godot
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add jame581/GodotPrompter --skill csharp-godot
Clone the repo
git clone --depth 1 https://github.com/jame581/GodotPrompter

Made for: Claude Code.

Or install godot-prompter, the plugin that ships this one along with the rest of its 61 skills, 9 agents, 2 hooks.

Wrote 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.

agentmods badge for csharp-godot

README.md
[![agentmods](https://agentmods.dev/badge/skills/jame581/godotprompter/csharp-godot/github.svg)](https://agentmods.dev/skills/jame581/godotprompter/csharp-godot)
Your own site
<a href="https://agentmods.dev/skills/jame581/godotprompter/csharp-godot"><img src="https://agentmods.dev/badge/skills/jame581/godotprompter/csharp-godot/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for csharp-godot

Your own site · 80×15
<a href="https://agentmods.dev/skills/jame581/godotprompter/csharp-godot"><img src="https://agentmods.dev/badge/skills/jame581/godotprompter/csharp-godot.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,794 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Prompt Injection · line 64
    Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
    Fix: Audit all comments and invisible characters. Remove any instructions that direct the agent to perform unauthorized actions. Use plain, reviewable content.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00034 $0.03794
Opus 5.5 $0.00014 $0.01518
Sonnet 5.5 $0.00007 $0.00759
Haiku 4.5 $0.00003 $0.00379

Measured 2d ago against content hash 3459ab7af8fa, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

csharp-godot 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 2d 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.

skills/csharp-godot/SKILL.md · 306 lines

How it starts

The opening of the file, as written. The whole thing — 306 lines — stays where its author put it; the contents beside it link to each section on GitHub.

C# in Godot 4.3+

This skill covers C#-specific conventions, API differences from GDScript, project setup, and interop patterns. All examples are C# only. Target Godot 4.3+ with the GodotSharp NuGet package.

Related skills: csharp-signals for C# signal patterns, godot-project-setup for C# project scaffolding, godot-testing for C# testing with gdUnit4, gdextension for native C++ when C# is not enough, multithreading for C# concurrency.


1. C# vs GDScript Syntax Comparison

GDScript C# Equivalent Notes
var x = 5 var x = 5; or typed int x = 5; C# var infers type at compile time
func MyMethod() -> void: public void MyMethod() { } Methods are PascalCase in C#
signal health_changed(amount: int) [Signal] delegate void HealthChangedEventHandler(int amount); Must use EventHandler suffix
@export var speed: float = 100.0 [Export] public float Speed { get; set; } = 100f; PascalCase, property syntax
@onready var label = $Label private Label _label; + _label = GetNode<Label>("Label"); in _Ready() No @onready equivalent; use _Ready()
match value: switch (value) { case X: break; } C# switch also supports pattern matching
class_name MyClass [GlobalClass] public partial class MyClass : GodotObject { } Requires [GlobalClass] attribute
extends Node public partial class MyScript : Node { } Inheritance via :
preload("res://scene.tscn") GD.Load<PackedScene>("res://scene.tscn") Loaded at runtime, not compile time
push_error("msg") GD.PushError("msg"); Prints to Godot error log
print("msg") GD.Print("msg"); Also: GD.PrintS(), GD.PrintT()
node is CharacterBody2D node is CharacterBody2D Same keyword, same semantics
node as CharacterBody2D node as CharacterBody2D Returns null on failure in both
await signal_name await ToSignal(source, SignalName.X); Must use ToSignal() wrapper
Array Godot.Collections.Array Not System.Collections.Generic.List<T>
Dictionary Godot.Collections.Dictionary Not System.Collections.Generic.Dictionary<K,V>

Read the full file on GitHub · 306 lines

Files

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.

Changes

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.

  1. 2d ago Changed 3459ab7af8fa
  2. 12d ago Changed 4297244e8dfa
  3. 18d ago Changed · -44 lines 2c0cae1b44e6
  4. 1mo ago First seen · 350 lines · 34 tokens per session scan A fc7f3d1cc78d

Subscribe to this mod's changes

csharp-godot is a skill published in the GitHub repository jame581/GodotPrompter (867 stars, last pushed yesterday), licensed MIT. It adds 34 tokens to every session and 3,794 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

roblox-cloud

Use for Roblox Open Cloud: API keys, OAuth 2.0, webhooks, scopes, token lifecycle, DataStore or messaging access from outside the game.

TabooHarmony/roblox-brain · 37 tokens

script-execute

Compiles and runs C# in the Unity Editor (Roslyn): plain statements with the last expression as the result, or a full class with a static method. See the skill body for the modes, usings/include and Unity object parameters.

IvanMurzak/Unity-MCP · 53 tokens

unity-csharp-scripting

Write Unity 6.3 LTS C# gameplay scripts: the MonoBehaviour lifecycle (Awake/OnEnable/Start/Update/FixedUpdate/LateUpdate), GameObject and component access, coroutines, and Inspector serialization. Use when creating or editing .cs scripts in a Unity project, or when the user mentions MonoBehaviour, Start/Update…

gamedev-skills/awesome-gamedev-agent-skills · 92 tokens

godot-csharp

Use C#/.NET in Godot 4.7: partial classes extending nodes, the PascalCase lifecycle (Ready/Process/PhysicsProcess), [Export] fields, [Signal] delegates as C# events, type-safe node lookup, and calling between C# and GDScript. Use when writing Godot game code in C# (.cs files, .csproj), needing the Godot .NET build…

gamedev-skills/awesome-gamedev-agent-skills · 108 tokens

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.

IvanMurzak/Unity-MCP · 52 tokens

script-read

Read a .cs script file and return its content as a string. Supports a 1-based lineFrom/lineTo slice for partial reads. Pair with 'script-update-or-create' to write back.

IvanMurzak/Unity-MCP · 49 tokens