Skip to content
Agentmart
Submit a tool

db-specialist

Universal database orchestrator.

Skill by giggsoinc

IndexedMIT★ 5
Write a review

Install

Works with Claude Code. Read the repository before you give any tool access to your data.

npx agentmarket install skill/giggsoinc-db-specialist

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Universal database orchestrator. Use for ANY database question — schema design, queries, migrations, ERD, performance, platform selection. Routes to specialist sub-skills for Postgres and vector DBs. Enforces SQL-file discipline and ERD requirements via agent chaining. Spawns search agent ONLY when explicitly asked for latest features or best practices.

Use cases: design, backend, agent-building

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/db-specialist

Tools it pre-approves 5

From allowed-tools in SKILL.md: the agent may use these without asking you each time.

  • Agent,
  • Bash,
  • Read,
  • Write,
  • WebSearch

What's inside

Skill name
db-specialist
Description
Universal database orchestrator. Use for ANY database question — schema design, queries, migrations, ERD, performance, platform selection. Routes to specialist sub-skills for Postgres and vector DBs. Enforces SQL-file discipline and ERD requirements via agent chaining. Spawns search agent ONLY when explicitly asked for latest features or best practices.
License
MIT
Allowed tools
Agent,, Bash,, Read,, Write,, WebSearch
Instructions
285 lines in SKILL.md · view on GitHub

Before installing

  • Pre-approves some shell commands

Files (1)

  • SKILL.md

SKILL.md (first lines)

# DB Specialist — Universal Database Orchestrator

**Expert persona:** Composite of Michael Stonebraker (relational), Werner Vogels (distributed/NoSQL), Joe Hellerstein (data engineering)
**Mode:** Orchestrator — routes, enforces, chains agents, generates SQL and ERD

---

## Agent Chain — Runs in This Order Every Time

```
Step 1 → db-guard pre-flight    (always)
Step 2 → platform routing       (always)
Step 3 → search-agent           (ON DEMAND ONLY — see trigger list)
Step 4 → output enforcement     (always)
```

**Never skip Step 1. Never run Step 3 unless explicitly triggered.**

---

## Step 1 — DB Guard Pre-flight

Before any SQL, schema design, or migration work, spawn the db-guard agent:

```
Spawn: db-guard agent
Task:  Pre-flight DB check
Check:
  1. Does docs/erd/ or docs/diagrams/ contain an ERD for this schema?
     → If NO and user is doing schema work → BLOCK. Ask user which ERD tool they want.
        Options: Mermaid (default, in-repo) | draw.io | dbdiagram.io | ERDPlus
     → If YES → load it as context before proceeding
  2. Do .sql files exist for this project's queries/migrations?
     → If queries are found inline in .py/.java/.go/.ts/.cs → FLAG immediately
     → Tell user: "Found inline SQL in [file]. Extract to [suggested_name].sql before proceeding."
  3. Are migration files numbered sequentially?
     → Pattern: 00_init.sql, 01_add_users.sql, 02_add_index.sql
     → Flag gaps or non-sequential names
```

Report result:
```
DB Guard Pre-flight
───────────────────
ERD:        ✅ found at docs/erd/schema.md  |  ⚠️ missing — which tool?
SQL files:  ✅ all queries in .sql files    |  ❌ inline SQL in [files]
Migrations: ✅ sequential                  |  ⚠️ gap at 03_
```

Do not proceed past Step 1 if ERD is missing and schema work is requested.

---

## Step 2 — Platform Routing

Detect the database platform from context (manifest.json, file extensions, imports, user statement).

| Platform | Route to |
|---|---|
| PostgreSQL | → Invoke `postgres-specialist` skill for deep dive |
| pgvector / embeddings / similarity search | → Invoke `vector-db-specialist` skill |
| Oracle 23ai / 26ai | → Built-in oracle-23ai module below |
| MySQL / MariaDB | → Built-in mysql-module below |
| SQL Server / MSSQL | → Built-in mssql-module below |
| MongoDB | → Built-in mongodb-module below |
| DynamoDB | → Built-in dynamodb-module below |
| SQLite / Turso / libSQL | → Built-in sqlite-module below |
| CockroachDB / Neon / PlanetScale | → Built-in distributed-sql module below |
| Multi-DB / unknown | → Ask: "Which database is this project using?" |

**When routing to postgres-specialist or vector-db-specialist:**
Hand off full context (schema, ERD path, user question). Do not re-answer what those skills cover.

---

## Step 3 — Search Agent (ON DEMAND ONLY)

**Trigger keywords that activate the search agent:**
`latest`, `new feature`, `best practice`, `what changed`, `recommend`, `should I use`,
`2024`, `2025`, `upgrade`, `what's new`, `current`, `modern way`

**When triggered:**
```
Spawn: search-agent
Task:  Find latest [platform] features relevant to [user's specific question]
Search: "[platform] [version] release notes 2024 2025 new features"
        "[platform] [feature] documentation"
Return: 3-5 bullet points — only features that change what SQL or schema you'd write
        Include: version number, release date, official doc link
Do NOT: summarize the entire docs — only what's relevant to THIS question
```

**When NOT triggered:** Answer from built-in knowledge. State:
> "Using built-in knowledge for [platform]. Add 'latest' to your question to trigger a live docs search."

---

## Step 4 — Output Enforcement (Hard Rules)

### SQL File Rule — ABSOLUTE
```
❌ NEVER write SQL inside Python, Java, Go, .NET, TypeScript, JavaScript, or any
   non-SQL file. Not in strings, not in f-strings, not in ORMs bypasses, not in comments.

✅ ALWAYS write SQL in .sql files.
✅ Reference from application code using file path or query name constant.
✅ Use parameterized queries in app code. Parameters only — no SQL logic.
```

If user asks you to write SQL inline in a non-SQL file:
> "I can't write SQL inside [language] files — Raven DB rule. I'll create [name].sql and show you how to load it."

Then create the .sql file and show a loader pattern for that language.

### SQL File Naming Convention
```
migrations/
  00_init.sql
  01_create_users.sql

From giggsoinc/raven, MIT.

More from giggsoinc/raven

Signals

Stars
5
Forks
5
Open issues
0
Last commit (this folder)
May 14, 2026 (5 months ago)
Last release
Jun 7, 2026 (4 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from giggsoinc

Cite this page

db-specialist skill. Agent Mart. https://agentmart.dev/skills/giggsoinc-db-specialist (last updated 2026-10-24)