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.
npx skills add Arasz/ai-raccoon --skill dotnet-tool-publishinggit clone --depth 1 https://github.com/Arasz/ai-raccoonWrote 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.
[](https://agentmods.dev/skills/arasz/ai-raccoon/dotnet-tool-publishing)<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.
<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>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.
| Model | Per session | Once 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 |
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: 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):
What ships with it
18 files 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.
- references/bundled-content-assets.md 2.8 KB
- references/dotnet-dependency-upgrade-notes.md 4.6 KB
- references/fresh-install-verification.md 8.4 KB
- references/global-tool-content-assets.md 4.5 KB
- references/metadata-checklist.md 700 B
- references/multirid-shell-race-fix.md 6.5 KB
- references/multirid-tool-packages.md 9.1 KB
- references/nuget-publish-pr-review.md 2.7 KB
- references/package-id-migration.md 3.7 KB
- references/push-409-invisible-package.md 7.0 KB
- references/release-tags-version-content.md 2.3 KB
- references/stable-release-prep.md 2.7 KB
- references/stable-release-version-bump.md 4.0 KB
- references/trigger-choice.md 770 B
- references/trusted-publishing.md 3.0 KB
- references/web-sdk-multirid-pack-reproduction.md 3.1 KB
- references/workflow-skeleton.md 1.1 KB
- templates/publish.yml 1.2 KB
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.
- yesterday First seen · 293 lines · 99 tokens per session scan C 88a8bb15b8c3
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.
dotnet-tool-publishing compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| dotnet-tool-publishingArasz/ai-raccoon | Skill | 7 | today | MIT | C | 99 | Claude Code, Codex |
| tree-sitter-language-pack-managing-parsersxberg-io/tree-sitter-language-pack | Skill | 492 | today | MIT | A | 65 | Claude Code |
| cicd-pipeline-generatorStefanTheCode/dotnet-ai-toolkit | Skill | 27 | 3mo ago | MIT | A | 112 | Claude Code |
| migrate-dotnet9-to-dotnet10managedcode/dotnet-skills | Skill | 530 | today | MIT | A | 266 | Claude Code, Codex |
| migrate-dotnet10-to-dotnet11managedcode/dotnet-skills | Skill | 530 | today | MIT | A | 199 | Claude Code, Codex |
| migrate-dotnet8-to-dotnet9managedcode/dotnet-skills | Skill | 530 | today | MIT | A | 176 | Claude Code, Codex |
| dotnet-local-toolsF-U-S-E-E/FuseDevelopmentGroup | Skill | 23 | 19d ago | AGPL-3.0 | A | 26 | Claude Code |