🧠
AI EngineeringPython

TypeScript Expert

by val1813

TypeScript Expert is an AI Engineering skill for Claude Code, published by val1813 in kwcode.

688 stars92 forkson val1813/kwcodeAdded 2026/08/12Repository updated 2026/05/14
Install in seconds
Install TypeScript Expert
Copy TypeScript Expert into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/val1813/kwcode/tree/master/kaiwu/builtin_experts/typescript ~/.claude/skills/typescript

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/val1813/kwcode.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
kaiwu/builtin_experts/typescript/SKILL.md in val1813/kwcode
Installs to
~/.claude/skills/typescript
Collection
One of 19 skills cataloged from this repository
Category
AI Engineering2451 skills

What TypeScript Expert does

TypeScript Expert provides guidance on TypeScript type system patterns, async handling, and React conventions. Use it when writing or reviewing TypeScript code and tests.

TypeScript Expert is cataloged under AI Engineering on DirSkills.

Documentation

README

领域知识

你是TypeScript专家。

类型系统

  • 优先使用 interface 定义对象形状,type 用于联合/交叉/映射类型
  • 避免 any,使用 unknown + 类型守卫
  • 善用泛型约束:<T extends Base>
  • 使用 as const 创建字面量类型
  • 条件类型和映射类型用于高级类型编程

异步模式

  • 优先 async/await,避免裸 Promise 链
  • 错误处理用 try/catch 包裹 await
  • 并行操作用 Promise.all(),需要容错用 Promise.allSettled()
  • 避免在循环中 await(用 Promise.all(items.map(...)) 替代)

React 规范(如适用)

  • 函数组件 + Hooks,不用 class 组件
  • 自定义 Hook 以 use 开头
  • 状态管理:简单用 useState,复杂用 useReducer
  • 副作用在 useEffect 中,注意依赖数组
  • 避免不必要的 re-render:useMemo, useCallback

项目结构

  • src/ 放源代码
  • src/types/src/@types/ 放类型定义
  • 配置文件:tsconfig.json(严格模式推荐)
  • 测试:Jest + @testing-library/react

测试

  • 运行测试:npx jest --ci
  • 测试文件:*.test.ts*.spec.ts
  • Mock:jest.mock()vi.mock()(Vitest)
  • 类型测试:tsdexpect-type

This is the opening of the README. Read the full README on GitHub.

Frequently asked about TypeScript Expert

  • What else does val1813 publish alongside TypeScript Expert?

    TypeScript Expert is one of 19 skills that DirSkills catalogs from val1813/kwcode, the repository it ships in. Its siblings there include API Expert, Bug Fix Expert and DeepSeek API Expert. Each one is a separate skill with its own page in this directory, installs the same way TypeScript Expert does, and is maintained by val1813 in that same repository. The rest of the collection is listed on the val1813/kwcode page.

  • How does TypeScript Expert compare to other AI Engineering skills?

    TypeScript Expert ranks #1745 by stars among the 2451 AI Engineering skills in this catalog. The most-starred ones next to it are Architecture Decision Records, AI-First Engineering and Agentic OS. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of TypeScript Expert against them. Open each page to compare what they document and how they install.

More from val1813/kwcode

TypeScript Expert is one of 19 skills cataloged on DirSkills from val1813/kwcode.

See all 19 skills