跳到技能内容
词映 AI导航
发现工具选型指南Skills 技能AI 快讯AI图片AI视频AI文档AI办公AI助手AI搜索AI编程AI音频AI设计AI智能体模型与开发AI学习模型评测AI提示词内容检测AI金融AI 3D扫描与识别其他工具跨境电商 AI
词映 AI导航
工具库Skills 技能
我的收藏
词映 AI导航
发现工具选型指南Skills 技能AI 快讯AI图片AI视频AI文档AI办公AI助手AI搜索AI编程AI音频AI设计AI智能体模型与开发AI学习模型评测AI提示词内容检测AI金融AI 3D扫描与识别其他工具跨境电商 AI
Skills directory/sampleXbro/agentsmesh/library-testing

Codex TypeScript Library Testing for Public Runtime and Type Contracts

Protect library exports with deterministic runtime, type-inference, and consumer-facing tests. Choose cases based on public behavior.

中文

Install in Codex

Codex with an agentsmesh or target TypeScript library checkout and its existing test and type-check tools.

  1. Open the pinned GitHub original and retain the complete `.agents/skills/library-testing/` directory in the checkout.
  2. Open Codex in that checkout and invoke `$library-testing` with the example task and desired output.

Example task

Give `$library-testing` an exported `groupBy` function in a practice library. Request an empty-array runtime test and a return-type inference case.

What to check

The checks protect both observed output and the published type, using the public entrypoint.

Original SKILL.md on GitHub · Updated 2026-11-13

Frequently asked question

Why test through package exports?

Consumers depend on those contracts. Export-level tests remain useful when internal files move.

Related skills from this repository

  • Professional Engineering Communication Skill for ChatGPT: Write Clear Commit Messages
Browse Codex skills in the Chinese directory
词映 AI 导航Skills 技能
工具分类全部工具已本地化技能选型指南AI 快讯