jpskill.com
🛠️ 開発・MCP コミュニティ

nosql-database-design

Design NoSQL database schemas for MongoDB and DynamoDB. Use when modeling document structures, designing collections, or planning NoSQL data architectures.

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o nosql-database-design.zip https://jpskill.com/download/21487.zip && unzip -o nosql-database-design.zip && rm nosql-database-design.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/21487.zip -OutFile "$d\nosql-database-design.zip"; Expand-Archive "$d\nosql-database-design.zip" -DestinationPath $d -Force; ri "$d\nosql-database-design.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して nosql-database-design.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → nosql-database-design フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
8

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

NoSQLデータベース設計

目次

概要

MongoDB(ドキュメント)およびDynamoDB(キーバリュー)向けの、スケーラブルなNoSQLスキーマを設計します。データモデリングパターン、非正規化戦略、NoSQLシステム向けのクエリ最適化について説明します。

使用場面

  • MongoDBコレクションの設計
  • DynamoDBテーブルおよびインデックスの設計
  • ドキュメント構造のモデリング
  • 埋め込み(Embedding)と参照(Referencing)の決定
  • クエリパターンの最適化
  • NoSQLインデックス戦略
  • データ非正規化計画

クイックスタート

最小限の動作例:

// Single document with embedded arrays
db.createCollection("users");

db.users.insertOne({
  _id: ObjectId("..."),
  email: "john@example.com",
  name: "John Doe",
  createdAt: new Date(),

  // Embedded address
  address: {
    street: "123 Main St",
    city: "New York",
    state: "NY",
    zipCode: "10001",
  },

  // Embedded array of items
  orders: [
    {
      orderId: ObjectId("..."),
      date: new Date(),
      total: 149.99,
    },
    {
// ... (see reference guides for full implementation)

リファレンスガイド

references/ディレクトリにある詳細な実装:

ガイド 内容
Document Structure Design ドキュメント構造の設計
Indexing in MongoDB MongoDBにおけるインデックス作成
Schema Validation スキーマ検証
Table Structure テーブル構造
Global Secondary Indexes (GSI) グローバルセカンダリインデックス(GSI)
DynamoDB Item Operations DynamoDBアイテム操作

ベストプラクティス

✅ 実施すべきこと

  • 確立されたパターンと慣例に従う
  • クリーンで保守しやすいコードを書く
  • 適切なドキュメントを追加する
  • デプロイ前に徹底的にテストする

❌ 実施すべきでないこと

  • テストや検証を省略する
  • エラーハンドリングを無視する
  • 設定値をハードコードする
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

NoSQL Database Design

Table of Contents

Overview

Design scalable NoSQL schemas for MongoDB (document) and DynamoDB (key-value). Covers data modeling patterns, denormalization strategies, and query optimization for NoSQL systems.

When to Use

  • MongoDB collection design
  • DynamoDB table and index design
  • Document structure modeling
  • Embedding vs. referencing decisions
  • Query pattern optimization
  • NoSQL indexing strategies
  • Data denormalization planning

Quick Start

Minimal working example:

// Single document with embedded arrays
db.createCollection("users");

db.users.insertOne({
  _id: ObjectId("..."),
  email: "john@example.com",
  name: "John Doe",
  createdAt: new Date(),

  // Embedded address
  address: {
    street: "123 Main St",
    city: "New York",
    state: "NY",
    zipCode: "10001",
  },

  // Embedded array of items
  orders: [
    {
      orderId: ObjectId("..."),
      date: new Date(),
      total: 149.99,
    },
    {
// ... (see reference guides for full implementation)

Reference Guides

Detailed implementations in the references/ directory:

Guide Contents
Document Structure Design Document Structure Design
Indexing in MongoDB Indexing in MongoDB
Schema Validation Schema Validation
Table Structure Table Structure
Global Secondary Indexes (GSI) Global Secondary Indexes (GSI)
DynamoDB Item Operations DynamoDB Item Operations

Best Practices

✅ DO

  • Follow established patterns and conventions
  • Write clean, maintainable code
  • Add appropriate documentation
  • Test thoroughly before deploying

❌ DON'T

  • Skip testing or validation
  • Ignore error handling
  • Hard-code configuration values

同梱ファイル

※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。