Agent SkillsLanlan13-14/zephyr › unit-test

unit-test

GitHub

提供 xterm.js 单元测试编写与审查规范,指导在编辑测试文件时遵循项目约定,如使用真实实例、优先使用 assert.ok 及避免注释。

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

Trigger Scenarios

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

Install

npx skills add Lanlan13-14/zephyr --skill unit-test -g -y
More Options

Non-standard path

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

Use without installing

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.

Version History

  • 2924af0 Current 2026-07-24 16:54

Same Skill Collection

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

Metadata

Files
0
Version
726f53c
Hash
94f859b3
Indexed
2026-07-24 16:54

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-19 10:41
浙ICP备14020137号-1 $mapa de visitantes$