/hairyf:knitwork-xfrom hairyf
Utilities to generate JavaScript and TypeScript code programmatically. Use when building code generators, AST-to-code output, or dynamic source generation.
Ships in hairyf. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
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).
| 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 |
| Topic | Description | Reference |
|---|---|---|
| Class | genClass, genConstructor, genProperty, genMethod, getter/setter | features-class |
| Interface | genInterface, genIndexSignature | features-interface |
| Enum | genEnum, genConstEnum | features-enum |
| Function | genFunction, genArrowFunction, genBlock, genParam | features-function |
| Type | genTypeAlias, genUnion, genIntersection, genMappedType, etc. | features-type |
| Conditional | genConditionalType, genTernary | features-conditional |
| Decorator | genDecorator | features-decorator |
| Module & Namespace | genModule, genNamespace, genDeclareNamespace | features-module-namespace |
| Condition | genIf, genElse, genElseIf | features-condition |
| Try | genTry, genCatch, genFinally | features-try |
| Loop | genFor, genForOf, genWhile, genDoWhile | features-loop |
| Switch | genSwitch, genCase, genDefault | features-switch |
| Statement | genReturn, genThrow, genPrefixedBlock | features-statement |
| Object & Serialization | genObject, genArray, genMap, genSet, genTypeObject | features-object |
| Utils | genComment, genKey, genLiteral, genRegExp, wrapInDelimiters | features-utils |
gen* function returns a string (code fragment).options object (e.g. export, singleQuotes, indent); default to {}.indent as the last parameter; use indent + " " for nested blocks.genString(input, options) for quoted/escaped output so singleQuotes is respected.gen* outputs (e.g. genClass(..., [genConstructor(...)])) to build larger snippets.GENERATION.md (opens in a new tab)references/core-design-guidelines.md (opens in a new tab)references/core-esm.md (opens in a new tab)references/core-overview.md (opens in a new tab)references/core-string.md (opens in a new tab)references/core-variable.md (opens in a new tab)references/features-class.md (opens in a new tab)references/features-condition.md (opens in a new tab)references/features-conditional.md (opens in a new tab)references/features-decorator.md (opens in a new tab)references/features-enum.md (opens in a new tab)references/features-function.md (opens in a new tab)references/features-interface.md (opens in a new tab)references/features-loop.md (opens in a new tab)references/features-module-namespace.md (opens in a new tab)references/features-object.md (opens in a new tab)references/features-statement.md (opens in a new tab)references/features-switch.md (opens in a new tab)references/features-try.md (opens in a new tab)references/features-type.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
26 skills in this plugin
/arch-tsdown-cliTypeScript CLI starter using tsdown. Use when scaffolding or maintaining an npm CLI package with tsdown, pnpm, Vitest, and npm Trusted Publisher./arch-tsdown-monorepopnpm monorepo starter for TypeScript libraries with tsdown per package. Use when scaffolding or maintaining a multi-package TS/ESM repo with workspace deps and npm Trusted Publisher./create-skillGuide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations./create-skill-from-repoBootstraps modular Agent Skills from any repository. Clones the source to `sources/`, extracts core documentation into categorized references under `skills/`, and registers the output in the workspace `AGENTS.md`./github-workflowStandard flow from any task source (link or description) to creating a PR: resolve task, create branch and TODO.md, delegate fix to SubAgent (TODO.md), then commit and create PR against origin only. Use find-skills to discover data-source query methods; after confirmation save to global config so the discovery step can be skipped next time. Use when the user provides a task link/description, asks to 'follow GitHub workflow', or 'create PR from task'./hairyHairy's {Opinionated} preferences and best practices for web developmentnpx claudepluginhub ulpi-io/plugin-marketplace --plugin hairyf