
Typescript Best Practices
Enforces a tight set of TypeScript patterns that treat the type system as a proof assistant rather than documentation. Every rule here exists to close a gap where TypeScript would otherwise let you lie to yourself: discriminated unions over optional fields, branded primitives to prevent ID mixups, unknown for external data, and exhaustiveness checks that break the build when you add a variant. The narrowing hierarchy and type guard rules are especially useful if you're tired of as casts hiding bugs. Also pushes object parameters for readability and real tests over mocks, which is opinionated but defensible. If you want TypeScript to actually catch your mistakes instead of rubber stamping them, this is a solid foundation.
- skills.sh installs
- 10K
- GitHub stars
- 15.9K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add cursor/plugins --skill typescript-best-practices --agent claude-codeInstalls into .claude/skills of the current project.
Files
Sponsors
Details
- Repository
- github.com/cursor/plugins
- First seen
- Jun 23, 2026
More from cursor/plugins
All 47- Blast Radius7.1K
- How6.7K
- Why6.5K
- Arena5.7K
- Architect5.6K
- Interrogate5.3K
- Show Me Your Work5K
- Figure It Out4.7K
- Setup Pstack4.6K
- Reflect4.5K
- Automate Me4.3K
- Recall4.1K
- Tdd3.9K
- Make Pr Easy To Review3.4K
- Thermo Nuclear Review2.8K
- Fix Merge Conflicts2.8K
- What Did I Get Done2.6K
- Control Cli2.6K
- Review And Ship2.6K
- Verify This2.5K
- Control Ui2.5K
- Weekly Review2.5K
- Fix Ci2.5K
- Pr Review Canvas2.4K