typescript-advanced-types
Master TypeScript's advanced type system including generics, conditional types, mapped types, template literals, and utility types for building type-safe…
Skill by ChronicStone
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/chronicstone-typescript-advanced-types
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
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/typescript-advanced-types
What's inside
- Skill name
typescript-advanced-types- Description
- Master TypeScript's advanced type system including generics, conditional types, mapped types, template literals, and utility types for building type-safe applications. Use when implementing complex type logic, creating reusable type utilities, or ensuring compile-time type safety in TypeScript projects.
- License
- MIT
- Instructions
- 697 lines in SKILL.md · view on GitHub
Agent Skills spec issues
- body: 697 lines (spec recommends under 500)
Files (1)
- SKILL.md
SKILL.md (first lines)
# TypeScript Advanced Types
Comprehensive guidance for mastering TypeScript's advanced type system including generics, conditional types, mapped types, template literal types, and utility types for building robust, type-safe applications.
## When to Use This Skill
- Building type-safe libraries or frameworks
- Creating reusable generic components
- Implementing complex type inference logic
- Designing type-safe API clients
- Building form validation systems
- Creating strongly-typed configuration objects
- Implementing type-safe state management
- Migrating JavaScript codebases to TypeScript
## Core Concepts
### 1. Generics
**Purpose:** Create reusable, type-flexible components while maintaining type safety.
**Basic Generic Function:**
```typescript
function identity<T>(value: T): T {
return value
}
const num = identity<number>(42) // Type: number
const str = identity<string>('hello') // Type: string
const auto = identity(true) // Type inferred: boolean
```
**Generic Constraints:**
```typescript
interface HasLength {
length: number
}
function logLength<T extends HasLength>(item: T): T {
console.log(item.length)
return item
}
logLength('hello') // OK: string has length
logLength([1, 2, 3]) // OK: array has length
logLength({ length: 10 }) // OK: object has length
// logLength(42); // Error: number has no length
```
**Multiple Type Parameters:**
```typescript
function merge<T, U>(obj1: T, obj2: U): T & U {
return { ...obj1, ...obj2 }
}
const merged = merge({ name: 'John' }, { age: 30 })
// Type: { name: string } & { age: number }
```
### 2. Conditional Types
**Purpose:** Create types that depend on conditions, enabling sophisticated type logic.
**Basic Conditional Type:**
```typescript
type IsString<T> = T extends string ? true : false
type A = IsString<string> // true
type B = IsString<number> // false
```
**Extracting Return Types:**
```typescript
type ReturnType<T> = T extends (...args: any[]) => infer R ? R : never
function getUser() {
return { id: 1, name: 'John' }
}
type User = ReturnType<typeof getUser>
// Type: { id: number; name: string; }
```
**Distributive Conditional Types:**
```typescript
type ToArray<T> = T extends any ? T[] : never
type StrOrNumArray = ToArray<string | number>
// Type: string[] | number[]
```
**Nested Conditions:**
```typescript
type TypeName<T> = T extends string
? 'string'
: T extends number
? 'number'
: T extends boolean
? 'boolean'
: T extends undefined
? 'undefined'
: T extends Function
? 'function'
: 'object'
type T1 = TypeName<string> // "string"
type T2 = TypeName<() => void> // "function"
```
### 3. Mapped Types
**Purpose:** Transform existing types by iterating over their properties.From ChronicStone/nuxt-ui-tools, MIT.
More from ChronicStone/nuxt-ui-tools
- 0.603score
nuxt-ui-tools-typescript
ChronicStone
Use this skill for internal TypeScript work in the nuxt-ui-tools repository.
SkillAFreshness: A★ 2Claude Code +9 - 0.603score
nuxt-ui-tools-maintainer
ChronicStone
Use this skill for internal maintenance and feature work in the nuxt-ui-tools repository.
SkillAFreshness: A★ 2Claude Code +9 - 0.603score
nuxt-ui-tools-config-driven
ChronicStone
Use this skill for internal architecture work around config-driven, registry-driven, and pattern-driven feature design in the nuxt-ui-tools repository.
SkillAFreshness: A★ 2Claude Code +9 - 0.603score
nuxt-ui-tools-reactivity
ChronicStone
Use this skill for internal Vue reactivity and state-model work in the nuxt-ui-tools repository.
SkillAFreshness: A★ 2Claude Code +9 - 0.603score
nuxt-ui-tools-table-runtime
ChronicStone
Use this skill when implementing, refactoring, or extending the internal table runtime inside this repository.
SkillAFreshness: A★ 2Claude Code +9 - 0.599score
nuxt-ui-tools-table
ChronicStone
Use this skill when building or debugging table usage with nuxt-ui-tools as a package consumer.
SkillAFreshness: A★ 2Claude Code +9 - 0.599score
nuxt-ui-tools
ChronicStone
Use this skill when working with the nuxt-ui-tools package as a consumer or integrator.
SkillAFreshness: A★ 2Claude Code +9 - 0.599score
nuxt-ui-tools-display
ChronicStone
Use this skill when showing read-only content with nuxt-ui-tools display blocks, inside a form (the `info` field with `display` and `props`) or on their own…
SkillAFreshness: A★ 2Claude Code +9 - 0.599score
nuxt-ui-tools-query-state
ChronicStone
Use this skill when building or debugging URL-backed state with nuxt-ui-tools as a package consumer.
SkillAFreshness: A★ 2Claude Code +9 - 0.598score
nuxt-ui-tools-playground
ChronicStone
Use this skill when adding, restructuring, or validating the nuxt-ui-tools playground examples, shell, navigation, or route-level composition demos.
SkillAFreshness: A★ 2Claude Code +9 - 0.598score
nuxt-ui-tools-repo
ChronicStone
Use this skill when implementing or refactoring code inside the nuxt-ui-tools repository itself.
SkillAFreshness: A★ 2Claude Code +9 - 0.598score
nuxt-ui-tools-i18n
ChronicStone
Use this skill for internal i18n work in this repository.
SkillAFreshness: A★ 2Claude Code +9
Signals
- Stars
- 2
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Mar 18, 2026 (7 months ago)
- Last release
- Oct 23, 2026 (5 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/ChronicStone/nuxt-ui-tools
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.276score
typescript-advanced-types
ifernandez89
Master TypeScript's advanced type system including generics, conditional types, mapped types, template literals, and utility types for building type-safe…
SkillCFreshness: CClaude Code +9 - 0.274score
typescript-advanced-types
JeanPDR
Master TypeScript's advanced type system including generics, conditional types, mapped types, template literals, and utility types for building type-safe…
SkillCFreshness: CClaude Code +9 - 0.257score
typescript-advanced-types
jiahe0510
Master TypeScript's advanced type system including generics, conditional types, mapped types, template literals, and utility types for building type-safe…
SkillDFreshness: D★ 2Claude Code +9 - 0.240score
typescript-advanced-types
youssefKadaouiAbbassi
Master TypeScript's advanced type system including generics, conditional types, mapped types, template literals, and utility types for building type-safe…
SkillDFreshness: DClaude Code +9 - 0.237score
typescript-advanced-types
vab1997
Master TypeScript's advanced type system including generics, conditional types, mapped types, template literals, and utility types for building type-safe…
SkillDFreshness: DClaude Code +9
More from ChronicStone
- 0.603score
nuxt-ui-tools-reactivity
ChronicStone
Use this skill for internal Vue reactivity and state-model work in the nuxt-ui-tools repository.
SkillAFreshness: A★ 2Claude Code +9 - 0.603score
nuxt-ui-tools-table-runtime
ChronicStone
Use this skill when implementing, refactoring, or extending the internal table runtime inside this repository.
SkillAFreshness: A★ 2Claude Code +9 - 0.603score
nuxt-ui-tools-typescript
ChronicStone
Use this skill for internal TypeScript work in the nuxt-ui-tools repository.
SkillAFreshness: A★ 2Claude Code +9 - 0.603score
nuxt-ui-tools-maintainer
ChronicStone
Use this skill for internal maintenance and feature work in the nuxt-ui-tools repository.
SkillAFreshness: A★ 2Claude Code +9 - 0.603score
nuxt-ui-tools-config-driven
ChronicStone
Use this skill for internal architecture work around config-driven, registry-driven, and pattern-driven feature design in the nuxt-ui-tools repository.
SkillAFreshness: A★ 2Claude Code +9 - 0.599score
nuxt-ui-tools-query-state
ChronicStone
Use this skill when building or debugging URL-backed state with nuxt-ui-tools as a package consumer.
SkillAFreshness: A★ 2Claude Code +9
Cite this page
typescript-advanced-types skill. Agent Mart. https://agentmart.dev/skills/chronicstone-typescript-advanced-types (last updated 2026-10-24)