test-writer-pytest

Generate pytest test skeletons from discovered functions and classes.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/ribatshepo/cc-auto-orchestrate --skill test-writer-pytest
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-writer-pytest
Source: https://github.com/ribatshepo/cc-auto-orchestrate/tree/main/claude-code/skills/test-writer-pytest
Command: npx skills add https://github.com/ribatshepo/cc-auto-orchestrate --skill test-writer-pytest

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Automates the creation of pytest-based tests by generating structured skeletons from discovered functions and classes, reducing manual effort and ensuring consistent test layout.

Core Features & Use Cases

  • Standalone function and class method test templates generated automatically
  • Fixture-aware test scaffolding that respects conftest.py and fixtures
  • Support for parametrized tests and customizable templates
  • Seamless integration with existing test suites and CI workflows

Quick Start

Run the function-discovery and test-template-generation flow on your project to generate pytest templates under tests/.

Frequently Asked Questions about test-writer-pytest

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

FAQPage Schema
How do I auto-generate pytest test skeletons from existing functions?

The skill analyzes discovered functions and classes to generate pytest test skeletons, automatically scaffolding unit and integration tests with fixtures, parametrization, and class-based coverage for rapid iteration.

Can I generate parametrized tests and fixtures automatically for pytest?

Yes, you can automatically generate parametrized tests and fixture-aware scaffolding. The skill respects existing conftest.py files and project conventions to build compatible test templates.

How do I scaffold integration tests using pytest from discovered modules?

You can scaffold integration tests by defining the test scope from discovered modules. The skill determines where coverage is needed and generates class-based test skeletons using available fixtures.

Does the generated pytest test generation respect existing conftest.py conventions?

Yes, generated pytest tests enforce compatibility with project conventions and fixture availability. The skill respects existing conftest.py files to ensure seamless integration with current test suites.

What's the best way to create unit test templates for Python class methods?

The best way to create unit test templates is analyzing discovered class methods to generate structured skeletons. The skill outputs standalone function and class method test templates automatically under tests/.