<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/did-supabase-just-fix-the-problem-with-ai-agents--2a1cd7n7f" -->

---
title: Did Supabase just FIX the problem with AI agents ??
description: AI coding agents rely on training data that can be months out of date, leading them to write insecure Supabase code such as views missing security_invoker,...
canonical: https://daily.dev/posts/did-supabase-just-fix-the-problem-with-ai-agents--2a1cd7n7f
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Did Supabase just FIX the problem with AI agents ?? | daily.dev
og:description: AI coding agents rely on training data that can be months out of date, leading them to write insecure Supabase code such as views missing security_invoker,...
og:url: https://daily.dev/posts/did-supabase-just-fix-the-problem-with-ai-agents--2a1cd7n7f
og:image: https://api.daily.dev/og/posts/2a1Cd7N7F.png
og:image:alt: Did Supabase just FIX the problem with AI agents ??
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Did Supabase just FIX the problem with AI agents ??

**[CodeHead](https://daily.dev/sources/codehead)** · 4 min read · 1 upvotes · 0 comments

## Summary

AI coding agents rely on training data that can be months out of date, leading them to write insecure Supabase code such as views missing security_invoker, which bypasses row-level security. Supabase's new agent-skills package fixes this by teaching agents to check current docs before writing Supabase-specific code, installable via a single npx command and compatible with Claude Code, Cursor, Codex, and other agents. A live demo shows the skill correctly generating a row-level security policy for a new search feature and pausing to verify current Postgres full-text search syntax.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=FNREoiVyOrU>

## Questions this post answers

### How do I install Supabase's agent skill for Claude Code or Cursor?

Run the command 'npx skills add supabase/agent-skills' in a project's terminal. This drops a markdown file into the project that gets read automatically by coding agents like Claude Code, Cursor, Codex, or Gemini, instructing them to check current Supabase docs before writing Supabase-specific code instead of relying on memorized training data.

_daily.dev surfaces practical fixes like this for developers wiring AI agents into Supabase projects._

### Why do AI coding agents forget to set security_invoker to true on Postgres views in Supabase?

AI agents rely on memorized training data rather than live documentation, so they often generate a database view without setting security_invoker to true, which lets that view bypass row-level security entirely. This produces no error or warning, so an app appears to work fine until unauthorized data exposure is discovered later.

_Developers hardening AI-generated database code follow gotchas like this via daily.dev._

### What is an agent skill in the context of AI coding tools like Claude Code?

An agent skill is a folder of instructions a coding agent reads before starting work, functioning like a briefing document rather than a plugin. Supabase's version teaches the agent to check current documentation before writing Supabase-specific code, rather than embedding a static snapshot of the API that goes stale over time.

_daily.dev helps developers track how agent skills reshape AI-assisted coding workflows._

## Similar posts on daily.dev

- [AI Agents Know About Supabase. They Don't Always Use It Right.](https://daily.dev/posts/ai-agents-know-about-supabase-they-don-t-always-use-it-right--jdyn6pgoc) · Supabase · 41 upvotes · 3 comments
- [Introducing: Postgres Best Practices](https://daily.dev/posts/introducing-postgres-best-practices-oieboe2rs) · Supabase · 493 upvotes · 8 comments

---

Tags: [#ai-agents](https://daily.dev/tags/ai-agents), [#postgresql](https://daily.dev/tags/postgresql), [#claude-code](https://daily.dev/tags/claude-code), [#supabase](https://daily.dev/tags/supabase)

[View this post on daily.dev](https://daily.dev/posts/did-supabase-just-fix-the-problem-with-ai-agents--2a1cd7n7f)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Did Supabase just FIX the problem with AI agents ??","url":"https://daily.dev/posts/did-supabase-just-fix-the-problem-with-ai-agents--2a1cd7n7f","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/did-supabase-just-fix-the-problem-with-ai-agents--2a1cd7n7f"},"datePublished":"2026-08-21T15:04:30.456Z","dateModified":"2026-09-14T07:06:53.730Z","description":"AI coding agents rely on training data that can be months out of date, leading them to write insecure Supabase code such as views missing security_invoker,...","image":"https://i.ytimg.com/vi/FNREoiVyOrU/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/FNREoiVyOrU/sddefault.jpg","isAccessibleForFree":true,"articleSection":"CodeHead","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"CodeHead","logo":"https://media.daily.dev/image/upload/s--ywzrIEkA--/f_auto/v1745508579/logos/codehead","url":"https://daily.dev/sources/codehead"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/did-supabase-just-fix-the-problem-with-ai-agents--2a1cd7n7f","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"ai-agents,postgresql,claude-code,supabase","timeRequired":"PT4M","video":{"@type":"VideoObject","name":"Did Supabase just FIX the problem with AI agents ??","description":"AI coding agents rely on training data that can be months out of date, leading them to write insecure Supabase code such as views missing security_invoker,...","thumbnailUrl":"https://i.ytimg.com/vi/FNREoiVyOrU/sddefault.jpg","uploadDate":"2026-08-21T15:04:30.456Z","duration":"PT4M","url":"https://api.daily.dev/r/2a1Cd7N7F","embedUrl":"https://www.youtube.com/embed/FNREoiVyOrU"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"CodeHead","item":"https://daily.dev/sources/codehead"},{"@type":"ListItem","position":3,"name":"Did Supabase just FIX the problem with AI agents ??"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/did-supabase-just-fix-the-problem-with-ai-agents--2a1cd7n7f#faq","mainEntity":[{"@type":"Question","name":"How do I install Supabase's agent skill for Claude Code or Cursor?","acceptedAnswer":{"@type":"Answer","text":"Run the command 'npx skills add supabase/agent-skills' in a project's terminal. This drops a markdown file into the project that gets read automatically by coding agents like Claude Code, Cursor, Codex, or Gemini, instructing them to check current Supabase docs before writing Supabase-specific code instead of relying on memorized training data. daily.dev surfaces practical fixes like this for developers wiring AI agents into Supabase projects."}},{"@type":"Question","name":"Why do AI coding agents forget to set security_invoker to true on Postgres views in Supabase?","acceptedAnswer":{"@type":"Answer","text":"AI agents rely on memorized training data rather than live documentation, so they often generate a database view without setting security_invoker to true, which lets that view bypass row-level security entirely. This produces no error or warning, so an app appears to work fine until unauthorized data exposure is discovered later. Developers hardening AI-generated database code follow gotchas like this via daily.dev."}},{"@type":"Question","name":"What is an agent skill in the context of AI coding tools like Claude Code?","acceptedAnswer":{"@type":"Answer","text":"An agent skill is a folder of instructions a coding agent reads before starting work, functioning like a briefing document rather than a plugin. Supabase's version teaches the agent to check current documentation before writing Supabase-specific code, rather than embedding a static snapshot of the API that goes stale over time. daily.dev helps developers track how agent skills reshape AI-assisted coding workflows."}}]}
```

