Agent skill

Gen Test

by Artexis10 in Artexis10/endstate-gui

Generate unit tests following project conventions. An agent skill from Artexis10/endstate-gui.

Apache-2.0Auto-check passedTesting & QA

Install Gen Test

skills CLI
$ npx skills add Artexis10/endstate-gui --skill gen-test -a claude-code

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

GitHub CLI
$ gh skill install Artexis10/endstate-gui gen-test --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/Artexis10/endstate-gui.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/gen-test .claude/skills/gen-test && 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
gen-test
GitHub stars
116
Token cost
~661 tokens
SKILL.md length
227 words
Files
1
Skills in repo
5
Repo updated
First seen
Licence
Apache-2.0

At a glance

Generate unit tests following project conventions. An agent skill from Artexis10/endstate-gui.

  • Works in 4 steps: Read the source file to understand… → Check for an existing test file… → Generate tests following project… → …
  • The user asks to create
  • Calls npx
  • Write tests for a file

What it does

Gen Test is an agent skill from Artexis10/endstate-gui. Generate unit tests following project conventions. Use when the user asks to create, generate, or write tests for a file or component.

Its SKILL.md is about 660 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 Unit testing and Test generation. It works with Tauri and Vitest. The repository describes itself as: Endstate desktop app: reinstall your apps and restore your settings on a fresh Windows PC, from one portable file. Free, open source. Built with Tauri (React + Rust). The licence is Apache-2.0.

When your agent uses it

  • The user asks to create
  • Write tests for a file

Example prompts

  • “/gen-test”

Requirements

  • Node.js

Workflow steps

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

  1. Read the source file to understand exports, types, and behavior
  2. Check for an existing test file co-located next to the source (e.g., foo.ts → foo.test.ts)
  3. Generate tests following project conventions (see below)
  4. Run the new tests to verify they pass: npx vitest run

What it can do on your machine

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

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npx

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

  • Network

    No URLs in SKILL.md. Its commands use npx, which can reach the network depending on how they are called.

    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

Gen Test loads about 661 tokens when it runs. Until then it costs about 36 tokens; SKILL.md has 227 words of instructions outside code blocks.

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

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 Artexis10/endstate-gui at commit 4bcd1ac, republished under its Apache-2.0 licence (© Artexis10). 227 words, ~661 tokens.

