Skills for Real Engineers. Straight from my .agents directory.
sdk-container-publishing
Agent skill fromAaronontheweb/dotnet-skills
Publish .NET services as container images with the built-in SDK tooling (dotnet publish /t:PublishContainer, Microsoft.NET.Build.Containers) - no Dockerfile required. Covers the MSBuild property surface, base-image inference, self-contained and AOT implications, and CI/CD publishing.
How to install sdk-container-publishing
npx skills add Aaronontheweb/dotnet-skills# or add only this skill to Claude Code: copy the folder
skills/sdk-container-publishing/
# into
~/.claude/skills/sdk-container-publishing/ (all projects)
.claude/skills/sdk-container-publishing/ (one project)
1# .NET SDK Container Publishing23## When to Use This Skill45Use this skill when:6- You want a container image for a .NET service and do not want to hand-write a Dockerfile7- You want to know how to tag, name, or expose ports on an SDK-built image without a Dockerfile8- You are wiring container publishing into CI / CD or a release pipeline9- An SDK-built image pushes to the wrong registry, gets the wrong tag, or picks the wrong base image10- You need a tarball of an image for scanning or air-gapped loading1112Do not use it when:13- You need a `RUN` step or arbitrary layer customization in the image. The SDK tooling cannot emulate `RUN`; write a Dockerfile instead.1415## What This Is1617Since .NET 7, `dotnet publish` builds a container image natively. The `Microsoft.NET.Build.Containers` tooling ships with the SDK, so no Dockerfile is required and no Docker install is needed to produce an image. Docker or Podman is only required to run the image locally. This is documented in the [containerize with dotnet publish tutorial](https://learn.microsoft.com/en-us/dotnet/core/containers/sdk-publish).1819The quickest path is one command:2021```bash22dotnet publish /t:PublishContainer -c Release23```24…
Excerpt shown under the repository's MIT license.
More skills in dotnet-skills
Similar skill repositories
An agentic skills framework & software development methodology that works.
Public repository for Agent Skills
An AI skill that provides design intelligence for building professional UI/UX across multiple platforms.
Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Production-grade engineering skills for AI coding agents.
