
Description
csharp-scripts is an agent skill from the dotnet/skills collection, listed on skills.sh. It lets an AI agent run file-based C# apps with the .NET CLI, so a C# idea can be tried without creating a project. The skill is for cases where the user explicitly wants C# or .NET code: testing a language concept or API, prototyping logic before it goes into a larger project, or building a small utility from one entry-point file and a few helper .cs files. It also says when not to use it. Language-agnostic scripts, shell, Python or PowerShell style automation, full projects with project references, and work inside an existing .NET solution all belong elsewhere, and so does any app large enough to need a .csproj for build, tests or publishing. A skill is a SKILL.md file of instructions that an AI agent loads only when a task calls for it. The source is public on GitHub.…
Highlights
- Runs one-file C# apps with the .NET CLI
- Good for language features and API tests
- Small utilities from an entry file and helpers
- Not for full projects or existing solutions
Ratings & Reviews
No ratings yet
Be the first to rate csharp-scripts.
People also visit

dotnet-best-practices
Validate .NET/C# code against comprehensive best practices for your solution

.NET MCP Server
AI assistant access to .NET SDK for projects, packages, building, testing

detect-static-dependencies
ACTIVATION PREREQUISITE: the request or discovered target must explicitly
csharp-scripts FAQ
What does the csharp-scripts skill do?
It lets an AI agent write and run a C# program as a single file with the .NET CLI, without setting up a project.
When should I not use it?
Not for full projects, project references, code added to an existing .NET solution, or shell, Python or PowerShell style scripts.
How do I install it?
Run: npx skills add https://github.com/dotnet/skills --skill csharp-scripts
Is it open source?
Yes. The skill is in a public GitHub repository maintained by dotnet.
What are the best csharp-scripts alternatives?
Popular alternatives to csharp-scripts include modern-csharp-coding-standards, dotnet-skills and dotnet-best-practices. See all csharp-scripts alternatives











