mastering-typescript
Master enterprise-grade TypeScript development with type-safe patterns, modern tooling, and framework integration.
Skill by dsactivi-2
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/dsactivi-2-mastering-typescript
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: frontend
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/mastering-typescript
What's inside
- Skill name
mastering-typescript- Description
- Master enterprise-grade TypeScript development with type-safe patterns, modern tooling, and framework integration. This skill provides comprehensive guidance for TypeScript 5.9+, covering type system fundamentals (generics, mapped types, conditional types, satisfies operator), enterprise patterns (error handling, validation with Zod), React integration for type-safe frontends, NestJS for scalable APIs, and LangChain.js for AI applications. Use when building type-safe applications, migrating JavaScript codebases, configuring modern toolchains (Vite 7, pnpm, ESLint, Vitest), implementing advanced type patterns, or comparing TypeScript with Java/Python approaches.
- License
- MIT
- Instructions
- 411 lines in SKILL.md · view on GitHub
Before installing
- Instructions call the network
Agent Skills spec issues
- files: referenced but missing: references/react-integration.md, references/nestjs-integration.md, references/enterprise-patterns.md, references/type-system.md, references/generics.md
Files (1)
- SKILL.md
SKILL.md (first lines)
# Mastering Modern TypeScript
Build enterprise-grade, type-safe applications with TypeScript 5.9+.
> **Compatibility:** TypeScript 5.9+, Node.js 22 LTS, Vite 7, NestJS 11, React 19
## Quick Start
```bash
# Initialize TypeScript project with ESM
pnpm create vite@latest my-app --template vanilla-ts
cd my-app && pnpm install
# Configure strict TypeScript
cat > tsconfig.json << 'EOF'
{
"compilerOptions": {
"target": "ES2024",
"module": "ESNext",
"moduleResolution": "bundler",
"strict": true,
"noUncheckedIndexedAccess": true,
"exactOptionalPropertyTypes": true,
"esModuleInterop": true,
"skipLibCheck": true
}
}
EOF
```
## When to Use This Skill
Use when:
- Building type-safe React, NestJS, or Node.js applications
- Migrating JavaScript codebases to TypeScript
- Implementing advanced type patterns (generics, mapped types, conditional types)
- Configuring modern TypeScript toolchains (Vite, pnpm, ESLint)
- Designing type-safe API contracts with Zod validation
- Comparing TypeScript approaches with Java or Python
## Project Setup Checklist
Before starting any TypeScript project:
```
- [ ] Use pnpm for package management (faster, disk-efficient)
- [ ] Configure ESM-first (type: "module" in package.json)
- [ ] Enable strict mode in tsconfig.json
- [ ] Set up ESLint with @typescript-eslint
- [ ] Add Prettier for consistent formatting
- [ ] Configure Vitest for testing
```
## Type System Quick Reference
### Primitive Types
```typescript
const name: string = "Alice";
const age: number = 30;
const active: boolean = true;
const id: bigint = 9007199254740991n;
const key: symbol = Symbol("unique");
```
### Union and Intersection Types
```typescript
// Union: value can be one of several types
type Status = "pending" | "approved" | "rejected";
// Intersection: value must satisfy all types
type Employee = Person & { employeeId: string };
// Discriminated union for type-safe handling
type Result<T> =
| { success: true; data: T }
| { success: false; error: string };
function handleResult<T>(result: Result<T>): T | null {
if (result.success) {
return result.data; // TypeScript knows data exists here
}
console.error(result.error);
return null;
}
```
### Type Guards
```typescript
// typeof guard
function process(value: string | number): string {
if (typeof value === "string") {
return value.toUpperCase();
}
return value.toFixed(2);
}
// Custom type guard
interface User { type: "user"; name: string }
interface Admin { type: "admin"; permissions: string[] }
function isAdmin(person: User | Admin): person is Admin {
return person.type === "admin";
}
```
### The `satisfies` Operator (TS 5.0+)
Validate type conformance while preserving inference:
```typescript
// Problem: Type assertion loses specific type info
const colors1 = {
red: "#ff0000",
green: "#00ff00"
} as Record<string, string>;From dsactivi-2/claude-settings, MIT.
More from dsactivi-2/claude-settings
- 0.396score
secure-error-handling
dsactivi-2
Implement secure error handling to prevent information leakage and provide appropriate error responses.
SkillDFreshness: DClaude Code +9 - 0.394score
Sessions & Memory — All-in Setup
dsactivi-2
Optimales Multi-Layer Memory System für produktive Agenten.
SkillDFreshness: DClaude Code +9 - 0.392score
owasp-security
dsactivi-2
Use when reviewing code for security vulnerabilities, implementing authentication/authorization, handling user input, or discussing web application security.
SkillDFreshness: DClaude Code +9 - 0.392score
input-validation-xss-prevention
dsactivi-2
Validate and sanitize user input to prevent XSS, injection attacks, and ensure data quality.
SkillDFreshness: DClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Mar 9, 2026 (7 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/dsactivi-2/claude-settings
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from dsactivi-2
- 0.508score
web-scraping-playwright
dsactivi-2
Extract data from JavaScript-rendered public websites with Playwright.
SkillBFreshness: BClaude Code +9 - 0.508score
hermes-profile-architecture
dsactivi-2
Design isolated Hermes profiles without deployment-specific data.
SkillBFreshness: BClaude Code +9 - 0.508score
ops
dsactivi-2
Generic operational monitoring, incident handling and alerting.
SkillBFreshness: BClaude Code +9 - 0.505score
server-maintenance
dsactivi-2
Generic Linux server maintenance and recovery guidance.
SkillBFreshness: BClaude Code +9 - 0.483score
review-pr
dsactivi-2
Review pull requests for authentication, authorization and data isolation.
SkillBFreshness: BClaude Code +9 - 0.483score
review-agents-md
dsactivi-2
Audit AGENTS.md instructions against the current repository.
SkillBFreshness: BClaude Code +9
Cite this page
mastering-typescript skill. Agent Mart. https://agentmart.dev/skills/dsactivi-2-mastering-typescript (last updated 2026-10-24)