Skill Detail

Python Type Coverage Analyzer

Measures and improves Python type annotation coverage using mypy –html-report and pyright type completeness scoring. Identifies untyped function signatures, missing return types, and Any-typed parameters across codebases.

Code Quality & ReviewGemini
Code Quality & Review Gemini Security Reviewed
โญ 20.4k GitHub stars
INSTALL WITH ANY AGENT
npx skills add agentskillexchange/skills --skill python-type-coverage-analyzer Copy
Works best when you want a reusable capability, not another fragile one-off prompt.
At a glance
Tools required
Python
Install & setup
pip install mypy
Author
Python
Last updated
Mar 21, 2026
Quick brief

The Python Type Coverage Analyzer skill assesses and improves type annotation completeness across Python codebases. It runs mypy with –html-report and –txt-report to generate coverage metrics, then processes pyright output in JSON mode to compute type completeness scores per module and identify specific locations where type information is missing.

How it works

What this skill actually does

The skill identifies untyped function parameters, missing return type annotations, implicit Any types from untyped third-party libraries, and overly broad Union types that could be narrowed. It leverages the mypy daemon (dmypy) for incremental analysis on large codebases and can process pyright’s reportMissing* diagnostic categories to prioritize the most impactful typing improvements.

Additional capabilities include generating type stubs (.pyi files) for untyped internal modules using stubgen, recommending typing_extensions backports for older Python versions, and creating py.typed marker files for PEP 561 compliance. The skill produces prioritized fix lists sorted by module import frequency (most-imported modules first) to maximize downstream type inference improvements, and can auto-generate TypedDict definitions from runtime JSON schema analysis.