---
title: "AI Agents Know About Supabase. They Don't Always Use It Right."
description: "Supabase Agent Skills is an open-source ~100-line SKILL.md that steers AI coding agents to check current docs before writing code, follow inline security rules, and use a defined schema workflow."
url: "https://swe.quest/articles/ai-agents-know-about-supabase-they-don-t-always-use-it-right-c03d45208ad6704c"
canonical: "https://supabase.com/blog/supabase-agent-skills"
source: "Supabase"
published: "2026-04-09"
difficulty: "medium"
kind: "Announcement"
reading_minutes: 9
tags: ["ai-coding","ai-agents","postgres","evals","appsec"]
---

# AI Agents Know About Supabase. They Don't Always Use It Right.

A post on [Supabase](https://swe.quest/sources/supabase.md), published 2026-04-09, 9 min read, Announcement. Original: [https://supabase.com/blog/supabase-agent-skills](https://supabase.com/blog/supabase-agent-skills)

## Summary

Supabase Agent Skills is an open-source ~100-line SKILL.md that steers AI coding agents to check current docs before writing code, follow inline security rules, and use a defined schema workflow. The inline rules include security\_invoker on views, app\_metadata rather than user\_metadata for authorization, SELECT policies for UPDATE, and revoking sessions on user deletion. The schema workflow is iterative DDL via execute\_sql or \`supabase db query\`, then advisors, then a migration. Critical content was moved inline because agents often skipped reference files. In LLM-judged evals across six scenarios, MCP+Skill beat baseline and MCP-only for every model tested (e.g. Sonnet 4.6 46%→58%→71%, GPT-5.4 71%→88%), and MCP-only agents never called search\_docs.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [AI for coding](https://swe.quest/tags/ai-coding.md) (AI & ML)
- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [PostgreSQL](https://swe.quest/tags/postgres.md) (Data & databases)
- [Evaluation](https://swe.quest/tags/evals.md) (AI & ML)
- [Application security](https://swe.quest/tags/appsec.md) (Security)

## Prerequisites

- Postgres row level security ([easy posts on PostgreSQL](https://swe.quest/tags/postgres.md?difficulty=easy))
- AI coding agents ([easy posts on AI for coding](https://swe.quest/tags/ai-coding.md?difficulty=easy))
- Model Context Protocol

## Keywords

Supabase, Agent Skills, MCP, Claude Code, Codex, Row Level Security, Braintrust

## Related posts

- [Are Supabase docs agent-friendly? We didn't know, so we checked](https://swe.quest/articles/are-supabase-docs-agent-friendly-we-didn-t-know-so-we-checked-d50f60678575a95b.md): Supabase · 2026-08-01 · Medium · 5 min read · Documentation, AI for coding, Evaluation, PostgreSQL, Identity & auth
  Supabase built an eval that runs coding agents against its Row Level Security guide using a non-leading "vibe coder" prompt, then grades the resulting database setup against a checklist derived from experts and outside sources rather than from the guide itself.
- [Introducing Supabase Evals](https://swe.quest/articles/introducing-supabase-evals-c82dd59072e477b7.md): Supabase · 2026-07-31 · Medium · 5 min read · Evaluation, AI agents, AI for coding, Testing
  Supabase has open-sourced supabase/evals, a framework that runs coding agents like Claude Code, Codex and OpenCode against real Supabase tasks in containerized hosted-like and local CLI stacks.
- [Operate with confidence: check production with your coding agent](https://swe.quest/articles/operate-with-confidence-check-production-with-your-coding-agent-2d12eed022759488.md): Supabase · 2026-10-20 · Medium · 4 min read · AI agents, Observability, PostgreSQL, Developer tools
  Supabase now ships Agent prompts that let a coding agent (Claude, Codex, Cursor) check a production project on a schedule for error spikes, security findings, slow queries and resource growth, reporting only new or worsening issues with the measured value, threshold and a next step.
- [Supabase CLI v1 and Management API Beta](https://swe.quest/articles/supabase-cli-v1-and-management-api-beta-40e0f641270aa760.md): Supabase · 2022-08-15 · Medium · 4 min read · Schema migrations, Developer tools, PostgreSQL, CI/CD, API design
  Supabase CLI v1 leaves beta with commands to manage organizations, projects and Edge Functions, plus database migration tooling, CI/CD workflows and TypeScript type generation.
- [Defense in Depth for MCP Servers](https://swe.quest/articles/defense-in-depth-for-mcp-servers-841fdfa753be4c4a.md): Supabase · 2025-09-16 · Easy · 5 min read · AI agents, Application security, LLMs, PostgreSQL
  Stored prompt injection, where malicious instructions hidden in database rows trick an AI agent into reading private data and writing it somewhere visible, is a property of LLM tool calling generally, not an MCP-specific flaw.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
