dotnet-tool-publishing

dotnet-tool-publishing is a skill for Claude Code, Codex from Arasz/ai-raccoon. It costs 99 tokens per session (4,699 once invoked), scanned C, original, MIT.

A guide for packaging and publishing .NET command-line tools or libraries as NuGet packages. It covers build and pack commands, multiple operating-system targets, bundled files, and GitHub Actions publishing.

In plain words
What is it for?
Use it when creating a NuGet package, publishing a .NET tool, setting up a GitHub Actions release workflow, or increasing the version of an already published tool.
Why use it?
It helps avoid clean-build failures, publishing conflicts, shell races, and authentication mistakes when releasing a package. It also explains why a local build can hide a problem that appears in CI.

Skill for Claude CodeCodex

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

Good fit Use it when creating a NuGet package, publishing a .NET tool, setting up a GitHub Actions release workflow, or increasing the version of an already published tool.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/arasz/ai-raccoon/dotnet-tool-publishing
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Arasz/ai-raccoon --skill dotnet-tool-publishing
Clone the repo
git clone --depth 1 https://github.com/Arasz/ai-raccoon

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 dotnet-tool-publishing

README.md
[![agentmods](https://agentmods.dev/badge/skills/arasz/ai-raccoon/dotnet-tool-publishing/github.svg)](https://agentmods.dev/skills/arasz/ai-raccoon/dotnet-tool-publishing)
Your own site
<a href="https://agentmods.dev/skills/arasz/ai-raccoon/dotnet-tool-publishing"><img src="https://agentmods.dev/badge/skills/arasz/ai-raccoon/dotnet-tool-publishing/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 dotnet-tool-publishing

Your own site · 80×15
<a href="https://agentmods.dev/skills/arasz/ai-raccoon/dotnet-tool-publishing"><img src="https://agentmods.dev/badge/skills/arasz/ai-raccoon/dotnet-tool-publishing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 99 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,699 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found 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.00099 $0.04699
Opus 5.5 $0.00040 $0.01880
Sonnet 5.5 $0.00020 $0.00940
Haiku 4.5 $0.00010 $0.00470

Measured yesterday against content hash 88a8bb15b8c3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

dotnet-tool-publishing scanned grade C with 2 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 yesterday.

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.

Recursive force deletehighDestructive command

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

Always verify the actual sequence on a clean tree (`rm -rf obj bin` first) — the

Makes network callslowCapability

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

rate-limited (unauthenticated curl often is), the redirect trick still works:
.ai-badger/skills/dotnet-workload/references/dotnet-tool-publishing/SKILL.md · 293 lines

How it starts

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

Publishing .NET CLI tools (PackAsTool -> NuGet)

Use when: packing a PackAsTool dotnet tool, pushing it to NuGet (incl. Trusted Publishing), building the GitHub Actions publish workflow, or version-bumping a published tool. Reference implementation: the reference tool (Cocona 2.2.0), published 1.1.0 via Trusted Publishing 2026-08-05. Verified against the official NuGet Trusted Publishing docs the same day.

The pack trap: MSB3030 on clean checkouts (verified 2026-08-05)

dotnet pack on a PackAsTool project FAILS on a clean checkout:

Microsoft.NET.Publish.targets(372,5): error MSB3030: Could not copy the file
".../bin/Release/net10.0/<tool>.deps.json" because it was not found

The publish pass inside pack expects bin/Release outputs the implicit build does not produce. Reproduced: fresh clone + dotnet pack -c Release alone -> 4x MSB3030. A local worktree that already ran dotnet build -c Release masks the bug (pack then succeeds), which is why it only explodes in CI. the reference tool's first publish dispatch failed exactly this way.

Fix — always build first, then pack with --no-build:

dotnet build src/CliTool/CliTool.csproj -c Release
dotnet pack  src/CliTool/CliTool.csproj -c Release --no-build -o ./artifacts

In GitHub Actions publish.yml the Build step MUST precede Pack. Reproduce the failure on a clean clone (git clone --depth 1) before/after fixing — never trust a worktree that has Release artifacts lying around.

EXCEPTION — Web-SDK (Microsoft.NET.Sdk.Web) multi-RID tools: the advice inverts (measured 2026-08-05 on a reference tool). For a project with RuntimeIdentifiers set on a Web-SDK project, dotnet build -p:RuntimeIdentifiers=<rid> then dotnet pack --no-build FAILS MSB3030 because a plain Web-SDK build does NOT emit RID-scoped publish outputs (bin/Release/net10.0/<rid>/). The working form on a clean tree is the single pack WITHOUT --no-build and WITHOUT a separate build step — pack builds for the RID itself and emits the tool shell + RID payload in one step (~7 s, both nupkgs):

Read the full file on GitHub · 293 lines

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. yesterday First seen · 293 lines · 99 tokens per session scan C 88a8bb15b8c3

Subscribe to this mod's changes

dotnet-tool-publishing is a skill published in the GitHub repository Arasz/ai-raccoon (7 stars, last pushed today), licensed MIT. It adds 99 tokens to every session and 4,699 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it C with 2 findings (recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-12-05.

Related

dotnet-tool-publishing compared with skills from other repositories

dotnet-tool-publishing next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
dotnet-tool-publishingArasz/ai-raccoonSkill7todayMITC99Claude Code, Codex
tree-sitter-language-pack-managing-parsersxberg-io/tree-sitter-language-packSkill492todayMITA65Claude Code
cicd-pipeline-generatorStefanTheCode/dotnet-ai-toolkitSkill273mo agoMITA112Claude Code
migrate-dotnet9-to-dotnet10managedcode/dotnet-skillsSkill530todayMITA266Claude Code, Codex
migrate-dotnet10-to-dotnet11managedcode/dotnet-skillsSkill530todayMITA199Claude Code, Codex
migrate-dotnet8-to-dotnet9managedcode/dotnet-skillsSkill530todayMITA176Claude Code, Codex
dotnet-local-toolsF-U-S-E-E/FuseDevelopmentGroupSkill2319d agoAGPL-3.0A26Claude Code