supabase-postgres-best-practices

supabase-postgres-best-practices is a skill for Claude Code, Codex from assaf/expense. It costs 182 tokens per session (741 once invoked), scanned A, original, no licence file.

A guide to good practices for PostgreSQL, a database system used to store and query structured application data. It applies to Postgres databases running anywhere, including Supabase, and covers tables, columns, schemas, migrations, and row-level security policies.

In plain words
What is it for?
Creating or changing tables and columns, designing database schemas, writing migrations, and setting rules for which users can access rows.
Why use it?
It helps avoid database design and access-control mistakes before they become hard-to-change data problems.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/assaf/expense/supabase-postgres-best-practices
Any agent
npx skills add assaf/expense --skill supabase-postgres-best-practices
Clone the repo
git clone --depth 1 https://github.com/assaf/expense

Made for: Claude Code, Codex.

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 supabase-postgres-best-practices

README.md
[![agentmods](https://agentmods.dev/badge/skills/assaf/expense/supabase-postgres-best-practices.svg)](https://agentmods.dev/skills/assaf/expense/supabase-postgres-best-practices)
Your own site
<a href="https://agentmods.dev/skills/assaf/expense/supabase-postgres-best-practices"><img src="https://agentmods.dev/badge/skills/assaf/expense/supabase-postgres-best-practices.svg" alt="Measured on agentmods" height="20"></a>
Per session 182 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 741 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown 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 $0.00182 $0.00741
Opus 5 $0.00091 $0.00370
Sonnet 5 $0.00036 $0.00148
Haiku 4.5 $0.00018 $0.00074

Measured 4d ago against content hash bcc1e6e2b3ce, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

supabase-postgres-best-practices 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 4d 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.

.agents/skills/supabase-postgres-best-practices/SKILL.md · 67 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

Files

What ships with it

35 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. 4d ago First seen · 67 lines · 182 tokens per session scan A bcc1e6e2b3ce

Subscribe to this mod's changes

supabase-postgres-best-practices is a skill published in the GitHub repository assaf/expense (4 stars, last pushed today), with no licence file. It adds 182 tokens to every session and 741 once invoked, about $0.0009 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-31.

Related

Other skills, from other repositories

amazon aurora dsql

Deprecated compatibility redirect for Aurora DSQL guidance. Use when a request concerns DSQL, Aurora DSQL, distributed SQL, DSQL schemas, migrations, queries, authentication, performance, or application development.

awslabs/mcp · 46 tokens

surf

Use when the user wants crypto data — token prices, on-chain SQL, prediction-market positions, CEX order books, wallet labels/net-worth, social mindshare, news, or unified search. 83 endpoints across exchange, on-chain, wallet, social, prediction, news and search — one API, flat $0.0085/call in USDC via x402. Settles…

BlockRunAI/blockrun-mcp · 92 tokens

dv-query

Bulk reads, multi-page iteration, and analytics over Dataverse data. Use when the user wants to read, list, filter, aggregate, group, join, or analyze records — including pandas DataFrame workflows and notebook exploration.

microsoft/Dataverse-skills · 48 tokens

odoo-data-quality-gate

Audit an Odoo database's data quality with evidence before trusting AI answers, importing, or migrating — duplicates, missing required values, orphaned references, format anomalies — and drive remediation through odoo-mcp's gated write workflow. Use when the user asks to "check data quality", "clean up data", "prepare…

erpipe-org/mcp-odoo · 85 tokens

dv-connect

One-step setup for a Dataverse environment — installs tools, authenticates, registers the MCP server, and writes .env. Use when starting a new project, switching environments, fixing authentication, or troubleshooting an MCP connection that won't come up.

microsoft/Dataverse-skills · 51 tokens

frontmcp-config

Use when configuring a FrontMCP server through frontmcp.config or the @FrontMcp options. Covers auth modes (public, transparent, local, remote), OAuth plus credential vault and secureStore, CORS, HTTP port / entry-path prefix / unix socket, security headers (CSP, HSTS, X-Frame-Options, X-Content-Type-Options), rate…

agentfront/frontmcp · 187 tokens