Official agent skill

Dockerfile And Readme Templating

by dotnet in dotnet/dotnet-docker

Modify Cottle templates that generate Dockerfiles and READMEs in dotnet/dotnet-docker.

OfficialMITAuto-check passedDevOps & Cloud

Install Dockerfile And Readme Templating

skills CLI
$ npx skills add dotnet/dotnet-docker --skill dockerfile-and-readme-templating -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install dotnet/dotnet-docker dockerfile-and-readme-templating --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/dotnet/dotnet-docker.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/dockerfile-and-readme-templating .claude/skills/dockerfile-and-readme-templating && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
dockerfile-and-readme-templating
GitHub stars
4.9k
Token cost
~563 tokens
SKILL.md length
216 words
Files
1
Skills in repo
5
Repo updated
First seen
Licence
MIT

At a glance

Modify Cottle templates that generate Dockerfiles and READMEs in dotnet/dotnet-docker.

  • Tasks that involve Containers
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Tasks that involve Technical documentation

What it does

Dockerfile And Readme Templating is an agent skill from dotnet/dotnet-docker, published by the product's own GitHub organization. Modify Cottle templates that generate Dockerfiles and READMEs in dotnet/dotnet-docker.

Its SKILL.md is about 560 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in DevOps & Cloud, covering Containers and Technical documentation. It works with Docker and .NET. The repository describes itself as: Official container images for .NET. The licence is MIT.

When your agent uses it

  • Tasks that involve Containers
  • Tasks that involve Technical documentation

Example prompts

  • “/dockerfile-and-readme-templating”

Requirements

  • Docker

What it can do on your machine

Read from SKILL.md and the folder at commit 3eaedc9. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are cottle).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Dockerfile And Readme Templating loads about 563 tokens when it runs. Until then it costs about 30 tokens; SKILL.md has 216 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~30
When it runs · the whole SKILL.md, loaded when a task matches
~563

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from dotnet/dotnet-docker at commit 3eaedc9, republished under its MIT licence (© dotnet). 216 words, ~563 tokens.

