/beagle-python:python-code-reviewfrom beagle-python
Reviews Python code for type safety, async patterns, error handling, and common mistakes. Use when reviewing .py files, checking type hints, async/await usage, or exception handling.
Ships in beagle-python. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
| Issue Type | Reference |
|---|---|
| Indentation, line length, whitespace, naming | references/pep8-style.md |
| Missing/wrong type hints, Any usage | references/type-safety.md |
| Blocking calls in async, missing await | references/async-patterns.md |
| Bare except, missing context, logging | references/error-handling.md |
| Mutable defaults, print statements | references/common-mistakes.md |
snake_case for functions/variables, CamelCase for classes, UPPER_CASE for constantsAny unless necessary (with comment explaining why)T | None syntax (Python 3.10+)time.sleep, requests) in async functionsawait on all coroutinesexcept: clausesraise ... from to preserve stack traceslogger not print() for output.format() or %These patterns are intentional and correct - do not report as issues:
Any when interacting with untyped libraries - Required when external libraries lack type stubs__init__.py files - Valid for package structure, no code requirednoqa comments - Valid when linter rule doesn't apply to specific casecast() after runtime type check - Correct pattern to inform type checker of narrowed typeOnly flag these issues when the specific conditions apply:
| Issue | Flag ONLY IF |
|---|---|
| Generic exception handling | Specific exception types are available and meaningful |
| Unused variables | Variable lacks _ prefix AND isn't used in f-strings, logging, or debugging |
Complete in order. Do not advance until each pass condition is met.
.py path (or explicit glob) you inspected this run.[FILE:LINE] (or a bounded line range). Symbols or short verbatim snippets may supplement the location anchor but do not replace it.async def functions → async-patterns.mdBefore reporting: complete Gates (reporting workflow) above (especially gate 4).
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub existential-birds/beagle --plugin beagle-python7 skills in this plugin
/fastapi-code-reviewReviews FastAPI code for routing patterns, dependency injection, validation, and async handlers. Use when reviewing FastAPI apps, checking APIRouter setup, Depends() usage, or response models./postgres-code-reviewReviews PostgreSQL code for indexing strategies, JSONB operations, connection pooling, and transaction safety. Use when reviewing SQL queries, database schemas, JSONB usage, or connection management./pytest-code-reviewReviews pytest test code for async patterns, fixtures, parametrize, and mocking. Use when reviewing test_*.py files, checking async test functions, fixture usage, or mock patterns./review-pythonComprehensive Python/FastAPI backend code review with optional parallel agents/review-verification-protocolMandatory verification steps for all code reviews to reduce false positives. Load this skill before reporting ANY code review findings./sqlalchemy-code-reviewReviews SQLAlchemy code for session management, relationships, N+1 queries, and migration patterns. Use when reviewing SQLAlchemy 2.0 code, checking session lifecycle, relationship() usage, or Alembic migrations.Other plugins' skills for the same job