Every premium and members-only resource for $9.99/month, as a no-commitment subscription. See the plans

PalateKit

Menu

Request a resource

Describe the resource you are missing in one sentence. We will email you when it is published.

0 / 280

Unlock PalateKit

Unlock everything

Plan

Paying means accepting our terms of sale.

Secure payment by Stripe. Receipts and invoices sent by email.

Welcome back

Sign in to install, download or save this resource. A free account is enough for free resources.

Advanced TypeScript patterns and type safety v1.0.0

Use this resource to model contracts and domains with strict TypeScript typing

New

  • 413 downloads
  • 114 likes
  • 134 saves

Free

Install with the CLI

In a terminal, from the folder you want:

npx --yes palatekit@latest install typescript-advanced-type-patterns-3

With no option, the skill goes to ~/.agents/skills/; add --agent claude-code (or codex, cursor…) to target an agent.

First time: connect the CLI with

npx --yes palatekit@latest login

The agent identifies the typing need, loads the matching reference, implements the pattern (generics, branded types, discriminated unions, mapped or conditional types), then validates it with type tests. You get code that catches more errors at compile time.

Mostly picked by

Updated November 2, 2026

Card for the “Advanced TypeScript patterns and type safety” skill

Details

Generates with
Your agent's model
Licence
MIT

Similar resources

View all

What you get

  • references/advanced-generics.md, conditional-types.md and mapped-types.md: generics and advanced types
  • references/discriminated-unions.md and type-guards.md: unions and type guards
  • references/testing-types.md and common-pitfalls.md: type tests and common pitfalls

Good fit for

  • You want to prevent data errors at compile time
  • An API or domain model does not fit simple typing

Not for

    Tags

    • typescript
    • types
    • generics
    • type safety

    About

    You say

    “Model order statuses as a discriminated union, so each status requires its own fields.”

    Card for the “Advanced TypeScript patterns and type safety” skill

    Skill published by nickcrew under the MIT license, delivered in its original version.

    Show more

    How to use it

    1. Install the skill in your agent's skills folder
    2. Ask your agent to model contracts and domains with strict TypeScript typing
    3. Review and adjust the result

    Content preview

    Files

    • LICENSE1 KB
    • NOTICE-PALATEKIT.md0.5 KB
    • references/advanced-generics.md2.1 KB
    • references/branded-types.md1.4 KB
    • references/builder-pattern.md1.6 KB
    • references/common-pitfalls.md2.5 KB
    • references/conditional-types.md0.7 KB
    • references/decorators.md2.1 KB
    • references/discriminated-unions.md1.7 KB
    • references/mapped-types.md1 KB
    • references/performance-best-practices.md2.1 KB
    • references/template-literal-types.md1.2 KB
    • references/testing-types.md2.5 KB
    • references/type-guards.md1.4 KB
    • references/type-inference.md2.2 KB
    • references/utility-types.md2.1 KB
    • SKILL.md6 KB

    Origin and licence

    Listed unmodified

    Author
    nickcrew
    Source
    github.com/nickcrew/claude-cortex/tree/bb47af79ad3befe01ae01940fcf5f16e30a1b6df/skills/typescript-advanced-patterns
    Licence
    MIT

    Notice

    « typescript-advanced-patterns » (nickcrew, MIT) livré dans sa version d'origine : fiche en français et en anglais par PalateKit.

    User reviews

    –

    No ratings yet

    Loading reviews…

    Delete your review?

    Your rating and comment will be removed from the page.