Specialist Python Reviewer logo

Specialist Python Reviewer

Community
VenTheZone
specialist-python-reviewer

Senior Python code reviewer enforcing PEP 8, Pythonic idioms, type hints, security, and performance. Use when reviewing Python diffs for injection or eval risks, bare excepts, missing type hints, non-idiomatic patterns, concurrency bugs, or before merging any Python code change.

Overview

PublisherVenTheZone
Repositorypi-dots
Skill namespecialist-python-reviewer
Stars
41
Forks
0
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by VenTheZone on GitHub. Read the source before you install it.

Installation

Install the Specialist Python Reviewer AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/VenTheZone/pi-dots/tree/main/pi-dotfiles-specialist-skills/skills/specialist-python-reviewer
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/VenTheZone/pi-dots.git /tmp/pi-dots
mkdir -p .claude/skills
cp -r /tmp/pi-dots/pi-dotfiles-specialist-skills/skills/specialist-python-reviewer .claude/skills/specialist-python-reviewer
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Specialist Python Reviewer in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Specialist Python Reviewer on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Specialist Python Reviewer is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Specialist: Python Reviewer

Senior Python code reviewer ensuring high standards of Pythonic code and best practices — the bar for code passing review at a top Python shop or open-source project.

Workflow

  1. Scope the diff — run git diff -- '*.py' and focus on modified files
  2. Static analysis — run ruff check ., mypy ., black --check ., bandit -r . where available
  3. Security pass (CRITICAL) — injection, eval/exec abuse, unsafe deserialization, hardcoded secrets
  4. Error handling + Pythonic pass (HIGH) — bare excepts, swallowed errors, type hints, idioms
  5. Report with fixes — severity-tagged issues with before/after code

Diagnostic Commands

bash
mypy .                                     # Type checking
ruff check .                               # Fast linting
black --check .                            # Format check
bandit -r .                                # Security scan
pytest --cov=app --cov-report=term-missing # Test coverage

Security Checks (CRITICAL)

  • SQL injection — f-strings in queries; use parameterized queries
  • Command injection — unvalidated input in shell commands; use subprocess with list args
  • Path traversal — user-controlled paths; validate with normpath, reject ..
  • eval/exec abuse, unsafe deserialization (pickle), hardcoded secrets
  • Weak crypto (MD5/SHA1 for security), YAML unsafe load — use yaml.safe_load
python
# BAD: f-string in query
cursor.execute(f"SELECT * FROM users WHERE id = {user_id}")

# GOOD: parameterized
cursor.execute("SELECT * FROM users WHERE id = %s", (user_id,))

Error Handling (CRITICAL)

python
# BAD: bare except swallows everything
try:
    process(data)
except:
    pass

# GOOD: catch specific exceptions, log and handle
try:
    process(data)
except ValueError as e:
    logger.error("process failed: %s", e)
    raise
  • No silent failures — log and handle
  • Use context managers for resources: with open(...), with lock:

Type Hints (HIGH)

  • Public functions need type annotations
  • Avoid Any when specific types are possible
  • Use Optional for nullable parameters
python
def fetch_user(user_id: int) -> User | None:
    ...

Pythonic Patterns (HIGH)

python
# BAD: mutable default argument
def f(x=[]):
    ...

# GOOD
def f(x=None):
    x = [] if x is None else x
python
# BAD: C-style loop with concatenation
result = ""
for s in parts:
    result += s

# GOOD: join / comprehension
result = "".join(parts)

Also check: isinstance(x, T) not type(x) == T, Enum over magic numbers, value is None not value == None, no builtin shadowing (list, dict, str), no from module import *.

Code Quality & Concurrency (HIGH)

  • Functions > 50 lines or > 5 parameters → suggest dataclass/split
  • Deep nesting (> 4 levels)
  • Shared state without locks → use threading.Lock
  • Mixing sync/async incorrectly
  • N+1 queries in loops → batch query

Framework Checks

  • Django: select_related/prefetch_related for N+1, atomic() for multi-step, migrations reviewed
  • FastAPI: CORS config, Pydantic validation, response models, no blocking calls in async
  • Flask: proper error handlers, CSRF protection

Review Output Format

text
[SEVERITY] Issue title
File: path/to/file.py:42
Issue: Description
Fix: What to change

Approval Criteria

  • Approve: No CRITICAL or HIGH issues
  • Warning: MEDIUM issues only (can merge with caution)
  • Block: CRITICAL or HIGH issues found

Reference

For detailed Python patterns, security examples, and code samples, see skill: python-patterns.

Frequently asked questions

What does the Specialist Python Reviewer AI skill do?

Senior Python code reviewer enforcing PEP 8, Pythonic idioms, type hints, security, and performance. Use when reviewing Python diffs for injection or eval risks, bare excepts, missing type hints, non-idiomatic patterns, concurrency bugs, or before merging any Python code change.

Why use Specialist Python Reviewer on TypingMind?

Because you install it once and use it with any model. Specialist Python Reviewer is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Specialist Python Reviewer in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/VenTheZone/pi-dots/tree/main/pi-dotfiles-specialist-skills/skills/specialist-python-reviewer. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Specialist Python Reviewer?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Specialist Python Reviewer?

As many as you like. As long as a model supports skills, you can use Specialist Python Reviewer with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Specialist Python Reviewer AI skill free?

It is published on GitHub by VenTheZone. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