knitwork-x
Installation
SKILL.md
knitwork-x provides programmatic code generation for JavaScript and TypeScript. It is forked from knitwork and adds comprehensive TypeScript helpers: ESM (import/export), strings, variables, classes, interfaces, functions, types, control flow (if/try/loop/switch), and serialization (object/array/map/set). All gen* functions return strings suitable for splicing into source; they are pure and do not mutate inputs.
Use this skill when an agent needs to generate code strings (e.g. for codegen tools, plugins, or dynamic module output).
Core References
| Topic | Description | Reference |
|---|---|---|
| Overview | Purpose, install, when to use | core-overview |
| ESM | Import, export, default export, dynamic import | core-esm |
| String | genString, escapeString, genTemplateLiteral | core-string |
| Variable | genVariable, genVariableName | core-variable |
| Design Guidelines | Naming, params, options (for contributors) | core-design-guidelines |
Features
| Topic | Description | Reference |
|---|---|---|
| Class | genClass, genConstructor, genProperty, genMethod, getter/setter | features-class |