About pytest-optimizer
A skill for analyzing and optimizing pytest suites, aimed at Python project maintainers seeking faster tests, fewer flaky results, and better coverage. Its analysis runs locally without transmitting source code or credentials.
Key features
- 01Analyze pytest suites
- 02Improve test speed
- 03Identify flaky tests
- 04Increase test coverage
- 05Run analysis locally
Use cases
- 01Setting up a Python project
- 02Optimizing CI test pipelines
- 03Modernizing legacy test suites
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ jorgealves/ agent_skills --skill pytest-optimizerAfter installing, type/pytest-optimizerin Claude Code to confirm it loaded.
Bundled filesskill.yaml
Details
From the project READMEpytest Optimizer
Purpose and Intent
Analyze and optimize pytest suites to improve speed, identify flaky tests, and increase coverage. Use to maintain high-quality, fast-running test pipelines.
When to Use
- Project Setup: When initializing a new Python project.
- Continuous Integration: As part of automated build and test pipelines.
- Legacy Refactoring: When updating older Python codebases to modern standards.
When NOT to Use
- Non-Python Projects: This tool is specialized for the Python ecosystem.
Error Conditions and Edge Cases
- Missing Requirements: If the project lacks a requirements.txt or pyproject.toml.
- Incompatible Versions: If the project uses a Python version not supported by the tools.
Security and Data-Handling Considerations
- All analysis is performed locally.
- No source code or credentials are ever transmitted externally.
Comments
Markdown supported