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 ndisisnd/cook --skill databasegit clone --depth 1 https://github.com/ndisisnd/cookWrote 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/ndisisnd/cook/database)<a href="https://agentmods.dev/skills/ndisisnd/cook/database"><img src="https://agentmods.dev/badge/skills/ndisisnd/cook/database/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/ndisisnd/cook/database"><img src="https://agentmods.dev/badge/skills/ndisisnd/cook/database.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.00032 | $0.01064 |
| Opus 5.5 | $0.00013 | $0.00426 |
| Sonnet 5.5 | $0.00006 | $0.00213 |
| Haiku 4.5 | $0.00003 | $0.00106 |
Grade A, and why
database 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 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.
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 — 91 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Database Standards
Targets: PostgreSQL 16+ (17/18-only features are flagged) · Redis 7.2+ / Valkey 8+.
Supabase-specific rules (auth.uid(), service_role, Supavisor) live in supabase.
Priority: P0 — PostgreSQL Correctness
Schema & Access
- Isolate persistence behind repositories or database services; do not scatter raw database access across handlers.
- Enforce integrity in the database: primary keys, foreign keys,
NOT NULL,CHECK,UNIQUE. - Use
timestamptz,text,numericor integer minor units for money, andGENERATED ALWAYS AS IDENTITYor UUIDs for keys (see postgresql-anti-patterns).
Migrations
- Use explicit, version-controlled migrations for every schema change. ORM schema sync is dev-only:
- TypeORM: never
synchronize: trueoutside local dev. - Prisma:
prisma migrate deployin CI/prod;migrate devanddb pushare dev-only. - Drizzle:
drizzle-kit generate+migratefor shared environments;drizzle-kit pushis prototyping-only.
- TypeORM: never
- Destructive or renaming changes use expand-contract — the recipe is postgresql-implementation.
- On live tables, set
lock_timeout, build indexesCONCURRENTLY, and add constraintsNOT VALIDthenVALIDATE— see the migration section of postgresql-checklist. - Generated ORM migrations do not capture Row-Level Security. Write RLS as explicit SQL.
Queries & Performance
- Paginate every list query (keyset for deep pages).
- Index every hot filter, join, foreign-key, and RLS-predicate column.
- Use short transactions for multi-step mutations. Prevent N+1 with joins or batching.
- Project only the columns you need; no
SELECT *in application queries. - Behind a transaction-mode pooler (PgBouncer, Supavisor), do not rely on session state — see the pooling section of postgresql-best-practices.
Priority: P0 — Redis Safety
Data Design
What ships with it
8 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.
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.
- 1mo ago Changed · -8 lines 586f3fc9a88d
- 3mo ago First seen · 99 lines · 32 tokens per session scan A 5a2e0032bbbf
database is a skill published in the GitHub repository ndisisnd/cook (2 stars, last pushed 1mo ago), licensed MIT. It adds 32 tokens to every session and 1,064 once invoked, about $0.0001 per session on Opus 5.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-31.
database compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| databasendisisnd/cook | Skill | 2 | 1mo ago | MIT | A | 32 | Claude Code, Codex |
| database-optimizerJeffallan/claude-skills | Skill | 13k | today | MIT | A | 54 | Claude Code |
| postgres-proJeffallan/claude-skills | Skill | 13k | today | MIT | A | 41 | Claude Code |
| postgres-database-migrationtimescale/pg-aiguide | Skill | 1.9k | 2d ago | Apache-2.0 | A | 220 | Cursor |
| timescaledb-hyperfunctionstimescale/pg-aiguide | Skill | 1.9k | 2d ago | Apache-2.0 | A | 298 | Cursor |
| design-postgis-tablestimescale/pg-aiguide | Skill | 1.9k | 2d ago | Apache-2.0 | A | 31 | Cursor |
| migrate-postgres-tables-to-hypertablestimescale/pg-aiguide | Skill | 1.9k | 2d ago | Apache-2.0 | A | 181 | Cursor |