id: "csharp-scripts"
kind: "skill"
name: "csharp-scripts"
title: "Csharp Scripts"
description: "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 projects, or existing app integration."
category: "developer-tools"
source:
  repository: "dotnet/skills"
  path: "plugins/dotnet-advanced/skills/csharp-scripts/SKILL.md"
  commit: "4e03bfdade5d1f9b7d1c2e95f64e31d1cb7af5ab"
  url: "https://github.com/dotnet/skills/tree/4e03bfdade5d1f9b7d1c2e95f64e31d1cb7af5ab/plugins/dotnet-advanced/skills/csharp-scripts"
license:
  spdx: "MIT"
  from: "SKILL.md frontmatter"
  redistributable: true
stars: 6298
updated_at: "2026-11-19T21:19:36Z"
score: 0.9008
rank: 26
files_count: 1
bytes: 11735
has_scripts: false
trust_level: "unreviewed"
reviewed_by: "eval-v1"
source_tier: "official"
eval:
  version: "eval-v1"
  date: "2026-11-21T10:33:39Z"
  model: "claude-sonnet-5-5"
  score: 0.9008
  signals:
    tier: 1.0
    rubric: 1.0
    judge: 0.94
    smoke: 0.75
    popularity: 0.5279
  rubric:
    score: 1.0
    trigger: 1.0
    scope: 1.0
    safety: 1.0
    injection: 1.0
    references: 1.0
    license: 1.0
    risky: []
    broken_references: []
  judge:
    trigger: 5
    scope: 5
    instructions: 5
    safety: 5
    injection: 5
    references: 5
    overall: 9
    verdict: "feature"
    rationale: "The description is specific, with clear do/don't boundaries. The skill covers one job, running file-based C# apps. It includes version checks (10.0.300 for include/exclude), directives (#:package, #:property, #:ref, #:include), the AOT JSON pitfall, a fallback for older SDKs, validation and a pitfalls table. Cleanup is scoped to the app's own files and a temp directory. There is no injection, and the only link is an external docs URL."
  smoke:
    status: "passed"
    triggered: true
    grade: 1
    task: "I want to quickly try out C# pattern matching with switch expressions without making a project. Can you write me a single-file C# app for that and tell me how to run it?"
    date: "2026-11-21T11:39:38Z"
    model: "claude-sonnet-5-5"
requires:
  tools: []
  runtimes: ["dotnet"]
  network: false
  mcp: []
compat:
  - client: "claude-code"
    status: "full"
    reasons: ["ok"]
    source: "derived"
  - client: "codex-cli"
    status: "full"
    reasons: ["ok"]
    source: "derived"
  - client: "cursor"
    status: "full"
    reasons: ["ok"]
    source: "derived"
  - client: "gemini-cli"
    status: "full"
    reasons: ["ok"]
    source: "derived"
  - client: "vscode-copilot"
    status: "full"
    reasons: ["ok"]
    source: "derived"
  - client: "opencode"
    status: "full"
    reasons: ["ok"]
    source: "derived"
  - client: "claude-desktop"
    status: "instructions"
    reasons: ["no-shell"]
    source: "derived"
  - client: "chat-mcp"
    status: "instructions"
    reasons: ["no-shell"]
    source: "derived"
files:
  - path: "SKILL.md"
    bytes: 11735
    sha256: "acc0ea3c023127db9ef4be653686b543808597a252a1ab06a3754a3ae93572f9"
    url: "https://raw.githubusercontent.com/dotnet/skills/4e03bfdade5d1f9b7d1c2e95f64e31d1cb7af5ab/plugins/dotnet-advanced/skills/csharp-scripts/SKILL.md"
alternates: []
icon: "https://versatile.sh/avatars/dotnet.png"
