implement-type-annotations

ambient-code's avatarfrom ambient-code

Add comprehensive type hints to Python/TypeScript code to improve IDE support, catch errors early, and enable better AI code understanding

⭐99stars🔀21forks📁View on GitHub🕐Updated Dec 29, 2025

When & Why to Use This Skill

This Claude skill provides automated type annotation capabilities for Python and TypeScript projects. By generating comprehensive type hints, it significantly improves code maintainability, enhances IDE-based developer productivity through better autocompletion, and enables advanced static analysis to catch potential bugs early in the development lifecycle.

Use Cases

  • Legacy Code Modernization: Automatically adding type safety to existing untyped codebases to reduce technical debt and improve readability.
  • Static Analysis Integration: Preparing code for tools like Mypy or Pyright to catch potential runtime errors during the development phase.
  • Enhanced Developer Experience: Improving IDE support with better autocompletion, precise navigation, and real-time error highlighting.
  • AI-Driven Development: Providing AI coding assistants with explicit type information to ensure more accurate code generation and logic reasoning.
nameimplement-type-annotations
descriptionAdd comprehensive type hints to Python/TypeScript code to improve IDE support, catch errors early, and enable better AI code understanding

Implement Type Annotations

When to Use This Skill

Type hints in function signatures

Instructions

  1. Review the pattern summary above
  2. Apply the pattern to your repository
  3. Verify the implementation matches the examples below

Examples

Example 1

Typed functions: 180/186

Example 2

Coverage: 96.8%

Best Practices

  • Follow the pattern consistently across your codebase
  • Refer to the citations below for authoritative guidance
  • Test the implementation after applying the pattern

Citations

No citations available


Generated by: AgentReady Skill Generator Confidence: 100.0% Source Attribute: type_annotations Reusability: 100.0% Impact: +50.0 pts