perf-profiler

perf-profiler is a skill for Claude Code from JansenAnalytics/claudex. It costs 40 tokens per session (997 once invoked), scanned A, original, MIT.

A tool for measuring how a website or API performs while it runs. It analyzes build files, memory use, network resources, CPU activity, and behavior under load.

In plain words
What is it for?
Use it to inspect JavaScript and CSS bundle sizes, test API load, check resource loading, detect memory leaks, and profile browser interactions.
Why use it?
It helps locate slow requests, oversized bundles, memory leaks, and other performance problems that basic page checks may miss.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Good fit Use it to inspect JavaScript and CSS bundle sizes, test API load, check resource loading, detect memory leaks, and profile browser interactions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jansenanalytics/claudex/perf-profiler
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.

Any agent
npx skills add JansenAnalytics/claudex --skill perf-profiler
Clone the repo
git clone --depth 1 https://github.com/JansenAnalytics/claudex

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 perf-profiler

README.md
[![agentmods](https://agentmods.dev/badge/skills/jansenanalytics/claudex/perf-profiler.svg)](https://agentmods.dev/skills/jansenanalytics/claudex/perf-profiler)
Your own site
<a href="https://agentmods.dev/skills/jansenanalytics/claudex/perf-profiler"><img src="https://agentmods.dev/badge/skills/jansenanalytics/claudex/perf-profiler.svg" alt="Measured on agentmods" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 997 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.00040 $0.00997
Opus 5 $0.00020 $0.00498
Sonnet 5 $0.00008 $0.00199
Haiku 4.5 $0.00004 $0.00100

Measured 4d ago against content hash 5dc56932ab78, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

perf-profiler 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.

The scan reads SKILL.md. This mod also ships 10 executable files (scripts/benchmark.sh, scripts/bundle.cjs, scripts/loadtest.cjs, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/perf-profiler/SKILL.md · 100 lines

How it starts

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

perf-profiler — Runtime Performance Analysis

Performance profiling beyond Lighthouse: bundle analysis, memory leak detection, load testing, resource analysis, and runtime CPU profiling.

Quick Start

perf-profiler bundle ./dist                    # Bundle size analysis
perf-profiler resources https://example.com    # Resource loading analysis
perf-profiler loadtest https://api.example.com --concurrency 20 --duration 30
perf-profiler memory https://app.example.com --iterations 10
perf-profiler runtime https://app.example.com --duration 10 --interaction scroll
perf-profiler review https://app.example.com --build-dir ./dist --full

Scripts

bundle.cjs — Bundle Size Analyzer

Analyzes JS/CSS files in build output. Reports per-file + gzipped sizes, detects heavy packages (moment→dayjs, lodash→lodash-es), parses source maps for package-level treemap.

node ${CLAUDE_SKILLS_DIR:-$HOME/.claude-agent/.claude/skills}/perf-profiler/scripts/bundle.cjs <build-dir> [--source-maps]

Output: bundle-analysis.json

memory.cjs — Memory Leak Detector

Uses Playwright to navigate a page repeatedly, measuring heap size after each iteration. Linear regression detects consistent growth.

node ${CLAUDE_SKILLS_DIR:-$HOME/.claude-agent/.claude/skills}/perf-profiler/scripts/memory.cjs <url> [--iterations 10] [--actions flow.json]

Custom actions JSON format:

[{"action":"click","selector":"button.open"},{"action":"wait","ms":500},{"action":"click","selector":"button.close"}]

loadtest.cjs — HTTP Load Tester

Zero-dependency concurrent load tester. Measures p50/p95/p99 latency, req/s, error rate.

node ${CLAUDE_SKILLS_DIR:-$HOME/.claude-agent/.claude/skills}/perf-profiler/scripts/loadtest.cjs <url> \
  [--concurrency 10] [--duration 30] [--requests 1000] [--ramp] \
  [--method POST] [--body '{"key":"val"}'] [--header "Content-Type: application/json"]

resources.cjs — Resource Analysis

Monitors all network requests via CDP. Finds render-blocking resources, oversized images, unused CSS, uncompressed assets, third-party audit.

Read the full file on GitHub · 100 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 · 100 lines · 40 tokens per session scan A 5dc56932ab78

Subscribe to this mod's changes

perf-profiler is a skill published in the GitHub repository JansenAnalytics/claudex (5 stars, last pushed 2mo ago), licensed MIT. It adds 40 tokens to every session and 997 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-09-03.

Related

Other skills, from other repositories

moli-webfetch

Fetch, inspect, crawl, and capture live, JavaScript-rendered websites with Moli. Use when Codex needs current web content, web research, fact lookup, link following, a bounded crawl, client-rendered or response-gated content, network diagnostics, or a standalone HTML, Markdown, JSON, semantic-tree, viewport or…

lexmount/moli · 90 tokens

moli-cdp-server

Start Moli's CDP server and connect Playwright, Puppeteer, or raw CDP clients. Use to run a headless-browser CDP endpoint, replace a Chromium process, attach over CDP, enable real layout and screenshot surfaces, or diagnose CDP discovery, connection, and target startup—even when Moli is not named.

lexmount/moli · 74 tokens

Flaky Test Doctor

Diagnose flaky test failures from Playwright reports, traces, and rerun history. Classify each failure as product, test, environment, data, or unknown with cited evidence and a proposed fix. Never auto-modifies code without opt-in.

PramodDutta/qaskills · 54 tokens

performance

Use when a page or interaction is slow for one user and the fix starts from a measurement — a failing Core Web Vital (LCP, INP, CLS), a heavy JS bundle, wasted re-renders, an over-broad client boundary: profile, attribute the cost to one phase, fix it, re-measure. NOT surviving concurrent load (that is scaling), NOT…

ericrisco/rsc-harness · 91 tokens

cypress-debugger

Use when a Cypress end-to-end test has already run and failed and the user wants the root cause and a concrete fix. Trigger on a failing Cypress spec, Timed-out-retrying command, unresolved selector, cy.intercept alias or request race, suite-breaking hook, retry-only flake, hydration or timing race, or a…

voidmatcha/e2e-skills · 158 tokens

playwright-debugger

Use when a Playwright end-to-end test has already run and failed and the user wants the root cause and a concrete fix. Trigger on a failing Playwright spec, TimeoutError, broken or ambiguous selector, post-deploy suite failure, retry-only flake, hydration or timing race, or a passes-locally-but-fails-in-CI split.…

voidmatcha/e2e-skills · 163 tokens