AgentSkillsCN

ts:tooling

用于处理TypeScript工具——增量构建缓存(tsbuildinfo)、探索npm包源码、基准测试类型实例化,或编写测试。涵盖构建优化与开发工作流。

SKILL.md
--- frontmatter
name: ts:tooling
description: Use when working with TypeScript tooling — incremental build cache (tsbuildinfo), exploring npm package source code, benchmarking type instantiations, or writing tests. Covers build optimization and development workflow.

TypeScript Tooling

Topics

Buildinfo

Manage TypeScript incremental build cache — enable, disable, clear, and warm worktree cache for tsbuildinfo files.

Exploring Packages

Get npm package source code locally using npm pack for reading APIs, types, and implementation.

Benchmarking Types

Measure TypeScript type instantiations using @ark/attest — baseline expressions, type caching, and instantiation costs.

Writing Tests

Testing conventions and TDD practices — file organization, test quality, grouping, and mandatory TDD for bug fixes.