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.

Functional equivalents of design patterns in TypeScript v1.0.0

Use this resource to replace a class-based design with a functional one in TypeScript

New

  • 393 downloads
  • 104 likes
  • 169 saves

Free

Install with the CLI

In a terminal, from the folder you want:

npx --yes palatekit@latest install typescript-functional-patterns

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 replaces class hierarchies from design patterns with functions, discriminated unions and pipelines against explicit rules. For each case it names the idiomatic TypeScript equivalent. You get shorter code that keeps the same flexibility.

Mostly picked by

Updated November 2, 2026

Card for the “Functional equivalents of design patterns in TypeScript” skill

Details

Generates with
Your agent's model
Licence
MIT

Similar resources

View all

What you get

  • references/: cards on factories, immutable builders and module-scope singletons
  • references/: cards on discriminated unions, pipelines and closures as commands

Good fit for

  • An abstract factory exists only to create one kind of object
  • A visitor state re-implements a plain switch over a union

Not for

    Tags

    • typescript
    • functional
    • patterns
    • unions
    • pipelines

    About

    You say

    “This discount strategy class hierarchy fits in three functions. Show me the functional version.”

    Card for the “Functional equivalents of design patterns in TypeScript” skill

    Skill published by pproenca 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 replace a class-based design with a functional one in TypeScript
    3. Review and adjust the result

    Content preview

    Files

    • AGENTS.md5.3 KB
    • LICENSE1.1 KB
    • metadata.json1.3 KB
    • NOTICE-PALATEKIT.md0.5 KB
    • references/_sections.md5.2 KB
    • references/cache-weakmap-over-flyweight.md7 KB
    • references/closure-as-command.md6 KB
    • references/create-factory-function-over-factory-classes.md8.5 KB
    • references/create-fluent-immutable-builder.md8 KB
    • references/create-module-scope-over-singleton.md7.1 KB
    • references/hof-lambda-as-strategy.md5.2 KB
    • references/match-tagged-union-over-state-visitor-composite.md7.9 KB
    • references/pipe-compose-over-decorator.md9.5 KB
    • references/pipe-pipeline-over-chain-of-responsibility.md5.9 KB
    • references/place-module-scope-pure-transformers.md6.8 KB
    • references/signal-event-emitter-over-mediator-and-observer.md9.1 KB
    • references/stream-flatmap-over-nested-loops.md5 KB
    • references/stream-lazy-iteration-for-large-or-infinite.md5.7 KB
    • references/stream-prefer-single-pass-over-chained-passes.md6.2 KB
    • references/stream-reduce-over-imperative-accumulation.md5.5 KB
    • references/wrap-function-over-adapter-and-facade.md8 KB
    • references/wrap-proxy-native-or-hof.md8.3 KB
    • SKILL.md17.4 KB

    Origin and licence

    Listed unmodified

    Author
    pproenca
    Source
    github.com/pproenca/dot-skills/tree/cf93c57cac89d6fc3e4194686000411567f5caf3/skills/.curated/implementation-functional-patterns
    Licence
    MIT

    Notice

    « implementation-functional-patterns » (pproenca, 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.