samotech/skills-tree/dockerfile-generation
Claude Code and agent skill by samotech/skills-tree
- community
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-generationSKILL.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
| Direction | Field | Type | Contract | |
|---|---|---|---|---|
| Input | runtime | object | Language, version, build system, and entrypoint verified from the repository | |
| Input | constraints | object | Base-image policy, image size, user privilege, and pinning requirements | |
| Output | dockerfile | string | Layer-ordered, pinned, non-root container build definition | |
| Output | verification | object | Build and container run evidence confirming startup behavior |
Procedure
- Verify the runtime version and dependency manifests from the repository, not from memory.
- Pin the base image by exact version or digest; prefer minimal official images.
- Order layers from least to most volatile so dependency layers cache.
- Run as a non-root user; copy only required artifacts; declare ports and health semantics explicitly.
- Build the image and run the container; verify the entrypoint behaves as documented.
- Record the build command and verification output as evidence.
Example
Related Skills
- Dependency Management - pin the dependencies the image installs
- Code Execution Sandbox - verify image behavior in isolation
- Documentation Generation - document build and run commands
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
- SKILL.md in the repositoryCheckingagent-skills/dockerfile-generation/SKILL.md
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
[](https://verified-skill.com/skills/samotech/skills-tree/dockerfile-generation)