The TypeScript target-language layer for SKMTC generators
(`@skmtc/lang-typescript`).
“编程与软件开发”领域的一个 Skill。已为 Claude Code, Codex, OpenCode 及另外 32 个智能体 准备好命令。
完整描述
The TypeScript target-language layer for SKMTC generators
(`@skmtc/lang-typescript`). Covers how a generator declares
TypeScript as its target language (importing the projection-base
veneers and `TsSnippet` from the lang package), what the lang package
exports (the `typescript` Lang object, the register family,
`TsFile` / `TsImport` / `TsDefinition`), entity
kinds and `Identifier` factories, the import model of emitted
TypeScript (type-only imports, TS1484 / `verbatimModuleSyntax`,
`toImport()`), the TS syntax helpers (`List`, `FunctionParameter`,
`toPathTemplate`, …), and naming/sanitization of emitted identifiers.
Use this skill alongside `skmtc-generator` whenever a generator emits
TypeScript — i.e. for almost all generator authoring today — and
specifically when the user asks about "lang-typescript", "TsSnippet",
"type-only imports", "TS1484", "import type", "where do I import List
from", "sanitizePropertyName", or anything about the *shape of the
emitted TypeScript* rather than engine behavior. Engine rules
(Projections, Snippets, cross-generator coordination, variants) live
in `skmtc-generator`. This skill is also the TEMPLATE for
future `skmtc-lang-<X>` skills, written once a language layer
leaves pre-alpha: a new language skill keeps these section
headings and replaces the answers.