agentleFS
xtermjsxtermjs/xterm.js/.agents/skills/unit-test/SKILL.md

unit-test

Skill21k starsChanged 7 months agoMITView on GitHub

Write and review xterm.js unit tests with project conventions. Use when editing `*.test.ts` files or when asked for test authoring guidelines.

13 other projects use a version of this.

Trending

Quiet since June.about the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 4 mentionsMar 2026: 4 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 1 mentionJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the xtermjs/xterm.js repository that our weekly crawl found. There is no adoption data for this file yet.

Most recently taken up by

Who's talking about xtermjs/xterm.js

The biggest 5 of 45 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 45

Talked about on GitHub, Stack Overflow, Hacker News and Bluesky (45 times).

On GitHub · 23

18 more on GitHub

On Stack Overflow · 16

11 more on Stack Overflow

On Bluesky · 1

Used with

Projects with it also use e2e-test.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • WhatIfWeDigDeeperSkill

    e2e-test

    Create Playwright e2e tests for features in isolated worktree

    Also in 4 projects that use this

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 8 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When writing unit tests, follow these rules:

    line 8
  2. Very specific:

    When writing unit tests for addons, always create a real xterm.js instance instead of mocking it.

    line 10
  3. Very specific:

    Prefer assert.ok over assert.notStrictEqual when checking something is undefined or not.

    line 11
  4. Distinctive:

    Avoid comments as most tests should be self-documenting.

    line 12

“Common” is measured: kept by at least 6 in 10 of the 8 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.