·codegen-over-complex-types
</>

codegen-over-complex-types

当类型变得极其复杂时使用。当类型镜像外部模式时使用。在维护类型到架构映射时使用。当类型需要广泛的类型级逻辑时使用。当类型偏离数据源时使用。

5安装·0热度·@marius-townhouse

安装

$npx skills add https://github.com/marius-townhouse/effective-typescript-skills --skill codegen-over-complex-types

如何安装 codegen-over-complex-types

通过命令行快速安装 codegen-over-complex-types AI 技能到你的开发环境

  1. 打开终端: 打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等)
  2. 运行安装命令: 复制并运行以下命令:npx skills add https://github.com/marius-townhouse/effective-typescript-skills --skill codegen-over-complex-types
  3. 验证安装: 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

来源:marius-townhouse/effective-typescript-skills。

SKILL.md

查看原文

Sometimes the best type-level code is no type-level code at all. When types become extremely complex, when they mirror external schemas (APIs, databases, protocols), or when they need to stay synchronized with changing external sources, code generation is often a better solution than sophisticated type-level programming.

Code generation trades compile-time complexity for build-time generation, often resulting in simpler, more maintainable code that stays in sync with its source of truth.

When types become too complex or must stay synchronized with external sources, generate them from schemas rather than writing sophisticated type-level code.

当类型变得极其复杂时使用。当类型镜像外部模式时使用。在维护类型到架构映射时使用。当类型需要广泛的类型级逻辑时使用。当类型偏离数据源时使用。 来源:marius-townhouse/effective-typescript-skills。

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/marius-townhouse/effective-typescript-skills --skill codegen-over-complex-types
分类
</>开发工具
认证
收录时间
2026-02-26
更新时间
2026-03-10

Browse more skills from marius-townhouse/effective-typescript-skills

快速解答

什么是 codegen-over-complex-types?

当类型变得极其复杂时使用。当类型镜像外部模式时使用。在维护类型到架构映射时使用。当类型需要广泛的类型级逻辑时使用。当类型偏离数据源时使用。 来源:marius-townhouse/effective-typescript-skills。

如何安装 codegen-over-complex-types?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/marius-townhouse/effective-typescript-skills --skill codegen-over-complex-types 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

这个 Skill 的源码在哪?

https://github.com/marius-townhouse/effective-typescript-skills