DB Sculptor
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…
Automatically discover database skills when working with SQL, PostgreSQL, MongoDB, Redis, database schema design, query optimization, migrations, connection pooling, ORMs, or database selection.
$ npx skills add rand/cc-polymath --skill discover-database -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install rand/cc-polymath discover-database --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/rand/cc-polymath.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/discover-database .claude/skills/discover-database && 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 "discover-database" agent skill from https://github.com/rand/cc-polymath/tree/main/skills/discover-database into .claude/skills/discover-database/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "discover-database", 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/rand/cc-polymath/tree/main/skills/discover-databaseType 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 rand/cc-polymath --skill discover-database -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install rand/cc-polymath discover-database --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/rand/cc-polymath.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/discover-database .agents/skills/discover-database && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "discover-database" agent skill from https://github.com/rand/cc-polymath/tree/main/skills/discover-database into .agents/skills/discover-database/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "discover-database", 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 rand/cc-polymath --skill discover-database -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install rand/cc-polymath discover-database --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/rand/cc-polymath.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/discover-database .cursor/skills/discover-database && 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 "discover-database" agent skill from https://github.com/rand/cc-polymath/tree/main/skills/discover-database into .cursor/skills/discover-database/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "discover-database", 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/rand/cc-polymath.git --path skills/discover-database--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 rand/cc-polymath --skill discover-database -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install rand/cc-polymath discover-database --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/rand/cc-polymath.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/discover-database .gemini/skills/discover-database && 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 "discover-database" agent skill from https://github.com/rand/cc-polymath/tree/main/skills/discover-database into .gemini/skills/discover-database/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "discover-database", 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 rand/cc-polymath discover-databaseInstalls 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 rand/cc-polymath --skill discover-database -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/rand/cc-polymath.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/discover-database .github/skills/discover-database && 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 "discover-database" agent skill from https://github.com/rand/cc-polymath/tree/main/skills/discover-database into .github/skills/discover-database/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "discover-database", 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 rand/cc-polymath --skill discover-database -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install rand/cc-polymath discover-database --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/rand/cc-polymath.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/discover-database .opencode/skills/discover-database && 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 "discover-database" agent skill from https://github.com/rand/cc-polymath/tree/main/skills/discover-database into .opencode/skills/discover-database/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "discover-database", 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.
discover-databaseAutomatically discover database skills when working with SQL, PostgreSQL, MongoDB, Redis, database schema design, query optimization, migrations, connection pooling, ORMs, or database selection.
Discover Database is an agent skill from 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. Activates for database design, optimization, and implementation tasks.
Its SKILL.md is about 2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts. Compatibility notes: Designed for Claude Code. Compatible with any agent supporting the Agent Skills format.
It sits in Databases, covering Database schema design, NoSQL databases and Query optimization. It works with PostgreSQL, MongoDB, Redis and SQL. The repository describes itself as: Claude Code skills and workflows, optimized for context-efficiency and skill quality. Skills ranging from cloud infrastructure to design to advanced maths. The licence is MIT.
8 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit baa2df1. 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.
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.
Designed for Claude Code. Compatible with any agent supporting the Agent Skills format.
From compatibility in the SKILL.md frontmatter.
Discover Database loads about 2k tokens when it runs. Until then it costs about 71 tokens; SKILL.md has 732 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 rand/cc-polymath at commit baa2df1, republished under its MIT licence (© rand). 732 words, ~1,995 tokens.
.claude/skills/discover-database/SKILL.md (or your agent's skills folder).Provides automatic access to comprehensive database design, optimization, and implementation skills.
This skill auto-activates when you're working with:
The Database category contains 19 skills across 2 subcategories:
Database (12 skills):
Plus 4 more in ../database/INDEX.md
Caching (7 skills): See ../caching/INDEX.md
Read ../database/INDEX.md Read ../caching/INDEX.md
Sequence: Selection → Schema design → Connection pooling
Read ../database/database-selection.md # Choose database Read ../database/postgres-schema-design.md # or mongodb-document-design.md Read ../database/database-connection-pooling.md
Sequence: Optimization → Connection pooling → ORM patterns
Read ../database/postgres-query-optimization.md # Debug slow queries Read ../database/database-connection-pooling.md # Check pool settings Read ../database/orm-patterns.md # Fix N+1 queries
Sequence: Schema design → Migrations
Read ../database/postgres-schema-design.md # Design changes Read ../database/postgres-migrations.md # Implement safely
Sequence: Redis structures → Cache patterns
Read ../database/redis-data-structures.md # Redis patterns Read ../caching/INDEX.md # Cache patterns
PostgreSQL skills (relational, ACID, complex queries):
postgres-schema-design.md - Design relational schemaspostgres-query-optimization.md - Optimize complex queriespostgres-migrations.md - Evolve schema over timeMongoDB skills (document-oriented, flexible schema):
mongodb-document-design.md - Design document structuresRedis skills (in-memory, key-value, caching):
redis-data-structures.md - Caching, sessions, rate limitingCross-database skills:
database-selection.md - Start here for new projectsdatabase-connection-pooling.md - All databases need thisorm-patterns.md - When using ORMs (SQLAlchemy, Prisma, Mongoose)Database skills commonly combine with:
API skills (discover-api):
Backend language skills (discover-backend):
Testing skills (discover-testing):
Data pipeline skills (discover-data):
Observability skills (discover-observability):
This gateway skill (~200 lines, ~2K tokens) enables progressive loading:
Total context: 2K + 3K + skill(s) = 5-10K tokens vs 25K+ for entire index.
"Design a PostgreSQL schema for an e-commerce app": Read ../database/postgres-schema-design.md
"Why is my query slow?": Read ../database/postgres-query-optimization.md
"How do I safely change my database schema?": Read ../database/postgres-migrations.md
"Should I use MongoDB or PostgreSQL?": Read ../database/database-selection.md
"Implement caching with Redis": Read ../database/redis-data-structures.md
"Fix N+1 queries in my ORM": Read ../database/orm-patterns.md
Need ACID transactions? YES → PostgreSQL
Need complex queries/joins? YES → PostgreSQL
Need flexible schema? YES → MongoDB
Need real-time caching? YES → Redis
Need full-text search? YES → PostgreSQL (with extensions) or Elasticsearch
Need graph relationships? YES → Neo4j or PostgreSQL (with extensions)
Need analytics? YES → DuckDB or Redpanda + IcebergFor detailed decision-making: Read ../database/database-selection.md
Schema design → postgres-schema-design.md:
Query optimization → postgres-query-optimization.md:
Migrations → postgres-migrations.md:
MongoDB → mongodb-document-design.md:
Redis → redis-data-structures.md:
Before using ORMs, load: Read ../database/orm-patterns.md
Common ORM pitfalls:
Supported ORMs:
Read ../database/INDEX.md for full category overviewdatabase-selection.md for new projectsNext Steps: Run Read ../database/INDEX.md to see full category details, or load specific skills using the bash commands above.
© rand, 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 skills/discover-database of rand/cc-polymath.
Open the folder on GitHubat commit baa2df1
Discover Database 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 |
|---|---|---|---|---|---|---|
| Discover Database this skillrand/cc-polymath | 181 | — | ~2k | Automated safety check: Pass | MIT | |
| DB SculptorEliasOulkadi/shokunin | 114 | — | ~3.1k | Automated safety check: Notes | MIT | |
| DatabasesMicrock/ordinary-claude-skills | 403 | — | ~1.9k | Automated safety check: Notes | MIT | |
| Database FundamentalsDanielPodolsky/ownyourcode | 290 | 1 repos | ~1.6k | Automated safety check: Pass | MIT | |
| Database Expertcin12211/orca-q | 224 | — | ~2.8k | Automated safety check: Pass | MIT | |
| Database Domain Specialistmodu-ai/moai-adk | 1.2k | — | ~2.8k | Automated safety check: Pass | Apache-2.0 |
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…
Microck/ordinary-claude-skills
Work with MongoDB (document database, BSON documents, aggregation pipelines, Atlas cloud) and PostgreSQL (relational database, SQL queries, psql CLI, pgAdmin).
DanielPodolsky/ownyourcode
Reviews schema design, SQL queries, ORM patterns. An agent skill from DanielPodolsky/ownyourcode.
cin12211/orca-q
Database performance optimization, schema design, query analysis, and connection management across PostgreSQL, MySQL, MongoDB, and SQLite with ORM integration.
modu-ai/moai-adk
Database guidance for PostgreSQL, MongoDB, Redis and Oracle plus Neon, Supabase and Firestore: schema design, indexing, query tuning and cloud database choice.
saidake/rhctl
Run and author rhctl CLI workflows and remote environment scripts under scripts/ (PostgreSQL, JetStream, Docker, Redis, MongoDB, AWS LocalStack, execute/upload/patch).
rand/cc-polymath
Comprehensive toolkit for detecting and eliminating "AI slop" - generic, low-quality AI-generated patterns in natural language, code, and design.
rand/cc-polymath
Refactor codebases using Design by Typed Holes methodology - iterative, test-driven refactoring with formal hole resolution, constraint propagation, and continuous validation.
rand/cc-polymath
Automatically discover agentic workflow skills when building AI agents, implementing tool use patterns, managing context windows, decomposing complex tasks, or designing multi-step autonomous…
rand/cc-polymath
Create world-class, accessible, responsive interfaces with sophisticated interactive elements including chat, terminals, code display, and streaming content.
rand/cc-polymath
Automatically discover API design skills when working with REST APIs, GraphQL schemas, API authentication, OAuth, JWT, rate limiting, API versioning, error handling, or endpoint design.
rand/cc-polymath
Automatically discover frontend development skills when working with React, Next.js, UI components, state management, data fetching, forms, accessibility, performance optimization, or SEO.
Works with
Categories
Automatically discover database skills when working with SQL, PostgreSQL, MongoDB, Redis, database schema design, query optimization, migrations, connection pooling, ORMs, or database selection. Discover Database is an agent skill from 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.
Discover Database fits situations like: tasks that involve Database schema design; tasks that involve NoSQL databases; tasks that involve Query optimization.
Run `npx skills add rand/cc-polymath --skill discover-database -a claude-code`. Or copy the skill folder (skills/discover-database in rand/cc-polymath) into .claude/skills/discover-database in your project. Claude Code loads it when a task matches its description.
Run `npx skills add rand/cc-polymath --skill discover-database -a codex`. Or copy the skill folder (skills/discover-database in rand/cc-polymath) into .agents/skills/discover-database 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 rand/cc-polymath --skill discover-database -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/discover-database, .gemini/skills/discover-database, .github/skills/discover-database and .opencode/skills/discover-database in your project.
SKILL.md names no scripts, command-line tools or credentials: Discover Database is instructions for the agent only. Our summary lists: Node.js. Compatibility (from SKILL.md): Designed for Claude Code. Compatible with any agent supporting the Agent Skills format..
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.
Discover Database is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 2k tokens (SKILL.md is roughly 8k 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 Discover Database: DB Sculptor (EliasOulkadi/shokunin, 114 stars), Databases (Microck/ordinary-claude-skills, 403 stars), Database Fundamentals (DanielPodolsky/ownyourcode, 290 stars) and Database Expert (cin12211/orca-q, 224 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
rand (a GitHub user) maintains it in rand/cc-polymath, which has 181 GitHub stars. The repository holds 26 skills in this directory. The repository was last updated on February 28, 2026.
Source: rand/cc-polymath on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.