setup-local-sdk

setup-local-sdk is a skill for Claude Code, Codex from managedcode/dotnet-skills. It costs 109 tokens per session (3,927 once invoked), scanned D, a copy of setup-local-sdk, MIT.

A guide to installing a chosen .NET software development kit inside a project’s own .dotnet folder. It keeps preview or exact SDK versions separate from the computer-wide installation.

In plain words
What is it for?
Use it to try .NET previews, pin an exact SDK version, or install workloads such as .NET MAUI locally.
Why use it?
It prevents SDK changes for one project from affecting other projects or the whole computer. The project can use a repeatable version for local work and team setups.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ./.dotnet/dotnet --version # macOS/Linux.

Good fit Use it to try .NET previews, pin an exact SDK version, or install workloads such as .NET MAUI locally.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/managedcode/dotnet-skills
agentmods
npx agentmods add skills/managedcode/dotnet-skills/setup-local-sdk

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for setup-local-sdk

README.md
[![agentmods](https://agentmods.dev/badge/skills/managedcode/dotnet-skills/setup-local-sdk/github.svg)](https://agentmods.dev/skills/managedcode/dotnet-skills/setup-local-sdk)
Your own site
<a href="https://agentmods.dev/skills/managedcode/dotnet-skills/setup-local-sdk"><img src="https://agentmods.dev/badge/skills/managedcode/dotnet-skills/setup-local-sdk/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for setup-local-sdk

Your own site · 80×15
<a href="https://agentmods.dev/skills/managedcode/dotnet-skills/setup-local-sdk"><img src="https://agentmods.dev/badge/skills/managedcode/dotnet-skills/setup-local-sdk.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 109 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,927 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 3 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00109 $0.03927
Opus 5.5 $0.00044 $0.01571
Sonnet 5.5 $0.00022 $0.00785
Haiku 4.5 $0.00011 $0.00393

Measured 2mo ago against content hash 6b4904db9ae9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade D, and why

setup-local-sdk scanned grade D with 3 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

install using the **local** binary (no sudo needed):

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

- Can be deleted to revert (`rm -rf .dotnet/` or `Remove-Item -Recurse -Force .\.dotnet`).

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

2. **curl** (macOS/Linux) or **PowerShell** (Windows) is available.
Origin

This is a copy

100% identical to setup-local-sdk — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

catalog/Platform/Official-DotNet/skills/setup-local-sdk/SKILL.md · 387 lines

How it starts

The opening of the file, as written. The whole thing — 387 lines — stays where its author put it; the contents beside it link to each section on GitHub.

setup-local-sdk

Purpose

Guide the user through installing a .NET SDK into a project-local .dotnet/ directory and wiring it up via the global.json paths feature (.NET 10+). The examples use .NET 11, but this works with any version — prerelease or stable.

The result is a fully isolated SDK that:

  • Does not modify the system-wide .NET installation.
  • Is picked up automatically by dotnet commands from the project root.
  • Can be deleted to revert (rm -rf .dotnet/ or Remove-Item -Recurse -Force .\.dotnet).

When NOT to use

  • User wants a system-wide install — direct to the official installer.
  • Host dotnet is older than v10 — paths doesn't exist; explain and stop.
  • User needs a runtime-only install — paths applies to SDK resolution only.

Inputs / Prerequisites

Input Required Default Notes
Channel or version No 11.0 e.g. 11.0, STS, LTS, or an exact version like 11.0.100-preview.2.26159.112
Quality No preview One of: daily, preview, ga
jq No — Optional for bash team scripts when patching an existing global.json; without it, do not overwrite the file

Prerequisites

  1. A .NET 10+ SDK is installed globally — run dotnet --version; major ≥ 10.
  2. curl (macOS/Linux) or PowerShell (Windows) is available.

Workflow

Step 1 — Clarify what to install

If the user didn't specify, ask what .NET SDK version they want (e.g., "latest .NET 11 preview" or an exact version like 11.0.100-preview.2.26159.112). Map the answer to --channel/--quality or --version flags.

Step 2 — Verify .NET 10+ host

If the user already provided dotnet --version output, treat that as the authoritative version for their machine. Do not override it with the agent workspace's version; if the two differ, explain that the workspace differs and continue advising for the user's machine.

dotnet --version

If major version < 10, stop before downloading anything: the paths feature requires a .NET 10+ host SDK. Tell the user to install .NET 10 or later system-wide first, then return to the local SDK setup.

Read the full file on GitHub · 387 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 387 lines · 109 tokens per session scan D 6b4904db9ae9

Subscribe to this mod's changes

setup-local-sdk is a skill published in the GitHub repository managedcode/dotnet-skills (527 stars, last pushed 16d ago), licensed MIT. It adds 109 tokens to every session and 3,927 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it D with 3 findings (asks for root, recursive force delete, makes network calls). It is 100% identical to setup-local-sdk, differing in 0 lines, and is treated as a copy.

Related

setup-local-sdk compared with skills from other repositories

setup-local-sdk next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
setup-local-sdkmanagedcode/dotnet-skillsSkill52716d agoMITD109Claude Code, Codex
clean-architecture-dotnetSebastienDegodez/copilot-instructionsSkill19923d agoApache-2.0A50Claude Code, Codex
creating-dotnet-mcp-serversSebastienDegodez/copilot-instructionsSkill19923d agoApache-2.0A43Claude Code, Codex
dotnetAterDev/Perigon.CLISkill544d agoApache-2.0A61Claude Code, Codex
blazorAterDev/Perigon.CLISkill544d agoApache-2.0A45Claude Code, Codex
cliAterDev/Perigon.CLISkill544d agoApache-2.0A52Claude Code, Codex
codegenAterDev/Perigon.CLISkill544d agoApache-2.0A53Claude Code, Codex