{
  "$schema": "https://top-agent-skills.com/schemas/catalog.v1.json",
  "type": "primary-category",
  "slug": "databases-schemas",
  "title": "Databases & Schemas",
  "shortTitle": "Databases",
  "description": "PlanetScale workflows, schema design conventions, query patterns, migrations.",
  "canonical": "https://top-agent-skills.com/top-skills-for-databases-schemas",
  "alternates": {
    "html": "https://top-agent-skills.com/top-skills-for-databases-schemas",
    "markdown": "https://top-agent-skills.com/top-skills-for-databases-schemas.md",
    "json": "https://top-agent-skills.com/top-skills-for-databases-schemas.json"
  },
  "rubricVersion": "1.0",
  "methodology": "https://top-agent-skills.com/about/methodology",
  "contentLastUpdated": "2026-08-19",
  "count": 14,
  "topPick": {
    "slug": "dbhub",
    "name": "dbhub",
    "score": 56,
    "tagline": "One skill across Postgres, MySQL, SQL Server, MariaDB and SQLite — and its actual job is forcing explore-before-query on real schemas.",
    "url": "https://top-agent-skills.com/skill/dbhub"
  },
  "ranking": [
    {
      "rank": 1,
      "slug": "dbhub",
      "name": "dbhub",
      "score": 56,
      "tagline": "One skill across Postgres, MySQL, SQL Server, MariaDB and SQLite — and its actual job is forcing explore-before-query on real schemas.",
      "bestFor": "Querying an unfamiliar production-shaped schema, where the agent guessing table and column names is the failure you are trying to prevent.",
      "notIdealFor": "Setups without MCP. It requires the DBHub MCP server plus a DSN, and it can execute SQL — so scope the connection to a read-only role unless writes are the point.",
      "provenance": "verified-org",
      "publisher": "Bytebase",
      "license": "MIT",
      "compatibility": [
        "claude-code"
      ],
      "install": "npx @bytebase/dbhub@latest --transport http --port 8080 --dsn \"postgres://user:password@localhost:5432/dbname\"",
      "url": "https://top-agent-skills.com/skill/dbhub",
      "json": "https://top-agent-skills.com/skill/dbhub.json"
    },
    {
      "rank": 2,
      "slug": "postgres-aiguide",
      "name": "postgres",
      "score": 55,
      "tagline": "The generalist Postgres skill the ecosystem was missing — schema, indexing, extensions and migrations, from a Postgres company.",
      "bestFor": "Any Postgres decision where the default answer is wrong: choosing between B-tree and GIN, partitioning a large table, or picking an index type for pgvector at your data size.",
      "notIdealFor": "MySQL or SQL Server work. It is Postgres-specific by design, including the extension ecosystem (pgvector, PostGIS, TimescaleDB) that makes Postgres advice non-transferable.",
      "provenance": "verified-org",
      "publisher": "TigerData (Timescale)",
      "license": "Apache-2.0",
      "compatibility": [
        "claude-code"
      ],
      "install": "npx skills add timescale/pg-aiguide --skill postgres",
      "url": "https://top-agent-skills.com/skill/postgres-aiguide",
      "json": "https://top-agent-skills.com/skill/postgres-aiguide.json"
    },
    {
      "rank": 3,
      "slug": "postgres-migrations",
      "name": "postgres-database-migration",
      "score": 55,
      "tagline": "Zero-downtime Postgres migrations, with the locking behaviour spelled out — which ALTER TABLE takes an AccessExclusiveLock and what to do instead.",
      "bestFor": "A schema change on a live table where the failure mode is a lock that takes production down, not a syntax error.",
      "notIdealFor": "Greenfield schemas with no data and no traffic — the whole value here is in the constraints that only exist once a table is live.",
      "provenance": "verified-org",
      "publisher": "TigerData (Timescale)",
      "license": "Apache-2.0",
      "compatibility": [
        "claude-code"
      ],
      "install": "npx skills add timescale/pg-aiguide --skill postgres-database-migration",
      "url": "https://top-agent-skills.com/skill/postgres-migrations",
      "json": "https://top-agent-skills.com/skill/postgres-migrations.json"
    },
    {
      "rank": 4,
      "slug": "postgres-table-design",
      "name": "design-postgres-tables",
      "score": 55,
      "tagline": "Schema design decisions made explicitly: data types, key strategy, JSONB versus columns, and when partitioning earns its complexity.",
      "bestFor": "Designing a new schema, or reviewing one before it accumulates the data that makes changing it expensive.",
      "notIdealFor": "Applying a migration to an existing live table — reach for the migration skill instead, which covers the locking behaviour this one does not.",
      "provenance": "verified-org",
      "publisher": "TigerData (Timescale)",
      "license": "Apache-2.0",
      "compatibility": [
        "claude-code"
      ],
      "install": "npx skills add timescale/pg-aiguide --skill design-postgres-tables",
      "url": "https://top-agent-skills.com/skill/postgres-table-design",
      "json": "https://top-agent-skills.com/skill/postgres-table-design.json"
    },
    {
      "rank": 5,
      "slug": "qdrant-advisor",
      "name": "qdrant-advisor",
      "score": 55,
      "tagline": "A self-updating vector-database skill: it fetches current Qdrant guidance at run time instead of shipping a snapshot that rots.",
      "bestFor": "Diagnosing a Qdrant deployment that is slow, memory-hungry, or returning poor results — the failure modes where stale advice is worse than none.",
      "notIdealFor": "Air-gapped environments. It needs network access to skills.qdrant.tech to load current guidance, which is exactly the design that keeps it fresh.",
      "provenance": "verified-org",
      "publisher": "Qdrant",
      "license": "Apache-2.0",
      "compatibility": [
        "claude-code"
      ],
      "install": "npx skills add qdrant/skills/meta/qdrant-advisor",
      "url": "https://top-agent-skills.com/skill/qdrant-advisor",
      "json": "https://top-agent-skills.com/skill/qdrant-advisor.json"
    },
    {
      "rank": 6,
      "slug": "turso-db",
      "name": "turso-db",
      "score": 53,
      "tagline": "The SQLite slot, filled by Turso — and unusually, a skill that actively steers the agent off the stale API surface web search returns.",
      "bestFor": "Building on Turso or embedded SQLite where the agent would otherwise reach for the deprecated @libsql/client API that dominates search results.",
      "notIdealFor": "Managed Turso Cloud concerns — provisioning, JWT and fine-grained tokens live in the separate turso-cloud skill.",
      "provenance": "verified-org",
      "publisher": "Turso",
      "license": "MIT",
      "compatibility": [
        "claude-code"
      ],
      "install": "npx skills add tursodatabase/agent-skills --skill turso-db",
      "url": "https://top-agent-skills.com/skill/turso-db",
      "json": "https://top-agent-skills.com/skill/turso-db.json"
    },
    {
      "rank": 7,
      "slug": "weaviate-skill",
      "name": "weaviate",
      "score": 52,
      "tagline": "The vector-database skill that ships executable scripts rather than prose — the agent runs the query instead of describing it.",
      "bestFor": "Actually operating a Weaviate instance from the agent: creating collections, importing files, and running semantic, keyword, and hybrid queries.",
      "notIdealFor": "Read-only exploration with no credentials. It needs WEAVIATE_URL, an API key, and a vectorizer provider key, and it creates collections and imports data — so point it at a scratch instance first.",
      "provenance": "verified-org",
      "publisher": "Weaviate",
      "license": "BSD-3-Clause",
      "compatibility": [
        "claude-code"
      ],
      "install": "npx skills add weaviate/agent-skills --skill weaviate",
      "url": "https://top-agent-skills.com/skill/weaviate-skill",
      "json": "https://top-agent-skills.com/skill/weaviate-skill.json"
    },
    {
      "rank": 8,
      "slug": "supabase-skill",
      "name": "supabase-skill",
      "score": 51,
      "tagline": "Supabase done right. RLS policies, edge functions, realtime, auth — in idiomatic patterns.",
      "bestFor": "Teams on Supabase who want the agent to write RLS-correct queries by default.",
      "notIdealFor": null,
      "provenance": "verified-org",
      "publisher": "Supabase",
      "license": "MIT",
      "compatibility": [
        "claude-code",
        "cursor",
        "codex"
      ],
      "install": "npx skills add supabase/agent-skills",
      "url": "https://top-agent-skills.com/skill/supabase-skill",
      "json": "https://top-agent-skills.com/skill/supabase-skill.json"
    },
    {
      "rank": 9,
      "slug": "neon-postgres",
      "name": "neon-postgres",
      "score": 51,
      "tagline": "Neon serverless Postgres done right — branching, pooling, and scale-to-zero, from Neon.",
      "bestFor": "Teams on Neon who want the agent to use branch-per-PR databases and Neon-native connection handling by default.",
      "notIdealFor": null,
      "provenance": "verified-org",
      "publisher": "Neon",
      "license": "Apache-2.0",
      "compatibility": [
        "claude-code",
        "cursor",
        "codex"
      ],
      "install": "npx skills add neondatabase/agent-skills",
      "url": "https://top-agent-skills.com/skill/neon-postgres",
      "json": "https://top-agent-skills.com/skill/neon-postgres.json"
    },
    {
      "rank": 10,
      "slug": "planetscale-skills",
      "name": "planetscale-skills",
      "score": 49,
      "tagline": "PlanetScale's schema branching and index-aware queries, packaged for agents.",
      "bestFor": "Teams already on PlanetScale who want migrations to feel like Git.",
      "notIdealFor": null,
      "provenance": "verified-org",
      "publisher": "PlanetScale",
      "license": "MIT",
      "compatibility": [
        "claude-code",
        "cursor"
      ],
      "install": "npx skills add planetscale/skills",
      "url": "https://top-agent-skills.com/skill/planetscale-skills",
      "json": "https://top-agent-skills.com/skill/planetscale-skills.json"
    },
    {
      "rank": 11,
      "slug": "prisma-orm",
      "name": "prisma-orm",
      "score": 49,
      "tagline": "Prisma migrations and queries by the book. Index-aware, migration-safe, type-correct.",
      "bestFor": "TypeScript backends on Prisma where schema migrations should be reviewable and safe.",
      "notIdealFor": null,
      "provenance": "verified-org",
      "publisher": "Prisma",
      "license": "MIT",
      "compatibility": [
        "claude-code",
        "cursor",
        "codex"
      ],
      "install": "npx skills add prisma/skills",
      "url": "https://top-agent-skills.com/skill/prisma-orm",
      "json": "https://top-agent-skills.com/skill/prisma-orm.json"
    },
    {
      "rank": 12,
      "slug": "redis-cache-patterns",
      "name": "redis-cache-patterns",
      "score": 49,
      "tagline": "Caching without the bugs. Invalidation, write-through, cache-aside, distributed locks.",
      "bestFor": "Teams adding Redis caching where naming and invalidation are easy to get wrong.",
      "notIdealFor": null,
      "provenance": "verified-org",
      "publisher": "Redis",
      "license": "MIT",
      "compatibility": [
        "claude-code",
        "cursor",
        "codex"
      ],
      "install": "npx skills add redis/agent-skills",
      "url": "https://top-agent-skills.com/skill/redis-cache-patterns",
      "json": "https://top-agent-skills.com/skill/redis-cache-patterns.json"
    },
    {
      "rank": 13,
      "slug": "mongodb-patterns",
      "name": "mongodb-patterns",
      "score": 47,
      "tagline": "MongoDB aggregations and indexing without the foot-guns.",
      "bestFor": "Mongo-heavy teams that want correct aggregation pipelines on the first try.",
      "notIdealFor": null,
      "provenance": "verified-org",
      "publisher": "MongoDB",
      "license": "Apache-2.0",
      "compatibility": [
        "claude-code",
        "cursor"
      ],
      "install": "npx skills add mongodb/agent-skills",
      "url": "https://top-agent-skills.com/skill/mongodb-patterns",
      "json": "https://top-agent-skills.com/skill/mongodb-patterns.json"
    },
    {
      "rank": 14,
      "slug": "duckdb-skills",
      "name": "duckdb-skills",
      "score": 46,
      "tagline": "In-process analytical SQL over CSV, Parquet, and Excel — no warehouse, no server.",
      "bestFor": "Ad-hoc analytics over local data files (CSV, Parquet, JSON, Excel) where standing up a warehouse is overkill.",
      "notIdealFor": "High-concurrency transactional workloads — DuckDB is an analytical (OLAP) engine, not an OLTP database.",
      "provenance": "verified-org",
      "publisher": "DuckDB",
      "license": "MIT",
      "compatibility": [
        "claude-code"
      ],
      "install": "/plugin marketplace add duckdb/duckdb-skills",
      "url": "https://top-agent-skills.com/skill/duckdb-skills",
      "json": "https://top-agent-skills.com/skill/duckdb-skills.json"
    }
  ],
  "faqs": [
    {
      "question": "Postgres, MySQL or SQLite?",
      "answer": "The schema-design patterns largely overlap. Migration safety and operational concerns diverge sharply — Postgres has online DDL for most operations, MySQL's online DDL is narrower, SQLite mostly rewrites the table. The top Skills warn about platform-specific footguns."
    },
    {
      "question": "Can these Skills run migrations?",
      "answer": "They generate and review; whether the agent runs them depends on the agent and your approval. Claude Code with a Postgres MCP server can; Claude.ai web only generates."
    },
    {
      "question": "How do they handle ORM-specific patterns?",
      "answer": "Drizzle and Prisma have dedicated Skills that produce idiomatic schema definitions and migrations. Generic SQL Skills fall back to raw DDL."
    },
    {
      "question": "Are these Skills useful for query optimization?",
      "answer": "Yes — they read EXPLAIN ANALYZE output and propose index, query-shape, or schema changes. The cloud-native data warehouse Skills (BigQuery, Snowflake) are particularly useful here."
    },
    {
      "question": "Do they catch unsafe migrations?",
      "answer": "The top Skills flag the well-known footguns — NOT NULL on a large table without a default, multi-step migrations that need separate deploys, online index build assumptions on a write-heavy table."
    }
  ],
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "attribution": "Top Agent Skills (https://top-agent-skills.com)"
}