godot-csharp SKILL.md skillA
godot-csharp from mindsmaster/godot-claude-code-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add mindsmaster/godot-claude-code-skills/godot-csharp@git:20261103.d5bb6c3Pins git:20261103.d5bb6c3 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- mindsmaster/godot-claude-code-skills
- Path
skills/godot-csharp/SKILL.md- Versions recorded
- 5
- Latest version
- git:20261103.d5bb6c3, committed Nov 3, 2026
- First version recorded
- Oct 21, 2026
- Size
- 17,129 bytes
- Repository stars
- 3
- License
- MIT
在 Godot 里写 C# 时用。partial class 与源码生成器、[Export] [Signal] [GlobalClass] [Tool]、信号连接与断开、SignalName PropertyName 与 StringName 缓存、Variant 与 Godot.Collections、IsInstanceValid、async ToSignal、每帧分配。C# scripting in Godot.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Godot C# 写法
C# 脚本的通用规则:命名映射、源码生成器、导出、信号、StringName、集合、生命周期、async。GDScript 通用写法去 godot-gdscript,GDScript 与 C# 对照表在 [references/gdscript-csharp.md](references/gdscript-csharp.md),卡顿排查去 godot-performance。
其他 skill 里的 C# 只给与 GDScript 不同的部分,通用规则以本文件为准。
## 先查内置
| 需求 | 用这个 | 别自己写 |
|---|---|---|
| 数学与随机 | `Mathf.Lerp`、`Mathf.MoveToward`、`GD.Randf`、`GD.RandRange` | 来回转 `double` 的 `System.Math` 调用 |
| 取节点 | `GetNode<T>("%Name")`、`[Export]` 引用、`GetNodeOrNull<T>` | 属性里每次 `GetNode()`,`_Process` 里 `GetNode()` |
| 信号 | 生成的事件 `Pressed += OnPressed`,自定义用 `[Signal]` | `Connect("pressed", ...)` 字符串 |
| 名字常量 | `Node2D.PropertyName.Position`、`SignalName.Xxx`、`MethodName.Xxx` | 每次调用传字符串字面量 |
| 等信号与延时 | `await ToSignal(GetTree().CreateTimer(1.0), SceneTreeTimer.SignalName.Timeout)` | `Task.Delay`,它不跟 `Engine.TimeScale`,也不跟节点生命周期 |
| 帧末调用 | `CallDeferred(MethodName.Foo)`,lambda 包成 `Callable` 再 `CallDeferred()` | 自建消息队列 |
| 后台计算 | `WorkerThreadPool.AddTask`、`Task.Run` 加 `CallDeferred()` 回主线程 | 自建 `Thread` 池 |
| 数据对象 | `[GlobalClass] partial class X : Resource` 加 `[Export]` | JSON 加手写解析 |
| 输入判断 | 事件模式匹配、`Input.GetVector` | 手写正负键相减 |
…Read the whole file at its exact version.
How to install
mdr add mindsmaster/godot-claude-code-skills/godot-csharp@sha256:ffdabf4acc16e2ebThe line at the top of this page pins the label git:20261103.d5bb6c3, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_jmtkm5j2sdlkthpr)
0 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 5 versions of this file, between Oct 21, 2026 and Nov 3, 2026, about one every 3 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261103.d5bb6c3 latest | 2026-11-03 | d5bb6c3 | 17,129 B | A | view · diff |
| git:20261026.fb9861c | 2026-10-26 | fb9861c | 16,882 B | A | view · diff |
| git:20261024.5ffa874 | 2026-10-24 | 5ffa874 | 16,806 B | A | view · diff |
| git:20261021.612ef8b | 2026-10-21 | 612ef8b | 17,001 B | A | view · diff |
| git:20261021.e6a2785 | 2026-10-21 | e6a2785 | 14,717 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (17129 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
mindsmaster/godot-claude-code-skills · 3 stars · license MIT · pushed 2026-11-06 · branch master
API
GET https://markdownregistry.com/api/v1/artifacts/art_jmtkm5j2sdlkthpr GET https://markdownregistry.com/api/v1/resolve?ref=mindsmaster/godot-claude-code-skills/godot-csharp GET https://markdownregistry.com/api/v1/blob/ffdabf4acc16e2eba61c6df79c51b909712e473fd46f22d36ddaca5e8c2f4f7a
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.
More from mindsmaster/godot-claude-code-skills
Every file in mindsmaster/godot-claude-code-skills