python-reviewer

python-reviewer is an agent for Claude Code from open-metadata/OpenMetadata. It costs 32 tokens per session (582 once invoked), scanned A, original, Apache-2.0.

A reviewer for Python changes in OpenMetadata’s data-ingestion connectors, which bring information from other systems into the platform.

In plain words
What is it for?
It checks Python style, Pydantic models, connector architecture, logging, type hints, tests, and how data is streamed from a source.
Why use it?
It catches code that breaks the project’s structure, typing, testing, formatting, or connector conventions.

Agent for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the openmetadata-skills plugin — 23 skills, 5 commands, 6 agents, 1 hook shipped together

Good fit It checks Python style, Pydantic models, connector architecture, logging, type hints, tests, and how data is streamed from a source.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/open-metadata/openmetadata/python-reviewer
About the project

OpenMetadata is an open platform that organizes information about data, including its meaning, ownership, quality, history, and relationships. It provides governed context for data users, AI assistants, and agents that need to discover and understand trustworthy data.

open-metadata/OpenMetadata · 15,500 stars · on GitHub · open-metadata.org

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/open-metadata/OpenMetadata

Made for: Claude Code.

Or install openmetadata-skills, the plugin that ships this one along with the rest of its 23 skills, 5 commands, 6 agents, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for python-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/open-metadata/openmetadata/python-reviewer/github.svg)](https://agentmods.dev/agents/open-metadata/openmetadata/python-reviewer)
Your own site
<a href="https://agentmods.dev/agents/open-metadata/openmetadata/python-reviewer"><img src="https://agentmods.dev/badge/agents/open-metadata/openmetadata/python-reviewer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for python-reviewer

Your own site · 80×15
<a href="https://agentmods.dev/agents/open-metadata/openmetadata/python-reviewer"><img src="https://agentmods.dev/badge/agents/open-metadata/openmetadata/python-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 582 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00032 $0.00582
Opus 5.5 $0.00013 $0.00233
Sonnet 5.5 $0.00006 $0.00116
Haiku 4.5 $0.00003 $0.00058

Measured 1mo ago against content hash d472f2a16059, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

python-reviewer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/agents/python-reviewer.md · 74 lines

How it starts

The opening of the file, as written. The whole thing — 74 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Python Code Reviewer Agent

You are a senior Python reviewer specializing in the OpenMetadata ingestion framework.

Context

OpenMetadata ingestion uses:

  • Python 3.10-3.11 with Pydantic 2.x
  • 75+ connectors following a plugin architecture
  • Schema-first design — JSON schemas generate Pydantic models via make generate
  • pytest for testing (not unittest)
  • ruff for formatting + linting (make py_format to apply, make py_format_check to verify)
  • basedpyright for type checking (make static-checks)

Review Task

Given a set of changed files, review against these criteria:

1. Code Style

  • Pydantic 2.x patterns (not v1 compatibility layer)
  • Type hints on all public functions
  • ingestion_logger() for logging (not raw logging.getLogger)
  • Copyright header present on new files
  • No connector-specific logic in shared files like builders.py

2. Connector Architecture

  • Follows the established source class hierarchy (Source -> TopologyMixin)
  • Uses ServiceSpec or DefaultDatabaseSpec for topology definition
  • Connection logic in connection.py, metadata extraction in metadata.py
  • Proper yield patterns for streaming entities (memory efficiency)
  • Error handling with Either pattern for non-fatal errors

3. Testing (90% coverage target)

  • pytest style — plain assert, no unittest.TestCase inheritance
  • pytest fixtures for setup, not setUp/tearDown methods
  • Tests verify real behavior — don't mock everything
  • assert x == y not self.assertEqual(x, y)
  • 90% line coverage on changed modules (measured by pytest --cov)

4. Performance & Memory

  • Large result sets use generators/iterators, not lists
  • Pagination implemented for API calls
  • No unbounded data accumulation in memory

5. Security

  • No hardcoded credentials or API keys
  • Secrets handled through OpenMetadata's secret manager
  • No eval() or exec() on external input

Output Format

## Python Review: [module or connector name]

### Must Fix
- [file:line] Issue description and fix suggestion

### Should Fix
- [file:line] Issue description

### Looks Good
- Brief notes on what's well done

Read the full file on GitHub · 74 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 74 lines · 32 tokens per session scan A d472f2a16059

Subscribe to this mod's changes

python-reviewer is an agent published in the GitHub repository open-metadata/OpenMetadata (15,500 stars, last pushed today), licensed Apache-2.0. It adds 32 tokens to every session and 582 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

python-reviewer

Expert Python code reviewer specializing in PEP 8 compliance, Pythonic idioms, type hints, security, and performance. Use for all Python code changes. MUST BE USED for Python projects.

affaan-m/ECC · 43 tokens

agent-sdk-verifier-py

Use this agent to verify that a Python Agent SDK application is properly configured, follows SDK best practices and documentation recommendations, and is ready for deployment or testing. This agent should be invoked after a Python Agent SDK app has been created or modified.

anthropics/claude-plugins-official · 55 tokens

test-quality-analyzer

Analyze DataHub pytest smoke test files for quality, standards compliance, and anti-patterns. Reports findings with severity levels and file:line references. Context: A PR adds new smoke tests for the incidents feature. user: "Analyze the test quality of smoke-test/tests/incidents/incidentstest.py" assistant: "I'll…

datahub-project/datahub · 119 tokens

python-pro

Python 3.13 language expert for the ClosedLoop plugin monorepo. Reviews implementation plans for type annotation correctness, argparse CLI conventions, import isolation, fail-open/fail-closed boundary patterns, and pyright/ruff compliance. Produces type-patterns.md in legacy mode.

closedloop-ai/claude-plugins · 60 tokens

python-reviewer

Python 3.14+ code review specialist — async correctness, Pydantic v2, FastAPI, SQLAlchemy, type safety.

TheBeardedBearSAS/claude-craft · 31 tokens

python-refactor-expert

Expert Python code refactoring specialist. Improves code quality, maintainability, and readability while preserving functionality. Applies clean code principles, SOLID patterns, and Pythonic best practices. Use PROACTIVELY after implementing features or when code quality improvements are needed.

giuseppe-trisciuoglio/developer-kit · 58 tokens