performance

performance is a skill for Claude Code, Codex from caravanglory/magehub. It costs 35 tokens per session (7,003 once invoked), scanned A, original, MIT.

A guide for finding and improving slow parts of Magento 2, an online-store platform. It covers the store's cache, database, search, background jobs, and browser-facing pages.

In plain words
What is it for?
Use it to investigate slow pages or APIs, examine database queries and cache behaviour, use profiling tools such as New Relic or Blackfire, and compare performance before and after a change.
Why use it?
It provides a measured process for identifying the main source of slowness before changing code. This helps distinguish real speed problems from ordinary correctness bugs.

Skill for Claude CodeCodex

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 skills/caravanglory/magehub/performance
Any agent
npx skills add caravanglory/magehub --skill performance
Clone the repo
git clone --depth 1 https://github.com/caravanglory/magehub

Made for: Claude Code, Codex.

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 performance

README.md
[![agentmods](https://agentmods.dev/badge/skills/caravanglory/magehub/performance.svg)](https://agentmods.dev/skills/caravanglory/magehub/performance)
Your own site
<a href="https://agentmods.dev/skills/caravanglory/magehub/performance"><img src="https://agentmods.dev/badge/skills/caravanglory/magehub/performance.svg" alt="Measured on agentmods" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,003 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.00035 $0.07003
Opus 5 $0.00017 $0.03501
Sonnet 5 $0.00007 $0.01401
Haiku 4.5 $0.00003 $0.00700

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

Security

Grade A, and why

performance 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.

skills/performance/performance/SKILL.md · 823 lines

How it starts

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

Performance

Activation

Use When
  • The task is to investigate, profile, or optimize Magento performance in backend, database, cache, search, queue, or frontend layers.
  • The task mentions TTFB, query count, N+1, slow queries, block cache, FPC, Varnish, New Relic, Blackfire, Lighthouse, or WebPageTest.
Do Not Use When
  • The task is a correctness bug with no measured latency, throughput, memory, or resource symptom.
  • The user asks for a code style review rather than a performance baseline and optimization cycle.
Required Inputs
  • Affected page/API/CLI transaction, environment, dataset realism, cache mode, current symptom, and success metric.
  • Available profiler/APM/logging tools and whether production traffic is in scope.

Workflow

  1. Reproduce the symptom in production-like conditions and capture baseline metrics before editing code.
  2. Profile one layer at a time and form a falsifiable hypothesis for the largest bottleneck.
  3. Apply the smallest change that targets that bottleneck only.
  4. Re-measure with the same method and compare baseline vs result; revert or revisit if no improvement is proven.

Guardrails

  • Do not claim a performance improvement without before/after evidence.
  • Do not enable Magento profiler, SQL logging, or verbose APM tracing on production customer-facing traffic. (approval required)
  • Ask before cache flushes, reindex-all commands, or service restarts that can affect shared environments. (approval required)

Verification

  • Report baseline and post-change metrics using the same URL, command, dataset, cache state, and measurement tool.
  • Run targeted tests for any changed code path plus a smoke test for the measured transaction.
  • When cache behavior changes, prove invalidation correctness with cache tags, key info, or a stale-data check.

Output Contract

  • Provide baseline, hypothesis, change made, post-change measurement, delta, commands/tools used, and unresolved measurement risk.
  • State any production-only assumptions that were not verified locally.

Read the full file on GitHub · 823 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. 4d ago First seen · 823 lines · 35 tokens per session scan A 331e09054421

Subscribe to this mod's changes

performance is a skill published in the GitHub repository caravanglory/magehub (2 stars, last pushed 2mo ago), licensed MIT. It adds 35 tokens to every session and 7,003 once invoked, about $0.0002 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 skills, from other repositories

nemoclaw-contributor-implement-issue

Implement an accepted NemoClaw GitHub issue in the current checkout. Use when a user asks to pick up an issue for implementation, implement or fix a named issue, or add the issue's tests. Confirm accepted scope, deliver the smallest independently valuable capability slice, and record validation and remaining gates…

NVIDIA/NemoClaw · 134 tokens

amazon-reviews-api-skill

This skill helps users automatically extract Amazon product reviews via the Amazon Reviews API. Agent should proactively apply this skill when users express needs like getting reviews for Amazon product with ASIN B07TS6R1SF, analyzing customer feedback for a specific Amazon item, getting ratings and comments for a…

browser-act/skills · 124 tokens

amazon-competitor-analyzer

Scrapes Amazon product data from ASINs using browseract.com automation API and performs surgical competitive analysis. Compares specifications, pricing, review quality, and visual strategies to identify competitor moats and vulnerabilities.

browser-act/skills · 48 tokens

shopify-functions

Shopify Functions allow developers to customize the backend logic that powers parts of Shopify. Available APIs: Discount, Cart and Checkout Validation, Cart Transform, Pickup Point Delivery Option Generator, Delivery Customization, Fulfillment Constraints, Local Pickup Delivery Option Generator, Order Routing Location…

Shopify/Shopify-AI-Toolkit · 61 tokens

food-order

Reorder previous Foodora orders, preview cart contents, and track delivery ETA/status with ordercli. Use when the user wants to reorder food, check delivery status, or browse recent Foodora order history. Never confirm an order without explicit user approval.

Bitterbot-AI/bitterbot-desktop · 53 tokens

asc-subscription-localization

Bulk-localize subscription, subscription-group, and in-app purchase display names across App Store locales using asc, including API 4.4.1 version-scoped v2 resources. Use when filling or updating subscription/IAP names and descriptions without App Store Connect UI work.

rorkai/app-store-connect-cli-skills · 60 tokens