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 agentmods add rules/thesethrose/devrules/supabasegit clone --depth 1 https://github.com/TheSethRose/DevRulesWhat 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 | $0.00000 | $0.01840 |
| Opus 5 | $0.00000 | $0.00920 |
| Sonnet 5 | $0.00000 | $0.00368 |
| Haiku 4.5 | $0.00000 | $0.00184 |
Grade A, and why
Supabase 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 yesterday.
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 — 131 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Supabase Development Guidelines
You are an expert developer working with Supabase, covering its core features like Database, Auth, Storage, Realtime, Edge Functions, and AI.
General
- Use Supabase client libraries (
@supabase/supabase-jsis primary, but libraries exist for Flutter, Python, C#, Swift, Kotlin) for interacting with services. - Manage environment variables securely (e.g.,
.envfile withNEXT_PUBLIC_SUPABASE_URL,NEXT_PUBLIC_SUPABASE_ANON_KEY,SUPABASE_SERVICE_ROLE_KEY). - Prefer local development using the Supabase CLI (
supabase start,supabase db diff,supabase db reset,supabase functions serve, etc.). - Consult the official Supabase documentation (https://supabase.com/docs) for detailed API references and guides.
Database (Postgres Migrations)
You are a Postgres Expert creating secure database schemas using Supabase migrations.
Directory: All migration files belong in supabase/migrations/.
Workflow:
- Make schema changes locally (e.g., using Supabase Studio at
localhost:54323aftersupabase start). - Generate a migration file using the CLI:
supabase db diff -f "short_description". - Review and potentially edit the generated SQL migration file.
- Apply and test locally:
supabase db reset. - Commit the migration file to Git.
Migration File Naming:
- Files MUST be named
YYYYMMDDHHmmss_short_description.sql. - Timestamp components (
YYYY,MM,DD,HH,mm,ss) must use UTC time and have correct padding (e.g.,20240507090530_add_profiles_table.sql).
SQL Guidelines:
- Write standard, lowercase Postgres-compatible SQL.
- Header Comment: Include metadata (purpose, affected tables/columns, considerations).
-- Migration: Create user profiles table
--
-- Adds a table to store user profile information linked to auth.users.
--
- Detailed Comments: Explain the purpose of each significant step.
- Destructive Operations: Add explicit, clear comments before
DROP,TRUNCATE, orALTERcommands that might cause data loss. - Row Level Security (RLS):
- MUST enable RLS on all new tables:
alter table your_table enable row level security; - MUST create granular RLS policies covering relevant actions (
SELECT,INSERT,UPDATE,DELETE). - Create separate policies for
anonandauthenticatedroles, even if the logic is identical. - For public read access:
create policy "Allow public read access" on your_table for select using (true); - For user-specific access (example):
create policy "Allow individual insert access" on your_table for insert with check (auth.uid() = user_id); - Include comments explaining the rationale for each policy.
- MUST enable RLS on all new tables:
- DO NOT use
migralimitations: AvoidINSERT/UPDATE/DELETE, complexALTER POLICY,COMMENT ON, partitions,ALTER PUBLICATION,CREATE DOMAINdirectly in schema definitions meant fordb diff. Use explicit migration files for these.
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.
- yesterday First seen · 131 lines · 0 tokens per session scan A a0c23539f769
Supabase is a cursor rule published in the GitHub repository TheSethRose/DevRules (25 stars, last pushed 1y ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,840 tokens. 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-30.
Other cursor rules, from other repositories
creating-cursor-rules
Meta-rule for creating effective Cursor IDE rules with best practices, patterns, and examples.
prpm-json-best-practices
Best practices for structuring prpm.json package manifests with required fields, tags, organization, and multi-package management.
creating-skills
Meta-guide for creating effective Claude Code skills with proper structure, CSO optimization, and real examples.
beanstalk-deploy
Robust deployment patterns for Elastic Beanstalk with GitHub Actions, Pulumi, and edge case handling.
core-principles
Core development principles for building PRPM (Prompt Package Manager).
creating-kiro-agents
Kiro agent configuration patterns, JSON structure, tool permissions, and security best practices for creating specialized AI development assistants.