Agent skill to migrate Python codebases to strict type checking with pyright
Repo tmustier/python-typing, read from GitHub 34 min ago. tmustier has not joined Take My Repo.
The skill now dogfoods itself - all scripts and tests pass pyright strict mode with 0 errors.
init_typing.py, analyze_typing.py)CompletedProcess[str] return type annotationsfrom __future__ import annotations for Python 3.9 compatibilityFull Changelog: v0.1.0...v0.1.1
An agent skill for migrating Python codebases to strict type checking with pyright.
scripts/init_typing.py - Initialize typing setup in any projectreferences/patterns.md - Common fix patterns organized in 6 layers:
references/faq.md - Detailed FAQ for common questionsEnforced via long-task-harness rules:
block-type-ignore - No # type: ignore without documentationblock-gratuitous-assert - Warns on assert x is not None hackswarn-any-type - Warns on explicit Any usagewarn-cast-overuse - Warns on cast() usagescripts/analyze_typing.py - Analyze error distribution
git clone https://github.com/tmustier/python-typing ~/.claude/skills/python-typingAsk your AI agent:
Set up strict type checking for this project
18 tests covering:
Run with:
uv run pytest tests/ -v
MIT