database-engineer

database-engineer is an agent for Claude Code from evgenii-studitskikh/Claude-Code-SaaS-Studio. It costs 35 tokens per session (473 once invoked), scanned A, original, MIT.

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

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; names the AskUserQuestion tool.

Good fit Use it to create migration files, tables, indexes, relationships, constraints, RLS policies, Supabase Auth integration, and a plan for applying schema changes.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/evgenii-studitskikh/claude-code-saas-studio/database-engineer
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.

Clone the repo
git clone --depth 1 https://github.com/evgenii-studitskikh/Claude-Code-SaaS-Studio

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/evgenii-studitskikh/claude-code-saas-studio/database-engineer/github.svg)](https://agentmods.dev/agents/evgenii-studitskikh/claude-code-saas-studio/database-engineer)
Your own site
<a href="https://agentmods.dev/agents/evgenii-studitskikh/claude-code-saas-studio/database-engineer"><img src="https://agentmods.dev/badge/agents/evgenii-studitskikh/claude-code-saas-studio/database-engineer/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-engineer

Your own site · 80×15
<a href="https://agentmods.dev/agents/evgenii-studitskikh/claude-code-saas-studio/database-engineer"><img src="https://agentmods.dev/badge/agents/evgenii-studitskikh/claude-code-saas-studio/database-engineer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. A grade says what 26 rules found in the file — not that it is safe.
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.00035 $0.00473
Opus 5.5 $0.00014 $0.00189
Sonnet 5.5 $0.00007 $0.00095
Haiku 4.5 $0.00003 $0.00047

Measured 1mo ago against content hash 2fa60994cec2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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. 1mo 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 (2 stars, last pushed 4mo ago), licensed MIT. It adds 35 tokens to every session and 473 once invoked, about $0.0001 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-31.