performance-optimization

performance-optimization is a skill for Claude Code, Codex from drvoss/everything-copilot-cli. It costs 27 tokens per session (1,097 once invoked), scanned A, original, MIT.

A method for improving software speed by measuring performance, finding the actual bottleneck, and checking the result after each change.

In plain words
What is it for?
Use it to set targets and measure web pages, APIs, database queries, and background jobs, then verify performance improvements or regressions.
Why use it?
It replaces guesswork with evidence, helping distinguish a real slowdown from a problem that only feels slow.

Skill for Claude CodeCodex

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

Good fit Use it to set targets and measure web pages, APIs, database queries, and background jobs, then verify performance improvements or regressions.

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

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/drvoss/everything-copilot-cli/performance-optimization/github.svg)](https://agentmods.dev/skills/drvoss/everything-copilot-cli/performance-optimization)
Your own site
<a href="https://agentmods.dev/skills/drvoss/everything-copilot-cli/performance-optimization"><img src="https://agentmods.dev/badge/skills/drvoss/everything-copilot-cli/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/drvoss/everything-copilot-cli/performance-optimization"><img src="https://agentmods.dev/badge/skills/drvoss/everything-copilot-cli/performance-optimization.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,097 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00027 $0.01097
Opus 5.5 $0.00011 $0.00439
Sonnet 5.5 $0.00005 $0.00219
Haiku 4.5 $0.00003 $0.00110

Measured 1mo ago against content hash 5be69ee9b51b, 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 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 1mo 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/development/performance-optimization/SKILL.md · 149 lines

How it starts

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

Performance Optimization

Do not optimize by instinct. Start with measurement, change one thing at a time, and confirm the result with the same metric you used at the beginning.

When to Use

  • A user or monitoring system reports a slow page, endpoint, query, or job
  • A new feature needs a performance baseline before release
  • You suspect a regression and need evidence before changing code
  • A hot path is doing real work at scale and latency or throughput matters

When NOT to Use

Instead of performance-optimization Use
Obvious correctness bug systematic-debugging
General frontend inspection without a clear perf question browser-devtools
Micro-tuning without user impact leave it alone
"Feels slow" with no measurement plan define a measurable target first

Workflow

1. Define the metric that matters

Pick the metric before touching code:

  • Web UI: LCP, INP, CLS, bundle size, render time
  • API: p50 / p95 / p99 latency, throughput, error rate
  • Database: query duration, rows scanned, lock wait time
  • Background jobs: wall-clock duration, queue time, memory growth

Write the target in one line:

Goal: reduce p95 /search latency from 850ms to under 400ms.

2. Capture a baseline

Measure the current state using the closest native tool:

# Node.js CPU profiling
node --prof server.js

# Frontend runtime inspection
# Use browser devtools / Lighthouse and record the before numbers

# Database query analysis
# EXPLAIN ANALYZE <query>

Keep the baseline numbers in the task notes, PR, or issue.

3. Find the dominant bottleneck

Look for the one thing consuming most of the time:

  • Repeated expensive work
  • N+1 queries or redundant network calls
  • Heavy rendering or oversized bundles
  • Serialization / parsing cost
  • Synchronous work on the critical path

Use the 80/20 rule: fix the dominant bottleneck before touching minor inefficiencies.

Read the full file on GitHub · 149 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 · 149 lines · 27 tokens per session scan A 5be69ee9b51b

Subscribe to this mod's changes

performance-optimization is a skill published in the GitHub repository drvoss/everything-copilot-cli (47 stars, last pushed 24d ago), licensed MIT. It adds 27 tokens to every session and 1,097 once invoked, about $0.0001 per session on Opus 5.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-30.

Related

Other skills, from other repositories

windbg-diagnostic-method

Use with every WinDbg plugin investigation to apply evidence-first reasoning, confidence calibration, contrarian review, structured reporting, and deterministic validation. Not a bug-family-specific triage skill.

microsoft/win-dev-skills · 42 tokens

windbg-kernel-bugcheck-triage

Use when a kernel dump reports a Windows bugcheck; decode parameters and recover exception or trap context before investigating your driver. Not for user-mode process crashes or blaming a module from its name alone.

microsoft/win-dev-skills · 50 tokens

windbg-user-exception-triage

Use when a native C/C++ app, service, or user-mode driver host (including UMDF) crashes with a structured exception in a dump or WinDbg session, including native faults inside managed processes. Not for managed .NET exceptions, WinUI/XAML app errors, or kernel bugchecks.

microsoft/win-dev-skills · 69 tokens

windbg-user-heap-corruption-investigation

Use when an app, service, or user-mode driver host heap fails or Application Verifier detects corruption; inspect history and bounds. Not for kernel pool corruption or ordinary OOM.

microsoft/win-dev-skills · 46 tokens

windbg-user-virtual-memory-exhaustion

Use when a native app, service, or user-mode driver host allocation fails; distinguish VA exhaustion, fragmentation, and commit pressure. Not for managed .NET heap growth, proving a leak from one snapshot, or corruption.

microsoft/win-dev-skills · 54 tokens

windbg-user-wait-chain-analysis

Use when an app, service, or user-mode driver host is unresponsive on locks, COM/RPC, I/O, or another process; follow the blocker chain. Not for a crash solely from an exception stack.

microsoft/win-dev-skills · 52 tokens