bp-typescript
CommunityEnforce TypeScript safety and best practices
Software Engineering#typescript#zod#type-safety#best-practices#discriminated-unions#type-guards#strict-mode
AuthorKaikei-e
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Provides a clear, enforceable set of TypeScript conventions to prevent runtime type errors, preserve literal typing, and ensure consistent validation at API boundaries so teams maintain high code quality and avoid subtle type-related bugs.
Core Features & Use Cases
- Compiler Configuration: Enforces strict compiler flags including strict and noUncheckedIndexedAccess to reduce accidental runtime failures.
- Boundary Safety & Validation: Treat external inputs as unknown, prefer Zod schemas for runtime validation, and centralize API boundary checks.
- Type Discipline: Prefer type guards and discriminated unions, use satisfies to preserve literal inference, avoid non-null assertions, and import types explicitly.
- Use Case: Use these guidelines when implementing frontend services or shared libraries (for example alt-frontend-sv, auth-token-manager, or alt-perf) to ensure predictable behavior and robust typing across modules.
Quick Start
Run a best-practices audit on any modified .ts or .tsx file and apply strict compiler settings, unknown-based boundaries, type guards, and Zod validation where external data is consumed.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 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: bp-typescript Download link: https://github.com/Kaikei-e/Alt/archive/main.zip#bp-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.