pedronauck avatar

Typescript Advanced

Pedro Nauck built this as a dispatcher system for TypeScript's gnarlier type features. It routes you to focused references on generics, conditional types, mapped types, and template literals depending on what you're building. The decision maps are genuinely useful: when to use interface vs type, how to handle discriminated unions, where to let inference do the work. Includes compile-time type testing patterns and a strict tsconfig baseline. Best for library authors or anyone migrating a JavaScript codebase who needs more than the basics. Won't help with runtime validation or plain JS questions.

skills.sh installs
584
GitHub stars
655
last updated
Aug 21, 2026

Install

$ npx -y skills add pedronauck/skills --skill typescript-advanced --agent claude-code

Installs into .claude/skills of the current project.

Files

TypeScript Advanced Types

Use this skill when generic inference, conditional/mapped types, template literals, or a reusable type utility is the actual problem. Ordinary typed API, form, and state work uses its domain guidance unless advanced type behavior needs attention.

Concern being changedReference
Generics, conditional/mapped/template-literal and utility typesreferences/core-concepts.md
Reusable emitters, builders, clients, deep utilities, or discriminated modelsreferences/advanced-patterns.md
infer, narrowing, assertion functions, and type-contract testsreferences/type-inference.md
Compiler configuration, type complexity, and maintainabilityreferences/best-practices.md

Prefer the simplest type that expresses the contract. Use unknown and real narrowing at untrusted boundaries; preserve discriminants and readonly intent. Let inference handle local values and follow repository conventions for public annotations, interface, and type.

Sponsors

Details

Repository
github.com/pedronauck/skills
First seen
Jun 3, 2026

More from pedronauck/skills

All 70

Recommended

1juliusbrussee avatarcavemanjuliusbrussee/cavemanUltra-compressed communication mode. Cuts output tokens 65% (measured) by speaking like caveman while keeping full technical accuracy. Supports intensity levels630.7Kskills.sh installs
2mattpocock avatargrill-memattpocock/skillsA relentless interview to sharpen a plan or design.1.6Mskills.sh installs
3shadcn avatarimproveshadcn/improveSurvey any codebase as a senior advisor and produce prioritized, self-contained implementation plans for OTHER models/agents to execute. Strictly read-only on s42.5Kskills.sh installs
4obra avatarsystematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes336.3Kskills.sh installs
5forrestchang avatarkarpathy-guidelinesforrestchang/andrej-karpathy-skillsBehavioral guidelines to reduce common LLM coding mistakes through explicit assumptions, simplicity, and verifiable success criteria.17.9Kskills.sh installs
6vercel-labs avatarfind-skillsvercel-labs/skillsHelps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express int4.4Mskills.sh installs