test-creator

Generates unit, integration, and E2E test templates for Vitest, Pytest, and Playwright.

1|Updated Apr 23, 2026
One-click install
npx skills add https://github.com/tkogut/agents-os-core --skill test-creator-tkogut
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: test-creator
Source: https://github.com/tkogut/agents-os-core/tree/main/global_skills/test-creator
Command: npx skills add https://github.com/tkogut/agents-os-core --skill test-creator-tkogut

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires vitest, pytest, httpx, playwright, and includes references (resource) components.

What problem does it solve? Writing tests across multiple layers of a full-stack application requires different frameworks, configurations, and mocking strategies, which slows down development and leads to inconsistent coverage. This Skill provides standardized templates and workflows for creating frontend unit tests, backend integration tests, and end-to-end browser tests in AGENTS-OS projects. ## Core Features & Use Cases - Frontend Unit Tests: Vitest + JSDOM templates for testing pure logic functions and DOM manipulations with mocked globals like window and fetch. - Backend Integration Tests: Pytest templates using async httpx with ASGITransport for testing FastAPI endpoints, SQLAlchemy models, and Pydantic schemas with dependency overrides. - E2E Browser Tests: Playwright templates for full user journey verification including login flows and UI rendering checks in headless mode. - Use Case: When shipping a new analytics dashboard feature, use this Skill to scaffold a Vitest test for the chart rendering logic, a Pytest integration test for the /api/analytics/dashboard endpoint, and a Playwright E2E test verifying the complete login-to-dashboard flow. ## Quick Start Ask the agent to use test-creator to generate a Pytest integration test for the new API endpoint before pushing the feature.

Frequently Asked Questions about test-creator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write unit tests for frontend JavaScript with Vitest?▼

Use the Vitest template with JSDOM to load your actual HTML structure into the DOM, mock global objects like window.fetch, and execute your app.js code in the simulated environment. Tests can then verify pure logic functions and DOM manipulations in isolation.

How to test FastAPI endpoints with Pytest and httpx?▼

Use an async httpx AsyncClient with ASGITransport pointed at your FastAPI app, and override dependencies like authentication using app.dependency_overrides. This lets you test endpoints without a running server or real user sessions.

What is the difference between Vitest, Pytest, and Playwright tests?▼

Vitest handles frontend unit tests for logic and DOM manipulation, Pytest covers backend API and database integration tests, and Playwright runs full end-to-end user journeys in a real browser. Each layer tests a different aspect of the system.

Should I mock external API calls in unit tests?▼

Yes, always mock network requests to external services like Gemini API or Odoo in unit tests. Mocking keeps tests fast, deterministic, and independent of external service availability or credentials.

When should I use Playwright E2E tests instead of unit tests?▼

Use Playwright when you need to verify complete user journeys involving real browser interactions, session-based login, and UI-to-database workflows. Unit tests cannot catch integration issues between the frontend, backend, and database layers.