performance-optimization

performance-optimization is a skill for Claude Code, Codex from svngoku/coding-agents-skills. It costs 175 tokens per session (3,490 once invoked), scanned A, original, MIT.

A measure-first guide for finding and fixing slow parts of software. It covers profiling and performance work in application backends, frontends, networks, and memory use.

In plain words
What is it for?
Use it to investigate slow endpoints, high latency, low throughput, memory leaks, large frontend bundles, or slow page loads. It helps set a target, profile the bottleneck, make a focused change, and measure the result.
Why use it?
Performance problems are often fixed by guesswork, which can change code without improving speed. Measuring a repeatable case before and after a change shows where time or resources are actually being lost.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to investigate slow endpoints, high latency, low throughput, memory leaks, large frontend bundles, or slow page loads. It helps set a target, profile the bottleneck, make a focused change, and measure the result.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/svngoku/coding-agents-skills/performance-optimization
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 svngoku/coding-agents-skills --skill performance-optimization
Clone the repo
git clone --depth 1 https://github.com/svngoku/coding-agents-skills

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/svngoku/coding-agents-skills/performance-optimization"><img src="https://agentmods.dev/badge/skills/svngoku/coding-agents-skills/performance-optimization.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 175 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,490 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.00175 $0.03490
Opus 5.5 $0.00070 $0.01396
Sonnet 5.5 $0.00035 $0.00698
Haiku 4.5 $0.00017 $0.00349

Measured 1mo ago against content hash 0ccc15dd66e9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

performance-optimization 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 1mo ago.

The scan reads SKILL.md. This mod also ships 2 executable files (fixtures/slow.py, graders/check.py), 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

| High TTFB | Slow backend or no CDN | `curl -w` timing breakdown |
skills/performance-optimization/SKILL.md · 299 lines

How it starts

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

Performance Optimization

Most "slow" problems are diagnosed by guesswork. This skill replaces guessing with a measure-first workflow: profile, fix minimally, re-measure against a budget. Covers backend (database, caching, concurrency), frontend (bundles, images, rendering), network (CDN, compression, HTTP), and memory, with concrete tools and before/after examples.

Quick Reference

Topic Reference
Profiling tools per runtime and reading flame graphs profiling-tools.md
EXPLAIN, index design, N+1 fixes, caching, pooling backend-optimization.md
Bundles, images, React rendering, Core Web Vitals frontend-performance.md

Core Workflow

1. Measure First

Never optimize before you can answer: "how do I know it got faster?"

  1. Reproduce — get a repeatable trigger (endpoint, page, script, load profile).
  2. Baseline — record current latency distribution, throughput, and resource usage.
  3. Budget — set an explicit target (e.g., p95 < 200 ms, initial JS < 170 KB gzipped).
  4. Profile — find where time actually goes (CPU, I/O wait, dependency latency, GC).
  5. Hypothesize — one bottleneck, one predicted fix, one measurable effect.
  6. Fix minimally — the smallest change that tests the hypothesis.
  7. Re-measure — same tool, load, and environment; keep the fix only if it moves the metric.

2. The Triage Loop (symptom → cause)

Symptom Likely cause Quick check
High p95 but healthy p50 Queueing, GC pauses, one slow dependency Percentile breakdown; GC logs; sample slow requests
Slow only under load Contention, pool exhaustion, saturation Load test at increasing concurrency; watch pool waits
Slow in prod, fast locally Cold cache, missing index on prod-size data EXPLAIN on prod data; cache hit ratio
ORM makes dozens of queries N+1 lazy loading Log query counts; enable ORM query logging
High CPU CPU-bound loop, regex, serialization cProfile / py-spy dump
Memory grows monotonically Leak or unbounded cache Heap snapshots; cache size/capacity audit
Slow page load, fast API Render-blocking JS/CSS, oversized images Lighthouse waterfall; DevTools Network
High TTFB Slow backend or no CDN curl -w timing breakdown

Read the full file on GitHub · 299 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. 1mo ago First seen · 299 lines · 175 tokens per session scan A 0ccc15dd66e9

Subscribe to this mod's changes

performance-optimization is a skill published in the GitHub repository svngoku/coding-agents-skills (12 stars, last pushed yesterday), licensed MIT. It adds 175 tokens to every session and 3,490 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). 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

error-resilience-expert

Expert guide for error handling patterns, resilience engineering, retry strategies, circuit breakers, and graceful degradation across React, Next.js, and Node.js / Panduan ahli pola penanganan error, rekayasa ketahanan, strategi retry, circuit breaker, dan degradasi anggun di React, Next.js, dan Node.js.

roedyrustam/vibes-plug · 72 tokens

dependency-upgrade-migrator

Expert guide for dependency upgrades, breaking change migrations, codemod automation, and package audit remediation / Panduan ahli untuk upgrade dependensi, migrasi breaking change, otomasi codemod, dan remediasi audit paket.

roedyrustam/vibes-plug · 52 tokens

logging-error-tracking-expert

Expert guide for structured logging (Pino, Winston), error tracking (Sentry), log aggregation (Axiom, Datadog), request correlation, and GDPR-compliant log management / Panduan ahli untuk logging terstruktur (Pino, Winston), pelacakan error (Sentry), agregasi log, korelasi request, dan manajemen log sesuai GDPR.

roedyrustam/vibes-plug · 81 tokens

app-analyzer-optimizer

Deeply analyzes application architecture and structure to perform audit, bottleneck detection, and code/performance optimization / Mempelajari arsitektur dan struktur aplikasi secara mendalam untuk melakukan audit, deteksi bottleneck, serta optimasi performa dan kode.

roedyrustam/vibes-plug · 56 tokens

autonomous-tdd-debugger

Empowers the agent to autonomously run tests, read terminal stack traces, and self-heal code until tests pass. Transforms the agent from a passive coder to an active CI pipeline debugger.

roedyrustam/vibes-plug · 46 tokens

self-healing-cloud-orchestrator

Real-time log monitoring, crash detection, and auto-hotfixing code without human intervention / Pemantauan log real-time, deteksi kerusakan, dan perbaikan kode hotfix otomatis tanpa intervensi manusia.

roedyrustam/vibes-plug · 53 tokens