existential-birds avatar

Pytest Code Review

A structured review process for pytest test files that forces you to work through five gates before flagging issues: scoping which test files you're looking at, identifying async versus sync patterns, checking fixture usage, validating mock and patch locations, and finally documenting specific findings with line numbers. It's opinionated about the order you review things, which is either helpful discipline or annoying process depending on whether you usually skip straight to nitpicking parametrize usage before confirming the async tests are even using AsyncMock correctly. The gate system prevents generic advice and makes you cite actual file paths and test node IDs. Best when you're reviewing pull requests with test changes and want to avoid the usual back and forth about whether fixtures are cleaned up or mocks are patched at the call site.

skills.sh installs
232
GitHub stars
87
last updated
Aug 21, 2026

Install

$ npx -y skills add existential-birds/beagle --skill pytest-code-review --agent claude-code

Installs into .claude/skills of the current project.

Files

Pytest Code Review

Quick Reference

Issue TypeReference
async def test_*, AsyncMock, await patternsreferences/async-testing.md
conftest.py, factory fixtures, scope, cleanupreferences/fixtures.md
@pytest.mark.parametrize, DRY patternsreferences/parametrize.md
AsyncMock tracking, patch patterns, when to mockreferences/mocking.md

Review gates

Work in order. Do not assert pytest-specific problems until each applicable gate passes.

Sponsors

Details

Repository
github.com/existential-birds/beagle
Categories
Testing & QA, Git & Pull Requests, Code Review & Quality, Python
First seen
Jun 3, 2026

More from existential-birds/beagle

All 40
1el-feo avatarcucumber-gherkinel-feo/ai-contextBDD testing with Cucumber and Gherkin for Ruby and Rails applications. Use when writing feature files (.feature), step definitions, hooks, or implementing Behav215skills.sh installs
2yonatangross avatarverifyyonatangross/orchestkitGrade work that already exists and decide whether it can merge. Runs the project's current unit, integration, and E2E suites plus security scanning and type che210skills.sh installs
3hieutrtr avatarreact-frontend-experthieutrtr/ai1-skillsReact/TypeScript frontend implementation patterns. Use during the implementation phase when creating or modifying React components, custom hooks, pages, data fe206skills.sh installs
4hoodini avatarbunhoodini/ai-agents-skillsBuild fast applications with Bun JavaScript runtime. Use when creating Bun projects, using Bun APIs, bundling, testing, or optimizing Node.js alternatives. Trig191skills.sh installs
5daffy0208 avatarusability-testerdaffy0208/ai-dev-standardsConduct usability tests and identify UX issues through systematic observation. Use when testing user flows, validating designs, identifying friction points, or 188skills.sh installs
6cloudai-x avatardesigning-testscloudai-x/claude-workflow-v2Designs and implements testing strategies for any codebase. Use when adding tests, improving coverage, setting up testing infrastructure, debugging test failure180skills.sh installs