File contents Performance Skills
Overview
Performance optimization knowledge for building fast, scalable applications
that provide excellent user experience.
Key Metrics
Metric
Target
Description
TTFB
< 200ms
Time to First Byte
FCP
< 1.8s
First Contentful Paint
LCP
< 2.5s
Largest Contentful Paint
FID
< 100ms
First Input Delay
CLS
< 0.1
Cumulative Layout Shift
API Response
< 200ms
P95 response time
Database Query
< 50ms
P95 query time
Memory Usage
< 80%
Application memory threshold
Categories
Fundamentals
Performance metrics and measurement
Bottleneck analysis techniques
Benchmarking methodologies
Caching
Application caching strategies
Redis/Memcached implementation
HTTP caching headers
CDN configuration
Cache invalidation patterns
Database Performance
Query optimization
Indexing strategies
Connection pooling
N+1 query prevention
Read replicas
API Performance
Pagination strategies
Response compression
Batch operations
Async processing
Rate limiting
Frontend Performance
Bundle optimization
Code splitting
Lazy loading
Image optimization
Core Web Vitals
Profiling & Monitoring
CPU profiling
Memory analysis
APM tools
Performance testing
Scaling
Horizontal vs vertical
Load balancing
Auto-scaling
Caching layers
Performance Pyramid
╱╲
╱ ╲ CDN / Edge
╱────╲
╱ ╲ Application Cache
╱────────╲
╱ ╲ Database Optimization
╱────────────╲
╱ ╲ Code Optimization
╱________________╲ Infrastructure
Quick Reference
Response Time Targets
Operation Type
Target
Maximum
Static assets
< 50ms
100ms
API read
< 100ms
200ms
API write
< 200ms
500ms
Search
< 200ms
500ms
Report generation
< 2s
5s
File upload
< 5s
30s
Caching Strategy by Data Type
Data Type
Cache Location
TTL
Static assets
CDN
1 year
User session
Redis
30 min
User profile
Redis
1 hour
Product catalog
Redis + CDN
6 hours
Search results
Redis
5 min
Config
Memory
24 hours
Skill Files
Fundamentals
Performance Metrics
Bottleneck Analysis
Benchmarking
Caching
Caching Strategies
Redis Caching
HTTP Caching
CDN Caching
Cache Invalidation
Database
Query Optimization
Indexing Strategies
Connection Pooling
N+1 Problem
API
Pagination
Response Compression
Batch Operations
Async Processing
Frontend
Bundle Optimization
Lazy Loading
Image Optimization
Core Web Vitals
Profiling
CPU Profiling
Memory Profiling
APM Tools
Scaling
Horizontal Scaling
Vertical Scaling
Load Balancing
Auto Scaling
Integration with F5 Framework
Quality Gate Integration
Performance requirements should be defined in quality gates:
# .f5/quality/gates-status.yaml
gates:
G2:
performance:
api_p95_response: "< 200ms"
database_p95_query: "< 50ms"
memory_usage: "< 80%"
Traceability
Performance requirements should be traceable:
// NFR-PERF-001: API response time must be under 200ms at P95
export async function getUser(id: string): Promise<User> {
// implementation
}
1 --- 2 name: performance 3 description: Performance optimization strategies and techniques 4 --- 5 6 # Performance Skills 7 8 ## Overview 9 10 Performance optimization knowledge for building fast, scalable applications 11 that provide excellent user experience. 12 13 ## Key Metrics 14 15 | Metric | Target | Description | 16 |--------|--------|-------------| 17 | **TTFB** | < 200ms | Time to First Byte | 18 | **FCP** | < 1.8s | First Contentful Paint | 19 | **LCP** | < 2.5s | Largest Contentful Paint | 20 | **FID** | < 100ms | First Input Delay | 21 | **CLS** | < 0.1 | Cumulative Layout Shift | 22 | **API Response** | < 200ms | P95 response time | 23 | **Database Query** | < 50ms | P95 query time | 24 | **Memory Usage** | < 80% | Application memory threshold | 25 26 ## Categories 27 28 ### Fundamentals 29 - Performance metrics and measurement 30 - Bottleneck analysis techniques 31 - Benchmarking methodologies 32 33 ### Caching 34 - Application caching strategies 35 - Redis/Memcached implementation 36 - HTTP caching headers 37 - CDN configuration 38 - Cache invalidation patterns 39 40 ### Database Performance 41 - Query optimization 42 - Indexing strategies 43 - Connection pooling 44 - N+1 query prevention 45 - Read replicas 46 47 ### API Performance 48 - Pagination strategies 49 - Response compression 50 - Batch operations 51 - Async processing 52 - Rate limiting 53 54 ### Frontend Performance 55 - Bundle optimization 56 - Code splitting 57 - Lazy loading 58 - Image optimization 59 - Core Web Vitals 60 61 ### Profiling & Monitoring 62 - CPU profiling 63 - Memory analysis 64 - APM tools 65 - Performance testing 66 67 ### Scaling 68 - Horizontal vs vertical 69 - Load balancing 70 - Auto-scaling 71 - Caching layers 72 73 ## Performance Pyramid 74 75 ``` 76 ╱╲ 77 ╱ ╲ CDN / Edge 78 ╱────╲ 79 ╱ ╲ Application Cache 80 ╱────────╲ 81 ╱ ╲ Database Optimization 82 ╱────────────╲ 83 ╱ ╲ Code Optimization 84 ╱________________╲ Infrastructure 85 ``` 86 87 ## Quick Reference 88 89 ### Response Time Targets 90 91 | Operation Type | Target | Maximum | 92 |---------------|--------|---------| 93 | Static assets | < 50ms | 100ms | 94 | API read | < 100ms | 200ms | 95 | API write | < 200ms | 500ms | 96 | Search | < 200ms | 500ms | 97 | Report generation | < 2s | 5s | 98 | File upload | < 5s | 30s | 99 100 ### Caching Strategy by Data Type 101 102 | Data Type | Cache Location | TTL | 103 |-----------|---------------|-----| 104 | Static assets | CDN | 1 year | 105 | User session | Redis | 30 min | 106 | User profile | Redis | 1 hour | 107 | Product catalog | Redis + CDN | 6 hours | 108 | Search results | Redis | 5 min | 109 | Config | Memory | 24 hours | 110 111 ## Skill Files 112 113 ### Fundamentals 114 - [Performance Metrics](fundamentals/performance-metrics.md) 115 - [Bottleneck Analysis](fundamentals/bottleneck-analysis.md) 116 - [Benchmarking](fundamentals/benchmarking.md) 117 118 ### Caching 119 - [Caching Strategies](caching/caching-strategies.md) 120 - [Redis Caching](caching/redis-caching.md) 121 - [HTTP Caching](caching/http-caching.md) 122 - [CDN Caching](caching/cdn-caching.md) 123 - [Cache Invalidation](caching/cache-invalidation.md) 124 125 ### Database 126 - [Query Optimization](database/query-optimization.md) 127 - [Indexing Strategies](database/indexing-strategies.md) 128 - [Connection Pooling](database/connection-pooling.md) 129 - [N+1 Problem](database/n-plus-one.md) 130 131 ### API 132 - [Pagination](api/pagination.md) 133 - [Response Compression](api/response-compression.md) 134 - [Batch Operations](api/batch-operations.md) 135 - [Async Processing](api/async-processing.md) 136 137 ### Frontend 138 - [Bundle Optimization](frontend/bundle-optimization.md) 139 - [Lazy Loading](frontend/lazy-loading.md) 140 - [Image Optimization](frontend/image-optimization.md) 141 - [Core Web Vitals](frontend/core-web-vitals.md) 142 143 ### Profiling 144 - [CPU Profiling](profiling/cpu-profiling.md) 145 - [Memory Profiling](profiling/memory-profiling.md) 146 - [APM Tools](profiling/apm-tools.md) 147 148 ### Scaling 149 - [Horizontal Scaling](scaling/horizontal-scaling.md) 150 - [Vertical Scaling](scaling/vertical-scaling.md) 151 - [Load Balancing](scaling/load-balancing.md) 152 - [Auto Scaling](scaling/auto-scaling.md) 153 154 ## Integration with F5 Framework 155 156 ### Quality Gate Integration 157 158 Performance requirements should be defined in quality gates: 159 160 ```yaml 161 # .f5/quality/gates-status.yaml 162 gates: 163 G2: 164 performance: 165 api_p95_response: "< 200ms" 166 database_p95_query: "< 50ms" 167 memory_usage: "< 80%" 168 ``` 169 170 ### Traceability 171 172 Performance requirements should be traceable: 173 174 ```typescript 175 // NFR-PERF-001: API response time must be under 200ms at P95 176 export async function getUser(id: string): Promise<User> { 177 // implementation 178 } 179 ```
Fujigo-Software/f5-framework-claude/tree/main/plugins/f5-core/skills/performance commit ba1a407fdd
Frequently asked questions How do I install the Performance skill? Run npx skillmds@latest add fujigo-software/performance in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
What does the Performance skill do? Performance optimization strategies and techniques It is listed under Coding & Dev Tools on SkillMD.
Is Performance safe to use? This skill has not completed SkillMD's automated safety review yet. Capability flags: docs only. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
Which AI agents work with Performance? This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Is Performance free to use? Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
Who published Performance? Fujigo-Software (@fujigo-software) published this skill. Their other Agent Skills are listed on their SkillMD profile.