grida: Skill for Claude Code

.agents/skills/database/SKILL.md

database is a skill for Claude Code, Codex from gridaco/grida. It costs 106 tokens per session (2,802 once invoked), scanned A, original, Apache-2.0.

Database operating rules for Supabase migrations, schemas, permissions, and row-level security, which controls access to individual database rows. It treats applied migrations as permanent history and tests as the guide for security behavior.

In plain words
What is it for?
Use it before editing Supabase migration or schema files, changing row-level security, grants, or permissions, or running the project's database workflow commands.
Why use it?
It prevents rewriting database changes that may already be deployed and helps keep security policies aligned with their tests and documented schema.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents); mentions AGENTS.md.

This is gridaco/grida's own configuration. It tells Claude Code and Codex how to work on grida itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything grida configures →

About the project

Grida is an open-source graphics workspace that combines an infinite canvas editor, SVG tools, a database and CMS, and forms. Designers and developers use it to create, import, render, and manage visual documents and connected data, while the catalogue add-ons support its workflows.

gridaco/grida · 2,693 stars · on GitHub · grida.co

Reuse

Borrowing it

Nothing to install: this file belongs to gridaco/grida. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/gridaco/grida/main/.agents/skills/database/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/gridaco/grida

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 database

README.md
[![agentmods](https://agentmods.dev/badge/skills/gridaco/grida/database/github.svg)](https://agentmods.dev/skills/gridaco/grida/database)
Your own site
<a href="https://agentmods.dev/skills/gridaco/grida/database"><img src="https://agentmods.dev/badge/skills/gridaco/grida/database/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for database

Your own site · 80×15
<a href="https://agentmods.dev/skills/gridaco/grida/database"><img src="https://agentmods.dev/badge/skills/gridaco/grida/database.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 106 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,802 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Prompt Injection · line 45
    Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.
    Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
How audits are shown
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.00106 $0.02802
Opus 5.5 $0.00042 $0.01121
Sonnet 5.5 $0.00021 $0.00560
Haiku 4.5 $0.00011 $0.00280

Measured 17d ago against content hash 812cf9ef5747, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

database 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 17d 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.

.agents/skills/database/SKILL.md · 258 lines

How it starts

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

Database — operating contracts

Three contracts this skill protects:

  1. Applied migrations are immutable.
  2. The RLS spec is the source of truth — implementations follow tests, not the reverse.
  3. schemas/*.sql is the human-friendly description of the final shape.

supabase/AGENTS.md is the harder rule layer (RLS, grants, security boundaries). For function changes, follow its canonical RPC role contract, including effective privileges, caller tests, and coverage of new overloads. This skill covers the recurring workflow tasks. Read both.

For realistic optional Library data without changing schema history or the canonical base seed, use the opt-library skill. Return here when that work changes migrations, schemas, RLS, or grants.


Common mistake (read this first)

When asked to "merge migrations" or "consolidate", the temptation is to collapse every supabase/migrations/* into a single canonical file. This is wrong if any of those files have already been applied to a deployed environment. Rewriting an applied migration:

  • Diverges file content from what supabase_migrations.schema_migrations records as already-run.
  • Makes future db reset produce a different starting state for new contributors than what the existing environment holds.
  • Can silently drop columns, policies, or grants the live system needs.

Before merging anything, classify each migration:

Class Signal Allowed action
Applied (production) User confirms it's in production, OR file has been on main long enough to have shipped. Read-only. Never edit, never delete.
Applied (committed peers) Tracked on the current branch but originated upstream (already on main / canary). Read-only. Never edit, never delete.
Local-only (this PR) Newly added on the current working tree / branch, not yet merged to a deployed branch. Free to merge, rename, delete, rewrite.

Read the full file on GitHub · 258 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. 17d ago Changed · -17 lines 812cf9ef5747
  2. 1mo ago Changed · +3 lines 892f96fe8ad5
  3. 2mo ago First seen · 272 lines · 106 tokens per session scan A c9ad2147f38d

Subscribe to this mod's changes

database is a skill published in the GitHub repository gridaco/grida (2,693 stars, last pushed 11d ago), licensed Apache-2.0. It adds 106 tokens to every session and 2,802 once invoked, about $0.0004 per session on Opus 5.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-08-30.