Agent skill

Rezi Write Tests

by RtlZeroMemory in RtlZeroMemory/Rezi

Write tests for Rezi widgets, screens, or app logic using createTestRenderer and node:test.

Apache-2.0Auto-check passedTesting & QA

Install Rezi Write Tests

skills CLI
$ npx skills add RtlZeroMemory/Rezi --skill rezi-write-tests -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install RtlZeroMemory/Rezi rezi-write-tests --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/RtlZeroMemory/Rezi.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.codex/skills/rezi-write-tests .claude/skills/rezi-write-tests && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
rezi-write-tests
GitHub stars
675
Token cost
~951 tokens
SKILL.md length
242 words
Files
1
Skills in repo
10
Repo updated
First seen
Licence
Apache-2.0

At a glance

Write tests for Rezi widgets, screens, or app logic using createTestRenderer and node:test.

  • Works in 10 steps: Create test file in the appropriate… → Use createTestRenderer() for… → Test state logic by testing reducer… → …
  • Tasks that involve Test generation
  • SKILL.md covers When to use, Source of truth, Steps and Running tests, plus 1 more section
  • Calls node

What it does

Rezi Write Tests is an agent skill from RtlZeroMemory/Rezi. Write tests for Rezi widgets, screens, or app logic using createTestRenderer and node:test.

Its SKILL.md is about 950 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Testing & QA, covering Test generation. The repository describes itself as: Build TypeScript TUI backed by fast native rendering engine. The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve Test generation

Example prompts

  • “/rezi-write-tests”

Requirements

  • Pre-approved tools (allowed-tools): Read, Glob, Grep, Edit, Write, Bash(node scripts/run-tests.mjs*), Bash(node --test *)

Workflow steps

10 steps, taken from the first numbered list in SKILL.md.

  1. Create test file in the appropriate tests/ directory
  2. Use createTestRenderer() for widget/render tests
  3. Test state logic by testing reducer functions directly
  4. Use result.toText() for snapshot-style assertions
  5. Use result.findById() to locate specific nodes in the render tree
  6. Use golden frame snapshots for visual regression
  7. Run snapshot CLI for bulk capture/verify
  8. For animation features, cover
  9. For extended routed actions, verify UiEvent payloads for widgets that emit non-press actions
  10. For animation hook behavior, test

What it can do on your machine

Read from SKILL.md and the folder at commit 671a8a2. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Glob
    • Grep
    • Edit
    • Write
    • Bash(node scripts/run-tests.mjs*)
    • Bash(node --test *)

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • node

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Rezi Write Tests loads about 951 tokens when it runs. Until then it costs about 27 tokens; SKILL.md has 242 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~27
When it runs · the whole SKILL.md, loaded when a task matches
~951

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from RtlZeroMemory/Rezi at commit 671a8a2, republished under its Apache-2.0 licence (© RtlZeroMemory). 242 words, ~951 tokens.

