enforcing-type-safety

Enforce strict type safety in TypeScript and Python codebases.

1|Updated Jan 7, 2026
One-click install
npx skills add https://github.com/sumik5/sumik-claude-plugin --skill enforcing-type-safety
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: enforcing-type-safety
Source: https://github.com/sumik5/sumik-claude-plugin/tree/main/skills/enforcing-type-safety
Command: npx skills add https://github.com/sumik5/sumik-claude-plugin --skill enforcing-type-safety

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Enforces strict type safety across TypeScript and Python codebases by banning any/Any usage, promoting explicit types, and guiding the adoption of type guards and static-analysis practices.

Core Features & Use Cases

  • Enforces explicit typing in function signatures, type guards, and safe null handling.
  • Guides safe API integration, data validation, and external library usage.
  • Supports CI/CD integration with strict tooling configurations (tsconfig.json, mypy/pyright) and proactive code reviews.

Quick Start

Annotate new code with explicit types, replace any with unknown or Optional/Union, and enable strict tooling configurations in your project.

Frequently Asked Questions about enforcing-type-safety

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce strict type safety and ban any usage in TypeScript and Python?

Enforce strict type safety by prohibiting any/Any usage and replacing them with unknown or Optional/Union. Use explicit type definitions, type guards, and robust type patterns across API responses and data models to ensure consistent type validation.

What's the best way to handle untyped API responses for static analysis?

Handle untyped API responses for static analysis by replacing any with unknown, applying explicit type definitions, and implementing type guards to validate external data and ensure robust type patterns.

How do I configure mypy and pyright for strict type checking in CI?

Configure mypy and pyright for strict type checking in CI by integrating them into development workflows alongside tsc with strict mode. This ensures static analysis validates explicit types and type guards across processing pipelines.

Why should I use type guards instead of any when integrating external libraries?

Use type guards instead of any when integrating external libraries because type guards enforce explicit type definitions and safe null handling. Banning Any usage ensures robust type patterns and consistent type safety in data validation.

Does this strict typing approach work for both TypeScript and Python codebases?

Yes, this strict typing approach works for both TypeScript and Python codebases. It applies explicit type definitions, type guards, and static-analysis tooling like tsc strict mode and mypy/pyright to enforce consistent type safety across both languages.

When do I need to replace any with unknown or Optional in my code?

Replace any with unknown or Optional when you need to enforce strict type safety across API integration and data validation. This proactive approach requires explicit type definitions and type guards to handle external library usage safely.