test-unit

Generate and validate unit tests for skaile-dev packages.

Updated Mar 28, 2026
One-click install
npx skills add https://github.com/skaile-ai/ai-assets --skill test-unit-skaile-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-unit
Source: https://github.com/skaile-ai/ai-assets/tree/main/skaile-development/skills/test-unit
Command: npx skills add https://github.com/skaile-ai/ai-assets --skill test-unit-skaile-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Set up and generate unit tests for skaile-dev packages (forge apps, agent-framework libraries, platform frontend/backend). Reads TEST_PLAN.md when present, otherwise discovers testable units from source. Scaffolds missing test infra (vitest.config.ts, test harness), then generates one test file per module with test cases mapped to CLAUDE.md Architecture. Verifies tests run before completing.

Core Features & Use Cases

  • Scaffold missing test infra (vitest.config.ts, test harness) for SkaileDev packages.
  • Discover testable units from source or TEST_PLAN.md and CLAUDE.md as guidance.
  • Generate one test file per module, aligned with architecture.
  • Validate tests by running them before completing.

Quick Start

Provide a target package path to auto-boot test infra and generate unit tests.

Frequently Asked Questions about test-unit

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

FAQPage Schema
How do I generate unit tests for multiple packages automatically?

To generate unit tests automatically, provide a target package path and the tool scaffolds missing test infrastructure like vitest.config.ts, discovers testable units, and produces one test file per module.

How does automated unit test generation discover testable units from source code?

Automated unit test generation discovers testable units by reading source code directly, or by using TEST_PLAN.md and CLAUDE.md architecture descriptions as guidance when those files are present in the package.

Can I scaffold missing vitest configuration for my project?

Yes, you can scaffold missing vitest configuration because the tool automatically bootstraps test infrastructure including vitest.config.ts and test harnesses for packages that lack existing test setups.

What is the best way to ensure generated unit tests pass before deployment?

The best way to ensure generated unit tests pass is using a validation step that executes the tests during generation, verifying they run successfully before the task completes.

Does automated test generation work with frontend, backend, and agent framework libraries?

Yes, automated test generation works across diverse package types including platform frontend, backend code, agent-framework libraries, and forge applications by adapting to each module's structure.

Why do my generated unit tests fail to align with my project architecture?

Generated unit tests fail to align when CLAUDE.md architecture descriptions are missing or outdated, since the tool maps test cases to those architecture descriptions to ensure structural consistency.