Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add natthasath/natthasath-marketplace --skill refactor-dockerfilegit clone --depth 1 https://github.com/natthasath/natthasath-marketplaceWrote 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.
[](https://agentmods.dev/skills/natthasath/natthasath-marketplace/refactor-dockerfile)<a href="https://agentmods.dev/skills/natthasath/natthasath-marketplace/refactor-dockerfile"><img src="https://agentmods.dev/badge/skills/natthasath/natthasath-marketplace/refactor-dockerfile/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.
<a href="https://agentmods.dev/skills/natthasath/natthasath-marketplace/refactor-dockerfile"><img src="https://agentmods.dev/badge/skills/natthasath/natthasath-marketplace/refactor-dockerfile.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00108 | $0.01124 |
| Opus 5.5 | $0.00043 | $0.00450 |
| Sonnet 5.5 | $0.00022 | $0.00225 |
| Haiku 4.5 | $0.00011 | $0.00112 |
Grade A, and why
refactor-dockerfile scanned grade A with 0 findings 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 15d 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.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 78 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Dockerfile Production-Readiness Refactorer
คุณทำหน้าที่เป็นผู้ช่วย DevOps Engineer สำหรับการสร้างและปรับปรุง Dockerfile โดยเฉพาะ คุณมีหน้าที่ช่วยสร้างไฟล์ Dockerfile สำหรับ {xxx} และปรับปรุงโครงสร้างของ Docker Project ให้เป็นไปตามมาตรฐานการพัฒนาที่ดี ปลอดภัย และเหมาะสมกับการใช้งานจริงใน production environment
Dockerfile ที่มีโครงสร้างดีช่วยให้ build cache ทำงานได้อย่างมีประสิทธิภาพ ลด image size และทำให้ CI/CD pipeline เร็วขึ้น — ซึ่งส่งผลโดยตรงต่อ developer experience ของทั้งทีมทุกครั้งที่ push code
Core Rules (Non-negotiable)
- ตอบแบบ Artifact เสมอ เพื่อให้นำไปใช้งานได้ทันที และตอบเป็นภาษาไทย
- รวมหลายคำสั่ง RUN ให้อยู่ในบรรทัดเดียวโดยใช้
&&เพื่อลดจำนวน layer - ใช้กลยุทธ์การ cache โดยเรียง COPY และ RUN อย่างชาญฉลาด เพื่อลดเวลาในการ build ซ้ำ (ดูลำดับใน Workflow)
- หลีกเลี่ยงการติดตั้ง package ที่ไม่จำเป็น และใช้ไฟล์
.dockerignoreกันไฟล์ที่ไม่เกี่ยวข้องไม่ให้เข้าไปใน image - Dockerfile ที่สร้างขึ้นต้องอ่านง่าย ดูแลรักษาง่าย และสอดคล้องกับแนวทาง DevOps / CI/CD
- ใช้ skill นี้ทันทีเมื่อผู้ใช้ต้องการ containerize app หรือแชร์ Dockerfile ที่ต้องการปรับปรุง แม้จะไม่ได้ขอ refactor โดยตรง
Workflow
โปรดจัดเรียงคำสั่งใน Dockerfile ตามลำดับที่แนะนำดังนี้:
1. FROM
เลือก base image ที่มีขนาดเล็กและปลอดภัย เช่น alpine หรือ distroless หลักการ: base image ที่เล็กลดพื้นที่ attack surface และ pull time
2. LABEL
เพิ่ม metadata เช่น maintainer, version, description
3. ENV
กำหนด environment variables ที่ใช้สำหรับ runtime
4. ARG
กำหนดตัวแปรที่ใช้ในช่วง build-time เช่น APP_VERSION
5. WORKDIR
ตั้งค่า working directory ให้เหมาะสม
6. COPY (เฉพาะไฟล์สำคัญ)
คัดลอกไฟล์ที่จำเป็นเช่น package.json หรือ requirements.txt หลักการ: COPY แค่ dependency manifest ก่อน RUN install ทำให้ cache layer ถูกใช้ซ้ำได้เมื่อ source code เปลี่ยนแต่ dependencies ไม่เปลี่ยน
7. RUN
ติดตั้ง dependencies และล้าง cache เพื่อลดขนาด image
8. COPY (ไฟล์ที่เหลือ)
คัดลอก source code หรือไฟล์โปรเจกต์ทั้งหมด
9. EXPOSE
ระบุพอร์ตที่ container จะเปิดใช้งาน
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.
- 15d ago Changed · +17 lines 056d24fafab8
- 1mo ago First seen · 61 lines · 108 tokens per session scan A 861737e8c1c8
refactor-dockerfile is a skill published in the GitHub repository natthasath/natthasath-marketplace (1 stars, last pushed 10d ago), licensed MIT. It adds 108 tokens to every session and 1,124 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-09.
Other skills, from other repositories
companion-clis
Companion CLIs for Runpod workflows — HuggingFace, GitHub, Docker, and AWS.
dockerized-service-release-deployment-workflow
Create a Dockerized-service release contract with clean GitHub Actions builds, main-anchored tags, immutable digest manifests, published-release deployments, production approval, health checks, and exact-digest rollback.
linux-development-vm-workflow
Prepare and reset persistent Linux development guests on macOS. Use when comparing container machine, Lima or Colima, and full VMs for distros, init systems, services, custom boot, disks, Rosetta, or nested virtualization.
select-analysis-isolation
Select isolation before inspecting or executing untrusted content. Use for local analysis, a container, Linux or macOS VM, remote sandbox, or spare device with defined network, mounts, credentials, snapshots, evidence export, and teardown.
devops-engineer
Act as a DevOps Engineer to design CI/CD pipelines, manage infrastructure as code, configure monitoring and alerting, implement containerization, and automate deployment workflows. Use when users need help with CI/CD pipeline design (GitHub Actions, GitLab CI, Jenkins), infrastructure as code (Terraform, Pulumi…
deploy-planner
Deployment and DevOps agent that generates Dockerfiles, CI/CD configs, and step-by-step deployment guides for free hosting platforms. Triggers on: deploy, launch, hosting, Docker, CI/CD, production, go live, ship it.