samotech/skills-tree/dockerfile-generation

Claude Code and agent skill by samotech/skills-tree

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Generate maintainable Dockerfiles from application runtime requirements, build inputs, security constraints, and deployment targets.

Install

npx vskill@latest install samotech/skills-tree/dockerfile-generation

SKILL.md

The same SKILL.md was published earlier as samotech/skills-tree/dockerfile-generation.

[Image: Dependency Status]

Dockerfile Generation

Category: code Skill Level: advanced Stability: stable Added: 2026-09

Description

Generate maintainable Dockerfiles from application runtime requirements, build inputs, security constraints, and deployment targets. The skill is evidence-first: inspect actual state before acting, preserve existing contracts, and verify the result before reporting completion.

Inputs / Outputs
DirectionFieldTypeContract
InputruntimeobjectLanguage, version, build system, and entrypoint verified from the repository
InputconstraintsobjectBase-image policy, image size, user privilege, and pinning requirements
OutputdockerfilestringLayer-ordered, pinned, non-root container build definition
OutputverificationobjectBuild and container run evidence confirming startup behavior
Procedure
  1. Verify the runtime version and dependency manifests from the repository, not from memory.
  2. Pin the base image by exact version or digest; prefer minimal official images.
  3. Order layers from least to most volatile so dependency layers cache.
  4. Run as a non-root user; copy only required artifacts; declare ports and health semantics explicitly.
  5. Build the image and run the container; verify the entrypoint behaves as documented.
  6. Record the build command and verification output as evidence.
Example
python
plan = {'base': 'python:3.12-slim', 'layers': ['deps', 'source', 'config'], 'user': 'appuser'}
assert plan['base'].endswith('slim')
assert plan['user'] != 'root'
assert plan['layers'].index('deps') < plan['layers'].index('source')
print('dockerfile plan ordered for cache and least privilege')
Related Skills

Failure Modes

  • Guessing runtime dependencies instead of reading the manifests.
  • Using unpinned or unverified base images.
  • Skipping the image build and container startup check.
  • Baking secrets into layers.

Changelog

  • v2 (2026-11): Structural modernization; added the input/output contract table, a deterministic plan example, an execution procedure, and corpus-verified related links.
  • v1 (2026-09): Initial entry.

Evidence

  • https://agentskills.io/specification

Evidence status: implementation guidance only; no benchmark claim is made without reproducible evidence.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Grok Build (Cursor)
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/samotech/skills-tree/dockerfile-generation/badge)](https://verified-skill.com/skills/samotech/skills-tree/dockerfile-generation)

Something wrong with this skill or its page? Tell us.