hai-app-tests

Automate test-first workflows for Vitest, Playwright, and schema validation.

3|7|Updated Jan 28, 2026
One-click install
npx skills add https://github.com/hai-series/hai-framework --skill hai-app-tests
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hai-app-tests
Source: https://github.com/hai-series/hai-framework/tree/main/packages/cli/templates/skills/hai-app-tests
Command: npx skills add https://github.com/hai-series/hai-framework --skill hai-app-tests

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This guide enforces a test-first discipline for AI-assisted development, helping teams define tests up front to prevent regressions and reduce debugging time.

Core Features & Use Cases

  • Templates and standards for Vitest unit tests, Playwright end-to-end tests, and schema validation.
  • Red-Green-Refactor workflows, test coverage guidance, and reusable testing patterns across service, API, and UI layers.
  • Use cases include validating service logic, API contracts, and user interfaces before implementation to improve reliability.

Quick Start

Outline the test plan first, then implement code to make tests pass.

Frequently Asked Questions about hai-app-tests

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

FAQPage Schema
How do I enforce TDD workflows for Vitest unit tests and Playwright E2E tests?

To enforce TDD workflows for Vitest unit tests and Playwright E2E tests, outline the test plan first using structured templates, then implement code to make tests pass. This Red-Green-Refactor cycle prevents regressions and reduces debugging time.

What is the best way to validate API contracts and service logic before implementation?

The best way to validate API contracts and service logic before implementation is by applying test-first discipline using schema validation and unit tests. Defining tests upfront ensures coverage and reliability throughout the development cycle.

Can I use this approach for testing UI components across web apps?

Yes, you can use this approach for testing UI components across web apps. It provides reusable testing patterns and standards specifically designed for validating user interfaces before implementation to improve reliability.

Does this testing guide require any specific dependencies or test runners to start?

No additional dependencies are required to start. The guide focuses on applying test-first discipline using Vitest for unit tests and Playwright for end-to-end tests, supplying templates and standards to structure your workflows.

When should I not use test-first discipline in development?

You should avoid test-first discipline when rapid prototyping without strict coverage requirements. This approach enforces structured Red-Green-Refactor workflows and reusable patterns, which may introduce unnecessary overhead for exploratory coding.