db-sculptor

db-sculptor is a skill for Claude Code from EliasOulkadi/shokunin. It costs 123 tokens per session (3,140 once invoked), scanned A, original, MIT.

A database design assistant for PostgreSQL and applications using Prisma or Drizzle. It helps plan tables, indexes, queries, migrations, partitions, and sharding.

In plain words
What is it for?
Use it to design schemas, choose or review indexes, investigate slow queries with EXPLAIN ANALYZE, and create safer migrations that avoid extended downtime.
Why use it?
It reduces the risk of slow queries, unsafe database changes, and designs that stop working as data grows. It also explains how read and write patterns affect the design.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions OpenCode.

Good fit Use it to design schemas, choose or review indexes, investigate slow queries with EXPLAIN ANALYZE, and create safer migrations that avoid extended downtime.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/eliasoulkadi/shokunin/db-sculptor
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 EliasOulkadi/shokunin --skill db-sculptor
Clone the repo
git clone --depth 1 https://github.com/EliasOulkadi/shokunin

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 db-sculptor

README.md
[![agentmods](https://agentmods.dev/badge/skills/eliasoulkadi/shokunin/db-sculptor/github.svg)](https://agentmods.dev/skills/eliasoulkadi/shokunin/db-sculptor)
Your own site
<a href="https://agentmods.dev/skills/eliasoulkadi/shokunin/db-sculptor"><img src="https://agentmods.dev/badge/skills/eliasoulkadi/shokunin/db-sculptor/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 db-sculptor

Your own site · 80×15
<a href="https://agentmods.dev/skills/eliasoulkadi/shokunin/db-sculptor"><img src="https://agentmods.dev/badge/skills/eliasoulkadi/shokunin/db-sculptor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 123 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,140 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium MCP Rug Pull · line 194
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
How audits are shown
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.00123 $0.03140
Opus 5 $0.00062 $0.01570
Sonnet 5 $0.00025 $0.00628
Haiku 4.5 $0.00012 $0.00314

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

Security

Grade A, and why

db-sculptor 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 12d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/generate-schema.sh), 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.

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.

.pack/skills/db-sculptor/SKILL.md · 308 lines

How it starts

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

DB Sculptor

Design performant database schemas. Model for access patterns first, normalize later. Based on PostgreSQL internals, Prisma/Drizzle best practices, and production patterns from PlanetScale, Neon, and pganalyze.

Sub-Commands

Command Description
design Design a schema from access patterns and data volume estimates
index Analyze queries and recommend/create optimal indexes
optimize Diagnose slow queries with EXPLAIN ANALYZE and fix them
migrate Create a safe, zero-downtime migration (expand/contract)
audit Audit existing schema against best practices and anti-patterns

Workflow

Step 1: Model for access patterns

Question Determine
Read/write ratio? How many indexes can the table support
Data volume? Current rows, growth rate/month
Consistency requirements? ACID vs eventual, read replicas OK?
Latency budget? p50 < 5ms, p95 < 50ms, p99 < 200ms

Decision tree:

  • High write volume, simple reads → Normalize (3NF). Minimum indexes.
  • High read volume, complex joins → Denormalize strategically. Add composite + covering indexes.
  • Time-series data → Partition by time (monthly). BRIN indexes on timestamp.
  • Full-text search needed → GIN index with tsvector + tsquery.
  • JSON queries → GIN index on JSONB column.

Step 2: Primary key strategy

PK type Pros Cons When
UUIDv7 Time-sortable, globally unique, no collision risk Larger than bigint (16 bytes vs 8) Default for user-facing. Distributed systems.
UUIDv4 Random, globally unique Non-sortable = index fragmentation Legacy. Avoid for new schemas.
bigint (auto-increment) Fast, compact, sequential Predictable, not globally unique Internal/analytics tables. Never for user-facing.
ULID Time-sortable, URL-safe 26 chars When human-readable time ordering matters.

Default: UUIDv7 for all user-facing tables.

Read the full file on GitHub · 308 lines

Files

What ships with it

5 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. 12d ago First seen · 308 lines · 123 tokens per session scan A 350f486a8f59

Subscribe to this mod's changes

db-sculptor is a skill published in the GitHub repository EliasOulkadi/shokunin (113 stars, last pushed 1mo ago), licensed MIT. It adds 123 tokens to every session and 3,140 once invoked, about $0.0006 per session on Opus 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-08-30.

Related

Other skills, from other repositories

supabase-node

Express/Hono with Supabase and Drizzle ORM.

alinaqi/maggy · 14 tokens

supabase

Core Supabase CLI, migrations, RLS, Edge Functions.

alinaqi/maggy · 15 tokens

memstack-security-rls-guardian

Use this skill when creating or altering database tables in Supabase or PostgreSQL projects. Triggers include: CREATE TABLE, ALTER TABLE, migration files, 'RLS', 'row level security', 'new table', 'database schema'. Enforces Row Level Security policies on every table to prevent unauthorized data access. Do NOT use for…

cwinvestments/memstack · 84 tokens

ring:mapping-service-resources

Mapping a Go service's Service -> Module -> Resource hierarchy for dispatch-layer registration: detects modules and per-module PostgreSQL/MongoDB/RabbitMQ resources, database names, and shared databases, generates MongoDB index migration pairs (.up.json/.down.json), detects existing Postgres migrations, emits an HTML…

LerianStudio/ring · 97 tokens

idempotency-patterns

Use when making retried HTTP commands or message processing safe against duplicate effects, including database-backed request keys, payload conflicts and concurrent retries. Do not apply caching as a substitute for business idempotency.

rrezartprebreza/spring-boot-skills · 46 tokens

saas-multi-tenant

Design and implement multi-tenant SaaS architectures with RLS, tenant isolation, and PostgreSQL / Desain dan implementasikan arsitektur SaaS multi-tenant dengan RLS, isolasi tenant, dan PostgreSQL.

roedyrustam/vibes-plug · 52 tokens