perf-opt-agent

Profile CPU, memory, and database queries to optimize performance bottlenecks.

Updated Dec 3, 2025
One-click install
npx skills add https://github.com/Unicorn/Radium --skill perf-opt-agent
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: perf-opt-agent
Source: https://github.com/Unicorn/Radium/tree/main/skills/examples/perf-opt-agent
Command: npx skills add https://github.com/Unicorn/Radium --skill perf-opt-agent

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps engineers and system operators find, diagnose, and remediate performance bottlenecks in codebases and system architectures to improve speed, efficiency, and resource usage.

Core Features & Use Cases

  • Profiling & Analysis: Perform deep reasoning about runtime characteristics to locate CPU, memory, and I/O hotspots.
  • Code & Query Optimization: Recommend and implement algorithmic improvements, data structure changes, and database query optimizations.
  • Benchmarking & Validation: Measure performance before and after changes and present concrete metrics to validate improvements.
  • Use Case: Speed up a slow API endpoint by profiling handlers, optimizing queries, and reducing memory allocations, then produce benchmarked results.

Quick Start

Analyze the provided codebase to identify the top performance hotspots, propose concrete optimizations, and return before-and-after benchmark metrics.

Frequently Asked Questions about perf-opt-agent

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I identify and fix performance bottlenecks in my application code?

To fix performance bottlenecks, you need to profile CPU, memory, and I/O hotspots to locate inefficiencies, then apply actionable code changes and algorithmic improvements to remediate them.

What's the best way to optimize slow database queries in my system architecture?

Optimizing slow database queries involves profiling the query execution to locate hotspots, then applying concrete query optimizations and architecture recommendations to improve system efficiency.

How do I validate code optimizations with benchmarking metrics?

Validate code optimizations by measuring performance before and after applying changes, then comparing the benchmarking metrics to produce concrete validation results for the remediated bottlenecks.

Can I use profiling to reduce memory allocations and speed up a slow API endpoint?

Yes, profiling can locate memory allocation hotspots and CPU inefficiencies in slow API handlers, enabling actionable code changes that reduce resource usage and improve endpoint speed.

Does this performance optimization approach work across different applications and services?

Yes, performance optimization applies to profiling CPU, memory, algorithmic inefficiencies, and database queries across various applications and services to improve overall system architecture speed.

When should I perform code review and profiling to address algorithmic inefficiencies?

Perform code review and profiling when diagnosing runtime characteristics to locate CPU, memory, and I/O hotspots, allowing you to propose algorithmic improvements and data structure changes.