test-setup

test-setup is a skill for Claude Code, Codex from evgenii-studitskikh/Claude-Code-SaaS-Studio. It costs 47 tokens per session (717 once invoked), scanned A, original, MIT.

A setup workflow that creates a test foundation for a SaaS application using Vitest, Testing Library, Playwright, and a continuous-integration test step. Vitest and Testing Library support code and user-interface tests; Playwright runs browser tests.

In plain words
What is it for?
Use it to install and configure test tools, set up browser-test dependencies, create test configuration files, and add runnable test commands after a QA plan is approved.
Why use it?
It avoids writing feature tests against an incomplete or inconsistent test environment. It requires approval before installing packages or creating configuration files.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/evgenii-studitskikh/claude-code-saas-studio/test-setup
Any agent
npx skills add evgenii-studitskikh/Claude-Code-SaaS-Studio --skill test-setup
Clone the repo
git clone --depth 1 https://github.com/evgenii-studitskikh/Claude-Code-SaaS-Studio

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for test-setup

README.md
[![agentmods](https://agentmods.dev/badge/skills/evgenii-studitskikh/claude-code-saas-studio/test-setup.svg)](https://agentmods.dev/skills/evgenii-studitskikh/claude-code-saas-studio/test-setup)
Your own site
<a href="https://agentmods.dev/skills/evgenii-studitskikh/claude-code-saas-studio/test-setup"><img src="https://agentmods.dev/badge/skills/evgenii-studitskikh/claude-code-saas-studio/test-setup.svg" alt="Measured on agentmods" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 717 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00047 $0.00717
Opus 5 $0.00023 $0.00358
Sonnet 5 $0.00009 $0.00143
Haiku 4.5 $0.00005 $0.00072

Measured 4d ago against content hash b5041c658dea, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

test-setup scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/test-setup/SKILL.md · 22 lines

How it starts

The opening of the file, as written. The whole thing — 22 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Scaffold the project's test infrastructure from the approved QA plan before any feature tests are written. Non-autonomous: present the full plan, get approval, then execute. Never install packages or write config files without sign-off.

Phases

  1. Load context — read docs/specs/qa-plan.md to understand the chosen pyramid and tooling decisions. If the file is missing, stop and direct to /qa-plan. Also read package.json and any existing test config files to avoid duplicating setup.
  2. Present the plan — show the user the EXACT commands and files that will be created, including: install commands for Vitest, @testing-library/react, @testing-library/jest-dom, @playwright/test, and any supporting packages (jsdom, @vitejs/plugin-react — or @vitejs/plugin-react-swc for Next.js projects that use the SWC compiler; both require jsdom as the Vitest test environment, etc.); a Playwright browser-binary install step (npx playwright install --with-deps) that runs after @playwright/test is installed, so that npm run test:e2e does not fail with a missing-browser error; config files to be written (vitest.config.ts, vitest.setup.ts, playwright.config.ts); package.json scripts to be added (test, test:watch, test:e2e); and the CI test step (e.g. a GitHub Actions job snippet). Under full, confirm each category; under lean, one confirmation for the whole plan; under solo, proceed directly. Get explicit approval before running anything.
  3. Apply — on approval, run the install commands (including npx playwright install --with-deps), write the config files, and add the package.json scripts. Then add one trivial smoke test — place it under __tests__/ colocated with the app (e.g. src/__tests__/smoke.test.ts, or at the project root __tests__/smoke.test.ts if there is no src/ directory) — rendering a minimal component, and one Playwright homepage test (e2e/smoke.spec.ts visiting /) to verify the harness end-to-end.
  4. Verify — run npm test (or equivalent) and npm run test:e2e against the smoke tests; show the output. If anything fails, diagnose and fix before proceeding. Under full, confirm each suite result; under lean or solo, summarize the combined result.
  5. Next step — on a green run, point to /write-tests.

Read the full file on GitHub · 22 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 22 lines · 47 tokens per session scan A b5041c658dea

Subscribe to this mod's changes

test-setup is a skill published in the GitHub repository evgenii-studitskikh/Claude-Code-SaaS-Studio (1 stars, last pushed 2mo ago), licensed MIT. It adds 47 tokens to every session and 717 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.