skmtc-lang-typescript

Generate TypeScript output for SKMTC generators using projection veneers and syntax helpers.

19|Updated Aug 27, 2025
One-click install
npx skills add https://github.com/skmtc/skmtc --skill skmtc-lang-typescript
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: skmtc-lang-typescript
Source: https://github.com/skmtc/skmtc/tree/main/deno/docs/skills/skmtc-lang-typescript
Command: npx skills add https://github.com/skmtc/skmtc --skill skmtc-lang-typescript

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps generator authors produce correct, maintainable TypeScript output with the SKMTC language layer, avoiding misplaced declarations, invalid imports, naming collisions, and TypeScript type-only import errors.

Core Features & Use Cases

  • Language Integration: Configure TypeScript generators with projection-base veneers, TsSnippet, language registration, and the TypeScript Lang object.
  • Output Modeling: Create files, imports, re-exports, definitions, identifiers, entity kinds, and syntax helpers through the package-owned APIs.
  • TypeScript Correctness: Handle type-only imports, TS1484 and verbatimModuleSyntax, identifier sanitization, path templates, object keys, and generated declaration boundaries.
  • Use Case: When authoring an OpenAPI generator, use this Skill to define TypeScript projections, register runtime and type imports correctly, generate sanitized schema properties, and return only expressions for the rendering driver to wrap.

Quick Start

Use the skmtc-lang-typescript skill when building or debugging a SKMTC generator that emits TypeScript, especially when working with TsSnippet, type-only imports, identifier factories, or TypeScript syntax helpers.

Frequently Asked Questions about skmtc-lang-typescript

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix TS1484 errors in generated TypeScript code?

To fix TS1484 errors in generated TypeScript code, you must apply correct type-only import handling and verbatimModuleSyntax conventions during code generation. This Skill resolves those errors by ensuring generator output properly registers type-only imports and separates declarations from runtime values.

How do I generate sanitized TypeScript identifiers from OpenAPI schema keys?

Generating sanitized TypeScript identifiers from OpenAPI schema keys requires applying identifier sanitization and naming factories during code generation. This Skill provides the language layer APIs that ensure generated object keys and schema properties conform to valid TypeScript identifier boundaries.

What is the best way to structure TypeScript imports in an OpenAPI code generator?

Structuring TypeScript imports in an OpenAPI code generator is best handled by using language-specific factories that manage cross-generator imports, type-only imports, and re-exports. This Skill provides the registration APIs needed to keep imports within their proper ownership boundaries.

How do I model TypeScript files and declarations when authoring an OpenAPI generator?

Modeling TypeScript files and declarations when authoring an OpenAPI generator involves using projection-base veneers, TsSnippet, and syntax helpers to build emitted files. This Skill applies package-owned APIs that define entity kinds and return only right-hand-side expressions for the rendering driver to wrap.

Why are my TypeScript generator output declarations and imports colliding?

TypeScript generator output declarations and imports collide when naming, schema keys, and definitions cross ownership boundaries. This Skill prevents collisions by applying language-layer projection veneers and rendering conventions that keep declarations, identifiers, and right-hand-side expressions properly separated.