test-writing

Scaffold Vitest unit tests with v8 coverage for TypeScript projects.

Updated Feb 5, 2026
One-click install
npx skills add https://github.com/twlines/maslow --skill test-writing-twlines
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-writing
Source: https://github.com/twlines/maslow/tree/main/skills/test-writing
Command: npx skills add https://github.com/twlines/maslow --skill test-writing-twlines

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a standardized protocol for writing unit tests using Vitest, ensuring consistency and best practices across the codebase.

Core Features & Use Cases

  • Vitest Test Scaffolding: Generates the basic structure for new test files.
  • Best Practice Enforcement: Enforces rules for test structure, assertions, and mocking.
  • Effect Service Testing: Provides examples for testing Effect-ts services.
  • Use Case: When developing a new feature, use this Skill to quickly generate the initial test file structure, adhering to project standards from the start.

Quick Start

Use the test-writing skill to create a new test file for the 'userService' module.

Frequently Asked Questions about test-writing

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

FAQPage Schema
How do I scaffold Vitest unit tests with v8 coverage in TypeScript projects?

To scaffold Vitest unit tests with v8 coverage in TypeScript, this protocol defines test file structure, assertion rules, and mocking strategies. It generates the basic structure for new test files while enforcing behavior-driven development and mocking external dependencies.

What is the best way to structure Vitest tests for Effect-ts services?

The best way to structure Vitest tests for Effect-ts services involves using a standardized protocol that provides specific guidance and examples for testing services. It enforces best practices for test structure, assertions, and mocking external dependencies to maintain consistency across your codebase.

Can I use this Vitest scaffolding protocol to enforce behavior-driven development?

Yes, you can use this Vitest scaffolding protocol to enforce behavior-driven development. It provides a standardized protocol that enforces rules for test structure, assertions, and mocking strategies, ensuring best practices and consistency across the codebase.

How do I mock external dependencies when writing unit tests in Vitest?

To mock external dependencies when writing unit tests in Vitest, this protocol defines specific mocking strategies to isolate components. By enforcing these rules, it ensures that your test suites remain consistent, maintainable, and focused on testing behavior.

Does this test scaffolding protocol work without additional dependencies?

Yes, this test scaffolding protocol works without additional dependencies. It provides a standardized protocol for writing unit tests using Vitest, ensuring consistency and best practices across the codebase without requiring external libraries.