Prisma Database Setup
curvenote/curvenote
Guides for configuring Prisma with different database providers (PostgreSQL, MySQL, SQLite, MongoDB, etc.).
Database performance optimization, schema design, query analysis, and connection management across PostgreSQL, MySQL, MongoDB, and SQLite with ORM integration.
$ npx skills add cin12211/orca-q --skill database-expert -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install cin12211/orca-q database-expert --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/cin12211/orca-q.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agent/skills/database-expert .claude/skills/database-expert && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "database-expert" agent skill from https://github.com/cin12211/orca-q/tree/main/.agent/skills/database-expert into .claude/skills/database-expert/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "database-expert", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/cin12211/orca-q/tree/main/.agent/skills/database-expertType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add cin12211/orca-q --skill database-expert -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install cin12211/orca-q database-expert --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/cin12211/orca-q.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agent/skills/database-expert .agents/skills/database-expert && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "database-expert" agent skill from https://github.com/cin12211/orca-q/tree/main/.agent/skills/database-expert into .agents/skills/database-expert/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "database-expert", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add cin12211/orca-q --skill database-expert -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install cin12211/orca-q database-expert --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/cin12211/orca-q.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agent/skills/database-expert .cursor/skills/database-expert && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "database-expert" agent skill from https://github.com/cin12211/orca-q/tree/main/.agent/skills/database-expert into .cursor/skills/database-expert/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "database-expert", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/cin12211/orca-q.git --path .agent/skills/database-expert--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add cin12211/orca-q --skill database-expert -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install cin12211/orca-q database-expert --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/cin12211/orca-q.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agent/skills/database-expert .gemini/skills/database-expert && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "database-expert" agent skill from https://github.com/cin12211/orca-q/tree/main/.agent/skills/database-expert into .gemini/skills/database-expert/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "database-expert", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install cin12211/orca-q database-expertInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add cin12211/orca-q --skill database-expert -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/cin12211/orca-q.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agent/skills/database-expert .github/skills/database-expert && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "database-expert" agent skill from https://github.com/cin12211/orca-q/tree/main/.agent/skills/database-expert into .github/skills/database-expert/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "database-expert", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add cin12211/orca-q --skill database-expert -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install cin12211/orca-q database-expert --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/cin12211/orca-q.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agent/skills/database-expert .opencode/skills/database-expert && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "database-expert" agent skill from https://github.com/cin12211/orca-q/tree/main/.agent/skills/database-expert into .opencode/skills/database-expert/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "database-expert", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
database-expertDatabase performance optimization, schema design, query analysis, and connection management across PostgreSQL, MySQL, MongoDB, and SQLite with ORM integration.
Database Expert is an agent skill from cin12211/orca-q. Database performance optimization, schema design, query analysis, and connection management across PostgreSQL, MySQL, MongoDB, and SQLite with ORM integration. Use this skill for queries, indexes, connection pooling, transactions, and database architecture decisions.
Its SKILL.md is about 2.8k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Databases, covering ORMs and data access, NoSQL databases and Database schema design. It works with PostgreSQL, MongoDB, MySQL and SQLite. The repository describes itself as: The open source | Next Generation database editor. The licence is MIT.
6 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 3142fe6. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are sql, javascript and typescript).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Database Expert loads about 2.8k tokens when it runs. Until then it costs about 71 tokens; SKILL.md has 1,091 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from cin12211/orca-q at commit 3142fe6, republished under its MIT licence (© cin12211). 1,091 words, ~2,843 tokens.
.claude/skills/database-expert/SKILL.md (or your agent's skills folder).You are a database expert specializing in performance optimization, schema design, query analysis, and connection management across multiple database systems and ORMs.
Before proceeding, I'll evaluate if a specialized sub-expert would be more appropriate:
PostgreSQL-specific issues (MVCC, vacuum strategies, advanced indexing):
→ Consider postgres-expert for PostgreSQL-only optimization problems
MongoDB document design (aggregation pipelines, sharding, replica sets):
→ Consider mongodb-expert for NoSQL-specific patterns and operations
Redis caching patterns (session management, pub/sub, caching strategies):
→ Consider redis-expert for cache-specific optimization
ORM-specific optimization (complex relationship mapping, type safety):
→ Consider prisma-expert or typeorm-expert for ORM-specific advanced patterns
If none of these specialized experts are needed, I'll continue with general database expertise.
I'll analyze your database environment to provide targeted solutions:
Database Detection:
ORM/Query Builder Detection:
I'll categorize your issue into one of six major problem areas:
Common symptoms:
Key diagnostics:
-- PostgreSQL
EXPLAIN (ANALYZE, BUFFERS) SELECT ...;
SELECT query, total_exec_time FROM pg_stat_statements ORDER BY total_exec_time DESC;
-- MySQL
EXPLAIN FORMAT=JSON SELECT ...;
SELECT * FROM performance_schema.events_statements_summary_by_digest;Progressive fixes:
Common symptoms:
Key diagnostics:
-- Check constraints and relationships
SELECT conname, contype FROM pg_constraint WHERE conrelid = 'table_name'::regclass;
SHOW CREATE TABLE table_name;Progressive fixes:
Common symptoms:
Critical insight: PostgreSQL uses ~9MB per connection vs MySQL's ~256KB per thread
Key diagnostics:
-- Monitor connections
SELECT count(*), state FROM pg_stat_activity GROUP BY state;
SELECT * FROM pg_locks WHERE NOT granted;Progressive fixes:
Common symptoms:
Key diagnostics:
-- Index usage analysis
SELECT indexrelname, idx_scan, idx_tup_read FROM pg_stat_user_indexes;
SELECT * FROM sys.schema_unused_indexes; -- MySQLProgressive fixes:
Common symptoms:
Key diagnostics:
-- Security audit
SELECT * FROM pg_roles;
SHOW GRANTS FOR 'username'@'hostname';
SHOW STATUS LIKE 'Ssl_%';Progressive fixes:
Common symptoms:
Key diagnostics:
-- Performance metrics
SELECT * FROM pg_stat_database;
SHOW ENGINE INNODB STATUS;
SHOW STATUS LIKE 'Com_%';Progressive fixes:
Based on detected environment, I'll provide database-specific solutions:
I'll address ORM-specific challenges:
// Connection monitoring
const prisma = new PrismaClient({
log: [{ emit: 'event', level: 'query' }],
});
// Prevent N+1 queries
await prisma.user.findMany({
include: { posts: true }, // Better than separate queries
});// Eager loading to prevent N+1
@Entity()
export class User {
@OneToMany(() => Post, post => post.user, { eager: true })
posts: Post[];
}I'll verify solutions through:
Critical safety rules I follow:
Connection Management:
Index Strategy:
Query Optimization:
INSERT INTO ... VALUES (...), (...) instead of loopsinclude, populate, eager: true)When reviewing database-related code, focus on these critical aspects:
I'll now analyze your specific database environment and provide targeted recommendations based on the detected configuration and reported issues.
© cin12211, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .agent/skills/database-expert of cin12211/orca-q.
Open the folder on GitHubat commit 3142fe6
Database Expert next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Database Expert this skillcin12211/orca-q | 223 | — | ~2.8k | Automated safety check: Pass | MIT | |
| Prisma Database Setupcurvenote/curvenote | 169 | 3 repos | ~1.4k | Automated safety check: Pass | MIT | |
| DB SculptorEliasOulkadi/shokunin | 114 | — | ~3.1k | Automated safety check: Notes | MIT | |
| Database FundamentalsDanielPodolsky/ownyourcode | 290 | 1 repos | ~1.6k | Automated safety check: Pass | MIT | |
| Discover Databaserand/cc-polymath | 181 | — | ~2k | Automated safety check: Pass | MIT | |
| Safe Database Migration Patternsaffaan-m/ECC | 274k | — | ~3.3k | Automated safety check: Pass | MIT |
curvenote/curvenote
Guides for configuring Prisma with different database providers (PostgreSQL, MySQL, SQLite, MongoDB, etc.).
EliasOulkadi/shokunin
Design database schemas with Prisma/Drizzle, PostgreSQL index strategy (B-tree, GIN, GiST, BRIN, Hash), query optimization (EXPLAIN ANALYZE), migration safety (expand/contract, zero-downtime), and…
DanielPodolsky/ownyourcode
Reviews schema design, SQL queries, ORM patterns. An agent skill from DanielPodolsky/ownyourcode.
rand/cc-polymath
Automatically discover database skills when working with SQL, PostgreSQL, MongoDB, Redis, database schema design, query optimization, migrations, connection pooling, ORMs, or database selection.
affaan-m/ECC
Rules and examples for safe, reversible schema changes in production: zero-downtime column and index changes, large data backfills and ORM migration workflows.
petrkindlmann/qa-skills
Validate database integrity, test migrations forward and backward, verify schema constraints, manage seed data, detect migration drift, and identify query performance issues.
cin12211/orca-q
TypeScript and JavaScript expert with deep knowledge of type-level programming, performance optimization, monorepo management, migration strategies, and modern tooling.
cin12211/orca-q
Playwright E2E testing expert for browser automation, cross-browser testing, visual regression, network interception, and CI integration.
cin12211/orca-q
Specialized research expert for parallel information gathering.
cin12211/orca-q
OrcaQ-specific testing guide. An agent skill from cin12211/orca-q.
cin12211/orca-q
PostgreSQL query optimization, JSONB operations, advanced indexing strategies, partitioning, connection management, and database administration.
cin12211/orca-q
CSS architecture and styling expert with deep knowledge of modern CSS features, responsive design, CSS-in-JS optimization, performance, accessibility, and design systems.
Categories
Database performance optimization, schema design, query analysis, and connection management across PostgreSQL, MySQL, MongoDB, and SQLite with ORM integration. Database Expert is an agent skill from cin12211/orca-q. Database performance optimization, schema design, query analysis, and connection management across PostgreSQL, MySQL, MongoDB, and SQLite with ORM integration.
Database Expert fits situations like: connection pooling; database architecture decisions.
Run `npx skills add cin12211/orca-q --skill database-expert -a claude-code`. Or copy the skill folder (.agent/skills/database-expert in cin12211/orca-q) into .claude/skills/database-expert in your project. Claude Code loads it when a task matches its description.
Run `npx skills add cin12211/orca-q --skill database-expert -a codex`. Or copy the skill folder (.agent/skills/database-expert in cin12211/orca-q) into .agents/skills/database-expert in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add cin12211/orca-q --skill database-expert -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/database-expert, .gemini/skills/database-expert, .github/skills/database-expert and .opencode/skills/database-expert in your project.
SKILL.md names no scripts, command-line tools or credentials: Database Expert is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Database Expert is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.8k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Database Expert: Prisma Database Setup (curvenote/curvenote, 169 stars), DB Sculptor (EliasOulkadi/shokunin, 114 stars), Database Fundamentals (DanielPodolsky/ownyourcode, 290 stars) and Discover Database (rand/cc-polymath, 181 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
cin12211 (a GitHub user) maintains it in cin12211/orca-q, which has 223 GitHub stars. The repository holds 16 skills in this directory. The repository was last updated on September 21, 2026.
Source: cin12211/orca-q on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.