Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

data-schema-knowledge-modeling

БесплатноБез исполняемых скриптовНе проверен

Use when designing database schemas, need to model domain entities and relationships clearly, building knowledge graphs or ontologies, creating API data…

onfire7777от onfire7777★ 17 звёзд на GitHub

Об этом скилле

Data Schema & Knowledge Modeling

Table of Contents

Purpose

Create rigorous, validated models of entities, relationships, and constraints that enable correct system implementation, knowledge representation, and semantic reasoning.

When to Use

Invoke this skill when you need to:

  • Design database schema (SQL, NoSQL, graph) for new application
  • Model complex domain with many entities and relationships
  • Build knowledge graph or ontology for semantic search/reasoning
  • Define API data models and contracts
  • Create taxonomies or classification hierarchies
  • Establish data governance and canonical models
  • Migrate legacy schemas to modern architectures
  • Resolve ambiguity in domain concepts and relationships
  • Enable data integration across systems
  • Document system invariants and business rules

Common trigger phrases:

  • "Design a schema for..."
  • "Model the entities and relationships"
  • "Create a knowledge graph"
  • "What's the data model?"
  • "Define the ontology"
  • "How should we structure this data?"
  • "Map relationships between..."
  • "Design the API data model"

What Is It

Data schema & knowledge modeling is the process of formally defining:

  1. Entities - Things that exist (User, Product, Order, Organization)
  2. Attributes - Properties of entities (name, price, status, createdAt)
  3. Relationships - Connections between entities (User owns Order, Product belongsTo Category)
  4. Constraints - Rules and invariants (unique email, price > 0, one primary address)
  5. Cardinality - How many of each (one-to-many, many-to-many)

Quick example: E-commerce schema:

  • Entities: User, Product, Order, Cart, Payment
  • Relationships: User has many Orders, Order contains many Products (via OrderItems), User has one Cart
  • Constraints: Email must be unique, Order total matches sum of OrderItems, Payment amount equals Order total
  • Result: Unambiguous model that prevents data inconsistencies

Workflow

Copy this checklist and track your progress:

Data Schema & Knowledge Modeling Progress:
- [ ] Step 1: Gather domain requirements and scope
- [ ] Step 2: Identify entities and attributes
- [ ] Step 3: Define relationships and cardinality
- [ ] Step 4: Specify constraints and invariants
- [ ] Step 5: Validate and document the model

Step 1: Gather domain requirements and scope

Ask user for domain description, core use cases (what queries/operations will this support), existing data (if migration/integration), performance/scale requirements, and technology constraints (SQL vs NoSQL vs graph database). Understanding use cases shapes the model - OLTP vs OLAP vs graph traversal require different designs. See Schema Types for guidance.

Step 2: Identify entities and attributes

Extract nouns from requirements (those are candidate entities). For each entity, list attributes with types and nullability. Use resources/template.md for systematic entity identification. Verify each entity represents a distinct concept with independent lifecycle. Document entity purpose and examples.

Step 3: Define relationships and cardinality

Map connections between entities (one-to-one, one-to-many, many-to-many). For many-to-many, identify junction tables/entities. Specify relationship directionality and optionality (can X exist without Y?). Use resources/methodology.md for complex relationship patterns like hierarchies, polymorphic associations, and temporal relationships.

Step 4: Specify constraints and invariants

Define uniqueness constraints, foreign key relationships, check constraints, and business rules. Document domain invariants (rules that must ALWAYS be true). Identify derived/computed attributes vs stored. Use resources/methodology.md for advanced constraint patterns and validation strategies.

Step 5: Validate and document the model

Create data-schema-knowledge-modeling.md file with complete schema definition. Validate against use cases - can the schema support required queries/operations? Check for normalization (eliminate redundancy) or denormalization (optimize for specific queries). Self-assess using resources/evaluators/rubric_data_schema_knowledge_modeling.json. Minimum standard: Average score ≥ 3.5.

Schema Types

Choose based on use case and technology:

Relational (SQL) Schema

  • Best for: Transactional systems (OLTP), strong consistency, complex queries with joins
  • Pattern: Normalized tables, foreign keys, ACID transactions
  • Example use cases: E-commerce orders, banking transactions, HR systems
  • **Key decisio
Полный SKILL.md на GitHub

Установить data-schema-knowledge-modeling в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

resources/evaluators/rubric_data_schema_knowledge_modeling.jsonresources/methodology.mdresources/template.md

FAQ

Что делает скилл data-schema-knowledge-modeling?

Use when designing database schemas, need to model domain entities and relationships clearly, building knowledge graphs or ontologies, creating API data models, defining system boundaries and invariants, migrating between data models, establishing taxonomies or hierarchies, user mentions "schema", "data model", "entities", "relationships", "ontology", "knowledge graph", or when scattered/inconsistent data structures need formalization.

Как установить скилл data-schema-knowledge-modeling?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл data-schema-knowledge-modeling запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить data-schema-knowledge-modeling с