Download SKILL.mdSave it as .claude/skills/dockerfile-and-readme-templating/SKILL.md (or your agent's skills folder).
name
dockerfile-and-readme-templating
description
Modify Cottle templates that generate Dockerfiles and READMEs in dotnet/dotnet-docker.

Instructions for modifying Dockerfile templates

All Dockerfiles and Readmes are generated from Cottle templates in the eng/dockerfile-templates and eng/readme-templates directories respectively.

Cottle syntax

Templating

All text is plain text by default. Text inside double curly braces {{ }} is template code. Writing just {{value}} emits the evaluated value. You can also have expressions inside template blocks which do more complicated logic. Template code can have multiple lines in it, separated by the line ending ^ character. The final line in a template block should not use the line ending character. Comments inside a template block start with _ and follow the same line ending rules. Comments can span multiple lines.

Template data sources
  • VARIABLES: Variables from manifest.versions.json. Access with VARIABLES["name"].
  • ARGS: Passed into template via InsertTemplate(...) function. Access with ARGS["name"]
Common functions
  • Assign value: set name to <expression>.
  • Assign function set func(arg1, arg2) to:{{ ... }} defines an inline function; use return <expr> inside.
  • String functions:
    • cat(a, b, ...)
    • join(list, sep)
    • split(str, sep)
    • slice(list, start, end).
  • Collections:
    • len(list),
    • find(haystack, needle) returns index or -1.
  • Ternary expression: when(condition, valueIfTrue, valueIfFalse).
Conditionals

Boolean expressions:

  • Operators: =, !=, >, <, >=, <=, logical &&, ||, and negation !.
  • Equality uses single = inside expressions (context-specific to Cottle) rather than ==.

If statement:

cottle
{{if condition:VALUE}}

Compound conditionals:

cottle
{{if ((condition1 && condition2) || condition3):VALUE}}

Multiple conditions:

cottle
{{if condition1:VALUE1^
elif condition2:VALUE2^
else:VALUE3}}

After the colon :, all whitespace is treated as literal until the next line ending character ^.

You can also nest template blocks:

cottle
{{if condition1:{{if condition2:VALUE}}}}

© dotnet, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/dockerfile-and-readme-templating of dotnet/dotnet-docker.

Open the folder on GitHubat commit 3eaedc9

Compare with similar skills

Dockerfile And Readme Templating next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Dockerfile And Readme Templating compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Dockerfile And Readme Templating this skilldotnet/dotnet-docker4.9k—~563Automated safety check: PassMIT
1panel App Builderarch3rPro/1Panel-Appstore213—~1.3kAutomated safety check: PassMIT
.NET Crash Dump Collectiondotnet/skills5.6k2 repos~1.1kAutomated safety check: PassMIT
Foundationdb AspireSnowBankSDK/foundationdb-dotnet-client158—~3.4kAutomated safety check: PassBSD-3-Clause
Corvus Bowtie Testingcorvus-dotnet/Corvus.JsonSchema199—~1.4kAutomated safety check: PassApache-2.0
Container Publishcodewithmukesh/dotnet-claude-kit7511 repos~1.8kAutomated safety check: PassMIT

Similar skills

  • 1panel App Builder

    arch3rPro/1Panel-Appstore

    A skill your agent uses when packaging Docker deployments as 1Panel local app store apps, including GitHub projects, docker-compose.yml files, docker run commands, app metadata, version directories…

    213 GitHub stars~1.3k tokensUpdated today
    DevOps & CloudAuto-check passed
  • Official

    Configures automatic crash dumps or captures dumps from running processes for modern .NET apps on Linux, macOS and Windows, including Docker and Kubernetes.

    5.6k GitHub starsUsed in 2 repos~1.1k tokens
    DevOps & CloudAuto-check passed
  • Foundationdb Aspire

    SnowBankSDK/foundationdb-dotnet-client

    How to run a FoundationDB cluster and connect to it from .NET — getting the IFdbDatabaseProvider that the keys/transactions/layers skills assume you already have.

    158 GitHub stars~3.4k tokensUpdated today
    DevOps & CloudAuto-check passed
  • Corvus Bowtie Testing

    corvus-dotnet/Corvus.JsonSchema

    Test Corvus.JsonSchema against the JSON Schema Test Suite using Bowtie, the cross-implementation meta-validator.

    199 GitHub stars~1.4k tokensUpdated today
    DevOps & CloudAuto-check passed
  • Container Publish

    codewithmukesh/dotnet-claude-kit

    Dockerfile-less containerization using the .NET 10 SDK container publishing feature.

    751 GitHub starsUsed in 1 repo~1.8k tokens
    DevOps & CloudAuto-check passed
  • Docker

    codewithmukesh/dotnet-claude-kit

    Docker containerization for .NET 10 applications. An agent skill from codewithmukesh/dotnet-claude-kit.

    751 GitHub starsUsed in 1 repo~1.5k tokens
    DevOps & CloudAuto-check passed

More from dotnet/dotnet-docker

  • Porting Changes

    dotnet/dotnet-docker

    Official

    Plan and move changes between branches in dotnet/dotnet-docker.

    4.9k GitHub stars~781 tokensUpdated today
    Auto-check passed
  • Image Management

    dotnet/dotnet-docker

    Official

    Manages .NET Docker images including adding images for new .NET versions, new Linux distros (Alpine, Ubuntu, Azure Linux), and new Windows versions.

    4.9k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Resolving Conflicts

    dotnet/dotnet-docker

    Official

    A skill your agent uses when merging or cherry-picking changes cause git conflicts.

    4.9k GitHub stars~573 tokensUpdated today
    Auto-check passed
  • Merge Main To Nightly

    dotnet/dotnet-docker

    Official

    Create a PR to merge main into the nightly branch after a .NET containers release.

    4.9k GitHub stars~249 tokensUpdated today
    Auto-check passed

Works with

Categories

Questions about Dockerfile And Readme Templating

What does Dockerfile And Readme Templating do?

Modify Cottle templates that generate Dockerfiles and READMEs in dotnet/dotnet-docker. Dockerfile And Readme Templating is an agent skill from dotnet/dotnet-docker, published by the product's own GitHub organization. Modify Cottle templates that generate Dockerfiles and READMEs in dotnet/dotnet-docker.

When should I use Dockerfile And Readme Templating?

Dockerfile And Readme Templating fits situations like: tasks that involve Containers; tasks that involve Technical documentation.

How do I install Dockerfile And Readme Templating in Claude Code?

Run `npx skills add dotnet/dotnet-docker --skill dockerfile-and-readme-templating -a claude-code`. Or copy the skill folder (.agents/skills/dockerfile-and-readme-templating in dotnet/dotnet-docker) into .claude/skills/dockerfile-and-readme-templating in your project. Claude Code loads it when a task matches its description.

How do I install Dockerfile And Readme Templating in Codex?

Run `npx skills add dotnet/dotnet-docker --skill dockerfile-and-readme-templating -a codex`. Or copy the skill folder (.agents/skills/dockerfile-and-readme-templating in dotnet/dotnet-docker) into .agents/skills/dockerfile-and-readme-templating in your project. Codex loads it when a task matches its description.

Can I use Dockerfile And Readme Templating in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add dotnet/dotnet-docker --skill dockerfile-and-readme-templating -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/dockerfile-and-readme-templating, .gemini/skills/dockerfile-and-readme-templating, .github/skills/dockerfile-and-readme-templating and .opencode/skills/dockerfile-and-readme-templating in your project.

What does Dockerfile And Readme Templating need to run?

SKILL.md names no scripts, command-line tools or credentials: Dockerfile And Readme Templating is instructions for the agent only. Our summary lists: Docker.

Does Dockerfile And Readme Templating access the network?

SKILL.md names 1 domain. As links in the text: github.com. This is read from the text; nothing was executed.

Is Dockerfile And Readme Templating safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Dockerfile And Readme Templating use?

Dockerfile And Readme Templating is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Dockerfile And Readme Templating use?

About 563 tokens (SKILL.md is roughly 2.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Dockerfile And Readme Templating?

Skills that share tags, products or a category with Dockerfile And Readme Templating: 1panel App Builder (arch3rPro/1Panel-Appstore, 213 stars), .NET Crash Dump Collection (dotnet/skills, 5.6k stars), Foundationdb Aspire (SnowBankSDK/foundationdb-dotnet-client, 158 stars) and Corvus Bowtie Testing (corvus-dotnet/Corvus.JsonSchema, 199 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Dockerfile And Readme Templating?

dotnet (a GitHub organization, an official publisher) maintains it in dotnet/dotnet-docker, which has 4,874 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on October 8, 2026.

Source: dotnet/dotnet-docker on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.