container-publish

container-publish is a skill for Claude Code from codewithmukesh/dotnet-claude-kit. It costs 111 tokens per session (1,804 once invoked), scanned C, original, MIT.

A way to package a .NET 10 application as an OCI container image directly from the .NET SDK, without writing a Dockerfile. OCI is a common standard for software container images.

In plain words
What is it for?
It helps publish .NET applications for local containers or registries, configure image names and base images, and build for different processor architectures.
Why use it?
It removes the need to maintain a separate Dockerfile and keeps container settings in the project file, while supporting small production images and non-root execution.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is trivy image --input ./images/myapp.tar.gz.

Part of the dotnet-claude-kit plugin — 51 skills, 11 agents, 2 hooks, 1 MCP server shipped together

Good fit It helps publish .NET applications for local containers or registries, configure image names and base images, and build for different processor architectures.

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/codewithmukesh/dotnet-claude-kit
agentmods
npx agentmods add skills/codewithmukesh/dotnet-claude-kit/container-publish

Made for: Claude Code.

Or install dotnet-claude-kit, the plugin that ships this one along with the rest of its 51 skills, 11 agents, 2 hooks, 1 MCP server.

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 container-publish

README.md
[![agentmods](https://agentmods.dev/badge/skills/codewithmukesh/dotnet-claude-kit/container-publish/github.svg)](https://agentmods.dev/skills/codewithmukesh/dotnet-claude-kit/container-publish)
Your own site
<a href="https://agentmods.dev/skills/codewithmukesh/dotnet-claude-kit/container-publish"><img src="https://agentmods.dev/badge/skills/codewithmukesh/dotnet-claude-kit/container-publish/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 container-publish

Your own site · 80×15
<a href="https://agentmods.dev/skills/codewithmukesh/dotnet-claude-kit/container-publish"><img src="https://agentmods.dev/badge/skills/codewithmukesh/dotnet-claude-kit/container-publish.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 111 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,804 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 14 Sept 2026
  • Snyk pass 14 Sept 2026
How audits are shown
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.00111 $0.01804
Opus 5.5 $0.00044 $0.00722
Sonnet 5.5 $0.00022 $0.00361
Haiku 4.5 $0.00011 $0.00180

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

Security

Grade C, and why

container-publish scanned grade C with 1 finding 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 3mo 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.

Hidden instructionshighPrompt injection

Directives inside HTML comments, invisible characters or bidirectional overrides are read by the model and not by the person reviewing the file.

<!-- BAD — SDK container publish cannot run apt-get or install native packages -->
skills/container-publish/SKILL.md · 236 lines

How it starts

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

Container Publishing (No Dockerfile)

Core Principles

  1. No Dockerfile needed — The .NET 10 SDK builds OCI-compliant container images directly from dotnet publish /t:PublishContainer. No Dockerfile to write or maintain.
  2. Chiseled images for production — Use noble-chiseled base images: no shell, no package manager, 7 Linux components vs 100+. Smallest attack surface.
  3. Non-root by default — .NET 10 container images run as the app user automatically. Never override to root in production.
  4. Configuration in the .csproj — All container settings are MSBuild properties, versioned with your project. No separate files to drift.

Patterns

Minimal Container Publish

No project file changes needed. Just publish:

dotnet publish /t:PublishContainer --os linux --arch x64

This creates a container image in your local Docker daemon using the default aspnet:10.0 base image.

Production-Ready .csproj Configuration

<Project Sdk="Microsoft.NET.Sdk.Web">

  <PropertyGroup>
    <TargetFramework>net10.0</TargetFramework>
    <ContainerRepository>mycompany/myapp-api</ContainerRepository>
    <ContainerFamily>noble-chiseled</ContainerFamily>
  </PropertyGroup>

  <ItemGroup>
    <ContainerPort Include="8080" Type="tcp" />
    <ContainerEnvironmentVariable Include="ASPNETCORE_HTTP_PORTS" Value="8080" />
    <ContainerEnvironmentVariable Include="DOTNET_EnableDiagnostics" Value="0" />
    <ContainerLabel Include="org.opencontainers.image.vendor" Value="MyCompany" />
  </ItemGroup>

</Project>

Publishing to a Registry

Authenticate with docker login first, then specify the registry:

# GitHub Container Registry
docker login ghcr.io
dotnet publish /t:PublishContainer --os linux --arch x64 \
    -p ContainerRegistry=ghcr.io \
    -p ContainerImageTag=1.0.0

# Azure Container Registry
az acr login --name myregistry
dotnet publish /t:PublishContainer --os linux --arch x64 \
    -p ContainerRegistry=myregistry.azurecr.io

# Docker Hub (requires username prefix in repository)
dotnet publish /t:PublishContainer --os linux --arch x64 \
    -p ContainerRegistry=docker.io \
    -p ContainerRepository=myuser/myapp

Read the full file on GitHub · 236 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. 3mo ago First seen · 236 lines · 111 tokens per session scan C 4fafdfeda760

Subscribe to this mod's changes

container-publish is a skill published in the GitHub repository codewithmukesh/dotnet-claude-kit (853 stars, last pushed 26d ago), licensed MIT. It adds 111 tokens to every session and 1,804 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it C with 1 finding (hidden instructions). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

container-publish compared with skills from other repositories

container-publish next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
container-publishcodewithmukesh/dotnet-claude-kitSkill85326d agoMITC111Claude Code
migrate-dotnet9-to-dotnet10F-U-S-E-E/FuseDevelopmentGroupSkill2314d agoAGPL-3.0A266Claude Code
containerize-aspnetcorefabioc-aloha/Alex_Skill_MallSkill65d agoMITC28Claude Code, Codex
containerize-aspnet-frameworkOKHP3/skillzSkill43d agoMITA30Claude Code, Codex
dotnet-containerswshaddix/dotnet-skillsSkill949mo agononeA28Claude Code
containerize-aspnetcoreOKHP3/skillzSkill43d agoMITC28Claude Code, Codex
agui-dotnet-streaming-chatag-ui-protocol/ag-uiSkill22ktodayMITA223Claude Code