typescript-best-practices
Enforce type safety and robust patterns using discriminated unions, Zod validation, and functional TypeScript practices.
Install
npx skills add https://github.com/0xbigboss/claude-code --skill typescript-best-practicesStats
| Total installs | 1,254 |
| Weekly installs | 1.2K |
| GitHub stars | 41 |
| First seen | Jan 20, 2026 |
| Source | @0xbigboss/claude-code |
Summary
- Use discriminated unions, branded types, and const assertions to encode business rules in the type system and prevent invalid states at compile time
- Validate at system boundaries with Zod schemas as single source of truth; infer TypeScript types automatically to keep types and validation in sync
- Enforce exhaustive handling with never checks in switch statements and default cases; unhandled code paths become compile errors
- Wrap external calls and async operations with contextual error messages; propagate failures rather than silently catching them
- Load and validate configuration at startup with Zod; access typed config object throughout the codebase instead of process.env directly
Tags
Related skills
| Skill | Installs | vs typescript-best-practices |
|---|---|---|
| constant-time-analysis | 1,194 | -60 |
| create-branch | 1,219 | -35 |
| harness-writing | 1,192 | -62 |
| nodejs-best-practices | 1,287 | +33 |
| file-name-wizard | 1,204 | -50 |
FAQ
- How many installs does typescript-best-practices have?
- typescript-best-practices has 1,254 total installs and 1.2K installs this week.
- Where is typescript-best-practices hosted?
- typescript-best-practices is published by @0xbigboss/claude-code at https://github.com/0xbigboss/claude-code.
- How many GitHub stars does typescript-best-practices have?
- typescript-best-practices has 41 GitHub stars.
- When was typescript-best-practices first indexed?
- OrangeBot.AI first indexed typescript-best-practices on Jan 20, 2026.
- How do I install typescript-best-practices?
- Run: npx skills add https://github.com/0xbigboss/claude-code --skill typescript-best-practices