From python-expert
Adds type hints to Python files by analyzing usage, adding function signatures, complex types, and class-level annotations. Verifies with mypy or pyright.
How this command is triggered — by the user, by Claude, or both
Slash command
/python-expert:type-hintsThe summary Claude sees in its command listing — used to decide when to auto-load this command
Add comprehensive type hints to Python code for better IDE support and type safety. ## Steps 1. Analyze the target Python file for untyped code: 2. Determine types by analyzing usage: 3. Add function signatures: 4. Add complex types: 5. Add class-level type hints: 6. Verify with mypy or pyright: 7. Update docstrings to match type annotations. ## Format ## Rules - Use modern syntax (str | None) for Python 3.10+ projects. - Use typing imports for older Python versions. - Avoid Any unless truly necessary; be specific.
Add comprehensive type hints to Python code for better IDE support and type safety.
File: <path>
Functions Typed: <count>
Classes Typed: <count>
Type Checker: <mypy|pyright> - <pass|N errors>
5plugins reuse this command
First indexed Mar 30, 2026
npx claudepluginhub smarks26/awesome-claude-code-toolkit --plugin python-expert/type-hintsAdds type hints to Python files by analyzing usage, adding function signatures, complex types, and class-level annotations. Verifies with mypy or pyright.
/add-typesAdds TypeScript type definitions to files with weak typing by replacing `any`, inferring types from usage, and creating interfaces. Targets 100% type coverage for public APIs.
/tighten-typesStrengthens weak or missing type annotations in a file — replaces any, broad types, and missing annotations with precise types, fixing downstream errors. Supports TypeScript, Python, and Rust.
/python-reviewPerforms comprehensive Python code review: runs static analysis, type checking, security scanning, and generates a severity-graded report.