Npx CLI
jwynia/agent-skills
Build and publish npx-executable CLI tools using Bun as the primary toolchain with npm-compatible output.
Agent skill
by antfu-collective in antfu-collective/eslint-vitest-rule-tester
Help users test ESLint rules with Vitest, supporting snapshot testing and custom assertions
$ npx skills add antfu-collective/eslint-vitest-rule-tester --skill eslint-vitest-rule-tester -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install antfu-collective/eslint-vitest-rule-tester eslint-vitest-rule-tester --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/antfu-collective/eslint-vitest-rule-tester.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/eslint-vitest-rule-tester .claude/skills/eslint-vitest-rule-tester && rm -rf skills-srcUse ~/.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/
Install the "eslint-vitest-rule-tester" agent skill from https://github.com/antfu-collective/eslint-vitest-rule-tester/tree/main/skills/eslint-vitest-rule-tester into .claude/skills/eslint-vitest-rule-tester/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "eslint-vitest-rule-tester", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/antfu-collective/eslint-vitest-rule-tester/tree/main/skills/eslint-vitest-rule-testerType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add antfu-collective/eslint-vitest-rule-tester --skill eslint-vitest-rule-tester -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install antfu-collective/eslint-vitest-rule-tester eslint-vitest-rule-tester --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/antfu-collective/eslint-vitest-rule-tester.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/eslint-vitest-rule-tester .agents/skills/eslint-vitest-rule-tester && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "eslint-vitest-rule-tester" agent skill from https://github.com/antfu-collective/eslint-vitest-rule-tester/tree/main/skills/eslint-vitest-rule-tester into .agents/skills/eslint-vitest-rule-tester/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "eslint-vitest-rule-tester", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add antfu-collective/eslint-vitest-rule-tester --skill eslint-vitest-rule-tester -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install antfu-collective/eslint-vitest-rule-tester eslint-vitest-rule-tester --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/antfu-collective/eslint-vitest-rule-tester.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/eslint-vitest-rule-tester .cursor/skills/eslint-vitest-rule-tester && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "eslint-vitest-rule-tester" agent skill from https://github.com/antfu-collective/eslint-vitest-rule-tester/tree/main/skills/eslint-vitest-rule-tester into .cursor/skills/eslint-vitest-rule-tester/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "eslint-vitest-rule-tester", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/antfu-collective/eslint-vitest-rule-tester.git --path skills/eslint-vitest-rule-tester--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add antfu-collective/eslint-vitest-rule-tester --skill eslint-vitest-rule-tester -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install antfu-collective/eslint-vitest-rule-tester eslint-vitest-rule-tester --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/antfu-collective/eslint-vitest-rule-tester.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/eslint-vitest-rule-tester .gemini/skills/eslint-vitest-rule-tester && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "eslint-vitest-rule-tester" agent skill from https://github.com/antfu-collective/eslint-vitest-rule-tester/tree/main/skills/eslint-vitest-rule-tester into .gemini/skills/eslint-vitest-rule-tester/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "eslint-vitest-rule-tester", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install antfu-collective/eslint-vitest-rule-tester eslint-vitest-rule-testerInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add antfu-collective/eslint-vitest-rule-tester --skill eslint-vitest-rule-tester -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/antfu-collective/eslint-vitest-rule-tester.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/eslint-vitest-rule-tester .github/skills/eslint-vitest-rule-tester && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "eslint-vitest-rule-tester" agent skill from https://github.com/antfu-collective/eslint-vitest-rule-tester/tree/main/skills/eslint-vitest-rule-tester into .github/skills/eslint-vitest-rule-tester/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "eslint-vitest-rule-tester", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add antfu-collective/eslint-vitest-rule-tester --skill eslint-vitest-rule-tester -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install antfu-collective/eslint-vitest-rule-tester eslint-vitest-rule-tester --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/antfu-collective/eslint-vitest-rule-tester.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/eslint-vitest-rule-tester .opencode/skills/eslint-vitest-rule-tester && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "eslint-vitest-rule-tester" agent skill from https://github.com/antfu-collective/eslint-vitest-rule-tester/tree/main/skills/eslint-vitest-rule-tester into .opencode/skills/eslint-vitest-rule-tester/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "eslint-vitest-rule-tester", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
eslint-vitest-rule-testerHelp users test ESLint rules with Vitest, supporting snapshot testing and custom assertions
Eslint Vitest Rule Tester is an agent skill from antfu-collective/eslint-vitest-rule-tester. Help users test ESLint rules with Vitest, supporting snapshot testing and custom assertions
Its SKILL.md is about 1.3k 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 Linting and formatting. It works with Vitest, ESLint and TypeScript. The repository describes itself as: ESLint rule tester with Vitest, with more powerful and friendly APIs. The licence is MIT.
2 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 8b669e7. It shows what the files ask for, not the result of running them.
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.
Shell commands in SKILL.md call:
vitestFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Eslint Vitest Rule Tester loads about 1.3k tokens when it runs. Until then it costs about 29 tokens; SKILL.md has 347 words of instructions outside code blocks.
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.
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.
The full file from antfu-collective/eslint-vitest-rule-tester at commit 8b669e7, republished under its MIT licence (© antfu-collective). 347 words, ~1,280 tokens.
.claude/skills/eslint-vitest-rule-tester/SKILL.md (or your agent's skills folder).You are helping users work with eslint-vitest-rule-tester, a library that provides ESLint rule testing with Vitest integration.
Two testing approaches:
run({ name, rule, valid, invalid, ...config }) - All-in-one object style (config directly in object)createRuleTester({ name, rule, configs }) - Returns { valid, invalid } for explicit Vitest describe/it blocks (note: configs key, not languageOptions)Key extensions:
output and errors fields can be functions for custom assertions and snapshotsonResult hook for full result object validationglobals: true required in Vitest configIdentify testing style first:
run() for simplicity (see Pattern 1 below)createRuleTester() for explicit Vitest test blocks with individual it() tests (Pattern 3)Configuration:
languageOptions.parser: tsParser for TypeScript (import from @typescript-eslint/parser)languageOptions.parserOptions for JS options (ecmaVersion, sourceType)createRuleTester, config goes under configs key, not at top levelType safety:
satisfies TestCasesOptions['valid'] for valid test arrayssatisfies TestCasesOptions['invalid'] for invalid test arraysrun() (see Pattern 1)Snapshots:
onResult hook with toMatchSnapshot() for all invalid cases (Pattern 1)output/errors with toMatchInlineSnapshot() for inline snapshots (Pattern 2)toMatchInlineSnapshot() over toMatchSnapshot() when possible for better visibilityCommon patterns:
// Pattern 1: run() with extracted test cases (from top-level-function.test.ts)
import type { TestCasesOptions } from 'eslint-vitest-rule-tester'
import { run } from 'eslint-vitest-rule-tester'
import { expect } from 'vitest'
import * as tsParser from '@typescript-eslint/parser'
const valids = [
'function foo() {}',
// allow arrow function inside function
'function foo() { const bar = () => {} }',
] satisfies TestCasesOptions['valid']
const invalids = [
{
code: 'const foo = () => {}',
output: 'function foo () {}',
errors: [{ messageId: 'topLevelFunctionDeclaration' }],
},
] satisfies TestCasesOptions['invalid']
run({
name: 'top-level-function',
rule,
languageOptions: { parser: tsParser },
valid: valids,
invalid: invalids,
onResult(_case, result) {
if (_case.type === 'invalid')
expect(result.output).toMatchSnapshot()
},
})
// Pattern 2: Function-based output/errors (from README)
run({
name: 'rule-name',
rule,
invalid: [
{
code: 'let foo = 1',
output(output) {
expect(output.slice(0, 3)).toBe('let')
expect(output).toMatchInlineSnapshot(`"const foo = 1;"`)
},
errors(errors) {
expect(errors).toHaveLength(1)
expect(errors.map(e => e.messageId))
.toMatchInlineSnapshot(`["preferConst"]`)
},
},
],
})
// Pattern 3: Explicit test suites (from README)
import { createRuleTester } from 'eslint-vitest-rule-tester'
import { describe, it } from 'vitest'
describe('rule-name', () => {
const { valid, invalid } = createRuleTester({
name: 'rule-name',
rule,
configs: {
languageOptions: {
parserOptions: { ecmaVersion: 2020, sourceType: 'module' },
},
},
})
it('valid case 1', () => {
valid('const foo = 1')
})
it('invalid case 1 with snapshot', async () => {
const { result } = await invalid({
code: 'const foo = 1',
errors: ['error-message-id'],
})
expect(result.output).toMatchSnapshot()
})
})package.jsonvitest -u to update snapshotslanguageOptions.parser for TypeScript/JSXeslint-vitest-rule-tester, not eslintvalids and invalids as constants with satisfies for type safety// allow arrow function inside function)onResult hook for bulk snapshot testing of all invalid cases@typescript-eslint/parser as tsParser and use in languageOptions.parsererrors: [{ messageId: 'errorId' }] for structured errors, or errors: ['errorId'] for simple cases© antfu-collective, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in skills/eslint-vitest-rule-tester of antfu-collective/eslint-vitest-rule-tester.
Open the folder on GitHubat commit 8b669e7
Eslint Vitest Rule Tester 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Eslint Vitest Rule Tester this skillantfu-collective/eslint-vitest-rule-tester | 142 | — | ~1.3k | Automated safety check: Pass | MIT | |
| Npx CLIjwynia/agent-skills | 170 | — | ~2.4k | Automated safety check: Pass | None | |
| Typescript ToolingHoangNguyen0403/agent-skills-standard | 572 | — | ~688 | Automated safety check: Pass | MIT | |
| Create Saleor Packagesaleor/apps | 162 | — | ~608 | Automated safety check: Pass | Custom licence | |
| npm Packagejwynia/agent-skills | 170 | — | ~2.1k | Automated safety check: Pass | None | |
| Ha Frontend Testinghome-assistant/frontend | 5.7k | — | ~1.7k | Automated safety check: Pass | Apache-2.0 |
jwynia/agent-skills
Build and publish npx-executable CLI tools using Bun as the primary toolchain with npm-compatible output.
HoangNguyen0403/agent-skills-standard
Development tools, linting, and build config for TypeScript.
saleor/apps
Scaffold a new shared package in the saleor-apps monorepo under ./packages/.
jwynia/agent-skills
Build and publish npm packages using Bun as the primary toolchain with npm-compatible output.
home-assistant/frontend
Home Assistant frontend testing and validation workflow. An agent skill from home-assistant/frontend.
artcc/freelingo
A skill your agent uses when the user asks to run tests, ejecutar tests, lanzar tests, pytest, vitest, check types, typecheck, lint, or verify the codebase.
Works with
Categories
Help users test ESLint rules with Vitest, supporting snapshot testing and custom assertions. Eslint Vitest Rule Tester is an agent skill from antfu-collective/eslint-vitest-rule-tester.
Eslint Vitest Rule Tester fits situations like: tasks that involve Unit testing; tasks that involve Linting and formatting.
Run `npx skills add antfu-collective/eslint-vitest-rule-tester --skill eslint-vitest-rule-tester -a claude-code`. Or copy the skill folder (skills/eslint-vitest-rule-tester in antfu-collective/eslint-vitest-rule-tester) into .claude/skills/eslint-vitest-rule-tester in your project. Claude Code loads it when a task matches its description.
Run `npx skills add antfu-collective/eslint-vitest-rule-tester --skill eslint-vitest-rule-tester -a codex`. Or copy the skill folder (skills/eslint-vitest-rule-tester in antfu-collective/eslint-vitest-rule-tester) into .agents/skills/eslint-vitest-rule-tester in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add antfu-collective/eslint-vitest-rule-tester --skill eslint-vitest-rule-tester -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/eslint-vitest-rule-tester, .gemini/skills/eslint-vitest-rule-tester, .github/skills/eslint-vitest-rule-tester and .opencode/skills/eslint-vitest-rule-tester in your project.
Going by SKILL.md and its folder, Eslint Vitest Rule Tester needs the command-line tools its instructions call (vitest).
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.
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.
Eslint Vitest Rule Tester is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.3k tokens (SKILL.md is roughly 5.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Eslint Vitest Rule Tester: Npx CLI (jwynia/agent-skills, 170 stars), Typescript Tooling (HoangNguyen0403/agent-skills-standard, 572 stars), Create Saleor Package (saleor/apps, 162 stars) and npm Package (jwynia/agent-skills, 170 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
antfu-collective (a GitHub organization) maintains it in antfu-collective/eslint-vitest-rule-tester, which has 142 GitHub stars. The repository was last updated on September 10, 2026.
Source: antfu-collective/eslint-vitest-rule-tester on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.