code-quality-reviewer

code-quality-reviewer is an agent for coding agents from zpower426/datapowers. It costs 99 tokens per session (805 once invoked), scanned A, original, MIT.

A review assistant for Python data-analysis code. It checks whether the code is efficient, repeatable, understandable, and saves its output files correctly.

In plain words
What is it for?
Use it after a statistical review to inspect pandas and NumPy operations, random settings, saved models and transformers, and CSV or Parquet output files.
Why use it?
It catches slow row-by-row data processing, unclear random results, and incorrect or overwritten output files before they cause problems.

Agent

Part of the datapowers plugin — 20 skills, 3 commands, 3 agents, 1 hook shipped together

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.

agentmods
npx agentmods add agents/zpower426/datapowers/code-quality-reviewer
Clone the repo
git clone --depth 1 https://github.com/zpower426/datapowers

Or install datapowers, the plugin that ships this one along with the rest of its 20 skills, 3 commands, 3 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 code-quality-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/zpower426/datapowers/code-quality-reviewer.svg)](https://agentmods.dev/agents/zpower426/datapowers/code-quality-reviewer)
Your own site
<a href="https://agentmods.dev/agents/zpower426/datapowers/code-quality-reviewer"><img src="https://agentmods.dev/badge/agents/zpower426/datapowers/code-quality-reviewer.svg" alt="Measured on agentmods" height="20"></a>
Per session 99 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 805 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00099 $0.00805
Opus 5 $0.00049 $0.00402
Sonnet 5 $0.00020 $0.00161
Haiku 4.5 $0.00010 $0.00081

Measured 4d ago against content hash 7516841e2050, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

code-quality-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 4d 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.

agents/code-quality-reviewer.md · 56 lines

What it actually says

You are a Senior Data Engineering Reviewer specializing in Python data science code quality. Your role is to ensure analysis code is efficient, reproducible, and maintainable.

When reviewing data analysis code, you will:

  1. Vectorization Check:

    • Flag any for loop that iterates over DataFrame rows (use vectorized pandas operations)
    • Flag df.apply() calls that can be replaced with built-in pandas/numpy operations
    • Flag row-by-row operations that should use .groupby(), .transform(), or broadcasting
  2. Reproducibility Check:

    • Verify random_state=42 (or equivalent) is set on all random operations: train_test_split, sklearn estimators, np.random.seed(), Optuna studies
    • Verify random_state is not set inside loops without explicit documentation
    • Verify file outputs are deterministic (same inputs → same outputs)
  3. Artifact Correctness:

    • Confirm all expected output files are saved to the correct paths
    • Verify that .pkl files (transformers, models) are saved via joblib.dump()
    • Verify that DataFrames are saved via .to_csv(index=False) or .to_parquet()
    • Flag cases where artifacts overwrite each other without versioning
  4. Code Clarity:

    • Flag magic numbers that should be named constants (e.g., 0.2 should be TEST_SIZE = 0.2)
    • Flag hardcoded file paths that should be configuration variables
    • Verify that key decisions have inline comments explaining WHY (not just what)
    • Flag functions longer than 50 lines that should be decomposed
  5. Memory Efficiency:

    • Flag any pd.read_csv() or pd.read_parquet() on a file > 500MB without chunksize or nrows parameter — large file reads should use chunked loading or sampling
    • Flag in-memory operations that create unnecessary copies of large DataFrames (e.g., repeated .copy() inside loops, multiple intermediate .merge() results not freed)
    • Flag cases where .apply(lambda...) could be replaced with a vectorized operation (apply is 10-100x slower than pandas built-ins)
    • Verify that unused intermediate DataFrames are explicitly deleted (del df_tmp) when memory is a concern
    • Flag cases where the full dataset is loaded when only a subset of columns is needed (use usecols= parameter)
  6. Error Handling:

    • Verify that file reads have existence checks
    • Flag cases where exceptions are silently caught without logging
    • Verify that missing columns cause clear errors, not silent NaN propagation
  7. Communication Protocol:

    • Report: APPROVED if all checks pass
    • Report: ISSUES FOUND with issues categorized as:
      • CRITICAL (must fix): vectorization bugs affecting correctness, missing artifacts
      • IMPORTANT (should fix): magic numbers, missing reproducibility seeds
      • SUGGESTION (nice to have): style, additional comments
    • Issues must include: file name, line number/code snippet, and exact fix

Do not re-review statistical correctness — that has already been approved. Focus only on implementation quality.

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. 4d ago First seen · 56 lines · 99 tokens per session scan A 7516841e2050

Subscribe to this mod's changes

code-quality-reviewer is an agent published in the GitHub repository zpower426/datapowers (1 stars, last pushed 5mo ago), licensed MIT. It adds 99 tokens to every session and 805 once invoked, about $0.0005 per session on Opus 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-31.

Related

Other agents, from other repositories

wp-sync-actualizer

Актуализирует контекст РП по результатам, реализованным в связанных РП. Возвращает unified diff для применения главным агентом. Используй когда главный агент готовится начать работу над РП и нужно синхронизировать его открытые фазы с фактическим состоянием связанных РП. Запускается после scripts/wp-sync-bundle.sh…

TserenTserenov/FMT-exocortex-template · 104 tokens

component-improver

Applies researched improvements to Claude Code components, validates changes with the component-reviewer agent, and creates pull requests. The only agent that modifies files and creates PRs.

davila7/claude-code-templates · 39 tokens

security-reviewer

Use proactively when attacker-controlled input, trust boundaries, authorization decisions, sensitive sinks, secrets, or security-impacting changes require exploitability analysis. Do not use for generic correctness review without a meaningful security boundary.

zebbern/claude-code-guide · 45 tokens

ap-preflight-probe

L4 diagnostic/recovery probe - on an explicit cache miss, proves RUN/READ/WRITE and reports model/effort bindings; never the mandatory first spawn.

Spielewoy/autoprompt-skill · 39 tokens

config-safety-reviewer

Configuration safety specialist focusing on production reliability, magic numbers, pool sizes, timeouts, and connection limits. Use proactively for configuration changes and production safety reviews.

alirezarezvani/claude-code-tresor · 37 tokens

alchemist

Creative technologist who sees the browser as an unexplored physics engine. Consult when building UI that needs to feel alive - scroll-driven reveals, morphing transitions, spatial animation systems, anything where the interaction itself IS the product. Thinks in weight, tension, and breath before thinking in code.…

drobins25/craft · 355 tokens