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.
npx skills add pproenca/dot-skills --skill drizzle-nextjs-postgresgit clone --depth 1 https://github.com/pproenca/dot-skillsWrote 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.
[](https://agentmods.dev/skills/pproenca/dot-skills/drizzle-nextjs-postgres)<a href="https://agentmods.dev/skills/pproenca/dot-skills/drizzle-nextjs-postgres"><img src="https://agentmods.dev/badge/skills/pproenca/dot-skills/drizzle-nextjs-postgres/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.
<a href="https://agentmods.dev/skills/pproenca/dot-skills/drizzle-nextjs-postgres"><img src="https://agentmods.dev/badge/skills/pproenca/dot-skills/drizzle-nextjs-postgres.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00228 | $0.02633 |
| Opus 5 | $0.00114 | $0.01316 |
| Sonnet 5 | $0.00046 | $0.00527 |
| Haiku 4.5 | $0.00023 | $0.00263 |
Grade A, and why
drizzle-nextjs-postgres 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 5d 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.
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.
How it starts
The opening of the file, as written. The whole thing — 117 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Drizzle + PostgreSQL in Next.js
Library-reference skill for Drizzle ORM on PostgreSQL inside the Next.js App Router — 36 rules across 7 categories. Each rule names the wrong default it corrects; there is no rule for things a capable model already gets right.
This skill is self-contained: it includes the migration-workflow and type-inference rules a Postgres + Next.js developer needs even where the underlying wrong default is not Postgres-specific, so you never have to load a second skill mid-task. A few of those knowingly overlap the sibling drizzle-sqlite skill (same wrong default, restated for this context); the rest are decisions that only exist, or only bite differently, because the dialect is PostgreSQL or the code runs in the App Router.
Pinned to drizzle-orm 0.45.2, drizzle-kit 0.31.10, Next.js 16.2.11, PostgreSQL 14+.
When to Apply
- Writing or reviewing the
lib/dbmodule — driver choice, pooling, singletons,server-only - Fetching data in a Server Component, Route Handler, or
generateMetadatawithdb.select()/db.query.* - Deciding what to cache:
use cache,cacheLife,cacheTag, Reactcache(), or nothing - Writing a Server Action that mutates rows and has to invalidate what the read path cached
- Defining or changing a
pgTable— column types, indexes, enums, constraints - Running
drizzle-kit generate/migrate/push, or hand-editing a generated.sqlfile - Wrapping work in
db.transaction(), or debugging a race, deadlock, or exhausted pool - Reviewing a list, count, or pagination query that is fine locally and slow in production
Rule Categories
| # | Category | Prefix | Covers |
|---|---|---|---|
| 1 | Client Construction & Driver Choice | conn- |
Singletons across HMR, serverless pool sizing, poolers, driver capability, server-only, passing schema |
| 2 | Reads in Server Components | rsc- |
Suspense boundaries, use cache / cacheLife / cacheTag, request dedupe, waterfalls, runtime choice |
| 3 | Server Actions & Mutations | mut- |
Authorization and validation in the action, cache invalidation, deferred writes |
| 4 | Postgres Schema Definition | schema- |
timestamptz, identity columns, text vs varchar, numeric, jsonb, bigint modes, table config, enums |
| 5 | Migrations & Schema Change Safety | migrate- |
generate vs push, concurrent indexes, where migrations run, renames, lock-safe constraints |
| 6 | Transactions & Pooled Connections | tx- |
Connection cost of a held transaction, row locking, serialization retries |
| 7 | Postgres Query Building | query- |
Keyset pagination, count cost, driver-dependent execute shape, NULL semantics, prepared statements |
What ships with it
40 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.
- AGENTS.md 11 KB
- assets/templates/_template.md 1.1 KB
- metadata.json 3.3 KB
- references/_sections.md 3.3 KB
- references/conn-disable-prepare-behind-transaction-pooler.md 1.7 KB
- references/conn-driver-choice-follows-transactions.md 2.8 KB
- references/conn-pass-schema-for-relational-queries.md 2.2 KB
- references/conn-pool-sizing-for-serverless.md 2.5 KB
- references/conn-server-only-db-module.md 1.7 KB
- references/conn-singleton-across-hmr.md 1.7 KB
- references/migrate-add-constraints-not-valid-then-validate.md 2.1 KB
- references/migrate-concurrent-index-outside-transaction.md 2.0 KB
- references/migrate-generate-not-push.md 1.8 KB
- references/migrate-map-renames-explicitly.md 2.0 KB
- references/migrate-run-in-deploy-step-not-at-runtime.md 2.3 KB
- references/mut-after-for-post-response-writes.md 1.8 KB
- references/mut-authorize-inside-the-action.md 2.3 KB
- references/mut-updatetag-vs-revalidatetag.md 1.8 KB
- references/query-count-scans-the-table.md 2.0 KB
- references/query-execute-shape-is-driver-dependent.md 1.8 KB
- references/query-keyset-not-offset.md 2.0 KB
- references/query-not-in-null-trap.md 1.7 KB
- references/query-prepared-statements-need-names.md 1.9 KB
- references/rsc-dedupe-with-react-cache.md 1.7 KB
- references/rsc-no-request-apis-inside-use-cache.md 2.1 KB
- references/rsc-node-runtime-not-edge.md 1.8 KB
- references/rsc-suspense-around-uncached-reads.md 2.2 KB
- references/rsc-use-cache-is-per-instance-memory.md 2.1 KB
- references/rsc-use-cache-replaces-unstable-cache.md 1.7 KB
- references/schema-bigint-mode-truncation.md 1.9 KB
- references/schema-enum-values-are-append-only.md 1.9 KB
- references/schema-identity-not-serial.md 1.7 KB
- references/schema-jsonb-with-dollar-type.md 1.6 KB
- references/schema-numeric-is-a-string.md 1.9 KB
- references/schema-table-extras-are-an-array.md 2.0 KB
- references/schema-text-not-varchar-length.md 1.6 KB
- references/schema-timestamptz-not-timestamp.md 1.8 KB
- references/tx-lock-rows-for-read-modify-write.md 2.0 KB
- references/tx-no-external-io-inside.md 2.0 KB
- references/tx-retry-serialization-failures.md 2.4 KB
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.
- 5d ago First seen · 117 lines · 228 tokens per session scan A 702871ee04c7
drizzle-nextjs-postgres is a skill published in the GitHub repository pproenca/dot-skills (205 stars, last pushed 24d ago), licensed MIT. It adds 228 tokens to every session and 2,633 once invoked, about $0.0011 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-09-03.
Other skills, from other repositories
azure-postgres-ts
Connect to Azure Database for PostgreSQL Flexible Server from Node.js/TypeScript using the pg (node-postgres) package. Use for PostgreSQL queries, connection pooling, transactions, and Microsoft Entra ID (passwordless) authentication. Triggers: "PostgreSQL", "postgres", "pg client", "node-postgres", "Azure PostgreSQL…
butterbase
AI-native, open-source backend-as-a-service with a built-in Model Context Protocol server. Postgres, auth, storage, functions, AI gateway.
supabase
Use when doing ANY task involving Supabase. Triggers: Supabase products (Database, Auth, Edge Functions, Realtime, Storage, Vectors, Cron, Queues); client libraries and SSR integrations (supabase-js, @supabase/ssr) in Next.js, React, SvelteKit, Astro, Remix; auth issues (login, logout, sessions, JWT, cookies…
supabase-cli
This skill should be used when user asks to "use supabase CLI", "supabase init", "supabase start", "run migrations", "deploy edge functions", "manage Supabase project", or works with the supabase command-line tool for local development and project management.
supabase-js
This skill should be used when user asks to "use supabase-js", "query Supabase database", "supabase auth", "supabase storage", "supabase realtime", "supabase edge functions", or works with the @supabase/supabase-js JavaScript/TypeScript SDK.
supabase-node
Express/Hono with Supabase and Drizzle ORM.