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.

Generate JavaScript and TypeScript code programmatically v1.0.0

Use this resource to generate JavaScript or TypeScript code strings for a code generator

New

  • 492 downloads
  • 159 likes
  • 230 saves

Free

Install with the CLI

In a terminal, from the folder you want:

npx --yes palatekit@latest install js-typescript-code-generation

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 uses knitwork-x functions to write ESM imports and exports, classes, interfaces, functions, conditions and serialized objects. The functions return pure strings to splice into a source file. The library is a fork of knitwork with added TypeScript helpers.

Mostly picked by

Updated November 2, 2026

Card for the “Generate JavaScript and TypeScript code programmatically” skill

Details

Generates with
Your agent's model
Licence
MIT

Similar resources

View all

What you get

  • SKILL.md: overview and key points of generation
  • references/features-class.md: class generation
  • references/core-esm.md: ESM imports and exports

Good fit for

  • You are writing a code generator or a plugin that outputs modules
  • A tool must create TypeScript classes or types dynamically

Not for

    Tags

    • code generation
    • TypeScript
    • JavaScript
    • AST
    • codegen

    About

    You say

    “Generate a TypeScript module with a User interface and a factory function.”

    Card for the “Generate JavaScript and TypeScript code programmatically” skill

    Skill published by hairyf 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 generate JavaScript or TypeScript code strings for a code generator
    3. Review and adjust the result

    Content preview

    Files

    • GENERATION.md0.1 KB
    • LICENSE1.1 KB
    • NOTICE-PALATEKIT.md0.4 KB
    • references/core-design-guidelines.md1.9 KB
    • references/core-esm.md2.3 KB
    • references/core-overview.md1.7 KB
    • references/core-string.md1.7 KB
    • references/core-variable.md1.3 KB
    • references/features-class.md2.5 KB
    • references/features-condition.md1.9 KB
    • references/features-conditional.md1.1 KB
    • references/features-decorator.md1 KB
    • references/features-enum.md1.3 KB
    • references/features-function.md2.4 KB
    • references/features-interface.md2 KB
    • references/features-loop.md2 KB
    • references/features-module-namespace.md2 KB
    • references/features-object.md2.7 KB
    • references/features-statement.md1 KB
    • references/features-switch.md1.4 KB
    • references/features-try.md1.7 KB
    • references/features-type.md2.9 KB
    • references/features-utils.md2.3 KB
    • SKILL.md3.7 KB

    Origin and licence

    Listed unmodified

    Author
    hairyf
    Source
    github.com/hairyf/knitwork-x/tree/5866b9f66edd9ad31717f3033889fdb8b56e3863/skills/knitwork-x
    Licence
    MIT

    Notice

    « knitwork-x » (hairyf, 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.