n98-magerun2-performance-review: Agent for Claude Code

.claude/agents/README.md

README is an agent for Claude Code from magendooro/n98-magerun2-performance-review. It costs 0 tokens per session (2,437 once invoked), scanned A, original, MIT.

Documentation for six specialised AI helpers used with the Magento Performance Review module. Each helper focuses on a different job, such as creating, debugging, testing, reviewing, documenting, or speeding up analyzers.

In plain words
What is it for?
Use it to find the appropriate helper for creating custom analyzers, diagnosing failures, writing PHPUnit tests, reviewing code, updating documentation, or improving slow analyzers.
Why use it?
It helps you choose the right helper for a task instead of asking one assistant to handle unrelated work. The usage guidance explains when each helper is selected.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

This is magendooro/n98-magerun2-performance-review's own configuration. It tells Claude Code how to work on n98-magerun2-performance-review 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 n98-magerun2-performance-review configures →

Reuse

Borrowing it

Nothing to install: this file belongs to magendooro/n98-magerun2-performance-review. 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/magendooro/n98-magerun2-performance-review/main/.claude/agents/README.md
Clone the repo
git clone --depth 1 https://github.com/magendooro/n98-magerun2-performance-review

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 README

README.md
[![agentmods](https://agentmods.dev/badge/agents/magendooro/n98-magerun2-performance-review/readme/github.svg)](https://agentmods.dev/agents/magendooro/n98-magerun2-performance-review/readme)
Your own site
<a href="https://agentmods.dev/agents/magendooro/n98-magerun2-performance-review/readme"><img src="https://agentmods.dev/badge/agents/magendooro/n98-magerun2-performance-review/readme/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 README

Your own site · 80×15
<a href="https://agentmods.dev/agents/magendooro/n98-magerun2-performance-review/readme"><img src="https://agentmods.dev/badge/agents/magendooro/n98-magerun2-performance-review/readme.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,437 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.00000 $0.02437
Opus 5 $0.00000 $0.01218
Sonnet 5 $0.00000 $0.00487
Haiku 4.5 $0.00000 $0.00244

Measured 10d ago against content hash 39a82d580364, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

README 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 10d 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.

.claude/agents/README.md · 440 lines

How it starts

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

Performance Review Sub-agents

This directory contains 6 specialized Claude Code sub-agents for working with the Performance Review module.

What Are Sub-agents?

Sub-agents are specialized AI assistants that Claude Code can delegate tasks to. Each operates with its own context window and specialized expertise, making them more efficient and focused than using the main Claude instance for everything.

Available Sub-agents

Sub-agent Purpose When Used File Size
analyzer-creator Create new custom analyzers User wants to add performance checks 16KB
analyzer-debugger Debug analyzer issues Analyzer not loading or not working 13KB
test-writer Write PHPUnit tests Need test coverage for analyzers 18KB
code-reviewer Review analyzer code quality Before committing changes 14KB
documentation-updater Update documentation After code changes 10KB
performance-optimizer Optimize slow analyzers Analyzer has performance issues 14KB

Total: 6 agents, ~85KB of specialized expertise

How They Work

Automatic Invocation

Claude Code automatically selects the right sub-agent based on your request:

"Create a custom analyzer to check Redis memory"
→ analyzer-creator agent automatically invoked

"My analyzer isn't showing up in --list-analyzers"
→ analyzer-debugger agent automatically invoked

"Write tests for my analyzer"
→ test-writer agent automatically invoked

Explicit Invocation

You can also explicitly request a specific agent:

"Use the analyzer-creator agent to create a new analyzer"
"Use the code-reviewer agent to review my code"
"Use the performance-optimizer agent to optimize this analyzer"

Sub-agent Details

1. analyzer-creator

Expertise: Creating new custom analyzers from requirements

Workflow:

  1. Gathers requirements (what to check, thresholds, priority)
  2. Designs analyzer structure (interfaces, dependencies)
  3. Implements complete PHP class
  4. Creates YAML configuration
  5. Provides testing commands
  6. Documents usage

Read the full file on GitHub · 440 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. 10d ago First seen · 440 lines · 0 tokens per session scan A 39a82d580364

Subscribe to this mod's changes

README is an agent published in the GitHub repository magendooro/n98-magerun2-performance-review (22 stars, last pushed 9mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,437 tokens. 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.