csharp-scripts

Run single-file C# scripts without creating a full project.

46|7|Updated Apr 9, 2026
One-click install
npx skills add https://github.com/sunyonghuan/Netor.Madorin --skill csharp-scripts-sunyonghuan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: csharp-scripts
Source: https://github.com/sunyonghuan/Netor.Madorin/tree/main/skills/csharp-scripts
Command: npx skills add https://github.com/sunyonghuan/Netor.Madorin --skill csharp-scripts-sunyonghuan

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill removes the overhead of creating a full .NET project when you only need to run a small C# program, test an idea, or inspect a result quickly.

Core Features & Use Cases

  • Single-file execution: Run top-level C# code, .csx scripts, or .cs files without a project scaffold.
  • Fast experimentation: Useful for one-off calculations, API exploration, data transformation, and syntax validation.
  • Practical fallback handling: Uses a script tool first and can fall back to dotnet file-based execution or a temporary console project when needed.
  • Cleanup-aware workflow: Preserves long-term scripts by default and only removes temporary files when appropriate.

Quick Start

Run the C# script or paste the code you want executed, and I will choose the right execution path for it.

Frequently Asked Questions about csharp-scripts

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run a single-file C# script without creating a full project?

You can execute single-file C# scripts, including top-level .cs and .csx files, without a project scaffold by using this Skill. It chooses the right execution path automatically, falling back to a temporary console project or dotnet file-based app when needed.

What is the best way to execute C# code for quick experiments and one-off calculations?

The best way to run C# code for quick experiments is using a single-file execution tool that skips project scaffolding. This Skill handles one-off calculations, API exploration, and data transforms directly from the code you paste.

Does running a .csx script require setting up a complete .NET project first?

No, running a .csx script does not require a full .NET project. This Skill applies script tools first to execute C# scripts immediately, falling back to dotnet file-based apps or temporary projects only when necessary.

Can I execute top-level statements in a .cs file without generating a full project scaffold?

Yes, you can execute top-level statements in a .cs file without generating a full project scaffold. This Skill runs single-file C# code directly, making it ideal for syntax validation and fast prototyping.

Will my C# script files be deleted automatically after execution?

No, your C# script files are preserved by default after execution. The Skill only removes temporary files when you explicitly request cleanup, keeping your long-term scripts intact.

Why does my C# script execution fall back to a temporary console project?

C# script execution falls back to a temporary console project when the primary script tool cannot handle the file. This ensures your code still runs by leveraging dotnet file-based apps as a practical fallback path.