write-tests

Generate unit, integration, and edge case tests for specified code targets.

5|Updated Mar 11, 2026
One-click install
npx skills add https://github.com/SteveFeldman/agents-skills --skill write-tests-stevefeldman
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: write-tests
Source: https://github.com/SteveFeldman/agents-skills/tree/main/skills/write-tests
Command: npx skills add https://github.com/SteveFeldman/agents-skills --skill write-tests-stevefeldman

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates the creation of high-quality tests, ensuring code reliability and reducing the manual burden on developers.

Core Features & Use Cases

  • Framework Agnostic: Detects and adheres to project-specific testing frameworks (Jest, pytest, RSpec, JUnit, Go testing, etc.).
  • Comprehensive Coverage: Generates unit, integration, and edge case tests.
  • Intelligent Mocking: Implements effective mocking strategies for dependencies.
  • Use Case: You've just written a new complex function in your Python project. Use this Skill to generate a full suite of pytest unit tests, including happy paths, edge cases, and error handling, all following your project's existing test patterns.

Quick Start

Use the write-tests skill to generate tests for the function located at src/utils/helpers.js.

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 tests for an existing codebase automatically?

To generate unit tests automatically, this Skill analyzes your code targets to identify branches, dependencies, and async operations, then writes comprehensive tests adhering to your project's specific frameworks and conventions.

Can I generate integration tests and edge cases for Python pytest projects?

Yes, you can generate integration tests and edge cases for Python pytest projects. The Skill is framework agnostic, detecting and adhering to project-specific frameworks like pytest to cover happy paths, errors, and async operations.

How do you handle mocking dependencies when generating test suites?

Mocking dependencies during test generation is handled intelligently by implementing effective mocking strategies and generating test data, ensuring isolated and reliable unit tests for complex functions.

Does test generation work with multiple frameworks like Jest, JUnit, and RSpec?

Yes, test generation works with multiple frameworks including Jest, JUnit, and RSpec. It detects your project's existing testing framework and conventions to ensure the generated tests match your established patterns.

What's the best way to get full code coverage for complex async functions?

The best way to achieve full code coverage for complex async functions is using automated test generation that specifically analyzes async operations and error scenarios, then plans comprehensive tests to execute those branches.

Are there limitations when generating tests for code targets with heavy external dependencies?

While the Skill handles mocking for dependencies, limitations arise if external dependencies lack clear interfaces for test data generation or mocking, potentially restricting comprehensive edge case coverage for deeply integrated code targets.