Comprehensive Type Annotations
Generates detailed type annotations for your code, boosting readability and enabling better static analysis & developer understanding.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add comprehensive-type-annotations npx -- -y @trustedskills/comprehensive-type-annotations
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"comprehensive-type-annotations": {
"command": "npx",
"args": [
"-y",
"@trustedskills/comprehensive-type-annotations"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill provides comprehensive type annotations for code, improving readability and maintainability. It automatically generates detailed type hints for functions and variables based on existing code, reducing manual effort and potential errors. The generated annotations adhere to established Python typing conventions, ensuring consistency across projects.
When to use it
- Legacy Codebases: Add type safety to older Python projects lacking explicit type annotations.
- Large Projects: Improve the clarity and maintainability of complex codebases with many functions and variables.
- Team Collaboration: Enforce consistent typing conventions within a development team, reducing misunderstandings.
- Refactoring: Facilitate safer refactoring by providing clear type information during code changes.
Key capabilities
- Automatic generation of type hints for functions.
- Generation of type annotations for variables.
- Adherence to Python typing conventions.
- Improved code readability and maintainability.
Example prompts
- "Generate type annotations for the
calculate_averagefunction." - "Add type hints to all variables in this script."
- "Annotate this module with comprehensive type information."
Tips & gotchas
The quality of generated annotations depends on the clarity and consistency of existing code. Review and adjust automatically generated types as needed for optimal accuracy.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.