pymapdl: Agent for Claude Code

.github/agents/reviewer.agent.md

reviewer is an agent for Claude Code from ansys/pymapdl. It costs 32 tokens per session (357 once invoked), scanned A, original, MIT.

A code-review agent that checks proposed changes before they are merged into a shared codebase. It reviews code quality, documentation, tests, security, and continuous-integration checks.

In plain words
What is it for?
Use it to review Python pull requests, check coverage and test reliability, run code-quality and security checks, and confirm project-specific rules are followed.
Why use it?
It helps catch problems before a pull request is merged, including missing documentation, weak tests, security issues, and changes that could break existing users.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

This is ansys/pymapdl's own configuration. It tells Claude Code how to work on pymapdl itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything pymapdl configures →

Reuse

Borrowing it

Nothing to install: this file belongs to ansys/pymapdl. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/ansys/pymapdl/main/.github/agents/reviewer.agent.md
Clone the repo
git clone --depth 1 https://github.com/ansys/pymapdl

Made for: Claude Code.

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 reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/ansys/pymapdl/reviewer/github.svg)](https://agentmods.dev/agents/ansys/pymapdl/reviewer)
Your own site
<a href="https://agentmods.dev/agents/ansys/pymapdl/reviewer"><img src="https://agentmods.dev/badge/agents/ansys/pymapdl/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 reviewer

Your own site · 80×15
<a href="https://agentmods.dev/agents/ansys/pymapdl/reviewer"><img src="https://agentmods.dev/badge/agents/ansys/pymapdl/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 357 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.00357
Opus 5.5 $0.00013 $0.00143
Sonnet 5.5 $0.00006 $0.00071
Haiku 4.5 $0.00003 $0.00036

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

Security

Grade A, and why

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 2mo 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.

.github/agents/reviewer.agent.md · 47 lines

What it actually says

Code Reviewer Agent

Reviewer blocks merge if any quality condition fails.

Review checklist

Code quality

  • Pre-commit hooks pass (uv run pre-commit run --all-files)
  • No bare or overly broad exceptions
  • No hardcoded values that should be configurable
  • Backwards compatibility maintained (or properly deprecated)
  • No modifications to src/ansys/mapdl/core/_commands/ (auto-generated)

Documentation

  • Numpydoc docstrings on all public methods (Summary, Parameters, Returns, Examples)
  • vale and codespell pass
  • doc/source/links.rst updated if new external references added

Testing

  • Coverage ≥ 90%
  • MAPDL instances minimized — mocking used where possible
  • No flaky tests

Security

  • No secrets or credentials committed
  • bandit passes (uv run bandit -c pyproject.toml -r src/)

CI/CD

  • All CI checks passing
  • No hand-written changelog fragment in doc/changelog.d/ (CI/CD generates it)

Commands

uv run pre-commit run --all-files
uv run pytest --cov=src/ansys/mapdl/core --cov-report=term
uv run bandit -c pyproject.toml -r src/
gh pr checkout <pr-number>
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. 2mo ago First seen · 47 lines · 32 tokens per session scan A 1c750a505c9a

Subscribe to this mod's changes

reviewer is an agent published in the GitHub repository ansys/pymapdl (525 stars, last pushed today), licensed MIT. It adds 32 tokens to every session and 357 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

quality-guardian

Code quality, testing, and validation enforcement specialist.

roboticforce/sugar · 13 tokens

eng-reviewer

Final review gate and quality enforcer for the /eng-team skill. Invoked as the mandatory final gate before release, verifying architecture compliance, security standards compliance, and test coverage. Integrates /adversary for C2+ deliverables per R-013 at >= 0.95 quality threshold. Routes from Step 7 of the /eng-team…

geekatron/jerry · 109 tokens

reviewer

Grades a diff against the spec and tests. Returns a JSON verdict. Makes no changes.

DanielHashmi/Q4_learning · 21 tokens

ai-hygiene-auditor

Audit codebases for AI-generation warning signs: vibe coding patterns, agent psychosis indicators, slop artifacts, and Tab-completion bloat. Specialized complement to bloat-auditor.

athola/claude-night-market · 48 tokens

sap-test-plan-reviewer

Adversarial review of a test-case plan produced by design-cases. READS the actual ABAP source snapshot (plus findings.md, flow.md, units.md, and the TC-.md files) to catch branches and MESSAGEs the plan missed, checks total case count against the enumerated minimum, checks every mandatory category has at least one…

marcellourbani/vscode_abap_remote_fs · 161 tokens

edge-case-explorer

Systematically discovers and catalogs edge cases that should be covered by tests for a given piece of code. Traces input sources, call chains, and integration boundaries to find boundary values, type coercion traps, external input messiness, state-dependent failures, and error propagation gaps. Use when exploring how…

testdouble/han · 135 tokens