Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add existential-birds/beagle --skill pytest-code-reviewgit clone --depth 1 https://github.com/existential-birds/beagleWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/existential-birds/beagle/pytest-code-review)<a href="https://agentmods.dev/skills/existential-birds/beagle/pytest-code-review"><img src="https://agentmods.dev/badge/skills/existential-birds/beagle/pytest-code-review/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/existential-birds/beagle/pytest-code-review"><img src="https://agentmods.dev/badge/skills/existential-birds/beagle/pytest-code-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00047 | $0.01046 |
| Opus 5.5 | $0.00019 | $0.00418 |
| Sonnet 5.5 | $0.00009 | $0.00209 |
| Haiku 4.5 | $0.00005 | $0.00105 |
Grade A, and why
pytest-code-review scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 60 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Pytest Code Review
Quick Reference
| Issue Type | Reference |
|---|---|
pytest-asyncio strict/auto mode, AsyncMock, task cleanup |
references/async-testing.md |
conftest.py, tmp_path, fixture scope, async try/finally cleanup |
references/fixtures.md |
@pytest.mark.parametrize, pytest.param, indirect fixtures |
references/parametrize.md |
Call-site patch(), AsyncMock, spec_set, mocker |
references/mocking.md |
Review gates
Work in order. Do not assert pytest-specific problems until each applicable gate passes.
- Scoped files — Pass when: You list every
test_*.pyand anyconftest.pyyou will cite; no findings for files outside that list. - Async vs sync — Pass when: Per scoped file, you note whether it uses
async def test_*/awaitand check projectasyncio_mode(strictvsauto); if async, open references/async-testing.md before criticizing async usage. - Fixtures — Pass when: If shared setup matters, you name the
conftest.pypath(s) or state none; for yield fixtures, confirm cleanup exists before claiming resource leaks. - patch / mocks — Pass when: For any
patchor mock critique, you give the import path where the symbol is used (call site), or mark N/A; open references/mocking.md when mocking is central to the review. - Findings — Pass when: Each finding includes a file path and line(s) or test node id, not a generic rule restatement.
Review Checklist
- Async tests match configured
pytest-asynciomode (strictrequires@pytest.mark.asyncio+@pytest_asyncio.fixture;autodiscoversasync deftests/fixtures automatically) -
asyncio_default_fixture_loop_scopeconfigured explicitly inpyproject.toml/pytest.ini -
AsyncMockused for async dependencies (notMock) and all coroutines/async mocks awaited - Background tasks and async resources cleaned up in
finallyblocks - Fixture scope appropriate (
functionfor mutable state,module/sessiononly for immutable/isolated expensive setup) - Yield fixtures wrap cleanup in
try/finallyand usetmp_pathinstead of hardcoded/tmppaths -
@pytest.mark.parametrizeusespytest.param(..., id=...)/indirect=cleanly for similar cases -
patch()targets where the symbol is used (imported/looked up), not where defined - Mocks use
spec/spec_setand verify exact call arguments when behavior depends on them - Tests remain isolated (no shared module-level mock or mutable state)
What ships with it
4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 4d ago Changed · +5 lines · +6 tokens per session f8e0f50c841b
- 2mo ago First seen · 55 lines · 41 tokens per session scan A de87136e94be
pytest-code-review is a skill published in the GitHub repository existential-birds/beagle (91 stars, last pushed 4d ago), licensed Apache-2.0. It adds 47 tokens to every session and 1,046 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-16.
pytest-code-review compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| pytest-code-reviewexistential-birds/beagle | Skill | 91 | 4d ago | Apache-2.0 | A | 47 | Claude Code, Codex |
| coding-standardsSimon-Hwang/gg-plugins | Skill | 2 | 4mo ago | none | A | 34 | Claude Code |
| codex-rule-routerSimon-Hwang/gg-plugins | Skill | 2 | 4mo ago | none | A | 39 | Claude Code |
| pr-to-go-lintergithub/gh-aw | Skill | 5.7k | today | MIT | A | 22 | Claude Code, Codex |
| splitting-oversized-modulesPostHog/posthog-foss | Skill | 733 | today | MIT | A | 197 | Claude Code, Codex |
| code-reviewjrswab/axe | Skill | 914 | today | Apache-2.0 | A | 0 | Claude Code, Codex |
| qa-frontendPostHog/posthog | Skill | 41k | today | none | A | 216 | Claude Code |