data-modeler

data-modeler is a skill for Claude Code from matteocervelli/llms. It costs 24 tokens per session (4,992 once invoked), scanned A, original, MIT.

A guide for designing Pydantic data models, which are Python structures that validate and describe incoming or stored data. It covers types, rules, relationships, and serialization.

In plain words
What is it for?
It helps create schemas with type annotations, field constraints, business-rule validation, entity relationships, and JSON or dictionary conversion.
Why use it?
It helps catch invalid data and define clear, consistent contracts between parts of an application.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions subagents.

Good fit It helps create schemas with type annotations, field constraints, business-rule validation, entity relationships, and JSON or dictionary conversion.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/matteocervelli/llms/data-modeler
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add matteocervelli/llms --skill data-modeler
Clone the repo
git clone --depth 1 https://github.com/matteocervelli/llms

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for data-modeler

README.md
[![agentmods](https://agentmods.dev/badge/skills/matteocervelli/llms/data-modeler/github.svg)](https://agentmods.dev/skills/matteocervelli/llms/data-modeler)
Your own site
<a href="https://agentmods.dev/skills/matteocervelli/llms/data-modeler"><img src="https://agentmods.dev/badge/skills/matteocervelli/llms/data-modeler/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for data-modeler

Your own site · 80×15
<a href="https://agentmods.dev/skills/matteocervelli/llms/data-modeler"><img src="https://agentmods.dev/badge/skills/matteocervelli/llms/data-modeler.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,992 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00024 $0.04992
Opus 5.5 $0.00010 $0.01997
Sonnet 5.5 $0.00005 $0.00998
Haiku 4.5 $0.00002 $0.00499

Measured 3mo ago against content hash fe73a242a29b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

data-modeler scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.archive/claude-v1/skills/data-modeler/SKILL.md · 715 lines

How it starts

The opening of the file, as written. The whole thing — 715 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Purpose

The data-modeler skill provides comprehensive guidance for designing robust data models using Pydantic, Python's most popular data validation library. This skill helps the Architecture Designer agent create type-safe, validated data structures that serve as the foundation for feature implementations.

This skill emphasizes:

  • Type Safety: Complete type annotations for all fields
  • Validation: Comprehensive validators for business rules
  • Documentation: Clear field descriptions and constraints
  • Relationships: Proper modeling of entity relationships
  • Serialization: Correct handling of JSON/dict conversion

The data-modeler skill ensures that data models are not just simple data containers, but intelligent objects that enforce business rules, validate data integrity, and provide clear contracts for data interchange.

When to Use

This skill auto-activates when the agent describes:

  • "Design data models for..."
  • "Create Pydantic schemas for..."
  • "Define data structures with..."
  • "Model the data with..."
  • "Create validation rules for..."
  • "Define entity relationships..."
  • "Specify field constraints for..."
  • "Design request/response schemas..."

Provided Capabilities

1. Pydantic Schema Design

What it provides:

  • BaseModel class structure
  • Field definitions with types and constraints
  • Default values and factory functions
  • Optional vs required fields
  • Nested model composition
  • Model inheritance patterns

Guidance:

  • Use Field() for metadata and constraints
  • Provide description for all fields
  • Set appropriate default or default_factory
  • Use Optional[T] for nullable fields
  • Validate field names follow conventions

Example:

from pydantic import BaseModel, Field, validator
from typing import Optional, List
from datetime import datetime
from enum import Enum

class UserRole(str, Enum):
    """User role enumeration."""
    ADMIN = "admin"
    USER = "user"
    GUEST = "guest"

class Address(BaseModel):
    """Nested address model."""
    street: str = Field(..., description="Street address", min_length=1, max_length=200)
    city: str = Field(..., description="City name", min_length=1, max_length=100)
    state: str = Field(..., description="State/province code", min_length=2, max_length=2)
    postal_code: str = Field(..., description="Postal/ZIP code", regex=r"^\d{5}(-\d{4})?$")
    country: str = Field(default="US", description="Country code (ISO 3166-1 alpha-2)")

    class Config:
        schema_extra = {
            "example": {
                "street": "123 Main St",
                "city": "Springfield",
                "state": "IL",
                "postal_code": "62701",
                "country": "US"
            }
        }

class User(BaseModel):
    """User data model with comprehensive validation."""

    # Identity fields
    id: Optional[int] = Field(None, description="User ID (auto-generated)")
    username: str = Field(..., description="Unique username", min_length=3, max_length=50)
    email: str = Field(..., description="Email address (validated)")

    # Profile fields
    full_name: str = Field(..., description="User's full name", min_length=1, max_length=200)
    role: UserRole = Field(default=UserRole.USER, description="User role")
    is_active: bool = Field(default=True, description="Account active status")

    # Nested model
    address: Optional[Address] = Field(None, description="Mailing address")

    # Lists
    tags: List[str] = Field(default_factory=list, description="User tags")

    # Timestamps
    created_at: datetime = Field(default_factory=datetime.utcnow, description="Creation timestamp")
    updated_at: Optional[datetime] = Field(None, description="Last update timestamp")

    class Config:
        """Pydantic model configuration."""
        # Allow ORM models to be parsed
        orm_mode = True

        # Use enum values in JSON
        use_enum_values = True

        # Example for documentation
        schema_extra = {
            "example": {
                "username": "johndoe",
                "email": "[email protected]",
                "full_name": "John Doe",
                "role": "user",
                "address": {
                    "street": "123 Main St",
                    "city": "Springfield",
                    "state": "IL",
                    "postal_code": "62701"
                },
                "tags": ["verified", "premium"]
            }
        }

Read the full file on GitHub · 715 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 715 lines · 24 tokens per session scan A fe73a242a29b

Subscribe to this mod's changes

data-modeler is a skill published in the GitHub repository matteocervelli/llms (25 stars, last pushed 6mo ago), licensed MIT. It adds 24 tokens to every session and 4,992 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-01.

Related

data-modeler compared with skills from other repositories

data-modeler next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
data-modelermatteocervelli/llmsSkill256mo agoMITA24Claude Code
fastapi-patternsaffaan-m/ECCSkill315ktodayMITA35Claude Code, Kiro
stripe-projectse2b-dev/E2BSkill15kyesterdayApache-2.0A51Claude Code, Codex
azure-messaging-webpubsubservice-pymicrosoft/skillsSkill3.3kyesterdayMITA64Claude Code
azure-mgmt-botservice-pymicrosoft/skillsSkill3.3kyesterdayMITA59Claude Code
azure-appconfiguration-pybenjaminasterA/antigravity-awesome-skillsSkill524todayMITA0Claude Code, Codex
azure-messaging-webpubsubservice-pybenjaminasterA/antigravity-awesome-skillsSkill524todayMITA0Claude Code, Codex