docker-prisma-setup

docker-prisma-setup is a skill for Claude Code from hamzaPixl/pixl-ai. It costs 58 tokens per session (1,298 once invoked), scanned A, original, MIT.

A setup guide for a TypeScript backend that runs PostgreSQL and Redis in Docker and uses Prisma to manage database code, migrations, and starter data.

In plain words
What is it for?
Use it when starting a backend service, joining a project with Docker Compose and Prisma, or repairing a local database setup.
Why use it?
It removes much of the manual work and troubleshooting involved in getting a local backend running, especially when Docker or the local database is broken.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the pixl-crew plugin — 93 skills, 14 agents, 6 hooks shipped together

Good fit Use it when starting a backend service, joining a project with Docker Compose and Prisma, or repairing a local database setup.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hamzapixl/pixl-ai/docker-prisma-setup
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 hamzaPixl/pixl-ai --skill docker-prisma-setup
Clone the repo
git clone --depth 1 https://github.com/hamzaPixl/pixl-ai

Made for: Claude Code.

Or install pixl-crew, the plugin that ships this one along with the rest of its 93 skills, 14 agents, 6 hooks.

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 docker-prisma-setup

README.md
[![agentmods](https://agentmods.dev/badge/skills/hamzapixl/pixl-ai/docker-prisma-setup/github.svg)](https://agentmods.dev/skills/hamzapixl/pixl-ai/docker-prisma-setup)
Your own site
<a href="https://agentmods.dev/skills/hamzapixl/pixl-ai/docker-prisma-setup"><img src="https://agentmods.dev/badge/skills/hamzapixl/pixl-ai/docker-prisma-setup/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 docker-prisma-setup

Your own site · 80×15
<a href="https://agentmods.dev/skills/hamzapixl/pixl-ai/docker-prisma-setup"><img src="https://agentmods.dev/badge/skills/hamzapixl/pixl-ai/docker-prisma-setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,298 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 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.00058 $0.01298
Opus 5.5 $0.00023 $0.00519
Sonnet 5.5 $0.00012 $0.00260
Haiku 4.5 $0.00006 $0.00130

Measured 1mo ago against content hash a153161fa2a0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

docker-prisma-setup scanned grade A 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 1mo 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

2. Test health: `curl -s http://localhost:<port>/health`
packages/crew/skills/docker-prisma-setup/SKILL.md · 114 lines

How it starts

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

Overview

Sets up a fully working local development environment for a TypeScript backend using Docker Compose (Postgres + Redis) and Prisma ORM. Handles common pitfalls: Docker daemon hangs, workspace protocol deps, missing packages, and RBAC wiring.

Step 1: Pre-flight Checks

  1. Verify Docker Desktop is running:
    docker info >/dev/null 2>&1
    
  2. If Docker is hung (command hangs >10s):
    • Force-kill all Docker processes: killall -9 Docker "Docker Desktop" com.docker.backend com.docker.vmnetd
    • Wait 2s, then relaunch: open -a "Docker Desktop"
    • Poll readiness: for i in $(seq 1 30); do docker info >/dev/null 2>&1 && break; sleep 3; done
  3. Check project structure exists:
    • docker-compose.yml at project root
    • prisma/schema.prisma in the service directory
    • package.json with prisma dependency

Step 2: Start Docker Containers

  1. Read docker-compose.yml to identify required env vars (e.g. POSTGRES_PASSWORD)
  2. Start containers:
    POSTGRES_PASSWORD=postgres docker compose up -d
    
  3. Verify services are healthy:
    • Postgres: docker exec <container> pg_isready
    • Redis: nc -z localhost 6379
  4. If port conflicts, check for existing processes: lsof -i :5432

Step 3: Create .env File

  1. Check if services/<name>/.env already exists
  2. Read prisma/schema.prisma for the DATABASE_URL env var name
  3. Create .env with:
    DATABASE_URL=postgresql://postgres:postgres@localhost:5432/<db>?schema=public
    JWT_SECRET=dev-secret-change-in-production
    REDIS_URL=redis://localhost:6379
    
  4. Verify .env is in .gitignore — warn if not

IMPORTANT: Use cat > ... << 'EOF' via Bash if the Write tool is blocked by credential hooks.

Step 4: Install Dependencies

  1. Detect package manager:
    • Check for bun.lock → use bun install
    • Check for pnpm-lock.yaml → use pnpm install
    • Check for package-lock.json → use npm install
  2. Workspace protocol gotcha: If package.json contains "workspace:*" dependencies, you MUST use bun or pnpm (npm does not support workspace: protocol)
  3. Install from the monorepo root, not the service directory
  4. If a specific dep is missing (e.g. dotenv), add it to the service: bun add dotenv

Read the full file on GitHub · 114 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. 1mo ago First seen · 114 lines · 58 tokens per session scan A a153161fa2a0

Subscribe to this mod's changes

docker-prisma-setup is a skill published in the GitHub repository hamzaPixl/pixl-ai (2 stars, last pushed 6mo ago), licensed MIT. It adds 58 tokens to every session and 1,298 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

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

postgres-container-ops

PostgreSQL container operations for the docker instance: volume persistence audit (PGDATA layout and the PG18 version-specific data-directory change), /dev/shm sizing (shmsize), pgisready healthcheck tuning, minor-version pin policy (16-alpine to explicit 16.x-alpine), the major-version upgrade runbook (pgupgrade…

fmflurry/settings-opencode · 176 tokens

postgres-health-check

Read-only PostgreSQL instance health battery: connectivity/uptime, cache hit ratio, dead tuples & autovacuum hotspots, XID wraparound distance, long-running & idle-in-transaction sessions, unused indexes, checkpoint stats, archiver health, connection count vs maxconnections, and docker container/volume checks. Use…

fmflurry/settings-opencode · 143 tokens

postgres-backup-restore

PostgreSQL backup & restore playbook for the docker instance: pgdump/pgdumpall recipes, WAL archiving + PITR setup (archivemode, archivecommand, recovery.signal, recoverytargettime, timelines), restore drills, and the PG16 no-incremental-backup constraint. Use when asked about backup, restore, PITR, pgdump…

fmflurry/settings-opencode · 138 tokens

postgres-performance-tuning

PostgreSQL performance tuning for the docker instance: memory sizing vs the 1g memlimit (sharedbuffers, effectivecachesize, workmem math), checkpoint tuning (maxwalsize, checkpointcompletiontarget, pgstatcheckpointer), pgstatstatements enablement via compose, slow-query triage, EXPLAIN (ANALYZE, BUFFERS)…

fmflurry/settings-opencode · 185 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