csharp-godot

csharp-godot is a skill for Claude Code from jame581/GodotPrompter. It costs 34 tokens per session (4,021 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 — 57 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 57 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 4,021 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.04021
Opus 5 $0.00017 $0.02011
Sonnet 5 $0.00007 $0.00804
Haiku 4.5 $0.00003 $0.00402

Measured 10d ago against content hash fc7f3d1cc78d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, 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 10d 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 · 350 lines

How it starts

The opening of the file, as written. The whole thing — 350 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 · 350 lines

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. 10d 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 (689 stars, last pushed 28d ago), licensed MIT. It adds 34 tokens to every session and 4,021 once invoked, about $0.0002 per session on Opus 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.