dba

dba is a skill for Claude Code from Jaan-Mustafa/10x-Team. It costs 31 tokens per session (1,764 once invoked), scanned A, original, MIT.

A structured guide for making database decisions, including data models, queries, indexes, and migrations.

In plain words
What is it for?
Use it for schema design, query performance, migration planning, indexing, data modeling, and database troubleshooting.
Why use it?
It helps diagnose database problems in the context of actual data and usage instead of applying changes such as adding an index without checking the cause.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the 10x-Team plugin — 13 skills, 2 commands shipped together

Good fit Use it for schema design, query performance, migration planning, indexing, data modeling, and database troubleshooting.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jaan-mustafa/10x-team/dba
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.

Any agent
npx skills add Jaan-Mustafa/10x-Team --skill dba
Clone the repo
git clone --depth 1 https://github.com/Jaan-Mustafa/10x-Team

Made for: Claude Code.

Or install 10x-Team, the plugin that ships this one along with the rest of its 13 skills, 2 commands.

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 dba

README.md
[![agentmods](https://agentmods.dev/badge/skills/jaan-mustafa/10x-team/dba/github.svg)](https://agentmods.dev/skills/jaan-mustafa/10x-team/dba)
Your own site
<a href="https://agentmods.dev/skills/jaan-mustafa/10x-team/dba"><img src="https://agentmods.dev/badge/skills/jaan-mustafa/10x-team/dba/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 dba

Your own site · 80×15
<a href="https://agentmods.dev/skills/jaan-mustafa/10x-team/dba"><img src="https://agentmods.dev/badge/skills/jaan-mustafa/10x-team/dba.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,764 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.00031 $0.01764
Opus 5 $0.00015 $0.00882
Sonnet 5 $0.00006 $0.00353
Haiku 4.5 $0.00003 $0.00176

Measured 8d ago against content hash 376a8ba9c2f2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

dba 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 8d 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/dba/SKILL.md · 153 lines

How it starts

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

DBA — Database Administrator

Help with database decisions through structured analysis of data models, query patterns, and performance requirements.

Start by understanding the data and access patterns, then ask questions one at a time to clarify requirements. Once you understand the full picture, present a structured database recommendation.

Anti-Pattern: "Just Add an Index"

Every database decision goes through this process. A slow query, a new table, a migration — all of them. Applying database changes without understanding the data volume, access patterns, and production impact is how outages happen. The analysis can be short, but you MUST understand the context first.

Checklist

You MUST complete these steps in order:

  1. Understand the data model — entities, relationships, current schema, storage engine
  2. Map access patterns — read/write ratio, query patterns, hot paths, data volume
  3. Ask clarifying questions — one at a time, understand scale, growth rate, consistency needs
  4. Diagnose the problem — examine query plans, check indexes, identify bottlenecks
  5. Propose 2-3 approaches — with trade-offs on performance, complexity, migration risk
  6. Present recommendation — structured analysis with migration plan, get alignment
  7. Define rollback plan — how to undo the change if something goes wrong

Process Flow

Understand data model
        │
        v
Map access patterns
        │
        v
Ask clarifying questions (one at a time)
        │
        v
Diagnose the problem (query plans, indexes)
        │
        v
Propose 2-3 approaches
        │
        v
Present recommendation
        │
        v
User aligned? ──no──> Revise
        │
       yes
        │
        v
Define migration + rollback plan

Read the full file on GitHub · 153 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. 8d ago First seen · 153 lines · 31 tokens per session scan A 376a8ba9c2f2

Subscribe to this mod's changes

dba is a skill published in the GitHub repository Jaan-Mustafa/10x-Team (11 stars, last pushed 2mo ago), licensed MIT. It adds 31 tokens to every session and 1,764 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-30.

Related

Other skills, from other repositories

alloydb-basics

Manages clusters, instances, and backups for AlloyDB for PostgreSQL, and integrates with AlloyDB Model Context Protocol (MCP) tools for automated database operations. Use when creating, configuring, or administering AlloyDB databases. Do NOT use for general PostgreSQL instances (e.g. Cloud SQL) or other GCP databases.

google/skills · 72 tokens

bigquery-bigframes

Generates Python code using BigQuery DataFrames (BigFrames), the pandas/scikit-learn-style API over BigQuery. Use when writing BigFrames code or doing pandas-style dataframe/ML work against BigQuery (e.g. in a notebook). Don't use for SQL-first workflows or the google-cloud-bigquery client library — use…

google/skills · 76 tokens

cloud-databases-onboarding

Guides users through discovering their database requirements, recommends a Google Cloud database based on a recommendation matrix, and assists in database creation. Use when a user asks 'What database service should I use?', 'Help me pick a database', or when a user wants to create a new database on Google Cloud.…

google/skills · 83 tokens

spanner-basics

Assists in provisioning instances and databases, designing performant schemas, and querying data in Spanner. Use when designing primary keys, writing SQL queries or client library code, or diagnosing performance issues.

google/skills · 43 tokens

supabase

Use when doing ANY task involving Supabase. Triggers: Supabase products (Database, Auth, Edge Functions, Realtime, Storage, Vectors, Cron, Queues); client libraries and SSR integrations (supabase-js, @supabase/ssr) in Next.js, React, SvelteKit, Astro, Remix; auth issues (login, logout, sessions, JWT, cookies…

supabase/agent-skills · 185 tokens

supabase-postgres-best-practices

Postgres best practices maintained by Supabase, for Postgres running anywhere. Load this skill BEFORE writing or changing anything that lives in a Postgres database: creating or altering tables and columns (including choosing column types), schema design, migrations and declarative schema files, RLS policies and the…

supabase/agent-skills · 182 tokens