perf

Analyzes code for algorithmic complexity, runtime regressions and performance issues, reporting severity levels.

Updated Mar 12, 2026
One-click install
npx skills add https://github.com/ps-carvalho/spavn-agents --skill perf-ps-carvalho
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: perf
Source: https://github.com/ps-carvalho/spavn-agents/tree/main/.opencode/skills/perf
Command: npx skills add https://github.com/ps-carvalho/spavn-agents --skill perf-ps-carvalho

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill identifies performance bottlenecks, algorithmic complexity issues, and potential runtime regressions in code, ensuring efficient and stable application performance without direct code modification.

Core Features & Use Cases

  • Algorithmic Complexity Analysis: Assesses the time and space complexity of functions and methods.
  • Performance Anti-Pattern Detection: Identifies common performance pitfalls in code, database queries, and rendering logic.
  • Regression Detection: Flags potential performance degradations in modified code sections.
  • Use Case: After a developer modifies a critical API endpoint, this Skill can be triggered to analyze the changes for any performance regressions before they are merged.

Quick Start

Analyze the performance of the recently modified files for potential regressions.

Frequently Asked Questions about perf

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

FAQPage Schema
How do I detect performance regressions in modified code?

To detect performance regressions, analyze modified code sections like critical API endpoints to flag potential runtime degradations before merging. This process identifies performance bottlenecks and anti-patterns, ensuring stable application performance without direct code modification.

What is algorithmic complexity analysis and when do I need it?

Algorithmic complexity analysis assesses the time and space complexity of functions and methods. You need this when evaluating hot-path code or database queries to identify performance anti-patterns and ensure efficient runtime behavior under load.

How do I analyze database queries and render logic for performance anti-patterns?

Analyze database queries and render logic by scanning for common performance anti-patterns within the code. The analysis reports findings with severity levels, highlighting inefficient operations in hot-path code that could cause runtime bottlenecks.

Can I check code performance without modifying the source files?

Yes, you can check code performance without modifying source files. The analysis focuses on identifying bottlenecks and regressions in existing code, reporting severity levels of anti-patterns to ensure efficient application performance safely.

What's the best way to enforce a performance quality gate before merging code?

To enforce a performance quality gate, trigger analysis on recently modified files before merging. This detects potential runtime regressions and algorithmic complexity issues, reporting severity levels to block performance degradations from entering production.