perf-optimize

perf-optimize is a skill for Claude Code from irahardianto/awesome-agv. It costs 40 tokens per session (3,079 once invoked), scanned C, original, MIT.

A process for improving software speed using profiling data, such as a flame graph or benchmark. It analyses different performance areas, then applies and tests fixes one at a time.

In plain words
What is it for?
Use it when profiling data, a benchmark regression, a slow component, or a newly introduced hot path shows a performance problem.
Why use it?
It ties changes to measured slow points instead of guessing. This helps avoid optimising code that is not responsible for the slowdown and checks for performance regressions.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: mentions subagents; installed under .agents/ (shared by several agents).

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is bash .agents/skills/perf-optimization/scripts/go-pprof.sh bench ./path/to/package/... BenchmarkName.

Good fit Use it when profiling data, a benchmark regression, a slow component, or a newly introduced hot path shows a performance problem.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/irahardianto/awesome-agv
agentmods
npx agentmods add skills/irahardianto/awesome-agv/perf-optimize

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-optimize

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/irahardianto/awesome-agv/perf-optimize"><img src="https://agentmods.dev/badge/skills/irahardianto/awesome-agv/perf-optimize.svg" alt="Reviewed on agentmods" width="80" 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 3,079 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 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.00040 $0.03079
Opus 5.5 $0.00016 $0.01232
Sonnet 5.5 $0.00008 $0.00616
Haiku 4.5 $0.00004 $0.00308

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

Security

Grade C, and why

perf-optimize scanned grade C 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 9d 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

- [ ] `.agentwork/` directory cleaned up (`rm -rf .agentwork/`)
.agents/skills/perf-optimize/SKILL.md · 279 lines

How it starts

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

Performance Optimization Skill

Entry-point guard: This is a user-invoked command skill (/perf-optimize). If you are a spawned subagent, do NOT execute this skill — return to your assigned scope card.

Trigger: User provides profiling data, asks to optimize performance, or benchmarks show regression.

Skill prerequisite: Read .agents/skills/perf-optimization/SKILL.md before starting.

Purpose

Profile-driven performance optimization using multi-dimensional parallel analysis. Dispatches subagents across orthogonal performance dimensions to analyze profiling data and scan code, then implements fixes sequentially with TDD and isolated benchmarks.

When to Use

  • User provides profiling data (pprof, flamegraph, py-spy, Chrome DevTools)
  • User asks to optimize performance of a specific component
  • A benchmark regression is detected
  • After deploying a new feature that touches a hot path

When NOT to Use

  • General code quality review → /audit
  • Security vulnerability scan → /security-audit
  • Architectural restructuring → /refactor
  • Fixing known bugs → /bugfix

Prerequisite Skill

Load: perf-optimization skill (.agents/skills/perf-optimization/SKILL.md) — contains methodology, optimization pattern catalog, language modules, and orchestration references.

Pre-Optimization Checklist

Before starting, you MUST:

  1. Load the skill — read .agents/skills/perf-optimization/SKILL.md
  2. Load the language module — read .agents/skills/perf-optimization/languages/{language}.md
  3. Identify optimization scope — determine which component, module, or benchmark to optimize

Phase 0: Reconnaissance

Before collecting profiles, understand the codebase structure and performance context.

0.1 — Stack & Architecture Detection

Scan for language/framework/infrastructure markers:

  • Languages: go.mod, package.json, Cargo.toml, pyproject.toml, pom.xml, *.csproj, Gemfile, composer.json
  • Frameworks: HTTP frameworks, ORMs, async runtimes, concurrency primitives
  • Build tooling: Bundlers, Docker, CI/CD pipeline configuration

Read the full file on GitHub · 279 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. 9d ago First seen · 279 lines · 40 tokens per session scan C 53eb84a62f93

Subscribe to this mod's changes

perf-optimize is a skill published in the GitHub repository irahardianto/awesome-agv (156 stars, last pushed 9d ago), licensed MIT. It adds 40 tokens to every session and 3,079 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-15.

Related

Other skills, from other repositories

legacy-code-changes

Making safe changes in unfamiliar, undertested, or legacy codebases — comprehension before modification, characterization tests, seams, and incremental replacement. Use when working in a codebase you didn't write, inheriting a project, touching code with no tests, planning a refactor of old code, or when the user says…

05-deepak-patidar/claude-skills · 95 tokens

om-troubleshooter

Diagnose and fix standalone Open Mercato bugs across scope, commands, locking, fields, generated registries, UI hydration, cache/search, bootstraps, queues, and providers. Use for "fix bug", "why does this fail", "regression", "debug", "napraw błąd", or a failing test.

open-mercato/open-mercato · 73 tokens

verify-bug

Post-merge UAT verification workflow. Walks JIRA reproduce steps, performs comparative audits (Before/After), attaches evidence to JIRA, and transitions status on PASS.

HoangNguyen0403/agent-skills-standard · 39 tokens

common-subagent-driven-development

Execute multi-task implementation plans by dispatching a fresh implementer subagent per task with independent review gates. Use when implementing plans, executing multi-task PRs, or transitioning from planning to implementation.

HoangNguyen0403/agent-skills-standard · 45 tokens

implement-feature

Implement an approved feature plan with fresh-context slices, TDD, revision-bound evidence, and PR-ready output.

HoangNguyen0403/agent-skills-standard · 25 tokens

common-tdd

Guides quality-first TDD for new behavior, bug fixes, and test changes. Selects the smallest test layer, proves a distinct regression risk, and runs bounded RED-GREEN-REFACTOR verification.

HoangNguyen0403/agent-skills-standard · 46 tokens