performance-optimizer

performance-optimizer is a skill for Claude Code, Codex from glincker/claude-code-marketplace. It costs 18 tokens per session (716 once invoked), scanned A, original, Apache-2.0.

A tool that examines code and runtime behavior to find slow operations, excessive memory use, inefficient database queries, and other performance bottlenecks.

In plain words
What is it for?
Use it to profile critical code paths, improve algorithms and database queries, detect memory leaks, reduce web bundle size, and add profiling or performance monitoring.
Why use it?
It helps identify the parts of an application causing delays or resource waste before choosing how to improve them.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/glincker/claude-code-marketplace/performance-optimizer
Any agent
npx skills add glincker/claude-code-marketplace --skill performance-optimizer
Clone the repo
git clone --depth 1 https://github.com/glincker/claude-code-marketplace

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/glincker/claude-code-marketplace/performance-optimizer.svg)](https://agentmods.dev/skills/glincker/claude-code-marketplace/performance-optimizer)
Your own site
<a href="https://agentmods.dev/skills/glincker/claude-code-marketplace/performance-optimizer"><img src="https://agentmods.dev/badge/skills/glincker/claude-code-marketplace/performance-optimizer.svg" alt="Measured on agentmods" height="20"></a>
Per session 18 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 716 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00018 $0.00716
Opus 5 $0.00009 $0.00358
Sonnet 5 $0.00004 $0.00143
Haiku 4.5 $0.00002 $0.00072

Measured 4d ago against content hash c2a5909c896b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

performance-optimizer 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.

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-optimizer/SKILL.md · 118 lines

How it starts

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

Performance Optimizer

Automated code performance analysis and optimization agent. Identifies bottlenecks, suggests improvements, and implements performance enhancements across multiple languages.

Agent Expertise

  • Performance profiling and analysis
  • Algorithm optimization (O(n) → O(log n) improvements)
  • Memory leak detection and prevention
  • Database query optimization
  • Caching strategies implementation
  • Bundle size reduction for web apps
  • Lazy loading and code splitting
  • Render performance optimization

Key Capabilities

  1. Bottleneck Detection: Analyze code execution paths to find slow operations
  2. Algorithm Optimization: Suggest more efficient algorithms and data structures
  3. Memory Analysis: Detect memory leaks and excessive allocations
  4. Database Tuning: Optimize queries, suggest indexes, reduce N+1 problems
  5. Web Performance: Bundle optimization, lazy loading, code splitting
  6. Profiling Integration: Set up performance monitoring and profiling tools

Workflow

When activated, this agent will:

  1. Analyze the codebase for performance issues
  2. Profile critical paths and hot spots
  3. Identify specific bottlenecks (CPU, memory, I/O)
  4. Suggest optimizations with expected impact
  5. Implement improvements with benchmarks
  6. Set up monitoring for regression detection

Quick Commands

# Analyze entire project
"Analyze performance bottlenecks in this project"

# Optimize specific file
"Optimize performance of src/api/users.js"

# Database optimization
"Optimize these slow database queries"

# Web app optimization
"Reduce bundle size and improve load time"

# Memory analysis
"Find and fix memory leaks in this component"

Performance Optimization Examples

Algorithm Optimization

  • Convert nested loops to hash maps
  • Replace linear search with binary search
  • Use memoization for expensive calculations
  • Implement pagination instead of loading all data

Database Optimization

  • Add appropriate indexes
  • Eliminate N+1 queries with joins
  • Use query result caching
  • Implement connection pooling

Read the full file on GitHub · 118 lines

Files

What ships with it

1 file 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. 4d ago First seen · 118 lines · 18 tokens per session scan A c2a5909c896b

Subscribe to this mod's changes

performance-optimizer is a skill published in the GitHub repository glincker/claude-code-marketplace (36 stars, last pushed 9mo ago), licensed Apache-2.0. It adds 18 tokens to every session and 716 once invoked, about $0.0001 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-08-30.