write-tests
Skill by notum-cz
Write Tests is an agent skill that adds or extends automated tests using the starter's existing conventions. It covers Vitest for apps/ui and apps/strapi, and Playwright for e2e, visual, axe and SEO checks.
Install write-tests
Built from the published package, never by AI.
git clone --depth 1 https://github.com/notum-cz/strapi-next-monorepo-starter /tmp/strapi-next-monorepo-starter && mkdir -p ~/.claude/skills && cp -r /tmp/strapi-next-monorepo-starter/.claude/skills/write-tests ~/.claude/skills/write-testsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/notum-cz/strapi-next-monorepo-starter /tmp/strapi-next-monorepo-starter && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/strapi-next-monorepo-starter/.claude/skills/write-tests ~/.gemini/antigravity-cli/skills/write-testsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
Write Tests is an agent skill for adding or extend automated tests in the starter. It covers Vitest unit tests for apps/ui and apps/strapi, and Playwright tests in qa/tests/playwright for end-to-end, visual, accessibility (axe) and SEO checks. Before writing, the skill picks the right test layer and reads an existing test in that layer to match its style.
The skill does not add new test frameworks or helpers when an existing one fits. Strapi tests run without booting Strapi, using pure logic, schema files read from disk, or a stubbed strapi global. It lists the pnpm commands for each layer and expects a new bug test to fail before the fix. It is for developers working in this starter who want tests that follow its conventions.
Written from the project's SKILL.md and checked against it.
What it can do
- Choose test layerPicks Vitest unit, Strapi Vitest, or a Playwright e2e, visual, axe or SEO test before writing.
- Vitest testsWrites unit tests for apps/ui and Strapi tests for apps/strapi using Vitest.
- Playwright testsWrites browser tests in qa/tests/playwright for e2e, visual, axe and SEO checks.
- Match existing styleReads one existing test in the same layer and mirrors its imports, helpers and naming.
- Bug reproduction testsConfirms a reproducing test fails before the fix and passes after it.
- Visual snapshot updatesUpdates Playwright visual snapshots only when intentional, after inspecting the diff.
- Run and reportRuns the relevant package tests and prints a short report with the exact re-run command.
What you need
- pnpm
- A running app for Playwright tests (pnpm dev or built and started)
Try asking
- Write a Vitest unit test for the date helper in apps/ui
- Add a Playwright e2e test for the contact form flow
- Reproduce this bug with a test before we fix it
Good to know
- Does not add new test frameworks or dev dependencies without an explicit request
- Strapi tests do not boot Strapi or connect to a database
- Visual snapshots can differ between macOS and CI
- Playwright e2e tests fail with connection refused if the app is not running
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .claude/skills/write-tests/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to write-tests
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
write-tests: common questions
Does this skill add Jest or Cypress to a project?
No. The skill says not to introduce Jest, Mocha, Cypress or other competing frameworks, and to use the starter's existing tools.
Can it test Strapi code without a running instance?
Yes. The source says Strapi tests import the unit directly, read schema.json from disk, or mock the strapi global with vi.stubGlobal.
How are visual snapshot changes handled?
The skill updates snapshots only when intentional, with pnpm tests:playwright:visual:update, and only after inspecting the diff visually.
How do I install write-tests?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is write-tests free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is write-tests safe to use?
It scores 73 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to write-tests?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
