strict-typescript

Enforce strict TypeScript patterns with Zod validation and no type assertions.

1|Updated Feb 8, 2026
One-click install
npx skills add https://github.com/attunehq/agentic-bun --skill strict-typescript-attunehq
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: strict-typescript
Source: https://github.com/attunehq/agentic-bun/tree/main/.agents/skills/strict-typescript
Command: npx skills add https://github.com/attunehq/agentic-bun --skill strict-typescript-attunehq

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill enforces rigorous type safety and architectural patterns in TypeScript/JavaScript development, preventing common bugs and improving code maintainability.

Core Features & Use Cases

  • Type Safety Enforcement: Eliminates as, !, and any to ensure compiler-guaranteed correctness.
  • Domain Modeling: Utilizes branded types and discriminated unions to make illegal states unrepresentable.
  • Use Case: When developing a new feature, use this Skill's guidelines to ensure all data inputs are strictly validated with Zod, all function signatures are precise, and the code adheres to a type-first development methodology, preventing runtime errors.

Quick Start

Apply the strict-typescript skill to enforce type safety in your TypeScript codebase.

Frequently Asked Questions about strict-typescript

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

FAQPage Schema
How do I enforce strict TypeScript patterns and eliminate type assertions in my codebase?

Use Rust-inspired TypeScript patterns to eliminate type assertions, `any`, and non-null operators. This enforces compiler-guaranteed correctness by mandating schema-first development and precise function signatures.

What is the best way to make illegal states unrepresentable in TypeScript?

Use branded types and discriminated unions for domain modeling to make illegal states unrepresentable in TypeScript. This prevents invalid state configurations directly through compiler-enforced type safety.

How do I validate data inputs with Zod using a schema-first development approach?

Validate data inputs with Zod by adopting a schema-first development methodology. This ensures all incoming data is strictly validated at runtime, complementing TypeScript's compile-time type safety for high assurance.

Can I use Rust-inspired strict type safety patterns for maintaining existing JavaScript files?

Rust-inspired strict type safety patterns are applicable to all TypeScript and JavaScript files requiring high assurance and maintainability. They enforce rigorous architectural patterns to prevent common bugs across your codebase.

Why does eliminating `any` and type assertions improve TypeScript code quality?

Eliminating `any` and type assertions improves TypeScript code quality by ensuring compiler-guaranteed correctness. This strict enforcement prevents common bugs, mandates precise function signatures, and improves long-term code maintainability.