
Description
typescript-best-practices is an agent skill from the alleneubank claude-code collection. It loads when an AI agent reads or writes TypeScript or JavaScript files, including .ts, .tsx, .js and tsconfig.json. The skill follows the type-first, functional and error-handling patterns described in the project's CLAUDE.md, and it covers only language-specific idioms. Its main principle is to make illegal states unrepresentable: the type system should prevent invalid states at compile time instead of relying on runtime checks. The skill tells the agent to load the react-best-practices skill alongside it whenever it works on React components, such as .tsx or .jsx files or files that import from React, because React-specific patterns for effects, hooks, refs and component design live in that separate skill. The skill is listed on skills.sh with 3.4K installs and 50 GitHub stars for its project, and all of its security audits show Pass.…
Highlights
- Type-first, functional patterns
- Make illegal states unrepresentable
- Pairs with React best practices
- Covers .ts, .tsx, .js and tsconfig.json
Ratings & Reviews
No ratings yet
Be the first to rate typescript-best-practices.
People also visit
typescript-best-practices FAQ
When does this skill apply?
When the agent reads or writes TypeScript or JavaScript files, including .ts, .tsx, .js and tsconfig.json.
How do I install it?
Run: npx skills add https://github.com/alleneubank/claude-code --skill typescript-best-practices
What does 'make illegal states unrepresentable' mean here?
Using the type system so that invalid states cannot be written in the first place, rather than checking for them at runtime.
Does it cover React too?
No. The skill says to load react-best-practices alongside it for React components, since React patterns are covered in that separate skill.
Is it free?
The listing shows it as free.
What security audit results does it have?
Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Pass.
What are the best typescript-best-practices alternatives?
Popular alternatives to typescript-best-practices include typescript-write, typescript-expert and typescript. See all typescript-best-practices alternatives


















