lib-pydantic-v2

Official

Pydantic v2 patterns for FLEXT

Authorflext-sh
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill enforces the correct and modern usage of Pydantic v2 across the FLEXT ecosystem, preventing the use of deprecated v1 features and ensuring robust data validation and serialization.

Core Features & Use Cases

  • Model Definition: Standardizes the creation of Pydantic models using BaseModel and ConfigDict.
  • Validation: Enforces the use of field_validator and model_validator for data integrity.
  • Serialization: Guides the use of model_dump and model_dump_json for data output.
  • Use Case: When developing a new service that handles user configurations, this Skill ensures that all configuration models are defined using Pydantic v2 best practices, preventing common errors and improving maintainability.

Quick Start

Use the lib-pydantic-v2 skill to validate a dictionary against a Pydantic model.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: lib-pydantic-v2
Download link: https://github.com/flext-sh/flext/archive/main.zip#lib-pydantic-v2

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.