test-writer

Generate runnable unit and integration tests matching the project's test framework.

2|1|Updated May 17, 2026
One-click install
npx skills add https://github.com/rakibulism/agent-skills-os --skill test-writer-rakibulism
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-writer
Source: https://github.com/rakibulism/agent-skills-os/tree/main/skills/test-writer
Command: npx skills add https://github.com/rakibulism/agent-skills-os --skill test-writer-rakibulism

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you create meaningful tests for code so you can catch regressions, verify behavior, and improve confidence without wasting time on brittle or redundant coverage.

Core Features & Use Cases

  • Runnable test generation: Produces tests in the project’s existing framework and style.
  • Coverage planning: Identifies happy paths, edge cases, error paths, and behavior contracts before writing code.
  • Bug-focused validation: Emphasizes observable behavior over implementation details to produce tests that protect real functionality.
  • Use case: Ask it to write tests for a new utility function, and it will return a complete test file tailored to your stack.

Quick Start

Ask the test-writer skill to generate a complete test file for the provided code and matching test framework.

Frequently Asked Questions about test-writer

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

FAQPage Schema
How do I generate unit and integration tests that match my project's existing framework?

To generate unit and integration tests, provide the target function or module and specify your existing test framework. The skill produces a complete test file tailored to your stack, matching the project's framework and style while avoiding brittle implementation-specific assertions.

What is the best way to plan test coverage for edge cases and error conditions?

Planning test coverage involves identifying happy paths, edge cases, error paths, and behavior contracts before writing code. The skill emphasizes observable behavior over implementation details to produce bug-focused validation that protects real functionality and catches regressions.

Does the test generation work with both Vitest and Jest frameworks?

Yes, test generation works with Vitest and Jest. The skill requires matching the project's existing test framework and style, so you simply ask it to generate a complete test file for the provided code and your specified testing framework.

Can I write tests for a Python codebase using pytest?

Yes, you can write tests for a Python codebase using pytest. The skill generates runnable tests by matching the project's existing test framework, allowing you to verify behavior and improve confidence for Python modules.

Why should I avoid brittle implementation-specific assertions in my test suite?

Avoiding brittle implementation-specific assertions ensures your tests validate observable behavior rather than internal code structure. This bug-focused validation approach produces meaningful tests that catch regressions and verify behavior without wasting time on redundant coverage.

How do I write tests for a new utility function without starting from scratch?

To write tests for a new utility function, ask the skill to generate a complete test file for the provided code. It identifies happy paths, edge cases, and error conditions, returning runnable tests tailored to your stack.