Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

database

Skill by gridaco

Guides safe edits to Supabase migrations, RLS tests and schema files in the Grida database layer. Built for contributors working in supabase/migrations and supabase/schemas.

  • Score 78
  • 2.7k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install database

Built from the published package, never by AI.

git clone --depth 1 https://github.com/gridaco/grida /tmp/grida && mkdir -p ~/.claude/skills && cp -r /tmp/grida/.agents/skills/database ~/.claude/skills/database

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install database in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The database skill sets three rules for the Grida database layer. Applied migrations are immutable, RLS implementations follow tests rather than the reverse, and supabase/schemas/*.sql serves as the human-readable end state. It applies before edits to files in supabase/migrations/ or supabase/schemas/, and when the user runs a /database subcommand.

It covers three workflows: compacting local-only migrations before a pull request, writing pgTAP RLS scenarios across seeded personas, and aligning schema files with the migrated state. Migrations are classified as applied or local-only first, and the skill asks the user to confirm when unsure. It is aimed at developers and reviewers working on the Supabase schema, RLS policies and grants.

Written from the project's SKILL.md and checked against it.

What it can do

  • Classify migrationsSorts migrations into applied files, which are read-only, and local-only files, which may be merged.
  • /database compact local migrationMerges local-only migration files into one coherent migration before a PR ships.
  • /database rls scenariosWrites or reviews pgTAP RLS tests covering personas with positive and negative cases.
  • /database alignUpdates supabase/schemas/*.sql so it matches the migrated end state of a domain schema.
  • RLS edge case reviewFlags anon access, RETURNING leaks, soft-deleted rows and cross-tenant access to test.

What you need

  • Supabase CLI for supabase db reset
  • pgTAP for supabase test db

Try asking

  • /database compact local migration for my feature branch before the PR
  • /database rls scenarios projects: write pgTAP tests for tenant isolation
  • /database align grida_billing so the schema file matches the migrations

Good to know

  • Applied migrations must not be edited; fixes go in a new migration.
  • The agent cannot read the deployed schema_migrations table, so it defaults to asking the user.
  • Schema files may lag behind migrations between align passes.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .agents/skills/database/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to database

All alternatives →
hugging-face-datasetssickn33
94

Creates, configures and manages datasets on the Hugging Face Hub, including SQL-based querying and transformation. Built for people who edit dataset content and metadata directly, alongside the HF MCP server.

AAA Skill 50k
db-repairgarrytan
94

Diagnoses and repairs gbrain's Postgres access when a command or MCP result shows a GBRAIN_DB_ACCESS marker, or when the operator reports the brain database is down. It runs the hardcoded gbrain db-repair ladder and verifies the result with a re-probe.

AAA Skill 34k
alloydb-basicsgoogle
94

Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.

AAA Skill 26k
clickhouse-logs-queriessupabase
94

Writes, reviews and migrates Supabase logs queries against the ClickHouse logs table served by the logs.all.otel endpoint. Built for developers who write Logs Explorer SQL or convert older BigQuery logs queries.

AAA Skill 116k
fix-slow-queriespaperclipai
94

Diagnoses and fixes slow Paperclip PostgreSQL queries using Cloud and Neon evidence, local benchmarks, regression tests, and a pull request with passing checks. Built for engineers working on Paperclip.

AAA Skill 119k
prisma-8prisma
94

Guides AI assistants through Prisma 8 projects built on @prisma/orm-postgres, @prisma/orm-sqlite, or @prisma/orm-mongo. It covers data contracts, migrations, typed queries and runtime setup for developers on Prisma 8.

AAA Skill 48k

Compare with hugging-face-datasets, db-repair or alloydb-basics

database: common questions

Can the assistant edit migrations that were already applied?

No. The source says applied migrations are immutable and read-only, and a correction to applied SQL needs a forward migration.

How does the skill know which migrations are deployed?

It cannot read the deployed schema_migrations table, so the source says to default to asking the user for confirmation.

Can RLS tests be relaxed to make them pass?

No. The source says the implementation must satisfy the test, and a failing test should not have its assertion weakened.

How do I install database?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is database free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is database safe to use?

It scores 78 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to database?

Similar skills: hugging-face-datasets, db-repair, alloydb-basics, clickhouse-logs-queries.

database Install

Add to stack

Loading.