forge-typescript
CommunityWrite TypeScript that stays correct
Software Engineering#type safety#typescript#zod#schema validation#result types#exhaustive unions#tsconfig strict
Authorf4rkh4d
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Prevents TypeScript codebases from silently degrading into unsafe patterns that break in production, especially through misuse of any, unchecked parsing, weak type boundaries, and missing exhaustiveness.
Core Features & Use Cases
- Type-safe boundaries with schema validation: Treats external inputs as unknown and validates them before use (e.g., JSON.parse, env vars, API responses).
- No
any, disciplined casting, and banned escape hatches: Enforces rules againstany,@ts-ignore/@ts-nocheck, non-null assertions in production paths, and unprincipledascasts. - Exhaustive discriminated unions and branded domain types: Uses assertNever for complete variant handling and branded primitives to prevent cross-domain identifier bugs.
- Result-first error handling and strict TS configuration: Encourages Result types for expected failures and exceptions for unexpected ones, backed by a strict tsconfig baseline.
- Built-in verification workflow: Provides a verifier script that flags common TS-discipline violations.
Quick Start
Run the TypeScript discipline verifier against a file to catch forbidden patterns like any, @ts-ignore, non-null assertions, and schema-less JSON parsing.
Dependency Matrix
Required Modules
None requiredComponents
assets
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: forge-typescript Download link: https://github.com/f4rkh4d/forge-skill/archive/main.zip#forge-typescript Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.