joabgonzalez/ai-agents-skills/joabgonzalez-typescript
Claude Code and agent skill by joabgonzalez/ai-agents-skills
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Strict typing and type-safe development. Trigger: When implementing TypeScript in .ts/.tsx files, adding types, or enforcing safety.
Install
npx vskill@latest install joabgonzalez/ai-agents-skills/joabgonzalez-typescriptSKILL.md
TypeScript
Strict typing with compile-time correctness. Avoid any, leverage generics/utility types.
When to Use
Use when:
- Writing or refactoring
.ts/.tsxfiles - Adding type definitions, interfaces, or type aliases
- Working with generics, utility types, or advanced type features
- Configuring
tsconfig.json - Resolving type errors or improving type inference
Don't use for:
- Runtime validation (form-validation)
- JS-only patterns (javascript skill)
- Framework typing (react, mui skills)
Critical Patterns
❌ NEVER: use any
✅ REQUIRED: Enable strict mode
✅ REQUIRED: Use proper types for object shapes
✅ REQUIRED: Constrain generics
✅ REQUIRED: Use import type for type-only imports
✅ REQUIRED: Named imports over namespace imports
✅ REQUIRED: No unused code
✅ REQUIRED: Use satisfies for type validation without widening
✅ REQUIRED: Use as const for literal types
Decision Tree
Example
Edge Cases
Discriminated unions for type narrowing:
Custom type guards:
- Circular types: Extract shared interfaces or use type parameters.
- Index signatures:
Record<string, Type>for dynamic keys; mapped types for known keys. - Const assertions:
as constcreates readonly literal types.
Checklist
- [ ]
strict: trueintsconfig.json - [ ] No
anyusage -- useunknownwith type guards - [ ]
import typefor type-only imports (or inlinetypekeyword) - [ ] Named imports over namespace imports (
import { x }notimport * as) - [ ] No unused imports, variables, or parameters (
noUnusedLocals,noUnusedParameters) - [ ] Interfaces for object shapes, type aliases for unions/intersections
- [ ] Generics constrained with
extends - [ ]
satisfiesfor validation without type widening - [ ]
as constfor literal inference
Resources
- references/ -- utility types, generics, type guards, config patterns, error handling
- TypeScript Docs
- TSConfig Reference
Security
- Security scanPassed, 88 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/SKILL.md
Popularity
- Repository stars
- 3
- Repository npm downloads, 7 days
- 20
- 7-day trend score
- 20
Stars and forks are for the whole GitHub repository, not this skill alone. Downloads are for the repository's npm package. Refreshed 2 Apr 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/joabgonzalez/ai-agents-skills/joabgonzalez-typescript)