supabase-migration

supabase-migration is a skill for Claude Code, Codex from roedyrustam/vibes-plug. It costs 30 tokens per session (1,012 once invoked), scanned A, original, MIT.

A workflow guide for creating and applying Supabase database migrations, which are controlled changes to a database’s structure or data.

In plain words
What is it for?
Use it to create migration files, write SQL changes, list existing Supabase migrations, test them locally, or apply them to a remote project.
Why use it?
It helps keep database changes in migration files, test them locally, and apply them remotely only after the SQL is confirmed.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Install

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.

agentmods
npx agentmods add skills/roedyrustam/vibes-plug/supabase-migration
Any agent
npx skills add roedyrustam/vibes-plug --skill supabase-migration
Clone the repo
git clone --depth 1 https://github.com/roedyrustam/vibes-plug

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for supabase-migration

README.md
[![agentmods](https://agentmods.dev/badge/skills/roedyrustam/vibes-plug/supabase-migration.svg)](https://agentmods.dev/skills/roedyrustam/vibes-plug/supabase-migration)
Your own site
<a href="https://agentmods.dev/skills/roedyrustam/vibes-plug/supabase-migration"><img src="https://agentmods.dev/badge/skills/roedyrustam/vibes-plug/supabase-migration.svg" alt="Measured on agentmods" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,012 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00030 $0.01012
Opus 5 $0.00015 $0.00506
Sonnet 5 $0.00006 $0.00202
Haiku 4.5 $0.00003 $0.00101

Measured 2d ago against content hash 978503d90f37, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

supabase-migration 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 2d 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.

skills/supabase-migration/SKILL.md · 92 lines

How it starts

The opening of the file, as written. The whole thing — 92 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Supabase Migration Skill

English | Bahasa Indonesia


English

Description

When the user asks to create or apply a database migration for Supabase, follow these instructions:

Instructions

  1. Check Environment: Ensure supabase/migrations directory exists. Run list_dir on it if needed.
  2. Review Available MCP Commands: Utilize the Supabase MCP integration.
    • For listing existing migrations, use mcp_supabase-mcp-server_list_migrations with project_id.
    • Before executing migration queries on the server directly, confirm the SQL is correct.
  3. Execute Command:
    • Write the SQL script to a local migration file located in supabase/migrations/ using write_to_file. Use standard timestamps or supabase migration new command to get the filename.
    • Run npx supabase migration up to test locally or use the remote MCP apply_migration if the user wants it applied remotely.
  4. Final Step: Confirm with the user that the migration successfully completed.

Implementation Checklist

  • Generate a new migration file: npx supabase migration new [name]
  • Write raw SQL in the generated migration file (DDL and DML).
  • Test the migration locally: npx supabase db reset or npx supabase migration up.
  • If using RLS, explicitly add policies to the new tables.
  • Commit the migration file to version control.

Example: Supabase Migration Command Flow

# 1. Create a new migration file
npx supabase migration new create_users_table

# 2. Write SQL to supabase/migrations/<timestamp>_create_users_table.sql
# 3. Apply to local database
npx supabase migration up

# 4. Apply to remote production database
npx supabase db push

Orchestration & Integration

  • Integrates with: supabase-security-expert, database-orm-expert, ci-cd-devops-architect.

Bahasa Indonesia

Deskripsi

Ketika pengguna meminta untuk membuat atau menerapkan migrasi database untuk Supabase, ikuti instruksi berikut:

Read the full file on GitHub · 92 lines

Changes

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.

  1. 2d ago First seen · 92 lines · 30 tokens per session scan A 978503d90f37

Subscribe to this mod's changes

supabase-migration is a skill published in the GitHub repository roedyrustam/vibes-plug (49 stars, last pushed 2d ago), licensed MIT. It adds 30 tokens to every session and 1,012 once invoked, about $0.0002 per session on Opus 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-09-03.

Related

Other skills, from other repositories

deprecation-and-migration

Manages deprecation and migration. Use when removing old systems, APIs, or features. Use when migrating users from one implementation to another. Use when migrating a database schema in production, such as renaming or dropping a column without downtime (expand/contract). Use when deciding whether to maintain or sunset…

addyosmani/agent-skills · 69 tokens

database-design

Design relational database schemas (and choose when to go NoSQL) that stay maintainable and fast. Use this skill whenever the user mentions tables, DDL, entities and relationships, normalization (1NF/2NF/3NF), primary and foreign keys, UUID vs bigint IDs, indexes (B-tree, composite, covering, partial), EXPLAIN…

svngoku/coding-agents-skills · 163 tokens

data-engineering

Guides data pipeline design, ETL/ELT workflows, schema evolution, and data quality assurance. Use when building data pipelines, designing data warehouses, migrating schemas, or ensuring data integrity across systems. Use when you need reliable, testable, and observable data flows.

borhen68/SkillEngine · 59 tokens

drizzle-orm

Expert knowledge for Drizzle ORM - the lightweight, type-safe SQL ORM for edge and serverlessUse when "drizzle, drizzle orm, drizzle-kit, drizzle schema, drizzle migration, drizzle relations, sql orm typescript, edge database, d1 database, orm, database, typescript, sql, edge, serverless, d1, postgres, mysql, sqlite"…

omer-metin/skills-for-antigravity · 82 tokens

firebase

Firebase gives you a complete backend in minutes - auth, database, storage, functions, hosting. But the ease of setup hides real complexity. Security rules are your last line of defense, and they're often wrong. Firestore queries are limited, and you learn this after you've designed your data model. This skill covers…

omer-metin/skills-for-antigravity · 208 tokens

backend

World-class backend engineering - distributed systems, database architecture, API design, and the battle scars from scaling systems that handle millions of requestsUse when "backend, api, database, postgres, mysql, mongodb, redis, graphql, rest, authentication, authorization, caching, queue, background job, webhook…

omer-metin/skills-for-antigravity · 98 tokens