Download SKILL.mdSave it as .claude/skills/rezi-write-tests/SKILL.md (or your agent's skills folder).
name
rezi-write-tests
description
Write tests for Rezi widgets, screens, or app logic using createTestRenderer and node:test.
allowed-tools
Read, Glob, Grep, Edit, Write, Bash(node scripts/run-tests.mjs*), Bash(node --test *)
user-invocable
true
argument-hint
[file-or-widget-to-test]
metadata.short-description
Write tests

When to use

Use this skill when:

  • Writing tests for Rezi widgets or components
  • Testing app state logic (reducers)
  • Testing keybinding resolvers
  • Need snapshot-style output assertions

Source of truth

  • packages/core/src/testing/ — test utilities (createTestRenderer, etc.)
  • packages/core/src/widgets/__tests__/ — existing widget tests (use as examples)
  • packages/core/src/widgets/__tests__/composition.animationHooks.test.ts — animation hook test patterns
  • packages/core/src/app/__tests__/widgetRenderer.transition.test.ts — ui.box transition expectations
  • scripts/run-tests.mjs — test runner
  • packages/core/src/testing/snapshot.ts — golden frame snapshot utilities (captureSnapshot, serializeSnapshot, diffSnapshots)
  • scripts/rezi-snap.mjs — CLI for snapshot capture and verification

Steps

  1. Create test file in the appropriate __tests__/ directory

  2. Use createTestRenderer() for widget/render tests:

    typescript
    import { describe, it } from "node:test";
    import * as assert from "node:assert/strict";
    import { createTestRenderer, ui } from "@rezi-ui/core";
    
    describe("MyWidget", () => {
      it("renders correctly", () => {
        const r = createTestRenderer({ viewport: { cols: 80, rows: 24 } });
        const result = r.render(ui.text("hello"));
        assert.ok(result.findText("hello"));
      });
    });
  3. Test state logic by testing reducer functions directly:

    typescript
    it("increments count", () => {
      const state = reducer({ count: 0 }, { type: "increment" });
      assert.strictEqual(state.count, 1);
    });
  4. Use result.toText() for snapshot-style assertions

  5. Use result.findById() to locate specific nodes in the render tree

  6. Use golden frame snapshots for visual regression:

    typescript
    import { captureSnapshot, serializeSnapshot, diffSnapshots, parseSnapshot } from "@rezi-ui/core";
    
    const snapshot = captureSnapshot("my-scene", myView(state), { viewport: { cols: 80, rows: 24 }, theme }, "dark");
    const text = serializeSnapshot(snapshot);
    // Compare with stored snapshot using diffSnapshots()
  7. Run snapshot CLI for bulk capture/verify:

    bash
    node scripts/rezi-snap.mjs --update    # Capture new snapshots
    node scripts/rezi-snap.mjs --verify    # Verify against stored
  8. For animation features, cover:

    • mount value
    • retarget while running
    • cleanup on unmount (no timer leak)
    • property filtering (position / size / opacity) for ui.box transitions
  9. For extended routed actions, verify UiEvent payloads for widgets that emit non-press actions:

    • checkbox emits action: "toggle" with checked
    • virtualList emits action: "select" with index
    • table emits action: "rowPress" with rowIndex
    • radio/select flows emit action: "change"
  10. For animation hook behavior, test:

  • supported easing presets (linear, quad, cubic) resolve as expected
  • retargeted mid-flight runs continue smoothly without jumping
  • looping sequences (loop: true) remain active and deterministic

Running tests

bash
# Full suite
node scripts/run-tests.mjs

# Single file
node --test path/to/test.ts

Verification

  • All new tests pass
  • No existing tests broken
  • Tests are deterministic (bounded timers/explicit waits, no randomness)
  • Golden snapshots match expected output (if applicable)

© RtlZeroMemory, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .codex/skills/rezi-write-tests of RtlZeroMemory/Rezi.

Open the folder on GitHubat commit 671a8a2

Compare with similar skills

Rezi Write Tests next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Rezi Write Tests compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Rezi Write Tests this skillRtlZeroMemory/Rezi675—~951Automated safety check: PassApache-2.0
Emcaklofas/kicad-happy1.4k1 repos~2.8kAutomated safety check: PassMIT
Swig Testswig/swig6.3k—~2.3kAutomated safety check: PassCustom licence
Generate Test Cases342164796/generate-test-cases1191 repos~2.9kAutomated safety check: PassNone
Verify Cc Safety Netkenryu42/cc-safety-net1.6k—~2kAutomated safety check: PassMIT
Wioworkersio/skills190—~5.8kAutomated safety check: PassMIT

Similar skills

  • Emc

    aklofas/kicad-happy

    EMC pre-compliance risk analysis for KiCad PCB designs — 18 check categories, 44 rule IDs covering ground planes, decoupling, I/O filtering, switching harmonics, clock routing, differential pair…

    1.4k GitHub starsUsed in 1 repo~2.8k tokens
    Testing & QAAuto-check passed
  • Swig Test

    swig/swig

    Run SWIG test suite for specific languages. An agent skill from swig/swig.

    6.3k GitHub stars~2.3k tokensUpdated yesterday
    Testing & QAAuto-check passed
  • Generate Test Cases

    342164796/generate-test-cases

    自主学习型测试文档生成器。从需求文档(Markdown)生成测试用例 XMind 文件,支持持久化记忆和持续学习。当用户提到"生成测试用例"、"根据需求生成测试"时触发。

    119 GitHub starsUsed in 1 repo~2.9k tokens
    Testing & QAAuto-check passed
  • Verify Cc Safety Net

    kenryu42/cc-safety-net

    Launch and drive the real cc-safety-net CLI — the hook decision path, explain, status/doctor, logs, and the local policy GUI — against an isolated home, capturing evidence.

    1.6k GitHub stars~2k tokensUpdated today
    Testing & QAAuto-check passed
  • Wio

    workersio/skills

    Testing workflow skill for finding high-value test candidates, writing focused tests, generating realistic workloads, reviewing test value, and diagnosing test-suite health.

    190 GitHub stars~5.8k tokensUpdated 2 mo ago
    Testing & QAAuto-check passed
  • File Server

    microsoft/WindowsProtocolTestSuites

    Official

    ALWAYS LOAD THIS SKILL when working with FileServer, SMB, SMB2, SMB3, CIFS, file sharing, MS-SMB2, MS-FSCC, MS-FSA, MS-DFSC, MS-FSRVP, MS-RSVD, MS-SQOS, or any file server protocol test…

    567 GitHub stars~4.1k tokensUpdated 23 days ago
    Testing & QAAuto-check passed

More from RtlZeroMemory/Rezi

All 10 skills in this repo
  • Rezi Add Widget

    RtlZeroMemory/Rezi

    Add a new widget type to the Rezi framework. An agent skill from RtlZeroMemory/Rezi.

    675 GitHub stars~815 tokensUpdated 3 mo ago
    Auto-check passed
  • Rezi Create Screen

    RtlZeroMemory/Rezi

    Create a new screen/page for a Rezi TUI application. An agent skill from RtlZeroMemory/Rezi.

    675 GitHub stars~982 tokensUpdated 3 mo ago
    Auto-check passed
  • Rezi Data Table

    RtlZeroMemory/Rezi

    Add a data table with sorting, selection, and keyboard navigation.

    675 GitHub stars~480 tokensUpdated 3 mo ago
    Auto-check passed
  • Rezi Debug Rendering

    RtlZeroMemory/Rezi

    Debug rendering and layout issues in Rezi apps. An agent skill from RtlZeroMemory/Rezi.

    675 GitHub stars~991 tokensUpdated 3 mo ago
    Auto-check passed
  • Rezi Forms

    RtlZeroMemory/Rezi

    Set up form input handling with validation and submission. An agent skill from RtlZeroMemory/Rezi.

    675 GitHub stars~831 tokensUpdated 3 mo ago
    Auto-check passed
  • Rezi Keybindings

    RtlZeroMemory/Rezi

    Set up keyboard shortcuts and chord bindings for a Rezi app.

    675 GitHub stars~497 tokensUpdated 3 mo ago
    Auto-check passed

Categories

Questions about Rezi Write Tests

What does Rezi Write Tests do?

Write tests for Rezi widgets, screens, or app logic using createTestRenderer and node:test. Rezi Write Tests is an agent skill from RtlZeroMemory/Rezi. Write tests for Rezi widgets, screens, or app logic using createTestRenderer and node:test.

When should I use Rezi Write Tests?

Rezi Write Tests fits situations like: tasks that involve Test generation.

How do I install Rezi Write Tests in Claude Code?

Run `npx skills add RtlZeroMemory/Rezi --skill rezi-write-tests -a claude-code`. Or copy the skill folder (.codex/skills/rezi-write-tests in RtlZeroMemory/Rezi) into .claude/skills/rezi-write-tests in your project. Claude Code loads it when a task matches its description.

How do I install Rezi Write Tests in Codex?

Run `npx skills add RtlZeroMemory/Rezi --skill rezi-write-tests -a codex`. Or copy the skill folder (.codex/skills/rezi-write-tests in RtlZeroMemory/Rezi) into .agents/skills/rezi-write-tests in your project. Codex loads it when a task matches its description.

Can I use Rezi Write Tests in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add RtlZeroMemory/Rezi --skill rezi-write-tests -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/rezi-write-tests, .gemini/skills/rezi-write-tests, .github/skills/rezi-write-tests and .opencode/skills/rezi-write-tests in your project.

What does Rezi Write Tests need to run?

Going by SKILL.md and its folder, Rezi Write Tests needs the command-line tools its instructions call (node). Its frontmatter pre-approves these tools: Read, Glob, Grep, Edit, Write, Bash(node scripts/run-tests.mjs*), Bash(node --test *).

Does Rezi Write Tests access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Rezi Write Tests safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Rezi Write Tests use?

Rezi Write Tests is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Rezi Write Tests use?

About 951 tokens (SKILL.md is roughly 3.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Rezi Write Tests?

Skills that share tags, products or a category with Rezi Write Tests: Emc (aklofas/kicad-happy, 1.4k stars), Swig Test (swig/swig, 6.3k stars), Generate Test Cases (342164796/generate-test-cases, 119 stars) and Verify Cc Safety Net (kenryu42/cc-safety-net, 1.6k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Rezi Write Tests?

RtlZeroMemory (a GitHub user) maintains it in RtlZeroMemory/Rezi, which has 675 GitHub stars. The repository holds 10 skills in this directory. The repository was last updated on June 17, 2026.

Source: RtlZeroMemory/Rezi on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.