test-writer

Generate pytest-compatible unit tests from GitHub issue requirements for TDD workflows.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/pcortes/swarm-attack --skill test-writer-pcortes
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-writer
Source: https://github.com/pcortes/swarm-attack/tree/main/default-skills/test-writer
Command: npx skills add https://github.com/pcortes/swarm-attack --skill test-writer-pcortes

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the creation of comprehensive unit tests for GitHub issues, enabling a true Test-Driven Development (TDD) workflow. It ensures high test coverage from the start, significantly reduces manual test writing effort, and improves overall code quality and reliability by defining expected behavior upfront.

Core Features & Use Cases

  • Automated Test Generation: Creates pytest-compatible unit tests based on issue requirements and engineering specifications.
  • TDD Enablement: Facilitates the "Red" phase of TDD by writing failing tests before any implementation code is written.
  • Comprehensive Coverage: Generates tests for happy paths, edge cases, error conditions, and integration points, ensuring robust functionality.
  • Use Case: For a GitHub issue "Implement add(a, b) function", this Skill automatically generates a test_math.py file with tests for positive integers, negative integers, floats, and zero, ensuring the add function is thoroughly tested before it's even written.

Quick Start

Generate comprehensive unit tests for the GitHub issue "Implement user login endpoint" based on the spec at 'specs/user-auth/spec-draft.md', saving them to the 'tests/' directory.