# db

A skill that routes your agent through Oracle Database topics: SQL, PL/SQL, SQLcl, ORDS, migrations, performance and agent-safe database work.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 2900 installs · ★ 902
- Author: oracle
- License: UPL-1.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/oracle/skills/tree/HEAD/db/SKILL.md
- Updated: 2026-10-09
- HTML: https://affpapa.org/en/nevibecode/skills/db

## What it does

The `db` skill is an Oracle Database knowledge domain split into folders. Twenty categories sit inside it: `db/sql-dev/`, `db/plsql/`, `db/performance/`, `db/security/`, `db/migrations/`, `db/vecdb/`, `db/agent/` and more. The agent reads one file from the routing table instead of the whole tree, so your context stays clean.

Multi-step flows are spelled out. A slow query goes `explain-plan` → `wait-events` → `optimizer-stats` → `awr-reports`. A migration starts at `migration-assessment`, moves through `oracle-migration-tools`, then a source-specific file. RAG on Oracle Database runs `ai-profiles` → `vector-search` → `dbms-vector`. The `db/agent/` branch handles schema changes: `schema-discovery` first, then `destructive-op-guards` and `idempotency-patterns`.

Coverage includes Oracle Vector SDK through the Python SDK, REST and the PL/SQL package, plus SQLcl, Liquibase, ORDS, JDBC, node-oracledb, Java, .NET and ORMs such as SQLAlchemy and Django. Install runs through `npx skills add`, so Node.js and npx need to be on your machine or the command fails.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add oracle/skills --skill db -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/db/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/db/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add oracle/skills --skill db -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/db/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add oracle/skills --skill db -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/db/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install oracle/skills db
```

2. **Manually: put the files in place**
- File: `.github/skills/db/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add oracle/skills --skill db -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/oracle/skills --path db
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/db/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add oracle/skills --skill db -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/oracle/skills/tree/HEAD/db/SKILL.md

## When to use it
- diagnose a slow query through plan, waits and optimizer stats
- plan a migration from PostgreSQL or MySQL to Oracle
- stand up vector search on Oracle Database for RAG
- make a schema change without the agent dropping something it should not
- wire up database access through the SQLcl MCP server

## Example prompts
- read the explain plan for this query and tell me where it stalls
- draft a migration plan from PostgreSQL to Oracle for our schema
- help me set up vector search on Oracle Database for RAG

## Similar
- [sql-pro](https://affpapa.org/en/nevibecode/agents/voltagent-community-sql-pro.md) — subagent · 3602 installs
- [databases](https://affpapa.org/en/nevibecode/skills/databases.md) — skill · 435 installs
- [migrating-oracle-to-postgres-stored-procedures](https://affpapa.org/en/nevibecode/skills/migrating-oracle-to-postgres-stored-procedures.md) — skill · 1800 installs
- [reviewing-oracle-to-postgres-migration](https://affpapa.org/en/nevibecode/skills/reviewing-oracle-to-postgres-migration.md) — skill · 1800 installs
- [dms-schema-conversion](https://affpapa.org/en/nevibecode/skills/dms-schema-conversion.md) — skill · 4700 installs
- [postgres-best-practices](https://affpapa.org/en/nevibecode/skills/neondatabase-postgres-best-practices.md) — skill · 1900 installs

From the same set: [oracle/skills](https://affpapa.org/en/nevibecode/by/oracle/skills.md) — 4 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
