rbarcante/claude-conductor/typescript-best-practices
Claude Code and agent skill by rbarcante/claude-conductor
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Use this skill when working with TypeScript code, type definitions, interfaces, generics, or async patterns.
Install
npx vskill@latest install rbarcante/claude-conductor/typescript-best-practicesSKILL.md
TypeScript Best Practices
Guidance for writing type-safe, maintainable TypeScript code. Covers type safety fundamentals, async/await patterns, and null handling strategies.
Core Principles
- Strict mode always: Enable
strict: truein tsconfig.json - Explicit over implicit: Prefer explicit types for public APIs
- Narrow types: Use discriminated unions over loose object types
- Null safety: Handle null/undefined explicitly with strict null checks
- Immutability: Prefer
readonlyandconstwhere possible
Type Safety
Prefer Interfaces for Object Shapes
Use Discriminated Unions for Variants
Avoid any - Use unknown Instead
Generic Constraints
Async Patterns
Always Await in Try-Catch
Use Promise.all for Parallel Operations
Type Async Return Values Explicitly
Null Handling
Use Optional Chaining and Nullish Coalescing
Non-Null Assertion Only When Certain
Type Guards for Runtime Checks
Prefer undefined Over null for Optional
Utility Types
Common Utility Type Patterns
Extract and Exclude for Union Types
Quick Reference
tsconfig.json Essentials
Checklist
- [ ]
strict: trueenabled in tsconfig.json - [ ] No
anytypes without documented justification - [ ] All async functions have error handling
- [ ] Public APIs have explicit return types
- [ ] Discriminated unions for variant types
- [ ] Type guards for runtime type checks
- [ ]
unknowninstead ofanyfor unknown data - [ ] Optional chaining for nullable access
- [ ] Nullish coalescing for default values
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/typescript-best-practices/SKILL.md
Popularity
- Repository stars
- 44
- Repository forks
- 1
- 7-day trend score
- 19
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 27 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/rbarcante/claude-conductor/typescript-best-practices)