C# Scripts
Runs file-based C# apps with the .NET CLI without scaffolding a full project.
Test report
- Verdict
- Tested · Works
- Score
- Tested
- Jul 12, 2026
- Environment
- Claude Code 2.x (agent harness)
- Upstream re-checked
- Aug 10, 2026 · 8f5c41b
Verbatim clone+cp install worked cleanly (self-contained SKILL.md, strict-YAML frontmatter, no missing referenced files); description is tightly scoped with explicit do/don't cases so the trigger battery separated without overlap. OUTPUT was tested on code correctness only because the .NET SDK is not installed in the sandbox (a genuine runtime dependency the skill itself checks for in Step 1 and documents a fallback for). A/B on a two-file file-based C# app: the skill wired the helper in with the `#:include` directive per its conventions and was correct/runnable, while the no-skill base wrongly assumed sibling `.cs` files auto-compile into a file-based app (they do not) and would fail to resolve the helper — a real correctness win driven by the skill's directive conventions.
Scored on four weighted criteria — install, triggering, output vs. baseline, docs. How scoring works
- Installs cleanly 5/5
- Triggers reliably 5/5
- Output vs. baseline 8/10
- Docs & honesty 5/5
What C# Scripts does
Run file-based C# apps with the .NET CLI when the user explicitly wants C#/.NET code without creating a project. Use for C# language/API experiments, one-file C# apps, small multi-file C# apps composed with `#:include`/`#:exclude`, or C# file-based apps linked with `#:ref`. Do not use for language-agnostic throwaway scripts, generic computations, Python/PowerShell-style automation, full…
How to install C# Scripts
git clone https://github.com/dotnet/skills
cd skills
mkdir -p ~/.claude/skills
cp -r plugins/dotnet-advanced/skills/csharp-scripts ~/.claude/skills/csharp-scripts
Skills live in ~/.claude/skills/ (global) or .claude/skills/
(per-project). Restart Claude Code after installing.
Commands — how to trigger C# Scripts
-
/csharp-scriptsRuns file-based C# apps with the .NET CLI without scaffolding a full project.
It also activates on plain-language prompts like these:
-
Run this quick C# script without creating a project -
Test this small C# snippet with the .NET CLI -
Link two C# files with a file-based app reference
Frequently asked questions
- Is the C# Scripts skill free?
- Yes. The skill itself is free from dotnet/skills. SkillProof publishes the install command and an independent test verdict at no cost.
- Does C# Scripts work with Claude Code?
- We tested it with Claude Code 2.x (agent harness) on Jul 12, 2026. Verdict: Tested · Works. Verbatim clone+cp install worked cleanly (self-contained SKILL.md, strict-YAML frontmatter, no missing referenced files); description is tightly scoped with explicit do/don't cases so the trigger battery separated without overlap. OUTPUT was tested on code correctness only because the .NET SDK is not installed in the sandbox (a genuine runtime dependency the skill itself checks for in Step 1 and documents a fallback for). A/B on a two-file file-based C# app: the skill wired the helper in with the `#:include` directive per its conventions and was correct/runnable, while the no-skill base wrongly assumed sibling `.cs` files auto-compile into a file-based app (they do not) and would fail to resolve the helper — a real correctness win driven by the skill's directive conventions.
- What is the C# Scripts SkillProof Score?
- 9.2/10 — installs cleanly 5/5, triggers reliably 5/5, output vs. baseline 8/10, docs & honesty 5/5.
- How do I install C# Scripts?
- Copy the install command from this page, run it in your terminal, and restart Claude Code. Skills live in ~/.claude/skills/ (global) or .claude/skills/ inside a project.
- Can I use C# Scripts with Cursor, Copilot, Gemini CLI, Codex or other AI tools?
- The SKILL.md format is native to Claude (Claude Code, Desktop, claude.ai). The instructions inside adapt to other assistants: Cursor rules, GitHub Copilot instructions, Windsurf rules, Custom GPTs, AGENTS.md for OpenAI Codex, and GEMINI.md for Google Gemini CLI — our conversion guides cover each, and the free converter on the tools page does the wrapping for you.