Download SKILL.mdSave it as .claude/skills/gen-test/SKILL.md (or your agent's skills folder).
name
gen-test
description
Generate unit tests following project conventions. Use when the user asks to create, generate, or write tests for a file or component.

Generate unit tests for the specified file or component.

Input: A file path, component name, or utility function to test. If omitted, infer from conversation context.

Steps

  1. Read the source file to understand exports, types, and behavior
  2. Check for an existing test file co-located next to the source (e.g., foo.ts → foo.test.ts)
    • If it exists, read it and add new tests rather than replacing
  3. Generate tests following project conventions (see below)
  4. Run the new tests to verify they pass: npx vitest run <test-file>

Project Conventions

  • Test files are co-located: src/lib/foo.ts → src/lib/foo.test.ts, src/components/app/bar.tsx → src/components/app/bar.test.tsx
  • Framework: Vitest + React Testing Library (jsdom environment)
  • Import from vitest: describe, it, expect, vi, beforeEach, afterEach
  • For React components, import render, screen, fireEvent, within from @/test/test-utils (NOT directly from @testing-library/react)
  • Query priority: getByRole → getByLabelText → getByText. Avoid getByTestId unless semantic queries fail. Never use snapshots.
  • Use @/ path alias for imports (maps to ./src/)
  • framer-motion is auto-mocked in vitest.setup.ts — no special handling needed
  • localStorage is auto-mocked — use helpers from @/test/localStorage-helpers if needed
  • For Tauri bridge mocking, use @/test/tauri-bridge-mock
  • Group related tests in describe blocks
  • Test names should describe behavior, not implementation

Example Structure

typescript
import { describe, it, expect, vi, beforeEach } from 'vitest';
import { render, screen, fireEvent } from '@/test/test-utils';
import { MyComponent } from './my-component';

describe('MyComponent', () => {
  it('renders the primary action button', () => {
    render(<MyComponent />);
    expect(screen.getByRole('button', { name: /action/i })).toBeInTheDocument();
  });

  it('calls onSubmit when clicked', async () => {
    const onSubmit = vi.fn();
    render(<MyComponent onSubmit={onSubmit} />);
    fireEvent.click(screen.getByRole('button', { name: /submit/i }));
    expect(onSubmit).toHaveBeenCalledOnce();
  });
});

Guardrails

  • Keep tests focused on behavior, not implementation details
  • Don't mock what you don't have to
  • Don't add tests for trivial pass-through props
  • If the source file uses shadcn/ui components, query by role (they use Radix primitives with proper ARIA)

© Artexis10, 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 .claude/skills/gen-test of Artexis10/endstate-gui.

Open the folder on GitHubat commit 4bcd1ac

Compare with similar skills

Gen Test 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.

Gen Test compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Gen Test this skillArtexis10/endstate-gui116—~661Automated safety check: PassApache-2.0
Concept Page Test Writerleonardomso/33-js-concepts67k—~5.5kAutomated safety check: PassMIT
Add UI Stringopenfootmanager/openfootmanager1.1k—~2.6kAutomated safety check: PassGPL-3.0
Caliber Testingcaliber-ai-org/ai-setup1.3k—~3.2kAutomated safety check: PassMIT
MoAI TDD Workflowmodu-ai/moai-adk1.2k—~3.1kAutomated safety check: PassApache-2.0
Verify Changesh0x91b/dev-3.0307—~1.7kAutomated safety check: PassApache-2.0

Similar skills

  • Concept Page Test Writer

    leonardomso/33-js-concepts

    Generates Vitest tests for every runnable code example on a JavaScript concept documentation page, following a four-phase extraction and conversion process.

    67k GitHub stars~5.5k tokensUpdated 28 days ago
    Testing & QAAuto-check passed
  • Add UI String

    openfootmanager/openfootmanager

    Add or change any text a player can see, in every locale the game ships in.

    1.1k GitHub stars~2.6k tokensUpdated 2 days ago
    Testing & QAAuto-check passed
  • Caliber Testing

    caliber-ai-org/ai-setup

    Writes Vitest tests following project patterns: tests/ directories, vi.mock() for module mocking with vi.hoisted() for test-time factories, global LLM mock from src/test/setup.ts, environment…

    1.3k GitHub stars~3.2k tokensUpdated 15 days ago
    Testing & QAAuto-check passed
  • MoAI TDD Workflow

    modu-ai/moai-adk

    Drives test-first development through the RED, GREEN, REFACTOR cycle, with a config switch that selects between TDD and a DDD workflow for existing code.

    1.2k GitHub stars~3.1k tokensUpdated today
    Testing & QAAuto-check passed
  • Verify Changes

    h0x91b/dev-3.0

    How to test and verify work in the dev-3.0 repo — which vitest config covers what, how to write a test that fits the house style, mocking Electrobun RPC and i18n providers, what coverage is actually…

    307 GitHub stars~1.7k tokensUpdated yesterday
    Testing & QAAuto-check passed
  • Testing Orcaq

    cin12211/orca-q

    OrcaQ-specific testing guide. An agent skill from cin12211/orca-q.

    224 GitHub stars~1.6k tokensUpdated 18 days ago
    Testing & QAAuto-check passed

More from Artexis10/endstate-gui

  • Livewire

    Artexis10/endstate-gui

    Drive the real GUI against the real engine via the standalone dev HTTP bridge (npm run dev:bridge).

    116 GitHub stars~2.9k tokensUpdated 2 days ago
    Auto-check passed
  • E2E Test

    Artexis10/endstate-gui

    Generate Playwright E2E tests following project conventions (Tauri fixture, storage isolation, helpers).

    116 GitHub stars~775 tokensUpdated 2 days ago
    Auto-check passed
  • New Component

    Artexis10/endstate-gui

    Scaffold a new React component with co-located test, shadcn/ui primitives, and barrel export registration.

    116 GitHub stars~524 tokensUpdated 2 days ago
    Auto-check passed
  • Tauri Command

    Artexis10/endstate-gui

    Scaffold a new Tauri command across Rust backend and TypeScript frontend with proper patterns.

    116 GitHub stars~606 tokensUpdated 2 days ago
    Auto-check passed

Works with

Categories

Questions about Gen Test

What does Gen Test do?

Generate unit tests following project conventions. An agent skill from Artexis10/endstate-gui. Gen Test is an agent skill from Artexis10/endstate-gui. Generate unit tests following project conventions.

When should I use Gen Test?

Gen Test fits situations like: the user asks to create; write tests for a file.

How do I install Gen Test in Claude Code?

Run `npx skills add Artexis10/endstate-gui --skill gen-test -a claude-code`. Or copy the skill folder (.claude/skills/gen-test in Artexis10/endstate-gui) into .claude/skills/gen-test in your project. Claude Code loads it when a task matches its description.

How do I install Gen Test in Codex?

Run `npx skills add Artexis10/endstate-gui --skill gen-test -a codex`. Or copy the skill folder (.claude/skills/gen-test in Artexis10/endstate-gui) into .agents/skills/gen-test in your project. Codex loads it when a task matches its description.

Can I use Gen Test 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 Artexis10/endstate-gui --skill gen-test -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/gen-test, .gemini/skills/gen-test, .github/skills/gen-test and .opencode/skills/gen-test in your project.

What does Gen Test need to run?

Going by SKILL.md and its folder, Gen Test needs the command-line tools its instructions call (npx). Our summary lists: Node.js.

Does Gen Test access the network?

SKILL.md contains no URLs. Its commands use npx, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Gen Test 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 Gen Test use?

Gen Test 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 Gen Test use?

About 661 tokens (SKILL.md is roughly 2.6k 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 Gen Test?

Skills that share tags, products or a category with Gen Test: Concept Page Test Writer (leonardomso/33-js-concepts, 67k stars), Add UI String (openfootmanager/openfootmanager, 1.1k stars), Caliber Testing (caliber-ai-org/ai-setup, 1.3k stars) and MoAI TDD Workflow (modu-ai/moai-adk, 1.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Gen Test?

Artexis10 (a GitHub user) maintains it in Artexis10/endstate-gui, which has 116 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on October 6, 2026.

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