WhoBuilt

Skill Issue: How We Used AI to Make Agents Actually Good at Supabase

May 4, 2026· 1 h 19 min· 10K views·Watch on YouTube

Speaker

Pedro Rodrigues, an AI tooling engineer at Supabase, leads an AI Engineer conference workshop on writing, testing, and evaluating skills to improve agents’ work with Supabase.

How skills guide agents

Rodrigues describes a skill as a folder centered on a `SKILL.md` file, with optional reference documents and scripts. Its description helps an agent decide when to load more detailed instructions, a pattern he calls progressive disclosure. He recommends using MCP for service integrations and skills for workflows and guidance, since the two solve different problems.

Test the behavior you want

Rodrigues proposes defining what good behavior means before writing a skill, then testing manually and with evaluations. Eval scenarios can specify an input, expected behavior, and tools the agent should call. Since agent outputs vary, checking actions and tool use can be more useful than matching exact text.

A security bug in the demo

Rodrigues asks an agent to build a department report for a performance review app, then finds that users can see information beyond their permissions. The database tables have row-level security, but a PostgreSQL view created with default settings can bypass those policies. He adds guidance to use the `security_invoker` option so the view observes the caller’s permissions.

Skills change the agent’s choices

Rodrigues installs a Supabase security skill and repeats the view task. The agent loads the skill and includes the security setting in its migration, though other problems in the demo remain. He says descriptions should be tested to see when a skill loads, and recommends pairing skills with MCP tools when agents need both instructions and database access.

Automate evaluations and maintain skills

Rodrigues runs scenarios with and without the skill, using deterministic checks alongside agent outputs. A flawed check reports failure even when the view has the expected setting, illustrating that evaluations can be wrong as well as agent behavior nondeterministic. For production, he recommends keeping the skill set focused, updating skills when workflows change, and checking that they still provide value.

Takeaways

  • Write the skill description around when an agent should load it, and test both expected and unwanted triggers.
  • Use skills for procedural guidance and MCP for authenticated service access; combine them when agents need both.
  • When a PostgreSQL view must respect row-level security, configure it with `security_invoker` and verify access as different users.
  • Build evaluation scenarios around expected behavior and tool use, then verify that the checks measure the intended result.
  • Treat production skills as maintained documentation: update them with product changes and keep only the skills needed for each workflow.

Mentioned in this talk

Search inside this talk

What was claimed 9

  • works at
    AI Tooling Engineer
    “I’m an AI tooling engineer at Supabase”
    1:09inCombine Skills and MCP to Close the Context GapYouTube
    Verified3 sources· Talk, Web· archived
  • feature
    Agent skills: Use a SKILL.md file with front matter and can include reference files and scripts
    “skills can be more than the main file”
    YouTube
    Unverified1 source· Talk
  • feature
    Agent skills: Progressive disclosure lets an agent load additional information when it needs it
    “you load just enough information for the agent to choose to load the rest”
    YouTube
    Unverified1 source· Talk
  • feature
    MCP: Tools can run on the server side without relying on the agent's local environment
    “tools don't need an environment to run”
    YouTube
    Unverified1 source· Talk
  • feature
    Agent evaluation: Can assess agent inputs, expected outputs, reasoning, and tool calls
    “you can evaluate the steps the agent took: its reasoning and the tools it called”
    YouTube
    Unverified1 source· Talk
  • feature
    Braintrust platform: Runs evals and provides a view of agent behavior during evaluation scenarios
    “a platform that lets you systematically run evals”
    YouTube
    Unverified1 source· Talk
  • feature
    Supabase: Backend as a service with a Postgres database, authentication, storage, and Edge Functions
    “Supabase is essentially a backend as a service.”
    YouTube
    Unverified1 source· Talk
  • feature
    Postgres: Views run with the view creator's permissions by default; security_invoker makes row-level security policies apply to the view
    “by default it uses the permissions, or credentials, of the user who created the view”
    YouTube
    Unverified1 source· Talk
Show all 9 facts

Related talks