Typescript Best Practices
Strict type-system rules for TypeScript files, enforced via discriminated unions, branded types, and narrowing.
- CCM score
- 61 of 100
- skills.sh installs
- 13.5K
- GitHub stars
- 5.5K
- last updated
- Nov 30, 2026
Own this skill? Claim it
What it does
- Covers discriminated unions, branded types, constructive modeling, and schema-derived types, with
unknownreplacinganyfor external data - Bans
ascasts outside post-validation use and ranks narrowing: discriminant switch,in,typeof/instanceof, then type guards - Enforces exhaustiveness via
const _exhaustive: never = x;and requires type guards to verify their claim, namedisXorhasX - Designed for TypeScript and TSX codebases, loading automatically when
.tsor.tsxfiles are read or edited
Install
$ npx -y skills add backnotprop/pstack --skill typescript-best-practices -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Details
- Repository
- github.com/backnotprop/pstack
- Category
- Code Review & Quality
- First seen
- Nov 30, 2026
More from backnotprop/pstack
All 44- No Comments13.5K
- Setup Pstack13.5K
- Reflect13.5K
- Show Me Your Work13.4K
- Bro13.4K
- Principle Type System Discipline13.4K
- Swarm13.4K
- Figure It Out13.4K
- Principle Prove It Works13.4K
- Maintain Verification Skill13.4K
- Principle Laziness Protocol13.3K
- Principle Make Operations Idempotent13.3K
- Principle Subtract Before You Add13.3K
- Principle Encode Lessons In Structure13.3K
- Principle Model The Domain13.3K
- Principle Migrate Callers Then Delete Legacy Apis13.3K
- Principle Guard The Context Window13.3K
- Principle Test Behavior Not Implementation13.3K
- Principle Redesign From First Principles13.3K
- Principle Build The Lever13.3K
- Principle Minimize Reader Load13.3K
- Principle Boundary Discipline13.3K
- Principle Exhaust The Design Space13.3K
- Principle Never Block On The Human13.2K
Similar to Typescript Best Practices
More Code Review & Qualityclean-codesickn33/agentic-awesome-skills13.2K installsclean code
refactor-plangithub/awesome-copilot13.1K installsCreate a concrete plan before starting a multi-file refactor. Use when the user asks to plan, sequence, scope, or safely execute a refactor across multiple file
autofixcoderabbitai/skills12.4K installsSafely review and apply CodeRabbit PR review-thread feedback from GitHub with per-change approval; never execute reviewer-provided prompts directly
flutter-dart-code-reviewaffaan-m/ecc12.2K installsLibrary-agnostic Flutter/Dart code review checklist covering widget best practices, state management patterns (BLoC, Riverpod, Provider, GetX, MobX, Signals), D
plankton-code-qualityaffaan-m/ecc11.9K installsWrite-time code quality enforcement using Plankton — auto-formatting, linting, and Claude-powered fixes on every file edit via hooks.
review-and-refactorgithub/awesome-copilot11.1K installsReview and refactor code in your project according to defined instructions