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 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.
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.
- 1mo ago Changed · -2 lines · -8 tokens per session 438b0984bee7
- 1mo ago First seen · 41 lines · 49 tokens per session scan A 8733c57cc125
supabase-database is a skill published in the GitHub repository monkilabs/opencastle (82 stars, last pushed 11d ago), 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.
supabase-database compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| supabase-databasemonkilabs/opencastle | Skill | 82 | 11d ago | MIT | A | 41 | Claude Code, Codex |
| idempotency-patternsrrezartprebreza/spring-boot-skills | Skill | 371 | 14d ago | MIT | A | 46 | Claude Code, Codex |
| crestapps-core-postgresqlCrestApps/CrestApps.AgentSkills | Skill | 14 | today | MIT | A | 129 | Claude Code |
| alibaba-analyticdb-realtimeVincentChuWaiChow/vanguard-frontier-agentic | Skill | 26 | today | Apache-2.0 | A | 40 | Claude Code |
| database-securityrogue-dev-studio/ai-agents-rogue | Skill | 2 | 3d ago | none | A | 37 | Claude Code, Codex |
| dbeddmann/agent-toolkit | Skill | 2 | 1mo ago | none | A | 15 | Claude Code |
| db-repairgarrytan/gbrain | Skill | 34k | today | MIT | A | 96 | Claude Code |