cursor avatar

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-code

Installs into .claude/skills of the current project.

Files

TypeScript best practices

Apply the type-system-discipline principle skill first.

Sponsors

Details

Repository
github.com/cursor/plugins
First seen
Jun 23, 2026

More from cursor/plugins

All 47

Recommended

1juliusbrussee avatarcavemanjuliusbrussee/cavemanUltra-compressed communication mode. Cuts output tokens 65% (measured) by speaking like caveman while keeping full technical accuracy. Supports intensity levels618.3Kskills.sh installs
2mattpocock avatargrill-memattpocock/skillsA relentless interview to sharpen a plan or design.1.5Mskills.sh installs
3shadcn avatarimproveshadcn/improveSurvey any codebase as a senior advisor and produce prioritized, self-contained implementation plans for OTHER models/agents to execute. Strictly read-only on s40Kskills.sh installs
4obra avatarsystematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes326.7Kskills.sh installs
5forrestchang avatarkarpathy-guidelinesforrestchang/andrej-karpathy-skillsBehavioral guidelines to reduce common LLM coding mistakes through explicit assumptions, simplicity, and verifiable success criteria.17.9Kskills.sh installs
6vercel-labs avatarfind-skillsvercel-labs/skillsHelps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express int4.3Mskills.sh installs