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.
Invoke whenever writing, changing, reviewing, or sweeping Vitest tests in this repo.
$ npx skills add every-app/open-seo --skill test-audit -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install every-app/open-seo test-audit --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/every-app/open-seo.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/test-audit .claude/skills/test-audit && 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 "test-audit" agent skill from https://github.com/every-app/open-seo/tree/main/.agents/skills/test-audit into .claude/skills/test-audit/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "test-audit", 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/every-app/open-seo/tree/main/.agents/skills/test-auditType 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 every-app/open-seo --skill test-audit -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install every-app/open-seo test-audit --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/every-app/open-seo.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/test-audit .agents/skills/test-audit && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "test-audit" agent skill from https://github.com/every-app/open-seo/tree/main/.agents/skills/test-audit into .agents/skills/test-audit/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "test-audit", 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 every-app/open-seo --skill test-audit -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install every-app/open-seo test-audit --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/every-app/open-seo.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/test-audit .cursor/skills/test-audit && 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 "test-audit" agent skill from https://github.com/every-app/open-seo/tree/main/.agents/skills/test-audit into .cursor/skills/test-audit/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "test-audit", 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/every-app/open-seo.git --path .agents/skills/test-audit--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 every-app/open-seo --skill test-audit -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install every-app/open-seo test-audit --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/every-app/open-seo.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/test-audit .gemini/skills/test-audit && 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 "test-audit" agent skill from https://github.com/every-app/open-seo/tree/main/.agents/skills/test-audit into .gemini/skills/test-audit/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "test-audit", 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 every-app/open-seo test-auditInstalls 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 every-app/open-seo --skill test-audit -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/every-app/open-seo.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/test-audit .github/skills/test-audit && 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 "test-audit" agent skill from https://github.com/every-app/open-seo/tree/main/.agents/skills/test-audit into .github/skills/test-audit/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "test-audit", 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 every-app/open-seo --skill test-audit -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install every-app/open-seo test-audit --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/every-app/open-seo.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/test-audit .opencode/skills/test-audit && 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 "test-audit" agent skill from https://github.com/every-app/open-seo/tree/main/.agents/skills/test-audit into .opencode/skills/test-audit/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "test-audit", 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.
test-auditInvoke whenever writing, changing, reviewing, or sweeping Vitest tests in this repo.
Test Audit is an agent skill from every-app/open-seo. Invoke whenever writing, changing, reviewing, or sweeping Vitest tests in this repo. Authoring gate for new or changed tests, plus an audit workflow for low-value, implementation-coupled, or duplicative tests and the test-only production seams they keep alive. Use when asked to add tests, review tests, clean up tests, or when a PR touches .test.ts.
Its SKILL.md is about 2.8k 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. It works with Vitest. The repository describes itself as: Open source alternative to Semrush and Ahrefs. The licence is MIT.
4 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit deb4491. 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:
pnpmgitFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use pnpm and git, which can reach the network depending on how they are called.
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.
Test Audit loads about 2.8k tokens when it runs. Until then it costs about 91 tokens; SKILL.md has 1,549 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 every-app/open-seo at commit deb4491, republished under its MIT licence (© every-app). 1,549 words, ~2,823 tokens.
.claude/skills/test-audit/SKILL.md (or your agent's skills folder).Three modes, one value bar. Authoring mode gates every new or changed test at write time. Audit mode runs focused sweeps for tests that re-assert source, duplicate stronger proof, couple behavior to implementation, or keep test-only production seams alive. Campaign mode reviews every test file with a per-test verdict when the maintainer asks to prune the whole suite; see Campaign mode. Optimize for confidence, not deletion count. Land one coherent batch per PR; continue broad audits as separate follow-ups.
The repository's own rules live in the "Testing" section of AGENTS.md. This
skill is the procedure for applying them; when the two disagree, AGENTS.md
wins and this file needs an update.
Before adding a test, answer four questions. A missing answer means do not add it yet:
ga4-test-fixtures.ts, tool-test-support.ts) over a
near-duplicate test, and consolidate duplicated setup in the same change.src/; scripts/ counts.Then check the test against every junk pattern; a match fails the gate unless the retention bar names the contract it independently guards. A test that would break under behavior-preserving refactoring is asserting implementation, not behavior; rewrite it at the owning boundary before landing it.
Bug regression tests must fail on the pre-fix code for the intended reason and pass after the fix. A regression test that never demonstrably failed proves the mock, not the fix. One regression at the owner boundary covers the bug; do not replay it at every layer it crosses.
The shared checklist for both modes. The authoring gate rejects a new test that matches one; audits hunt for existing tests that do.
Repo-specific (each is a AGENTS.md rule):
await import() or vi.resetModules() without a comment explaining
which module-level state must reset;ga4Errors.ts, gscErrors.ts are the pattern);mockReset / mockClear ceremonies in beforeEach (Vitest clearMocks is
already on);select().from().where() with vi.fn()
chains); repositories are tested through services or real SQL;General:
Tests justify their maintenance cost by protecting behavior, a credible regression, or an independently meaningful contract. In an audit, an existing test that must change for behavior-preserving source reorganization is suspect, not automatically deletable; the authoring gate still rejects new ones.
Before judging a candidate, read the complete test and its production owner, the entry point, callers, callees, sibling implementations, overlapping tests, and relevant git history. When the test claims dependency-backed behavior (DataForSEO response shapes, Autumn, Better Auth, Drizzle), inspect the dependency source or types directly.
Keep discovery read-only and report evidence before editing. For broad scope, run parallel read-only lanes (Explore subagents work well):
src/server/mcp/ and src/server/mcp/tools/;src/server/lib/, src/server/auth/, src/server/billing/,
src/server/workflows/, src/serverFunctions/;src/server/features/;src/client/, src/shared/, src/lib/, src/types/, scripts/,
web/tests/, plus a cross-cutting grep sweep for the repo-specific patterns
above.Prefer a few high-confidence candidates over a large speculative inventory.
Use only when the maintainer explicitly asks for a suite-wide prune. Run the pipeline in two phases with disjoint file slices so agents never edit the same file:
*.test.ts into 6-8 slices balanced by
line count and grouped by directory. One reviewer per slice reads each test
file and its production owner completely and writes a report with a table
per file: test name, DELETE / MERGE / KEEP, one-line evidence naming the
code change that would fail it or the test that already owns it. The
report also lists test-only production seams (with callers checked in
src/, scripts/, tests/badseo/, web/), test support that becomes unused,
whole files to delete, and a "risky calls" section. Reviewers do not edit.Rules that hold throughout a campaign:
export keyword from a
helper whose remaining callers are all tests. Knip fails ci:check on the
orphaned export otherwise. Never remove parameters, delete branches, or
change behavior in the same change, even when a test looks like the only
reason the code exists; report those as follow-ups.src/routes/ and barrel files keep their exports.pnpm exec prettier --write <files>; pnpm format:write ignores
arguments and formats the whole repository.--sequence.shuffle.tests --sequence.seed=<n> runs. Removing reset
ceremony can surface latent order dependence; fix it by setting the mock's
default in beforeEach, never by restoring the ceremony.Keep a test when it independently enforces a public API, MCP tool contract, Zod boundary schema, config, migration, storage (both SQLite and Postgres), billing, auth, security, default, prompt-byte, or package contract. Also keep:
samSkills.test.ts
and the unique-index parity check in src/db/schema-parity.test.ts are this kind;Static or slow is not a deletion reason. A test that resembles implementation may still be the independent contract; prove otherwise before removing it.
Record every field before editing. A missing field means the candidate is not ready for deletion:
scripts/, tests/badseo/, and web/ (a profiling script is still a caller);Choose one coherent owner-boundary batch. Delete obsolete test-only exports,
wrappers, and dead production paths instead of preserving aliases (Knip will
flag survivors in pnpm ci:check). Move retained regressions to their
canonical owners. Consolidate repeated assertions into one table-driven case.
Prefer net-negative production LOC. Do not add replacement tests that restate the same implementation, and do not convert uncertain candidates into cleanup to increase deletion counts.
Never edit tests while Vitest is running in the checkout.
pnpm exec vitest run <path-or-filter>.pnpm sync-plugin-skills for plugin skill
drift).pnpm format:write, then pnpm ci:check (prettier, knip, tsc, oxlint,
plugin-skill sync). Knip failing on a now-unused export means delete the
export, not re-add a test.pnpm test.git diff --numstat; report production/tooling separately from
tests and test support.Commit, push, or open a PR only when authorized. Use the merge-ready skill
for the review and PR flow. If a verified finding exposes a recurring
invariant that .greptile/ does not capture, use maintain-greptile-rules;
do not promote one-off cleanups into permanent rules. Log repository friction
met along the way with papercuts.
Report:
© every-app, 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 .agents/skills/test-audit of every-app/open-seo.
Open the folder on GitHubat commit deb4491
Test Audit 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 |
|---|---|---|---|---|---|---|
| Test Audit this skillevery-app/open-seo | 23k | — | ~2.8k | 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 | |
| Control UI E2Eopenclaw/openclaw | 392k | — | ~2.9k | Automated safety check: Pass | MIT | |
| Adding LLM MCP ToolsTriliumNext/Trilium | 38k | — | ~2.5k | Automated safety check: Pass | AGPL-3.0 |
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.
openclaw/openclaw
A skill your agent uses when designing, testing, fixing, or extending the OpenClaw Control UI GUI, including UI stress-test galleries with feedback inputs, Vitest + Playwright end-to-end checks…
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.
every-app/open-seo
Log genuine, recurring repository friction to .agents/PAPERCUTS.md — confusing setup, a flaky repo command or script, a misleading in-repo error, stale generated files, or a non-obvious gotcha that…
every-app/open-seo
Test a candidate OpenSEO skill end to end by running fresh, isolated Codex sessions against the local backend and scoring the reports they save.
every-app/open-seo
Turn a rough bug report, feature request, support note, or pull request into a short, plain-language issue focused on the problem and desired behavior.
every-app/open-seo
Create or update a skill in this repository the right way — canonical home in .agents/skills, internal-vs-public marking, symlink mirroring into .claude/skills, and public docs registration for…
every-app/open-seo
Remove AI writing patterns from prose so it reads like a person wrote it.
every-app/open-seo
Triage OpenSEO production errors in Cloudflare Workers Observability — verified query recipes, counting gotchas, and a known-noise filter list applied automatically.
Works with
Categories
Invoke whenever writing, changing, reviewing, or sweeping Vitest tests in this repo. Test Audit is an agent skill from every-app/open-seo. Invoke whenever writing, changing, reviewing, or sweeping Vitest tests in this repo.
Test Audit fits situations like: asked to add tests; A PR touches .test.ts.
Run `npx skills add every-app/open-seo --skill test-audit -a claude-code`. Or copy the skill folder (.agents/skills/test-audit in every-app/open-seo) into .claude/skills/test-audit in your project. Claude Code loads it when a task matches its description.
Run `npx skills add every-app/open-seo --skill test-audit -a codex`. Or copy the skill folder (.agents/skills/test-audit in every-app/open-seo) into .agents/skills/test-audit 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 every-app/open-seo --skill test-audit -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/test-audit, .gemini/skills/test-audit, .github/skills/test-audit and .opencode/skills/test-audit in your project.
Going by SKILL.md and its folder, Test Audit needs the command-line tools its instructions call (pnpm and git).
SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. 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.
Test Audit is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.8k tokens (SKILL.md is roughly 11k 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 Test Audit: Test Writing Workflow (iOfficeAI/AionUi, 33k stars), Vitest (supabase/supabase, 111k stars), Test Guard (amElnagdy/guard-skills, 1.3k stars) and Control UI E2E (openclaw/openclaw, 392k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
every-app (a GitHub organization) maintains it in every-app/open-seo, which has 22,680 GitHub stars. The repository holds 19 skills in this directory. The repository was last updated on October 6, 2026.
Source: every-app/open-seo on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.