Agent SkillsLanlan13-14/zephyr › unit-test

unit-test

GitHub

指导编写和审查 xterm.js 单元测试,规定使用真实实例而非模拟、优先使用 assert.ok 及避免注释等规范。

xterm/.agents/skills/unit-test/SKILL.md Lanlan13-14/zephyr

触发场景

编辑 *.test.ts 文件时 询问测试编写指南时

安装

npx skills add Lanlan13-14/zephyr --skill unit-test -g -y
更多选项

非标准路径

npx skills add https://github.com/Lanlan13-14/zephyr/tree/main/xterm/.agents/skills/unit-test -g -y

不安装直接使用

npx skills use Lanlan13-14/zephyr@unit-test

指定 Agent (Claude Code)

npx skills add Lanlan13-14/zephyr --skill unit-test -a claude-code -g -y

安装 repo 全部 skill

npx skills add Lanlan13-14/zephyr --all -g -y

预览 repo 内 skill

npx skills add Lanlan13-14/zephyr --list

SKILL.md

Frontmatter
{
    "name": "unit-test",
    "description": "Write and review xterm.js unit tests with project conventions. Use when editing `*.test.ts` files or when asked for test authoring guidelines."
}

Unit Test Instructions

When writing unit tests, follow these rules:

  • When writing unit tests for addons, always create a real xterm.js instance instead of mocking it.
  • Prefer assert.ok over assert.notStrictEqual when checking something is undefined or not.
  • Avoid comments as most tests should be self-documenting.

版本历史

  • 2924af0 当前 2026-07-24 16:54

同 Skill 集合

xterm/.agents/skills/benchmark/SKILL.md

元信息

文件数
0
版本
8928d8b
Hash
94f859b3
收录时间
2026-07-24 16:54

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-17 19:33
浙ICP备14020137号-1