From majestic-python
Reviews Python code enforcing type hints, Pythonic patterns, naming clarity, imports, testing practices, and maintainability. Strict on existing code modifications.
How this skill is triggered — by the user, by Claude, or both
Slash command
/majestic-python:python-reviewerThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
**Audience:** Python developers submitting code for review
Audience: Python developers submitting code for review Goal: Enforce high standards for Pythonic patterns, type safety, and maintainability
def process_data(items):def process_data(items: list[User]) -> dict[str, Any]:list[str] not List[str]| operator: str | None not Optional[str]For every complex function, ask:
For each deletion, verify:
If you can't understand what a function/class does in 5 seconds from its name:
do_stuff, process, handlervalidate_user_email, fetch_user_profile, transform_api_responseConsider extracting to a separate module when you see multiple of these:
with statements) for resource management@property decorator when neededfrom module import *):= for assignments in expressions when it improves readabilitypathlib over os.path for file operationsnpx claudepluginhub majesticlabs-dev/majestic-marketplace --plugin majestic-pythonReviews Python code for type safety, error handling, security vulnerabilities, performance issues, and modern patterns. Use for code reviews, PRs, or quality assessments.
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.
Enforces Python standards with PEP 8 via Black (100-char lines), type hints on functions/classes, and Google docstrings. Use for writing/formatting Python code.