s3-generate-tests

Generate pytest test suites for Python modules using the AAA pattern.

3|3|Updated Feb 8, 2026
One-click install
npx skills add https://github.com/pgagarinov/awesome-claude-code --skill s3-generate-tests
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: s3-generate-tests
Source: https://github.com/pgagarinov/awesome-claude-code/tree/main/examples/05-skills-n-agents/.claude/skills/s3-generate-tests
Command: npx skills add https://github.com/pgagarinov/awesome-claude-code --skill s3-generate-tests

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates the creation of unit tests for Python modules, ensuring code quality and maintainability.

Core Features & Use Cases

  • Automated Test Generation: Creates pytest-compatible test files based on module structure and function signatures.
  • Test Structure Adherence: Follows the Arrange-Act-Assert (AAA) pattern and best practices for pytest.
  • Use Case: When developing a new Python module, use this Skill to quickly scaffold a comprehensive test suite, saving significant development time.

Quick Start

Use the s3-generate-tests skill to generate pytest tests for the module at 'src/my_module.py'.

Frequently Asked Questions about s3-generate-tests

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

FAQPage Schema
How do I automatically generate pytest tests for a Python module?

To generate pytest tests for a Python module, this Skill analyzes the module's public API and function signatures to automatically scaffold a comprehensive test suite. It creates test files following the Arrange-Act-Assert pattern, including happy paths, edge cases, and error conditions.

What is the AAA pattern in automated unit test generation?

The AAA pattern in automated unit test generation structures tests into Arrange, Act, and Assert phases. This Skill enforces the AAA pattern to ensure tests are cleanly organized, separating test setup from execution and verification for better maintainability.

Does automated test generation support parameterized tests and pytest fixtures?

Automated test generation supports parameterized tests and pytest fixtures for setup and teardown. This Skill analyzes your module's public API to generate test cases that utilize fixtures and parameterization, ensuring comprehensive coverage across various input scenarios.

Can I use this to scaffold unit tests for existing Python code without writing them manually?

You can use this Skill to scaffold unit tests for existing Python code without writing them manually. By analyzing the module's public API and function signatures, it instantly creates a pytest-compatible test suite covering edge cases and error conditions, saving significant development time.

What types of test cases are included when generating pytest suites for Python functions?

When generating pytest suites for Python functions, the test cases include happy paths, edge cases, and error conditions. This Skill examines the module's public API to ensure the generated test suite provides comprehensive coverage for expected behaviors and potential failures.

How do I generate pytest tests for a module located at a specific file path?

To generate pytest tests for a module located at a specific file path, you provide the path to your Python module. The Skill analyzes the public API at that location and automatically creates a pytest-compatible test file following best practices.