test-writer

Generate failing test suites for JavaScript, TypeScript, and Python projects.

2|Updated Mar 16, 2026
One-click install
npx skills add https://github.com/hamzaPixl/pixl-ai --skill test-writer-hamzapixl
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-writer
Source: https://github.com/hamzaPixl/pixl-ai/tree/main/packages/crew/skills/test-writer
Command: npx skills add https://github.com/hamzaPixl/pixl-ai --skill test-writer-hamzapixl

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates the tedious work of writing initial failing tests from existing source code so developers can adopt a test-first workflow and focus on implementing correct behavior.

Core Features & Use Cases

  • Framework detection: Auto-detects vitest, jest, or pytest and follows the project's test placement conventions.
  • Test plan generation: Scans public functions, signatures, docstrings, and usage to propose prioritized test cases for confirmation before writing.
  • TDD scaffolding: Writes failing unit and integration tests (red phase), runs tests, and produces coverage reports to guide next steps.
  • Mocking and integration guidance: Recommends mocking strategy and respects existing project test utilities and patterns.
  • Use case: Scaffold comprehensive tests for a user management module, including validation, edge cases, error handling, and integration boundaries.

Quick Start

Generate a failing test suite for the specified file or directory using the project's detected test framework and include edge cases, validation checks, and a coverage target.

Frequently Asked Questions about test-writer

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

FAQPage Schema
How do I generate failing tests from existing source code for TDD?

Generate failing tests from source code by scanning public function signatures and docstrings to infer expected behavior, writing test suites that fail initially to drive test-first development. The tool scaffolds unit, edge case, and integration tests automatically.

Can I use this to scaffold vitest and jest tests for JavaScript projects?

Yes, you can scaffold vitest and jest tests for JavaScript and TypeScript projects. The tool auto-detects the active test framework, reads function signatures, and follows your project's existing test placement conventions to generate appropriate failing test suites.

Does pytest test generation support mocking and integration boundaries?

Pytest test generation supports mocking and integration boundaries by recommending mocking strategies and respecting existing project test utilities. It scaffolds failing tests for validation, edge cases, error handling, and integration boundaries in Python projects.

How do I get a test plan before writing unit tests?

Get a test plan by scanning public functions, signatures, docstrings, and usage patterns to propose prioritized test cases. You confirm the proposed test plan before the tool writes any failing unit or integration tests.

What is the best way to jumpstart test-first development with coverage reports?

Jumpstart test-first development by writing comprehensive failing test suites, executing the tests to confirm they fail, and producing coverage reports. These coverage reports guide your next implementation steps to achieve the target test coverage.

Are there limitations when generating tests for projects without existing test utilities?

Generating tests for projects without existing test utilities may lack specific pattern matching, but the tool still infers expected behavior from signatures and docstrings. It applies standard framework conventions for vitest, jest, or pytest to scaffold tests independently.