grey-haven-performance-optimization
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
More from greyhaven-ai/claude-code-config
grey-haven-creative-writing
Professional writing assistance for blogs, research articles, fiction, essays, and marketing copy. Use when users want to write, edit, or improve any form of written content. Triggers: 'write a blog', 'write an article', 'help me write', 'write a story', 'write a chapter', 'draft an essay', 'creative writing', 'improve my writing', 'edit my writing', 'write copy', 'content writing'.
139creative-writing
Professional writing assistance for blogs, research articles, fiction, essays, and marketing copy. Use when users want to write, edit, or improve any form of written content. Triggers: 'write a blog', 'write an article', 'help me write', 'write a story', 'write a chapter', 'draft an essay', 'creative writing', 'improve my writing', 'edit my writing', 'write copy', 'content writing'.
38grey-haven-prompt-engineering
Master 26 documented prompt engineering principles for crafting effective LLM prompts with 400%+ quality improvement. Includes templates, anti-patterns, and quality checklists for technical, learning, creative, and research tasks. Use when writing prompts for LLMs, improving AI response quality, training on prompting, designing agent instructions, or when user mentions 'prompt engineering', 'better prompts', 'LLM quality', 'prompt templates', 'AI prompts', 'prompt principles', or 'prompt optimization'.
12grey-haven-ontological-documentation
Create comprehensive ontological documentation for Grey Haven systems - extract domain concepts from TanStack Start and FastAPI codebases, model semantic relationships, generate visual representations of system architecture, and document business domains. Use when onboarding, documenting architecture, or analyzing legacy systems.
12grey-haven-api-design
Design RESTful APIs following Grey Haven standards - FastAPI routes, Pydantic schemas, HTTP status codes, pagination, filtering, error responses, OpenAPI docs, and multi-tenant patterns. Use when creating API endpoints, designing REST resources, implementing server functions, configuring FastAPI, writing Pydantic schemas, setting up error handling, implementing pagination, or when user mentions 'API', 'endpoint', 'REST', 'FastAPI', 'Pydantic', 'server function', 'OpenAPI', 'pagination', 'validation', 'error handling', 'rate limiting', 'CORS', or 'authentication'.
12grey-haven-llm-project-development
Build LLM-powered applications and pipelines using proven methodology - task-model fit analysis, pipeline architecture, structured outputs, file-based state, and cost estimation. Use when building AI features, data processing pipelines, agents, or any LLM-integrated system. Inspired by Karpathy's methodology and production case studies.
11