TypeScript and JavaScript development standards and best practices. Provides type safety requirements, code organization patterns, testing standards, and modern TypeScript/JavaScript guidelines.
Scanned 2/12/2026
Install via CLI
openskills install suxxes/resin.ai---
name: developer-typescript
description: TypeScript and JavaScript development standards and best practices. Provides type safety requirements, code organization patterns, testing standards, and modern TypeScript/JavaScript guidelines.
---
<!-- Updated: 2025-11-11 19:15:00 UTC -->
# TypeScript/JavaScript Development Skill
This skill provides TypeScript and JavaScript-specific standards and best practices for TDD-based development.
## TYPESCRIPT/JAVASCRIPT STANDARDS
### Type Safety Requirements
- **NEVER** use `any` without strong justification and a comment explaining why
- **MUST** use strict TypeScript settings (`strict: true` in tsconfig.json)
- **MUST** use generics for reusable, type-safe code
- **MUST** implement proper type guards for runtime checks
- **MUST** leverage TypeScript utility types effectively (Partial, Pick, Omit, Record, etc.)
- **Prefer** unknown over any for type-safe error handling
### Code Organization
- **Naming**: Use PascalCase for types/interfaces/classes, camelCase for variables/functions
- **Imports**: Use absolute imports via path aliases when available
- **Type Location**: Co-locate types with implementation
- **Barrel Exports**: Use index files for clean imports
### Testing Standards
- **Test Isolation**: Each test must be independent
- **Clear Names**: Test names describe behavior being tested
- **AAA Pattern**: Arrange-Act-Assert structure in tests
- **Test Coverage**: Minimum 80% code coverage
- **Fast Tests**: Keep tests fast and focused
- **Test Files**: `*.test.ts`, `*.spec.ts`, `*.test.tsx`, `*.spec.tsx`
- **Test Location**: Co-located with source files or in `__tests__/` directory
- **Setup Files**: `setupTests.ts`, `jest.setup.ts`, `vitest.setup.ts`
### Best Practices
- **MUST** use `as const` for literal types
- **MUST** use `?.` for safe property access
- **MUST** use `??` for default values (not `||` which treats 0/"" as falsy)
- **MUST** use template literal types when appropriate
- **Prefer** interfaces over type aliases for object shapes
- **Prefer** const and readonly over let and mutable
- **Use** destructuring for cleaner code
- **Use** async/await over raw promises
No comments yet. Be the first to comment!
Use this skill when developing or maintaining browser extension code in the `browser/` directory, including Chrome/Firefox/Edge compatibility, content scripts, background scripts, or i18n updates.
SEO optimization with keyword analysis, readability assessment, technical validation, content quality. Use for search rankings, blog posts, content audits, or encountering keyword density, readability scores, meta tags, schema markup errors.
Python backend development expertise for FastAPI, security patterns, database operations, Upstash integrations, and code quality. Use when: (1) Building REST APIs with FastAPI, (2) Implementing JWT/OAuth2 authentication, (3) Setting up SQLAlchemy/async databases, (4) Integrating Redis/Upstash caching, (5) Refactoring AI-generated Python code (deslopification), (6) Designing API patterns, or (7) Optimizing backend performance.
Drive the full internationalization journey for a project — detect the stack, recommend a library, set up the chosen library, wrap existing strings, and optionally connect a translation platform. Use when the user asks to add or configure i18n, internationalization, localization, multi-language support, or translations — including when they explicitly mention LinguiJS, Lingui, next-intl, "wrap strings", "find hardcoded text", "make my app translatable", or "set up translations". Triggers on g...
PTES-aligned adversarial security audit for backend, frontend, and mobile applications. Produces a CVSS-scored Hacker Report with verified PoCs and phased remediation.