Test Writing Workflow
iOfficeAI/AionUi
Sets the test-writing workflow for the repository: risk-first scenario lists, behavior-focused Vitest tests, a full run before each commit and a coverage target.
Enforce AIRI's testing and Vitest practices in the AIRI monorepo.
$ npx skills add moeru-ai/airi --skill enforce-rules-for-vitest -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install moeru-ai/airi enforce-rules-for-vitest --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/moeru-ai/airi.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/enforce-rules-for-vitest .claude/skills/enforce-rules-for-vitest && 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 "enforce-rules-for-vitest" agent skill from https://github.com/moeru-ai/airi/tree/main/.agents/skills/enforce-rules-for-vitest into .claude/skills/enforce-rules-for-vitest/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "enforce-rules-for-vitest", 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/moeru-ai/airi/tree/main/.agents/skills/enforce-rules-for-vitestType 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 moeru-ai/airi --skill enforce-rules-for-vitest -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install moeru-ai/airi enforce-rules-for-vitest --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/moeru-ai/airi.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/enforce-rules-for-vitest .agents/skills/enforce-rules-for-vitest && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "enforce-rules-for-vitest" agent skill from https://github.com/moeru-ai/airi/tree/main/.agents/skills/enforce-rules-for-vitest into .agents/skills/enforce-rules-for-vitest/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "enforce-rules-for-vitest", 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 moeru-ai/airi --skill enforce-rules-for-vitest -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install moeru-ai/airi enforce-rules-for-vitest --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/moeru-ai/airi.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/enforce-rules-for-vitest .cursor/skills/enforce-rules-for-vitest && 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 "enforce-rules-for-vitest" agent skill from https://github.com/moeru-ai/airi/tree/main/.agents/skills/enforce-rules-for-vitest into .cursor/skills/enforce-rules-for-vitest/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "enforce-rules-for-vitest", 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/moeru-ai/airi.git --path .agents/skills/enforce-rules-for-vitest--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 moeru-ai/airi --skill enforce-rules-for-vitest -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install moeru-ai/airi enforce-rules-for-vitest --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/moeru-ai/airi.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/enforce-rules-for-vitest .gemini/skills/enforce-rules-for-vitest && 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 "enforce-rules-for-vitest" agent skill from https://github.com/moeru-ai/airi/tree/main/.agents/skills/enforce-rules-for-vitest into .gemini/skills/enforce-rules-for-vitest/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "enforce-rules-for-vitest", 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 moeru-ai/airi enforce-rules-for-vitestInstalls 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 moeru-ai/airi --skill enforce-rules-for-vitest -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/moeru-ai/airi.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/enforce-rules-for-vitest .github/skills/enforce-rules-for-vitest && 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 "enforce-rules-for-vitest" agent skill from https://github.com/moeru-ai/airi/tree/main/.agents/skills/enforce-rules-for-vitest into .github/skills/enforce-rules-for-vitest/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "enforce-rules-for-vitest", 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 moeru-ai/airi --skill enforce-rules-for-vitest -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install moeru-ai/airi enforce-rules-for-vitest --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/moeru-ai/airi.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/enforce-rules-for-vitest .opencode/skills/enforce-rules-for-vitest && 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 "enforce-rules-for-vitest" agent skill from https://github.com/moeru-ai/airi/tree/main/.agents/skills/enforce-rules-for-vitest into .opencode/skills/enforce-rules-for-vitest/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "enforce-rules-for-vitest", 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.
enforce-rules-for-vitestEnforce AIRI's testing and Vitest practices in the AIRI monorepo.
Enforce Rules For Vitest is an agent skill from moeru-ai/airi. Enforce AIRI's testing and Vitest practices in the AIRI monorepo. Use when you create, edit, review, or debug tests. Also use when you reproduce a reported bug or issue, change Vitest configuration, or diagnose test import and runtime-boundary failures. Also use when you mock IPC, services, providers, platform APIs, or imports.
Its SKILL.md is about 950 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `agents/openai.yaml`).
It sits in Testing & QA, covering Unit testing. It works with Vitest. The repository describes itself as: 💖🧸 Self hosted, you-owned Grok Companion, a container of souls of waifu, cyber livings to bring them into our worlds, wishing to achieve Neuro-sama's altitude. Capable of… The licence is MIT.
5 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit ec682e2. 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.
No scripts in the folder and no shell commands in SKILL.md (its code samples are typescript).
From 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.
Enforce Rules For Vitest loads about 951 tokens when it runs. Until then it costs about 89 tokens; SKILL.md has 482 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 moeru-ai/airi at commit ec682e2, republished under its MIT licence (© moeru-ai). 482 words, ~951 tokens.
.claude/skills/enforce-rules-for-vitest/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.Apply these rules to every test change in AIRI.
For an investigated bug or issue, try to add a test-only reproduction before you change production code.
When reproduction is possible, include the tracker identifier in the test case name:
Issue #<number> for a GitHub issue.Put the actual report URL in a comment directly above the regression test. Use the GitHub issue URL, Discord message or thread URL, or Linear issue URL as appropriate.
Confirm that the reproduction fails for the reported reason before you implement the fix.
After the fix, add a comment below the report URL that explains the root cause and the fix. Use this format:
// ROOT CAUSE:
//
// If XXXX, some XXX case happens.
// This happens because where line ...
//
// <before-patch behavior/code>
//
// We fixed this by XXX, XXX, XXX.
// <after-patch behavior/code>vi.fn or vi.mock. Never require a real Electron runtime.expect statements.globalThis properties or built-in modules with direct Object.defineProperty(...) mocks.node:worker_threads to load an isolated worker. You can also build a minimal CLI reproduction.Never use Vitest mocks, hoisting, dynamic imports, as unknown as, or test-only alternate import paths to conceal a real import failure.
If a test cannot import a module, investigate and fix the production boundary:
Keep the test importing the same supported boundary that production consumers use.
© moeru-ai, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 1 other file in .agents/skills/enforce-rules-for-vitest of moeru-ai/airi.
Open the folder on GitHubat commit ec682e2
Enforce Rules For Vitest 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 |
|---|---|---|---|---|---|---|
| Enforce Rules For Vitest this skillmoeru-ai/airi | 50k | — | ~951 | Automated safety check: Pass | MIT | |
| Test Writing WorkflowiOfficeAI/AionUi | 33k | 1 repos | ~1.2k | Automated safety check: Pass | Apache-2.0 | |
| Vitestsupabase/supabase | 111k | 12 repos | ~1.1k | Automated safety check: Pass | Apache-2.0 | |
| Test GuardamElnagdy/guard-skills | 1.3k | 2 repos | ~2.1k | Automated safety check: Pass | MIT | |
| Adding LLM MCP ToolsTriliumNext/Trilium | 38k | — | ~2.5k | Automated safety check: Pass | AGPL-3.0 | |
| Concept Page Test Writerleonardomso/33-js-concepts | 67k | — | ~5.5k | Automated safety check: Pass | MIT |
iOfficeAI/AionUi
Sets the test-writing workflow for the repository: risk-first scenario lists, behavior-focused Vitest tests, a full run before each commit and a coverage target.
supabase/supabase
Vitest API and config reference (Jest-compatible) — mocking with vi., spies, fake timers, coverage configuration, fixtures, snapshots, and test filtering.
amElnagdy/guard-skills
Reviews newly written or edited tests against nine rules that cut test bloat, such as mock-heavy checks and near-duplicate cases, before they are committed.
TriliumNext/Trilium
A skill your agent uses when adding, changing, or reviewing an LLM/MCP tool in Trilium (the defineTools definitions under packages/trilium-core/src/services/llm/tools/ —…
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.
archestra-ai/archestra
A skill your agent uses for test selection and quality across backend, frontend, and e2e; load its backend reference for Vitest projects, mocking, DB fixtures, and performance.
moeru-ai/airi
Write or rewrite technical text with the rules of ASD-STE100 Simplified Technical English so it is clear, unambiguous, and free of AI slop.
moeru-ai/airi
Review pending AIRI translations on Crowdin in a batch, then sync them into the repository.
moeru-ai/airi
Upload a local image or file to GitHub's user-attachments storage and return a URL suitable for issue, pull request, discussion, or comment Markdown.
moeru-ai/airi
Prepare and create an AIRI pull request with verifiable change context, architecture evidence, and required visual evidence.
moeru-ai/airi
Test AIRI display-model imports with agent-browser across stage-tamagotchi Electron, stage-web, and stage-pocket mobile web layouts.
moeru-ai/airi
A skill your agent uses when Codex needs to inspect, debug, or automate an Electron app through agent-browser and Chrome DevTools Protocol, especially when the app has multiple BrowserWindow…
Works with
Categories
Enforce AIRI's testing and Vitest practices in the AIRI monorepo. Enforce Rules For Vitest is an agent skill from moeru-ai/airi. Enforce AIRI's testing and Vitest practices in the AIRI monorepo.
Enforce Rules For Vitest fits situations like: you reproduce a reported bug; change Vitest configuration; diagnose test import and runtime-boundary failures.
Run `npx skills add moeru-ai/airi --skill enforce-rules-for-vitest -a claude-code`. Or copy the skill folder (.agents/skills/enforce-rules-for-vitest in moeru-ai/airi) into .claude/skills/enforce-rules-for-vitest in your project. Claude Code loads it when a task matches its description.
Run `npx skills add moeru-ai/airi --skill enforce-rules-for-vitest -a codex`. Or copy the skill folder (.agents/skills/enforce-rules-for-vitest in moeru-ai/airi) into .agents/skills/enforce-rules-for-vitest 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 moeru-ai/airi --skill enforce-rules-for-vitest -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/enforce-rules-for-vitest, .gemini/skills/enforce-rules-for-vitest, .github/skills/enforce-rules-for-vitest and .opencode/skills/enforce-rules-for-vitest in your project.
SKILL.md names no scripts, command-line tools or credentials: Enforce Rules For Vitest is instructions for the agent only.
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.
Enforce Rules For Vitest is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
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.
Skills that share tags, products or a category with Enforce Rules For Vitest: Test Writing Workflow (iOfficeAI/AionUi, 33k stars), Vitest (supabase/supabase, 111k stars), Test Guard (amElnagdy/guard-skills, 1.3k stars) and Adding LLM MCP Tools (TriliumNext/Trilium, 38k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
moeru-ai (a GitHub organization) maintains it in moeru-ai/airi, which has 50,267 GitHub stars. The repository holds 24 skills in this directory. The repository was last updated on October 11, 2026.
Source: moeru-ai/airi on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.