express-prisma-coolify-image

express-prisma-coolify-image is a skill for Claude Code from KhaledSaeed18/dotclaude. It costs 53 tokens per session (1,135 once invoked), scanned C, original, MIT.

A way to package an Express and Prisma API in a small production container image. At startup it applies pending PostgreSQL database changes and reports ready only after the database responds.

In plain words
What is it for?
Use it when containerising a Node API with PostgreSQL, running Prisma migrations in production, or diagnosing readiness and shutdown problems.
Why use it?
It prevents an API from accepting traffic before its database is usable and stops startup when a migration fails. It also addresses database compatibility during rolling updates, where old and new containers run together.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the deploy plugin — 9 skills, 3 commands, 1 agent shipped together

Good fit Use it when containerising a Node API with PostgreSQL, running Prisma migrations in production, or diagnosing readiness and shutdown problems.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/khaledsaeed18/dotclaude/express-prisma-coolify-image
Install

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.

Any agent
npx skills add KhaledSaeed18/dotclaude --skill express-prisma-coolify-image
Clone the repo
git clone --depth 1 https://github.com/KhaledSaeed18/dotclaude

Made for: Claude Code.

Or install deploy, the plugin that ships this one along with the rest of its 9 skills, 3 commands, 1 agent.

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 express-prisma-coolify-image

README.md
[![agentmods](https://agentmods.dev/badge/skills/khaledsaeed18/dotclaude/express-prisma-coolify-image/github.svg)](https://agentmods.dev/skills/khaledsaeed18/dotclaude/express-prisma-coolify-image)
Your own site
<a href="https://agentmods.dev/skills/khaledsaeed18/dotclaude/express-prisma-coolify-image"><img src="https://agentmods.dev/badge/skills/khaledsaeed18/dotclaude/express-prisma-coolify-image/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 express-prisma-coolify-image

Your own site · 80×15
<a href="https://agentmods.dev/skills/khaledsaeed18/dotclaude/express-prisma-coolify-image"><img src="https://agentmods.dev/badge/skills/khaledsaeed18/dotclaude/express-prisma-coolify-image.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,135 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00053 $0.01135
Opus 5.5 $0.00021 $0.00454
Sonnet 5.5 $0.00011 $0.00227
Haiku 4.5 $0.00005 $0.00113

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

Security

Grade C, and why

express-prisma-coolify-image scanned grade C with 1 finding 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 11d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (templates/docker-entrypoint.sh, templates/healthcheck.ts), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Recursive force deletehighDestructive command

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

rm -rf node_modules && pnpm install --prod --frozen-lockfile --ignore-scripts
.claude-plugin/plugins/deploy/skills/express-prisma-coolify-image/SKILL.md · 60 lines

How it starts

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

The image carries compiled code, production dependencies and the migrations, applies pending migrations before it listens, and reports ready only when it can reach its database. Because a rolling update runs the new container beside the old one, every migration must be compatible with the previous release: expand, migrate, contract.

Hard rules: never break these

  • Build natively on the runner, copy artifacts into the image. No pnpm install inside Docker, no build on the server.
  • Migrations run in the entrypoint, with prisma migrate deploy, never migrate dev, db push or migrate reset. The entrypoint applies them and then execs the server, so a failed migration stops the container before it takes traffic.
  • Applied migrations are immutable. CI rejects any edit, rename or deletion under prisma/migrations; a mistake gets a new migration.
  • Every release starts from a restore-verified backup. The deploy job takes one before touching the tag (the vps-ops-toolkit skill provides it).
  • Readiness means the database answers. The probe calls the readiness route that runs a trivial query, so a container that cannot reach Postgres never takes traffic.
  • Non-root user, no host ports, a stop that finishes within 10 s.

Step 1: Audit the API

cat package.json | jq '{scripts, engines, packageManager}'
ls prisma prisma/migrations | head; cat prisma.config.ts 2>/dev/null
grep -rn "process.env" src/config | head -40
grep -rn "health" src/routes src/modules 2>/dev/null | head

List the runtime variables the app validates at boot (database URL, secrets, allowed origins, feature switches) and which have safe values for a smoke test. Note native or downloaded dependencies (a headless browser, image libraries): they must be fetched on the runner and copied in, with their shared libraries installed in the image.

Step 2: Add the runtime files

File Purpose
Dockerfile node:<major>-slim, copies node_modules, dist, prisma, config and entrypoint; USER node; HEALTHCHECK on the probe
docker-entrypoint.sh prisma migrate deploy when migrations exist, then exec node dist/server.js
healthcheck.ts compiled with the app; fetches the readiness route with a 4 s timeout
.dockerignore keeps sources, tests, docs and env files out; node_modules and dist deliberately stay in

Read the full file on GitHub · 60 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 11d ago First seen · 60 lines · 53 tokens per session scan C 6e2a615fa685

Subscribe to this mod's changes

express-prisma-coolify-image is a skill published in the GitHub repository KhaledSaeed18/dotclaude (5 stars, last pushed 2d ago), licensed MIT. It adds 53 tokens to every session and 1,135 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-05.

Related

Other skills, from other repositories

kysely

Guidelines for developing with Kysely, a type-safe TypeScript SQL query builder with autocompletion support.

Mindrally/skills · 26 tokens

postgresql-best-practices

PostgreSQL development best practices for schema design, query optimization, and database administration.

Mindrally/skills · 23 tokens

database-migrator

Migrates databases between providers (Postgres, MySQL, Supabase, PlanetScale, MongoDB). Reads source schema, generates migration scripts, handles data type mapping, foreign keys, indexes, triggers, stored procedures. Validates migration with row counts and checksums. Generates migration-plan.md with step-by-step…

OneWave-AI/claude-skills · 76 tokens

database-schema-designer

Designs relational and document database schemas from requirements or an existing app - tables and collections, keys, relationships, constraints, indexes driven by real query patterns, ERDs, and reversible migration scripts - with PostgreSQL (including Supabase) as the default and MySQL, SQLite, and MongoDB supported.…

OneWave-AI/claude-skills · 141 tokens

cnpg

Create and operate CloudNativePG (CNPG) Postgres databases on Kubernetes the GitOps/Flux way - on managed cloud (GKE + GCS via Workload Identity) OR self-hosted (K3s/bare-metal + any S3-compatible store via a credentials secret). Covers Cluster + ScheduledBackup manifests, barman WAL archiving, pgvector, PITR…

vanducng/skills · 155 tokens

postgres-operator-cloudnative-pg-migration

Migrate PostgreSQL clusters from the Zalando postgres-operator (acid.zalan.do postgresql CRs, Spilo/Patroni, WAL-G) to CloudNativePG (CNPG) on Kubernetes, incl. fully air-gapped clusters. Core knowledge: the two walls (Spilo↔CNPG glibc/collation divergence that corrupts physically-copied indexes; WAL-G↔Barman archive…

air-gapped/skills · 224 tokens