clean-typescript

Enforce explicit TypeScript typing with return types and interfaces.

Updated Feb 4, 2026
One-click install
npx skills add https://github.com/logistics00/Claude_Code --skill clean-typescript-logistics00
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: clean-typescript
Source: https://github.com/logistics00/Claude_Code/tree/main/.claude/skills/clean-typescript
Command: npx skills add https://github.com/logistics00/Claude_Code --skill clean-typescript-logistics00

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers write clean, explicit TypeScript code that reduces bugs and maintenance costs.

Core Features & Use Cases

  • Prefer explicit, readable types over clever abstractions.
  • Use type aliases and interfaces to define stable public APIs.
  • Provide explicit return types and guard nullability for safer code.

Quick Start

Rewrite a small TypeScript snippet to use explicit types and avoid any to demonstrate best practices.

Frequently Asked Questions about clean-typescript

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

FAQPage Schema
How do I enforce explicit typing in TypeScript to improve code quality?

Enforce explicit typing in TypeScript by requiring explicit return types, avoiding any, and preferring interfaces for public shapes. This approach improves readability, reduces bugs, and promotes safe null handling during module development.

What is the best way to avoid any and handle null safely in TypeScript?

The best way to avoid any and handle null safely in TypeScript is to use explicit, readable types over clever abstractions. Provide explicit return types and guard nullability to ensure safer code and reduce maintenance costs.

When should I use interfaces versus type aliases for stable public APIs in TypeScript?

Use interfaces versus type aliases for stable public APIs in TypeScript when defining explicit module boundaries. Prefer interfaces for public shapes to enforce stable contracts, applying guided type inference only where stable.

How do I refactor existing TypeScript code to reduce bugs and maintenance costs?

Refactor existing TypeScript code to reduce bugs and maintenance costs by replacing implicit types and any usages with explicit return types and readable abstractions. This enforces safe null handling and improves overall codebase readability.

Does TypeScript static analysis require explicit return types for module development?

TypeScript static analysis benefits from explicit return types during module development. Requiring explicit return types and avoiding any enforces clean, explicit typing, which directly reduces bugs and promotes safer API design.