review-python
Skill8 starsChanged 3 months agoMITView on GitHub
Review Python code for language and runtime conventions: type hints, exceptions, async/await, context managers, dependencies, and testability. Language-only atomic skill; output is a findings list.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- existential-birds/beagletheir own version, first seen Nov 29, 2026
- nielsmadan/skillstheir own version, first seen Nov 8, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- existential-birds/beagle★ 91same name
- nielsmadan/skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository82 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- archive-milestoneSkill
- automate-testsSkill
- bump-versionSkill
- capture-work-itemsSkill
- clarify-product-requirementSkill
- commit-workSkill
- competitive-researchSkill
- consume-nats-messageSkill
- decontextualize-textSkill
- deep-researchSkill
- define-docs-normsSkill
- define-missionSkill
- define-north-starSkill
- define-roadmapSkill
- define-strategic-pillarsSkill
- define-visionSkill
- deliver-featureSkill
- design-strategic-goalsSkill
- eli5Skill
- establish-delivery-workflowSkill
- execute-delivery-workflowSkill
- generate-agent-entrySkill
- generate-github-workflowSkill
- generate-standard-readmeSkill
- inspect-artifact-stateSkill
- integrate-branchesSkill
- manage-secretSkill
- map-item-dependenciesSkill
- market-researchSkill
- orchestrate-code-reviewSkill
- orchestrate-governance-stepSkill
- orchestrate-repair-loopSkill
- orchestrate-repair-requirements-loopSkill
- orchestrate-roadmap-planningSkill
- plan-milestonesSkill
- plan-nextSkill
- policy-researchSkill
- ponytailSkill
- prepare-presales-responseSkill
- prepare-version-notesSkill
- prioritize-backlogSkill
- produce-video-from-presentationSkill
- produce-video-from-scriptSkill
- product-opportunity-analysisSkill
- promote-roadmap-itemsSkill
- publish-nats-messageSkill
- record-milestone-achievementSkill
- redeploy-localSkill
- refine-skill-designSkill
- rename-sessionSkill
- review-architectureSkill
- review-codebaseSkill
- review-diffSkill
- review-dotnetSkill
- review-error-surfacingSkill
- review-functional-designSkill
- review-goSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. About 0 are common, 4 are distinctive, and 12 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
12
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 55
Handoff point: When all Python findings are emitted, hand off to orchestrate-code-review for aggregation.
- Distinctive: line 62
Python-only review: When the user wants only language/runtime conventions checked (e.g.
- Distinctive: line 63
Pre-PR Python checklist: Ensure type hints, exception handling, and async patterns are correct.
- Distinctive: line 65
When to use: When the code under review is Python and the task includes language/runtime quality.
- Very specific: line 78
Type hints: Use typing module for complex types, avoid Any where possible, use Optional[T] over T | None for Python <3.10, proper use of …
- Very specific: line 81
Context managers: Use with statement for resource management, implement __enter__/__exit__ or use @contextmanager, avoid manual open/close.
- Very specific: line 83
Mutable defaults: Avoid mutable default arguments (e.g.
- Very specific: line 84
Naming conventions: Follow PEP8 (snake_case for functions/variables, PascalCase for classes, SCREAMING_SNAKE_CASE for constants).
- Distinctive: line 85
Testability: Avoid global state, use dependency injection, mock external services, avoid tight coupling.
- Very specific: line 118
Do NOT select or define the code scope — scope is determined by the caller or orchestrate-code-review
- Very specific: line 119
Do NOT perform security analysis — use review-security
- Very specific: line 120
Do NOT perform architecture analysis — use review-architecture
- Very specific: line 121
Do NOT perform comprehensive SQL analysis — use review-sql
- Very specific: line 125
When all Python findings are emitted, hand off to orchestrate-code-review for aggregation
- Very specific: line 126
When the user needs a full review (scope + language + cognitive), redirect to orchestrate-code-review
- Very specific: line 127
When security issues are found (e.g.
≈ “Common” is an estimate: at least 1 in 5 of the 383,637 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Skill: Review Python
Purpose
Review code in Python for language and runtime conventions only. Do not define scope (diff vs codebase) or perform security/architecture analysis; those are handled by scope and cognitive skills. Emit a findings list in the standard format for aggregation. Focus on type hints, exception handling, async/await patterns, context managers, dependency management, and testability.
Core Objective
Primary goal: Produce a Python language/runtime findings list covering type hints, exception handling, async/await patterns, context managers, dependency management, naming conventions, and testability for the given code scope.
Success Criteria (ALL must be met):
- ✅ Python-only scope: Only Python language and runtime conventions are reviewed; no scope selection, security, or architecture analysis performed
- ✅ All eight Python dimensions covered: Type hints, exception handling, async/await, context managers, dependency management, mutable defaults, naming conventions (PEP8), and testability are assessed where relevant
- ✅ Findings format compliant: Every finding carries every element findings-list §5.1 requires, with category
language-python - ✅ File:line references: All findings reference specific file locations with line numbers
- ✅ Non-Python code excluded: Non-Python files are not analyzed for Python-specific rules unless explicitly in scope
Acceptance Test: Does the output contain a Python-focused findings list with file:line references covering all relevant language/runtime dimensions without performing security, architecture, or scope analysis?
Scope Boundaries
This skill handles:
- Type hints (
typingmodule,Optional,Union, generics) - Exception handling (specific exceptions,
raise ... from, no bareexcept:,try/finally) - async/await patterns (async functions, blocking calls in async context,
asyncio.gather) - Context managers (
withstatement,__enter__/__exit__,@contextmanager) - Dependency management (pinned deps,
import *avoidance, virtual environments) - Mutable default arguments (avoiding
def foo(a=[]):) - PEP8 naming conventions (snake_case, PascalCase, SCREAMING_SNAKE_CASE)
- Testability (global state avoidance, DI, mock-friendly design)
This skill does NOT handle:
- Scope selection — scope is provided by the caller
- Security analysis — use
review-security - Architecture analysis — use
review-architecture - SQL-specific analysis — use
review-sql - Full orchestrated review — use
orchestrate-code-review
Handoff point: When all Python findings are emitted, hand off to orchestrate-code-review for aggregation. For security issues (injection, auth), note them and suggest review-security.
Use Cases
- Orchestrated review: Used as the language step when orchestrate-code-review runs scope -> language -> framework -> library -> cognitive for Python projects.
- Python-only review: When the user wants only language/runtime conventions checked (e.g. after adding a new Python file).
- Pre-PR Python checklist: Ensure type hints, exception handling, and async patterns are correct.
When to use: When the code under review is Python and the task includes language/runtime quality. Scope (diff vs paths) is determined by the caller or user.
Behavior
Scope of this skill
- Analyze: Python language and runtime conventions in the given code scope (files or diff provided by the caller). Do not decide scope; accept the code range as input.
- Do not: Perform scope selection (diff vs codebase), security review, or architecture review; do not review non-Python files for Python-specific rules unless explicitly in scope.
Review checklist (Python dimension only)
- Type hints: Use
typingmodule for complex types, avoidAnywhere possible, useOptional[T]overT | Nonefor Python <3.10, proper use ofUnion,List,Dict,Callable, and generic type hints. - Exception handling: Catch specific exceptions, avoid bare
except:, useraise ... fromfor exception chaining, avoid swallowing exceptions without logging, proper use oftry/finally. - Async/await: Proper use of
async defandawait, avoid blocking calls in async functions, proper exception handling in async context, use ofasyncio.gather,asyncio.create_taskfor concurrency. - Context managers: Use
withstatement for resource management, implement__enter__/__exit__or use@contextmanager, avoid manual open/close. - Dependency management: Pin dependencies in
requirements.txtorpyproject.toml, avoidimport *, use virtual environments, proper use ofsys.pathmanipulation. - Mutable defaults: Avoid mutable default arguments (e.g.
def foo(a=[]):), useNoneand initialize inside function. - Naming conventions: Follow PEP8 (snake_case for functions/variables, PascalCase for classes, SCREAMING_SNAKE_CASE for constants).
- Testability: Avoid global state, use dependency injection, mock external services, avoid tight coupling.
Tone and references
- Professional and technical: Reference specific locations (file:line). Emit findings carrying every element findings-list §5.1 requires.
Input & Output
Input
- Code scope: Files or directories (or diff) already selected by the user or by the scope skill. This skill does not decide scope; it reviews the provided Python code for language conventions only.
Output
- Emit zero or more findings in the format defined in specs/findings-list.md, with Category
language-python. - Category for this skill is language-python.
Restrictions
Hard Boundaries
- Do not perform security, architecture, or scope selection. Stay within Python language and runtime conventions.
- Do not emit a finding without a precise location. When a suggestion is included, it must be actionable; follow the canonical Findings Spec for required elements.
- Do not review non-Python code for Python-specific rules unless the user explicitly includes it (e.g. embedded code snippets).
Skill Boundaries
Do NOT do these (other skills handle them):
- Do NOT select or define the code scope — scope is determined by the caller or
orchestrate-code-review - Do NOT perform security analysis — use
review-security - Do NOT perform architecture analysis — use
review-architecture - Do NOT perform comprehensive SQL analysis — use
review-sql
When to stop and hand off:
- When all Python findings are emitted, hand off to
orchestrate-code-reviewfor aggregation - When the user needs a full review (scope + language + cognitive), redirect to
orchestrate-code-review - When security issues are found (e.g. SQL injection, command injection), note them and suggest
review-security
Self-Check
Core Success Criteria
- Python-only scope: Only Python language and runtime conventions are reviewed; no scope selection, security, or architecture analysis performed
- All eight Python dimensions covered: Type hints, exception handling, async/await, context managers, dependency management, mutable defaults, naming conventions (PEP8), and testability are assessed where relevant
- Findings format compliant: Every finding carries every element findings-list §5.1 requires, with category
language-python - File:line references: All findings reference specific file locations with line numbers
- Non-Python code excluded: Non-Python files are not analyzed for Python-specific rules unless explicitly in scope
Process Quality Checks
- Was only the Python language/runtime dimension reviewed (no scope/security/architecture)?
- Are type hints, exception handling, async patterns, context managers, and testability covered where relevant?
- Does every finding carry every element findings-list §5.1 requires, with category=language-python?
- Are issues referenced with file:line?
Acceptance Test
Does the output contain a Python-focused findings list with file:line references covering all relevant language/runtime dimensions without performing security, architecture, or scope analysis?
Examples
Example 1: Mutable default argument
- Input:
def foo(items=[]): - Expected: Emit a finding for mutable default argument; suggest using
Noneand initializing inside. Category = language-python.
Example 2: Bare except
- Input:
except: pass - Expected: Emit a finding to catch specific exceptions; reference the bare except clause. Category = language-python.
Example 3: Async blocking call
- Input:
async def fetch(): requests.get(url)inside an async function. - Expected: Emit a finding to use
aiohttporhttpx; reference the blocking call. Category = language-python.
Edge case: Mixed Python and SQL
- Input: Python file with embedded SQL strings for database queries.
- Expected: Review only Python conventions (type hints, exception handling). Do not emit SQL-injection findings; that is for review-security or review-sql.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

