perf

perf is a skill for Claude Code from Rune-kit/rune. It costs 73 tokens per session (5,782 once invoked), scanned A, original, MIT.

A code-checking tool that looks for patterns likely to make software slower or use more memory. It checks issues such as repeated database queries, missing database indexes, memory leaks, and oversized web bundles, but it is not a runtime profiler.

In plain words
What is it for?
Use it before committing or deploying performance-sensitive changes, or when investigating slow code, growing memory use, large bundles, or frontend performance measurements.
Why use it?
Performance problems can reach production when they are difficult or expensive to find later. This provides a pre-commit or pre-deployment check for common performance regressions.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the rune plugin — 66 skills, 1 command, 66 agents, 6 hooks shipped together

Good fit Use it before committing or deploying performance-sensitive changes, or when investigating slow code, growing memory use, large bundles, or frontend performance measurements.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rune-kit/rune/perf
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 Rune-kit/rune --skill perf
Clone the repo
git clone --depth 1 https://github.com/Rune-kit/rune

Made for: Claude Code.

Or install rune, the plugin that ships this one along with the rest of its 66 skills, 1 command, 66 agents, 6 hooks.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/rune-kit/rune/perf"><img src="https://agentmods.dev/badge/skills/rune-kit/rune/perf.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 73 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,782 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00073 $0.05782
Opus 5.5 $0.00029 $0.02313
Sonnet 5.5 $0.00015 $0.01156
Haiku 4.5 $0.00007 $0.00578

Measured 8d ago against content hash 02a4443b040c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

perf scanned grade A with 1 finding 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 8d 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.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

Finding: `SYNC_IN_ASYNC — [file:line] — [readFileSync|execSync|etc] in async function — blocks event loop`
skills/perf/SKILL.md · 452 lines

How it starts

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

perf

Purpose

Performance regression gate. Analyzes code changes for patterns that cause measurable slowdowns — N+1 queries, sync operations in async handlers, unbounded DB queries, missing indexes, memory leaks, and bundle bloat. Not a profiler — a gate. Finds performance bugs with measurable/estimated impact before production, so developers fix them at the cheapest point in the cycle.

Triggers

  • /rune perf — manual invocation before commit
  • Called by cook (L1): Phase 5 quality gate
  • Called by review (L2): performance patterns detected in diff
  • Called by deploy (L2): pre-deploy regression check
  • Called by audit (L2): performance health dimension

Calls (outbound)

  • scout (L2): find hotpath files and identify framework in use
  • browser-pilot (L3): run Lighthouse / Core Web Vitals for frontend projects
  • verification (L3): run benchmark scripts if configured (e.g. npm run bench)
  • design (L2): when Lighthouse Accessibility BLOCK — design system may lack a11y foundation

Called By (inbound)

  • cook (L1): Phase 5 quality gate before PR
  • audit (L2): performance dimension delegation
  • review (L2): performance patterns detected in diff
  • deploy (L2): pre-deploy perf regression check
  • adversary (L2): scalability stress test when bottleneck patterns detected in plan

References

  • references/cost-reference.md — Cost priority hierarchy, quick wins checklist, instance right-sizing, data transfer traps, serverless optimization, observability cost control, managed vs self-hosted matrix, unit economics tracking. Load when cost analysis or FinOps context detected.
  • references/scalability-reference.md — Bottleneck identification flow, performance thresholds, API patterns (cursor pagination, rate limiting, circuit breaker, graceful shutdown), caching strategies, queue-based load leveling, concurrency patterns, K8s HPA, CDN headers, load testing. Load when scaling or infrastructure optimization context detected.
  • ../deploy/references/observability.md — Instrumentation discipline (RED/USE metrics, percentiles-not-averages, cardinality bounds, structured logs, correlation IDs). Load when establishing the measurement basis for an optimization — you cannot optimize what you do not measure.

Read the full file on GitHub · 452 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 8d ago First seen · 452 lines · 73 tokens per session scan A 02a4443b040c

Subscribe to this mod's changes

perf is a skill published in the GitHub repository Rune-kit/rune (96 stars, last pushed 2d ago), licensed MIT. It adds 73 tokens to every session and 5,782 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-22.

Related

perf compared with skills from other repositories

perf next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
perfRune-kit/runeSkill962d agoMITA73Claude Code
autonomous-tdd-debuggerroedyrustam/vibes-plugSkill1293d agoMITA43Cursor
repro-firstedonadei/caliperSkill239yesterdayMITA30Claude Code
pair-programmingfrankxai/claude-skills-librarySkill51todayMITA85Claude Code
debug-flowDVNghiem/FlowDeckSkill4415d agoMITA34Claude Code, Codex
refactoring-patternscosmicstack-labs/mercury-agent-skillsSkill4923mo agoMITA21Claude Code, Codex
debugsentimony/skillsSkill8todayMITA34Claude Code