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 monkilabs/opencastle --skill supabase-databasegit clone --depth 1 https://github.com/monkilabs/opencastleWrote 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/monkilabs/opencastle/supabase-database)<a href="https://agentmods.dev/skills/monkilabs/opencastle/supabase-database"><img src="https://agentmods.dev/badge/skills/monkilabs/opencastle/supabase-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/monkilabs/opencastle/supabase-database"><img src="https://agentmods.dev/badge/skills/monkilabs/opencastle/supabase-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.00041 | $0.00520 |
| Opus 5.5 | $0.00016 | $0.00208 |
| Sonnet 5.5 | $0.00008 | $0.00104 |
| Haiku 4.5 | $0.00004 | $0.00052 |
Grade A, and why
supabase-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 12d 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.
What it actually says
Supabase Database
Project schema, roles, migration history, auth flow, and key files: .opencastle/stack/supabase-config.md. Docs: https://supabase.com/docs
RLS gotchas
ENABLE ROW LEVEL SECURITYwith no policy denies everything. Enabling and adding policies must land in the same migration.- Policies are per-operation.
FOR SELECT USING (...)does not cover writes;INSERTneedsWITH CHECK, notUSING. auth.uid()is the owner check (auth.uid() = id). It isNULLfor theanonrole, so any policy relying on it silently blocks anonymous access.- Policies target the Postgres roles
anon,authenticatedandservice_role(which bypasses RLS). Test every policy asanonand asauthenticated, plus any app-level role your policies check. A policy that works as your own user tells you nothing aboutanon. - Reference
auth.users(id)withON DELETE CASCADEon profile-style tables, or deleted users leave orphans.
Confirm RLS coverage before shipping:
SELECT tablename, rowsecurity FROM pg_tables WHERE schemaname = 'public';
Migration workflow
- Create the file with
supabase migration new add_profiles(it writessupabase/migrations/<14-digit timestamp>_add_profiles.sql); comment intent and rollback considerations inline. - Apply to a local/ephemeral DB; run smoke tests plus per-role RLS checks.
- Review the SQL for destructive actions (table drops, column rewrites) — those need a backfill script and phased rollout, never a single migration.
- Re-run in CI against a test replica with the full suite.
- Deploy via the safe-deploy pipeline, then re-verify RLS, indexes, and a data sanity query.
Regenerate types after every schema change (CI step):
supabase gen types typescript --project-id <project-id> > src/types/supabase.ts
Assert at steps 2 and 4 that the migration completes, per-role RLS queries still pass, and tests on changed paths pass. On failure: revert, adjust, re-run.
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.
- 12d ago Changed · -2 lines · -8 tokens per session 438b0984bee7
- 13d ago First seen · 41 lines · 49 tokens per session scan A 8733c57cc125
supabase-database is a skill published in the GitHub repository monkilabs/opencastle (80 stars, last pushed yesterday), licensed MIT. It adds 41 tokens to every session and 520 once invoked, about $0.0002 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-10-04.
Other skills, from other repositories
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.
crestapps-core-postgresql
Skill for integrating PostgreSQL pgvector indexing data sources documents vector retrieval and memory in CrestApps.Core.
alibaba-analyticdb-realtime
Operate AnalyticDB for MySQL and PostgreSQL, Hologres real-time OLAP analytics, and DAS real-time diagnostics for sub-second interactive analytics workloads.
db
Use when inspecting schemas, querying data or making authorized database changes.
alloydb-basics
Manages clusters, instances, and backups for AlloyDB for PostgreSQL, and integrates with AlloyDB Model Context Protocol (MCP) tools for automated database operations. Use when creating, configuring, or administering AlloyDB databases. Do NOT use for general PostgreSQL instances (e.g. Cloud SQL) or other GCP databases.
postgresdb
Use when PostgreSQL engine behaviour decides the answer — schema and type design, index choice, reading EXPLAIN on a slow query, zero-downtime DDL and backfills, or ops (roles, RLS, pooling, vacuum, partitioning, PITR). PG16, ORM-agnostic. NOT portable query logic (that is sql), NOT a managed provider's platform…