Static type checker for Python that adds gradual typing, strict mode, and Protocol support to existing code.
- CCM score
- 47 of 100
- skills.sh installs
- 487
- GitHub stars
- 79
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers type annotation basics through generics, Protocols, Literal types, and callable typing with worked examples
- Includes installation variants for plain Python, FastAPI (with
pydantic), and Django (withdjango-stubs) projects - Enforces stricter checking through the
--strictflag and recommends amypy.inifile for project configuration - Designed for teams adding type safety to Python codebases, incrementally or in CI/CD pipelines
Install
$ npx -y skills add bobmatnyc/claude-mpm-skills --skill mypy -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
mypy - Static Type Checking for Python
Overview
mypy is the standard static type checker for Python, enabling gradual typing with type hints (PEP 484) and comprehensive type safety. It catches type errors before runtime, improves code documentation, and enhances IDE support while maintaining Python's dynamic nature through incremental adoption.
Key Features:
- Gradual typing: Add types incrementally to existing code
- Strict mode: Maximum type safety with --strict flag
- Type inference: Automatically infer types from context
- Protocol support: Structural typing (duck typing with types)
- Generic types: TypeVar, Generic, and advanced type patterns
- Framework integration: FastAPI, Django, Pydantic compatibility
- Plugin system: Extend type checking for libraries
- Incremental checking: Fast type checking on large codebases
Installation:
# Basic mypy
pip install mypy
# With common type stubs
pip install mypy types-requests types-PyYAML types-redis
# For FastAPI projects
pip install mypy pydantic
# For Django projects
pip install mypy django-stubs
# Development setup
pip install mypy pre-commit
Type Annotation Basics
1. Variable Type Hints
Details
- Repository
- github.com/bobmatnyc/claude-mpm-skills
- Categories
- Python, Code Review & Quality
- First seen
- Jun 3, 2026
Questions
What does the mypy skill do for Python projects?
The mypy skill brings static type checking to Python through gradual typing with type hints, strict mode, and Protocol support. It covers framework integration with FastAPI, Django, and Pydantic, so mypy can check typed code in those projects before runtime.
How do I install the mypy skill?
Run npx -y skills add bobmatnyc/claude-mpm-skills --skill mypy -y in your project to install the mypy skill. Once installed, the agent can apply mypy type checking guidance to the Python code in that project.
Where does the mypy skill rank in the Python category on Claude Marketplaces?
The mypy skill ranks in the top 100 of the Python category on Claude Marketplaces. Other skills in the category that lead it include python-performance-optimization, python-design-patterns, async-python-patterns, python-code-style and uv-package-manager, while mypy focuses on static type safety.
Who is the mypy skill for?
The mypy skill is for Python developers who want to add type safety to existing or new projects, use type hints in FastAPI or Django code, enforce type checking in CI/CD, or refactor code to add annotations. It starts with gradual typing, so teams can adopt types incrementally.
What does the mypy skill need before it can run?
The mypy skill needs a Python environment with mypy installed, which the skill's quick start covers with pip install mypy. It uses no external tools or API keys, and optional type stubs such as types-requests or django-stubs can be added for specific libraries.
More from bobmatnyc/claude-mpm-skills
All 154- Celery484
- Threat Modeling484
- Wordpress Block Editor Fse484
- Supabase Backend Platform482
- Local Llm Ops478
- Web Performance Optimization476
- Golang Testing Strategies466
- Wordpress Advanced Architecture463
- Hono Rpc462
- Sveltekit462
- Golang Http Frameworks460
- Digitalocean Management459
- Flask459
- Hono Middleware454
- Golang Cli Cobra Viper446
- Wordpress Plugin Fundamentals444
- Dependency Audit442
- Digitalocean Compute441
- Phoenix Liveview440
- Wordpress Testing Qa440
- Database Migration435
- Golang Observability Opentelemetry434
- Hono Testing433
- Golang Concurrency Patterns429
Similar to Mypy
More Pythonpyright-type-checkerbobmatnyc/claude-mpm-skills153 installsFast Python type checking with Pyright, offering strict modes and VS Code integration.
python-type-safetywshobson/agents13.6K installsPython type-safety guidance covering type hints, generics, protocols, and strict mypy or pyright checking.
python-projeffallan/claude-skills9.7K installsModern Python 3.11+ specialist for type-safe, async-first code with strict mypy and pytest coverage.
pythonalinaqi/maggy246 installsPython development guide covering type hints, project layout, tooling, pytest, and CI gates.
tyastral-sh/agent-plugins3.8K installsType checking Python with ty, an extremely fast checker and language server that replaces mypy and Pyright.
pydanticbobmatnyc/claude-mpm-skills2.2K installsType-hint-driven data validation that runs on Pydantic v2's Rust core for FastAPI, Django, and config work.