grey-haven-performance-optimization
About
This Claude Skill provides comprehensive performance analysis and optimization across algorithms, databases, React, and bundles to resolve slowdowns and bottlenecks. It addresses issues like O(n²) algorithms, N+1 queries, memory leaks, and unoptimized React components with an 85%+ improvement rate. Use it when applications are slow, exceed SLAs, have high resource usage, or when users mention performance-related terms.
Quick Install
Claude Code
Recommended/plugin add https://github.com/greyhaven-ai/claude-code-configgit clone https://github.com/greyhaven-ai/claude-code-config.git ~/.claude/skills/grey-haven-performance-optimizationCopy and paste this command in Claude Code to install this skill
Documentation
Performance Optimization Skill
Comprehensive performance analysis and optimization techniques for identifying bottlenecks and improving application speed.
Description
This skill provides production-ready patterns, examples, and checklists for optimizing application performance across algorithms, databases, infrastructure, and code structure.
What's Included
Examples (examples/)
- Algorithm optimization - Improve time complexity (O(n²) → O(n))
- Database optimization - Eliminate N+1 queries, add indexes
- Bundle size reduction - Code splitting, tree shaking
- React performance - Memoization, virtual lists
- API response time - Caching strategies, async processing
- Memory optimization - Reduce allocations, fix leaks
Reference Guides (reference/)
- Performance profiling tools and techniques
- Benchmarking best practices
- Optimization decision frameworks
- Performance budget guidelines
- Monitoring and alerting strategies
Templates (templates/)
- Performance test templates (Lighthouse, Web Vitals)
- Benchmark comparison templates
- Optimization report structures
- Performance budget definitions
Use This Skill When
- Application is slow or unresponsive
- Response times exceed SLA targets
- High CPU/memory usage detected
- Need to meet performance budgets
- Optimizing for production deployment
Related Agents
performance-optimizer- Automated performance analysis and optimizationmemory-profiler- Memory leak detection and profilingobservability-engineer- Production monitoring setup
Quick Start
# View optimization examples
ls examples/
# Check reference guides
ls reference/
# Use templates for benchmarking
ls templates/
Metrics
- Optimization Success Rate: 85%+ performance improvement
- Coverage: Algorithm, database, infrastructure, code structure
- Production-Ready: All examples tested in real applications
Skill Version: 1.0 Last Updated: 2025-01-15
GitHub Repository
Related Skills
evaluating-llms-harness
TestingThis Claude Skill runs the lm-evaluation-harness to benchmark LLMs across 60+ standardized academic tasks like MMLU and GSM8K. It's designed for developers to compare model quality, track training progress, or report academic results. The tool supports various backends including HuggingFace and vLLM models.
content-collections
MetaThis skill provides a production-tested setup for Content Collections, a TypeScript-first tool that transforms Markdown/MDX files into type-safe data collections with Zod validation. Use it when building blogs, documentation sites, or content-heavy Vite + React applications to ensure type safety and automatic content validation. It covers everything from Vite plugin configuration and MDX compilation to deployment optimization and schema validation.
langchain
MetaLangChain is a framework for building LLM applications using agents, chains, and RAG pipelines. It supports multiple LLM providers, offers 500+ integrations, and includes features like tool calling and memory management. Use it for rapid prototyping and deploying production systems like chatbots, autonomous agents, and question-answering services.
hybrid-cloud-networking
MetaThis skill configures secure hybrid cloud networking between on-premises infrastructure and cloud platforms like AWS, Azure, and GCP. Use it when connecting data centers to the cloud, building hybrid architectures, or implementing secure cross-premises connectivity. It supports key capabilities such as VPNs and dedicated connections like AWS Direct Connect for high-performance, reliable setups.
