json-to-pydantic

json-to-pydantic is a skill for Claude Code, Codex from ecodelearn/template-claude-code-ts. It costs 23 tokens per session (164 once invoked), scanned A, original, WTFPL.

A tool that turns JSON examples into Python Pydantic models. Pydantic models are Python classes used to describe and validate structured data.

In plain words
What is it for?
Use it to convert JSON snippets into Pydantic model definitions that match the surrounding Python code.
Why use it?
It saves you from writing the model fields and type annotations by hand and can follow conventions already used in the project.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/ecodelearn/template-claude-code-ts/json-to-pydantic
Any agent
npx skills add ecodelearn/template-claude-code-ts --skill json-to-pydantic
Clone the repo
git clone --depth 1 https://github.com/ecodelearn/template-claude-code-ts

Made for: Claude Code, Codex.

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 json-to-pydantic

README.md
[![agentmods](https://agentmods.dev/badge/skills/ecodelearn/template-claude-code-ts/json-to-pydantic.svg)](https://agentmods.dev/skills/ecodelearn/template-claude-code-ts/json-to-pydantic)
Your own site
<a href="https://agentmods.dev/skills/ecodelearn/template-claude-code-ts/json-to-pydantic"><img src="https://agentmods.dev/badge/skills/ecodelearn/template-claude-code-ts/json-to-pydantic.svg" alt="Measured on agentmods" height="20"></a>
Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 164 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown 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 $0.00023 $0.00164
Opus 5 $0.00012 $0.00082
Sonnet 5 $0.00005 $0.00033
Haiku 4.5 $0.00002 $0.00016

Measured 4d ago against content hash 504b112805a4, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

json-to-pydantic 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 4d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (examples/output_model.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

.claude/skills/json-to-pydantic/SKILL.md · 25 lines

The source is not reproduced here

Licensed WTFPL

The repository is licensed WTFPL, which this catalogue does not treat as permission to reproduce the file. Read it at the source.

Read it on GitHub

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. 4d ago First seen · 25 lines · 23 tokens per session scan A 504b112805a4

Subscribe to this mod's changes

json-to-pydantic is a skill published in the GitHub repository ecodelearn/template-claude-code-ts (1 stars, last pushed 1mo ago), licensed WTFPL. It adds 23 tokens to every session and 164 once invoked, about $0.0001 per session on Opus 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-08-31.

Related

Other skills, from other repositories

neo4j-driver-python-skill

Neo4j Python Driver v6 — driver lifecycle, executequery, managed and explicit transactions, async (AsyncGraphDatabase), result handling, data type mapping, error handling, UNWIND batching, connection pool tuning, and causal consistency. Use when writing Python code that connects to Neo4j via GraphDatabase.driver…

neo4j-contrib/neo4j-skills · 186 tokens

python-stack

Build typed Python projects with uv, Ruff, ty, pytest, Litestar, and Typer. Use for packages, CLIs, web apps, tests, typing, or API verification.

fmind/dotfiles · 41 tokens

python-script

Write standalone single-file Python scripts using PEP 723 inline metadata and uv. Use when creating a quick CLI script that needs dependencies without a full project.

fmind/dotfiles · 34 tokens

python-testing

Python testing strategies using pytest, TDD methodology, fixtures, mocking, parametrization, and coverage requirements.

Jamkris/everything-gemini-code · 24 tokens

python-patterns

Pythonic idioms, PEP 8 standards, type hints, and best practices for building robust, efficient, and maintainable Python applications.

Jamkris/everything-gemini-code · 33 tokens

biopython

Comprehensive molecular biology toolkit. Use for sequence manipulation, file parsing (FASTA/GenBank/PDB), phylogenetics, and programmatic NCBI/PubMed access (Bio.Entrez). Best for batch processing, custom bioinformatics pipelines, BLAST automation. For quick lookups use gget; for multi-service integration use…

agent-skills-hub/agent-skills-hub · 76 tokens