existential-birds/beagle/python-code-review
Claude Code and agent skill by existential-birds/beagle
- community
Checking that the SKILL.md file is still in the repository.
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.
Install
npx vskill@latest install existential-birds/beagle/python-code-reviewSKILL.md
Python Code Review
Quick Reference
| 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 |
Review Checklist
PEP8 Style
- [ ] 4-space indentation (no tabs)
- [ ] Line length ≤79 characters (≤72 for docstrings/comments)
- [ ] Two blank lines around top-level definitions, one within classes
- [ ] Imports grouped: stdlib → third-party → local (blank line between groups)
- [ ] No whitespace inside brackets or before colons/commas
- [ ] Naming:
snake_casefor functions/variables,CamelCasefor classes,UPPER_CASEfor constants - [ ] Inline comments separated by at least two spaces
Type Safety
- [ ] Type hints on all function parameters and return types
- [ ] No
Anyunless necessary (with comment explaining why) - [ ] Proper
T | Nonesyntax (Python 3.10+)
Async Patterns
- [ ] No blocking calls (
time.sleep,requests) in async functions - [ ] Proper
awaiton all coroutines
Error Handling
- [ ] No bare
except:clauses - [ ] Specific exception types with context
- [ ]
raise ... fromto preserve stack traces
Common Mistakes
- [ ] No mutable default arguments
- [ ] Using
loggernotprint()for output - [ ] f-strings preferred over
.format()or%
Valid Patterns (Do NOT Flag)
These patterns are intentional and correct - do not report as issues:
- Type annotation vs type assertion - Annotations declare types but are not runtime assertions; don't confuse with missing validation
- Using `Any` when interacting with untyped libraries - Required when external libraries lack type stubs
- Empty `__init__.py` files - Valid for package structure, no code required
- `noqa` comments - Valid when linter rule doesn't apply to specific case
- Using `cast()` after runtime type check - Correct pattern to inform type checker of narrowed type
Context-Sensitive Rules
Only 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 |
Gates (reporting workflow)
Complete in order. Do not advance until each pass condition is met.
- Scope — Pass: You list every
.pypath (or explicit glob) you inspected this run. - False-positive screen — Pass: For each issue you plan to report, you checked Valid Patterns and Context-Sensitive Rules above; you drop or narrow the finding if those sections say not to flag it.
- Evidence — Pass: Each remaining finding includes `[FILE:LINE]` (or a bounded line range). Symbols or short verbatim snippets may supplement the location anchor but do not replace it.
- Verification protocol — Pass: You load review-verification-protocol and complete its mandatory steps for each reported issue before the user-facing write-up.
- Ship — Pass: The user-visible output matches whatever structure that protocol requires (no issues-only dump that skips its checks).
When to Load References
- Reviewing code formatting/style → pep8-style.md
- Reviewing function signatures → type-safety.md
- Reviewing
async deffunctions → async-patterns.md - Reviewing try/except blocks → error-handling.md
- General Python review → common-mistakes.md
Review Questions
- Does the code follow PEP8 formatting (indentation, line length, whitespace)?
- Are imports properly grouped (stdlib → third-party → local)?
- Do names follow conventions (snake_case, CamelCase, UPPER_CASE)?
- Are all function signatures fully typed?
- Are async functions truly non-blocking?
- Do exceptions include meaningful context?
- Are there any mutable default arguments?
Before reporting: complete Gates (reporting workflow) above (especially gate 4).
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/beagle-python/skills/python-code-review/SKILL.md
Popularity
- Repository stars
- 78
- Repository forks
- 9
- 7-day trend score
- 22
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 18 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/existential-birds/beagle/python-code-review)