dbmigrator-dockerfile

dbmigrator-dockerfile is a skill for Claude Code from thapaliyabikendra/ai-artifacts. It costs 0 tokens per session (5,594 once invoked), scanned D, original, Apache-2.0.

A guide for packaging an ABP Framework database-migration program as Docker containers. DbMigrator is a separate .NET program that updates database structure and adds starting data.

In plain words
What is it for?
Use it to create Dockerfiles, Docker Compose setups, and scheduled or pipeline-based database migration jobs.
Why use it?
It provides repeatable migration setup across development, testing, production, and automated deployment environments.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is /dbmigrator-docker-config --compose --environment Staging --output ./infra/docker.

Good fit Use it to create Dockerfiles, Docker Compose setups, and scheduled or pipeline-based database migration jobs.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/thapaliyabikendra/ai-artifacts
agentmods
npx agentmods add skills/thapaliyabikendra/ai-artifacts/dbmigrator-dockerfile

Made for: Claude Code.

Wrote 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.

agentmods badge for dbmigrator-dockerfile

README.md
[![agentmods](https://agentmods.dev/badge/skills/thapaliyabikendra/ai-artifacts/dbmigrator-dockerfile/github.svg)](https://agentmods.dev/skills/thapaliyabikendra/ai-artifacts/dbmigrator-dockerfile)
Your own site
<a href="https://agentmods.dev/skills/thapaliyabikendra/ai-artifacts/dbmigrator-dockerfile"><img src="https://agentmods.dev/badge/skills/thapaliyabikendra/ai-artifacts/dbmigrator-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.

agentmods 80×15 button for dbmigrator-dockerfile

Your own site · 80×15
<a href="https://agentmods.dev/skills/thapaliyabikendra/ai-artifacts/dbmigrator-dockerfile"><img src="https://agentmods.dev/badge/skills/thapaliyabikendra/ai-artifacts/dbmigrator-dockerfile.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,594 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.05594
Opus 5 $0.00000 $0.02797
Sonnet 5 $0.00000 $0.01119
Haiku 4.5 $0.00000 $0.00559

Measured 6d ago against content hash e0ca72f415e8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade D, and why

dbmigrator-dockerfile scanned grade D with 2 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 6d 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

sudo chown -R 1000:1000 ./logs

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

RUN apt-get update && apt-get install -y postgresql-client && rm -rf /var/lib/apt/lists/*
.claude/skills/dbmigrator-dockerfile/SKILL.md · 794 lines

How it starts

The opening of the file, as written. The whole thing — 794 lines — stays where its author put it; the contents beside it link to each section on GitHub.

DbMigrator Docker Configuration Skill

Overview

This skill generates production-ready Docker configurations for ABP Framework DbMigrator projects. It creates optimized Dockerfile, docker-compose.yml, and supporting configuration files for containerizing database migration tasks.

Purpose

DbMigrator is a standalone .NET application that applies database migrations and seed data. Containerizing it provides:

  • Consistent migration execution across environments
  • Isolated database operations with proper dependency management
  • Scheduled migrations via Kubernetes CronJobs or Docker schedules
  • Reproducible database setup for new environments
  • CI/CD integration for automated deployments

When to Use

✅ Containerize a DbMigrator for:

  • Kubernetes deployments (as CronJob or Job)
  • Docker Compose development environments
  • CI/CD pipelines (GitHub Actions, GitLab CI, Azure DevOps)
  • Multi-environment deployments (Dev/Staging/Prod)
  • Air-gapped or isolated network environments

❌ Skip containerization if:

  • Running migrations manually from developer machine only
  • Using alternative migration tools (Flyway, Liquibase, EF Core CLI)
  • Database is read-only or cannot be modified

What the Skill Generates

Depending on options, the skill creates:

1. Dockerfile

  • Multi-stage build for minimal final image
  • Non-root user for security
  • Proper .NET runtime configuration
  • Health check for container readiness
  • Logging configuration (Serilog to stdout/stderr)
  • Environment variable support

2. docker-compose.yml

  • Service definition for DbMigrator
  • Network configuration (bridge or host)
  • Volume mounts for logs, configuration
  • Environment variable injection
  • Restart policy (none for one-off migrations)
  • Dependency on database service

3. Kubernetes Manifests (optional)

  • Job manifest for one-time migration
  • CronJob manifest for scheduled migrations
  • ConfigMap for appsettings
  • Secret for connection strings
  • ServiceAccount with proper RBAC

Read the full file on GitHub · 794 lines

Changes

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.

  1. 6d ago First seen · 794 lines · 0 tokens per session scan D e0ca72f415e8

Subscribe to this mod's changes

dbmigrator-dockerfile is a skill published in the GitHub repository thapaliyabikendra/ai-artifacts (24 stars, last pushed 5mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 5,594 tokens. A static security scan graded it D with 2 findings (asks for root, recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

deployment

Deploy Memoria with Docker Compose or Kubernetes. Environment variables, multi-instance setup, security. Use when deploying or configuring Memoria.

matrixorigin/memoria · 28 tokens

polar-local-environment

This skill should be used when setting up or managing Polar local development environment with Docker.

fcakyon/claude-codex-settings · 22 tokens

qdrant-deployment-options

Guides Qdrant deployment selection. Use when someone asks 'how to deploy Qdrant', 'Docker vs Cloud', 'local mode', 'embedded Qdrant', 'Qdrant EDGE', 'which deployment option', 'self-hosted vs cloud', or 'need lowest latency deployment'. Also use when choosing between deployment types for a new project.

qdrant/skills · 79 tokens

azuresql-db-container

Runs the Azure SQL Database container (the Azure SQL Database engine) locally (Private Preview): the real PaaS engine where SERVERPROPERTY('EngineEdition') returns 5 and Edition is 'SQL Azure'. This is NOT the SQL Server image mcr.microsoft.com/mssql/server. Use when a user wants to "run Azure SQL locally", "add a…

microsoft/azure-sql-database-container · 212 tokens

azuresql-db-from-sql-server

Migrates a local SQL Server setup to the Azure SQL Database container for Azure-faithful local development. Use when a project already uses mcr.microsoft.com/mssql/server, mssql/server, an sqlcmd plus SA password docker setup, a "SQL Server in docker" or "local mssql container", or a docker-compose with the…

microsoft/azure-sql-database-container · 200 tokens

azuresql-db-schema-migration

Runs database schema migrations against the local Azure SQL Database container so the same migrations apply identically on the local engine and in the Azure cloud. Use when asked to "run my migrations against the local SQL", "apply schema to the container", "apply EF Core / dotnet ef database update", "Prisma migrate…

microsoft/azure-sql-database-container · 151 tokens