dev-create-test

Generate Vitest test scaffolds for Svelte modules in __tests__ directories.

20|3|Updated Feb 22, 2026
One-click install
npx skills add https://github.com/HerbertJulio/specialist-agent --skill dev-create-test
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dev-create-test
Source: https://github.com/HerbertJulio/specialist-agent/tree/main/packs/svelte/skills/dev-create-test
Command: npx skills add https://github.com/HerbertJulio/specialist-agent --skill dev-create-test

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automatically generates a comprehensive test scaffold for a specified module, ensuring adapters, hooks/composables/stores, and components receive initial test coverage.

Core Features & Use Cases

  • Generates tests/OriginalName.spec.ts scaffolds for Vitest in a Svelte project.
  • Creates representative tests for adapters, stores and hooks, and basic component rendering tests.
  • Ensures tests follow a deterministic naming and placement convention aligned with common project structures.

Quick Start

Provide the path to the target module to generate adapter, hook/store, and component tests.

Frequently Asked Questions about dev-create-test

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

FAQPage Schema
How do I generate Vitest scaffolds for Svelte components and hooks?

To generate Vitest scaffolds for Svelte modules, provide the target module path. The tool automatically creates a deterministic test suite in __tests__/OriginalName.spec.ts covering adapters, hooks, stores, and components with initial baseline coverage.

What types of frontend modules can be tested using this scaffold generator?

This scaffold generator targets adapters, hooks, composables, stores, and components within Svelte or similar frontend frameworks. It creates representative tests for each module type to ensure immediate baseline test coverage across your project.

Can I use this to create tests for Svelte stores using Vitest conventions?

Yes, you can create tests for Svelte stores using Vitest conventions. The generator places test files in a structured __tests__ directory and follows deterministic Vitest naming and placement conventions aligned with common project structures.

Does the generated Vitest test suite include a baseline test file?

Yes, the generated Vitest suite includes an initial baseline test file. Alongside baseline tests, it automatically scaffolds adapter tests, store tests, hook tests, and basic component rendering tests for the specified module.

What is the best way to organize Vitest tests for Svelte adapters and composables?

The best way to organize Vitest tests for Svelte adapters and composables is using a deterministic scaffold. This approach places tests in __tests__/OriginalName.spec.ts to align with common project structures and ensure consistent module coverage.

Do I need to manually configure file paths when generating tests for frontend modules?

No, you do not need to manually configure file paths. You simply provide the path to the target module, and the generator automatically places the Vitest spec files in the __tests__ directory using deterministic naming conventions.