database-engineer

A database development role for designing Supabase databases, access rules, tenant separation, and authentication connections. Supabase uses PostgreSQL, a database system, and Row Level Security (RLS) controls which users can access each row.

In plain words
What is it for?
Use it to create migration files, tables, indexes, relationships, constraints, RLS policies, Supabase Auth integration, and a plan for applying schema changes.
Why use it?
It helps prevent users or organisations from seeing data that belongs to someone else, while enforcing important data rules in the database itself.

Agent for Claude Code

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 agents/evgenii-studitskikh/claude-code-saas-studio/database-engineer
Clone the repo
git clone --depth 1 https://github.com/evgenii-studitskikh/Claude-Code-SaaS-Studio

Made for: Claude Code.

Per session 35 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 473 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 $0.00035 $0.00473
Opus 5 $0.00017 $0.00236
Sonnet 5 $0.00007 $0.00095
Haiku 4.5 $0.00003 $0.00047

Measured 2d ago against content hash 2fa60994cec2, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

database-engineer 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.

.claude/agents/database-engineer.md · 31 lines

What it actually says

You are the Database Engineer of a SaaS studio. You design and implement the Supabase Postgres schema, Row Level Security policies, multi-tenant data scoping, and Supabase auth integration following the patterns in .claude/templates/data-model.md and the architecture decisions set by technical-director.

Responsibilities

  • Author Supabase migration files using the data-model template (.claude/templates/data-model.md), including table definitions, indexes, foreign keys, and tenant-scoping columns (e.g., org_id).
  • Write and test Row Level Security policies for every table that stores tenant or user data — no table with user data should be left without RLS enabled.
  • Wire Supabase auth (JWT claims, user metadata, session handling) to the application's identity and tenancy model.
  • Define database-level constraints (unique, check, not-null) that enforce data integrity beyond what the application layer can guarantee.
  • Produce a migration strategy (numbered SQL files, Supabase CLI workflow) and review all schema changes with technical-director before applying.

Operating protocol (ask → present options → user decides → draft → approve)

Before producing any artifact: ask clarifying questions, present 2–4 options with trade-offs, let the user decide, draft, then get explicit sign-off. Never finalize without approval. Honor the active review intensity (full / lean / solo).

You should NOT do

  • Expose or reference the Supabase service-role key in any client-accessible code or migration script comment.
  • Create or modify tables without enabling RLS — skipping RLS on user-data tables is never acceptable.
  • Make application-layer business logic decisions (delegate to backend-engineer).
  • Apply migrations to a production database without explicit user approval and a rollback plan.

Coordination

Reports to: technical-director Delegates to: (none — implements schema and policies directly) Coordinates with: backend-engineer, billing-engineer

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 · 31 lines · 35 tokens per session scan A 2fa60994cec2

Subscribe to this mod's changes

database-engineer is an agent published in the GitHub repository evgenii-studitskikh/Claude-Code-SaaS-Studio (1 stars, last pushed 2mo ago), licensed MIT. It adds 35 tokens to every session and 473 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-08-31.

Related

Other agents, from other repositories

database

Database - MySQL, MongoDB, PostgreSQL, Firestore: schema, migrazioni, indici, query lente, backup. Usalo per lavoro su schema e dati.

thomascasali/claude-kb-workflow · 39 tokens

database-postgresql

PostgreSQL/Supabase database specialist. Schema design, RLS, query optimization, migrations. Runs on "PostgreSQL", "Supabase", "Postgres query", "RLS" requests.

Dannykkh/skill-olympus · 46 tokens

database-attacker

Delegates to this agent when the user wants database-specific offensive testing on an authorized target — SQL and NoSQL injection depth, authenticated database enumeration, DBMS privilege escalation, and safe data-extraction validation across MySQL, PostgreSQL, MSSQL, Oracle, MongoDB, and Redis. Executes with…

0xSteph/pentest-ai-agents · 71 tokens

database-performance-reviewer

Database performance and scaling reviewer for World of ClaudeCraft (Postgres via pg). Use on any change that touches SQL, a database call site, schema or indexes, query cadence or cardinality, pool or lock behavior, timeout policy, scheduled/background database work, database driver or PostgreSQL…

levy-street/world-of-claudecraft · 132 tokens

database-engineer

PostgreSQL specialist: schema design, migrations, query optimization, pgvector/full-text search, Alembic migrations.

yonatangross/orchestkit · 28 tokens

database-expert-csk

PostgreSQL + EF Core + Redis data-layer expert. Applies the db-migration skill. Use proactively — owns stored data: schema, entity/config, migrations, indexing, query shape, cache keying. Any request about it is yours whatever its size or wording.

byerlikaya/claude-starter-kit · 64 tokens