personamanagmentlayer avatar

Performance Expert

This is the performance toolkit you reach for when things are slow and you need to figure out why. It covers profiling with cProfile, fixing N+1 queries with eager loading, setting up proper database connection pooling, and frontend patterns like debouncing and virtual scrolling. The examples are practical: memoization with lru_cache, batch database operations, Redis caching strategies, and switching from Python loops to NumPy vectorization. It's language-agnostic in scope but Python-heavy in implementation. Good for when you're past the "just throw hardware at it" phase and need to actually measure and optimize. The breadth is both its strength and weakness, covering everything from algorithm optimization to infrastructure tuning without going too deep on any single area.

skills.sh installs
196
GitHub stars
44
last updated
Aug 21, 2026

Install

$ npx -y skills add personamanagmentlayer/pcl --skill performance-expert --agent claude-code

Installs into .claude/skills of the current project.

Files

Performance Expert

Expert guidance for performance optimization, profiling, benchmarking, and system tuning.

Core Concepts

Performance Fundamentals

  • Response time vs throughput
  • Latency vs bandwidth
  • CPU, memory, I/O bottlenecks
  • Concurrency vs parallelism
  • Caching strategies
  • Load balancing

Optimization Areas

  • Algorithm optimization
  • Database optimization
  • Network optimization
  • Frontend performance
  • Backend performance
  • Infrastructure tuning

Profiling Tools

  • CPU profilers
  • Memory profilers
  • Network profilers
  • Application Performance Monitoring (APM)
  • Load testing tools

Python Performance

import cProfile
import pstats
import timeit
import memory_profiler
from functools import lru_cache
from typing import List
import numpy as np

# Performance Profiling
def profile_function(func):
    """Decorator for profiling function execution"""
    def wrapper(*args, **kwargs):
        profiler = cProfile.Profile()
        profiler.enable()

        result = func(*args, **kwargs)

        profiler.disable()
        stats = pstats.Stats(profiler)
        stats.sort_stats('cumulative')
        stats.print_stats(10)  # Top 10 functions

Sponsors

Details

Repository
github.com/personamanagmentlayer/pcl
Category
Debugging
First seen
Jun 3, 2026

More from personamanagmentlayer/pcl

All 99

Recommended

More Debugging
1charleswiltgen avataraxiom-swiftui-debugging-diagcharleswiltgen/axiomUse when SwiftUI view debugging requires systematic investigation - view updates not working after basic troubleshooting, intermittent UI issues, complex state 182skills.sh installs
2charleswiltgen avataraxiom-deep-link-debuggingcharleswiltgen/axiomUse when adding debug-only deep links for testing, enabling simulator navigation to specific screens, or integrating with automated testing workflows - enables 170skills.sh installs
3daffy0208 avatarPerformance Optimizerdaffy0208/ai-dev-standardsOptimize application performance and scalability. Use when investigating slow applications, scaling bottlenecks, or improving response times. Covers profiling, 0skills.sh installs
4dylantarre avatarAnimation Principles - Troubleshootingdylantarre/animation-principlesUse when animation feels wrong and you need to diagnose which principle is failing or being misapplied0skills.sh installs
5pluginagentmarketplace avatarPython Performancepluginagentmarketplace/custom-plugin-pythonMaster Python optimization techniques, profiling, memory management, and high-performance computing0skills.sh installs
6flutter avatarflutter-fix-layout-issuesflutter/agent-pluginsFixes Flutter layout errors (overflows, unbounded constraints) using Dart and Flutter MCP tools. Use when addressing "RenderFlex overflowed", "Vertical viewport42.2Kskills.sh installs