Index of every page on this site: llms.txt
All skills
Run it yourself

概念データモデル(CDM)、論理データモデル(LDM)、物理データモデル(PDM)を段階的に設計・出力するSkill。 「データモデルを作って」「ER図を書いて」「テーブル設計して」「DDLを生成して」「エンティティを整理して」「データ辞書を作って」 「概念モデル」「論理モデル」「物理モデル」などの依頼で発動する。 出力はMermaid ER図、Markdown(用語集・データ辞書・設計書)、SQL DDL。

Use this Skill: https://skilld.dev/gh/superstone-han/dotfiles/data-model-designer

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

templateslogical.md

≈702 tokens on demand. Your agent reads this file only when SKILL.md points to it.

論理データモデル - テンプレート

概要

  • 対象システム: [システム名]
  • 作成日: [YYYY-MM-DD]
  • ベース: [概念モデルからの継続 or 新規]

論理ER図

erDiagram
    %% 属性、PK/FK、カーディナリティを含む

    ENTITY_A ||--o{ ENTITY_B : "関係"
    ENTITY_A {
        string id PK "主キー"
        string name "名前"
        string email UK "メールアドレス(一意)"
        datetime created_at "作成日時"
    }
    ENTITY_B {
        string id PK "主キー"
        string entity_a_id FK "ENTITY_Aへの外部キー"
        string status "状態"
    }

データ辞書

[エンティティ名1]

属性名 論理型 必須 一意 定義 例 備考
id 文字列 ✅ ✅(PK) 一意識別子 "cust_001"
name 文字列 ✅ - 名前 "山田太郎" 最大100文字
email 文字列 ✅ ✅ メールアドレス "yamada@example.com" 形式検証必要
created_at 日時 ✅ - 作成日時 "2024-01-15 10:30:00"

[エンティティ名2]

属性名 論理型 必須 一意 定義 例 備考
... ... ... ... ... ... ...

業務ルール一覧

No ルール名 説明 関連エンティティ
BR-001 [ルール名] [業務ルールの詳細説明] [Entity_A, Entity_B]
BR-002 ... ... ...

状態遷移(該当する場合)

stateDiagram-v2
    [*] --> 状態A
    状態A --> 状態B : イベント1
    状態B --> 状態C : イベント2
    状態C --> [*]

キー設計

主キー(PK)方針

  • サロゲートキー(システム生成ID)
  • 自然キー(業務上一意な値)
  • 複合キー

選択理由: [理由を記載]

ID体系

エンティティ ID形式 例 生成方法
[Entity_A] [形式] [例] [UUID/SERIAL/etc]

正規化状態

  • 第1正規形(1NF):繰り返し項目なし
  • 第2正規形(2NF):部分関数従属なし
  • 第3正規形(3NF):推移関数従属なし
  • BCNF(必要に応じて)

正規化で解決した問題

  • [例:N:Mを中間テーブルで解決]

チェックリスト

  • 全属性に定義(意味)がある
  • PK/FKが明確
  • カーディナリティが正確
  • N:Mは中間エンティティで解決
  • 正規化されている(理由なき冗長なし)
  • DB固有の型名を使っていない(概念型で記述)

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts8mo4 checks · Risk SAFE
  • Gen Agent Trust Hub8mo

    This skill provides a structured framework for data model design, including templates for conceptual, logical, and physical models. It generates Mermaid ER diagrams and SQL DDL based on text input and does not include any executable scripts or network-connected components.

  • Socket8mo

    No alerts

  • Snyk8mo

    Risk: LOW · No issues

  • Runlayer8mo

    5 files scanned · No issues

Signed by skilld at f5f9792. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Dormantupdated 11 months ago

README badge

README badge for superstone-han/dotfiles/data-model-designer