write-tests

Generate test strategies and skeletons for unit, integration, and edge-case scenarios.

12|Updated Apr 28, 2020
One-click install
npx skills add https://github.com/gideonshaked/dotfiles --skill write-tests-gideonshaked
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: write-tests
Source: https://github.com/gideonshaked/dotfiles/tree/main/agents/claude/skills/write-tests
Command: npx skills add https://github.com/gideonshaked/dotfiles --skill write-tests-gideonshaked

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Testing is essential to ensure code quality, catch regressions, and communicate intent. This skill provides a principled framework to generate comprehensive tests tailored to a specified target, improving reliability and maintainability.

Core Features & Use Cases

  • Generate test strategies aligned with the target's public interface (functions, classes, modules).
  • Produce framework-agnostic guidance with best practices (Arrange-Act-Assert, clear naming, and deterministic fixtures) adaptable to pytest, unittest, Jest, or Go testing.
  • Deliver ready-to-adapt test skeletons and coverage plans for unit, integration, and edge-case scenarios.

Quick Start

Tell me the target file, function, or module to test and I will generate a comprehensive, principled test suite.

Frequently Asked Questions about write-tests

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

FAQPage Schema
How do I generate unit and integration tests for an existing module?▼

Generating test suites involves providing a target file or module to receive a tailored test plan and skeletons. It applies framework-agnostic best practices like Arrange-Act-Assert patterns and deterministic fixtures adaptable to pytest, Jest, or Go testing.

What is the best way to structure test plans for edge-case scenarios?▼

The best way to structure edge-case test plans is by aligning them to the target's public interface. This approach yields fast, independent, self-validating tests with consistent naming and strict mocking guidelines.

Does this testing approach work with Jest and Go testing frameworks?▼

Yes, this approach works with Jest and Go testing frameworks. It provides framework-agnostic guidance and adaptable test skeletons that apply consistent naming and deterministic fixtures across various languages.

Can I automate test creation for a specific function without writing boilerplate?▼

Yes, you can automate test creation for a specific function to avoid boilerplate. Specify the target function to receive ready-to-adapt test skeletons and coverage plans for unit, integration, and edge-case scenarios.

What are the limitations of automated test generation for complex modules?▼

A limitation of automated test generation is that it requires you to manually adapt framework-agnostic test skeletons to your specific environment. You must also ensure deterministic fixtures and strict mocking guidelines are correctly implemented for complex modules.