Python Typing And Validation

Python Typing And Validation is a skill for Claude Code, Codex from niels-emmer/myace. It costs 31 tokens per session (396 once invoked), scanned A, original, MIT.

A checklist for Python type annotations and validation at program boundaries. Boundaries are points where external data enters, such as an HTTP request, configuration file, queue message, or language-model response.

In plain words
What is it for?
Use it when adding public functions, defining data models, configuring a type checker, or accepting data from outside the program.
Why use it?
It prevents unchecked dictionaries and invalid external values from spreading through the code, while making public interfaces clearer to humans and type-checking tools.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for aider. Also seen: mentions Codex; built for aider; mentions OpenCode.

Good fit Use it when adding public functions, defining data models, configuring a type checker, or accepting data from outside the program.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/niels-emmer/myace/python-typing-and-validation
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 niels-emmer/myace --skill python-typing-and-validation
Clone the repo
git clone --depth 1 https://github.com/niels-emmer/myace

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 Python Typing And Validation

README.md
[![agentmods](https://agentmods.dev/badge/skills/niels-emmer/myace/python-typing-and-validation/github.svg)](https://agentmods.dev/skills/niels-emmer/myace/python-typing-and-validation)
Your own site
<a href="https://agentmods.dev/skills/niels-emmer/myace/python-typing-and-validation"><img src="https://agentmods.dev/badge/skills/niels-emmer/myace/python-typing-and-validation/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 Python Typing And Validation

Your own site · 80×15
<a href="https://agentmods.dev/skills/niels-emmer/myace/python-typing-and-validation"><img src="https://agentmods.dev/badge/skills/niels-emmer/myace/python-typing-and-validation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 396 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.00031 $0.00396
Opus 5.5 $0.00012 $0.00158
Sonnet 5.5 $0.00006 $0.00079
Haiku 4.5 $0.00003 $0.00040

Measured yesterday against content hash 36d120f16fa9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

Python Typing And Validation 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 yesterday.

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.

collections/additional/python-developer/skills/python-typing-and-validation/SKILL.md · 29 lines

What it actually says

Purpose

Keep types honest and validate data where it enters the program, so the rest of the code can trust its inputs.

When to use it

When adding or changing a public signature, defining a data shape, or when the type checker reports errors you are tempted to silence.

Checklist

  • Signatures: annotate parameters and returns; use X | None rather than Optional[X] on current Python versions.
  • Shapes: dataclasses or Pydantic/attrs models for records, TypedDict for dict-shaped JSON, Protocol for duck typing; avoid bare dict/list without parameters.
  • Boundaries: parse and validate once at the edge (request body, config file, queue message, LLM output) into a typed object; do not pass raw dicts inward.
  • Ignores: every # type: ignore[code] carries a reason; an ignore with no code is a defect.
  • Config: enable the checker's strict flags for new code even if legacy modules are exempt; ratchet, do not loosen.
  • Generics: use TypeVar/PEP 695 syntax where the project's minimum Python version supports it; otherwise TypeVar.

Expected output

Code whose public surface is annotated, whose external data is parsed into typed objects at the boundary, and whose type checker run is clean.

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. yesterday First seen · 29 lines · 31 tokens per session scan A 36d120f16fa9

Subscribe to this mod's changes

Python Typing And Validation is a skill published in the GitHub repository niels-emmer/myace (1 stars, last pushed 2d ago), licensed MIT. It adds 31 tokens to every session and 396 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-11-29.

Related

Python Typing And Validation compared with skills from other repositories

Python Typing And Validation next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
Python Typing And Validationniels-emmer/myaceSkill12d agoMITA31Claude Code, Codex
python-programming-expertroedyrustam/vibes-plugSkill1293d agoMITA53Cursor
loom-pythoncosmix/loomSkill66todayMITA14Claude Code, Codex
developing-kafka-python-clientconfluentinc/agent-skillsSkill6718d agoApache-2.0A75Claude Code
upstash-box-pyupstash/skillsSkill373d agoMITA109Claude Code
djangonimadorostkar/Claude-Skills-collectionSkill41todayMITA75Claude Code
fastapinimadorostkar/Claude-Skills-collectionSkill41todayMITA89Claude Code