Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

moai-domain-database

Skill by modu-ai

Guides Claude Code through database work across PostgreSQL, MongoDB, Redis, Oracle, and cloud platforms such as Neon, Supabase, and Firestore. It is aimed at developers doing schema design, query optimization, indexing, and cloud database selection.

  • Score 79
  • 1.3k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install moai-domain-database

Built from the published package, never by AI.

git clone --depth 1 https://github.com/modu-ai/moai-adk /tmp/moai-adk && mkdir -p ~/.claude/skills && cp -r /tmp/moai-adk/.claude/skills/moai-domain-database ~/.claude/skills/moai-domain-database

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install moai-domain-database in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

moai-domain-database is an agent skill for Claude Code, published by modu-ai under the Apache-2.0 license. It covers schema design, query optimization, indexing strategies, data modeling, and cloud database selection for PostgreSQL, MongoDB, Redis, and Oracle. It also includes a cloud vendor guide for Neon, Supabase, and Firebase Firestore, which the source says was absorbed from a separate skill called moai-platform-database-cloud.

The skill is marked as not user-invocable. It works through reference patterns, code examples, and a verification checklist. It also covers ORMs and ODMs such as Prisma, Mongoose, SQLAlchemy, and Drizzle, and lists red flags and common mistakes. It is intended for developers who design schemas, tune queries, or pick a cloud database platform.

Written from the project's SKILL.md and checked against it.

What it can do

  • Schema designCovers schema design and data modeling for relational and document databases.
  • Query optimizationGuides query tuning with EXPLAIN ANALYZE and indexing strategies.
  • PostgreSQL patternsCovers partitioning, materialized views, window functions, and connection pooling.
  • MongoDB modelingCovers document modeling, aggregation pipelines, indexing, and sharding.
  • Redis patternsCovers caching, distributed locking, pub/sub, streams, and HyperLogLog.
  • Oracle guidanceCovers hierarchical CONNECT BY queries, PL/SQL, and partitioning strategies.
  • Cloud database selectionProvides a decision table for Neon, Supabase, and Firebase Firestore.
  • Neon branchingDescribes a branch per pull request workflow using neonctl.
  • Supabase RLS and pgvectorIncludes a Row-Level Security policy pattern and a pgvector search example.
  • Firestore Security RulesIncludes a Security Rules pattern and offline persistence notes for Firestore.

What you need

  • Claude Code
  • Database CLIs such as psql, mongosh, and redis-cli

Try asking

  • Design a PostgreSQL schema for a multi-tenant app with row-level security.
  • Review this slow query and suggest indexes using EXPLAIN ANALYZE.
  • Which cloud database fits a mobile app that needs offline sync?

Good to know

  • Marked user-invocable: false, so it is not meant to be called directly by users.
  • Some advanced patterns are described in prose rather than as full code.

Security check

B
  • Allowed to use Write, Edit without limitsIn SKILL.md

Checked automatically: .claude/skills/moai-domain-database/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

Allowed tools: ReadWriteEditBash(psql:*)Bash(mysql:*)Bash(sqlite3:*)Bash(mongosh:*)Bash(redis-cli:*)Bash(npm:*)Bash(npx:*)Bash(prisma:*)Bash(neonctl:*)Bash(firebase:*)Bash(supabase:*)GrepGlob

Alternatives to moai-domain-database

All alternatives →
hugging-face-datasetssickn33
94

Creates, configures and manages datasets on the Hugging Face Hub, including SQL-based querying and transformation. Built for people who edit dataset content and metadata directly, alongside the HF MCP server.

AAA Skill 50k
db-repairgarrytan
94

Diagnoses and repairs gbrain's Postgres access when a command or MCP result shows a GBRAIN_DB_ACCESS marker, or when the operator reports the brain database is down. It runs the hardcoded gbrain db-repair ladder and verifies the result with a re-probe.

AAA Skill 34k
alloydb-basicsgoogle
94

Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.

AAA Skill 26k
clickhouse-logs-queriessupabase
94

Writes, reviews and migrates Supabase logs queries against the ClickHouse logs table served by the logs.all.otel endpoint. Built for developers who write Logs Explorer SQL or convert older BigQuery logs queries.

AAA Skill 116k
fix-slow-queriespaperclipai
94

Diagnoses and fixes slow Paperclip PostgreSQL queries using Cloud and Neon evidence, local benchmarks, regression tests, and a pull request with passing checks. Built for engineers working on Paperclip.

AAA Skill 119k
prisma-8prisma
94

Guides AI assistants through Prisma 8 projects built on @prisma/orm-postgres, @prisma/orm-sqlite, or @prisma/orm-mongo. It covers data contracts, migrations, typed queries and runtime setup for developers on Prisma 8.

AAA Skill 48k

Compare with hugging-face-datasets, db-repair or alloydb-basics

moai-domain-database: common questions

Which databases does moai-domain-database cover?

The source covers PostgreSQL, MongoDB, Redis, and Oracle. The cloud vendor guide covers Neon, Supabase, and Firebase Firestore.

Does it include cloud database guidance?

Yes. The cloud vendor guide was absorbed from moai-platform-database-cloud and covers platform selection and setup for Neon, Supabase, and Firestore.

Which ORMs does it mention?

The source names Prisma, Mongoose, SQLAlchemy, and Drizzle in its when-to-use section, and TypeORM in the related integrations list.

How do I install moai-domain-database?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is moai-domain-database free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is moai-domain-database safe to use?

It scores 79 of 100. Grades: maintenance A, licence A, quality A. Security check: grade B (allowed to use write, edit without limits). Review the code before you install. How grades work.

What are alternatives to moai-domain-database?

Similar skills: hugging-face-datasets, db-repair, alloydb-basics, clickhouse-logs-queries.

moai-domain-database Install

Add to stack

Loading.