Get the FREE Ultimate OpenClaw Setup Guide →

performance

Scanned
npx machina-cli add skill Fujigo-Software/f5-framework-claude/performance --openclaw
Files (1)
SKILL.md
4.5 KB

Performance Skills

Overview

Performance optimization knowledge for building fast, scalable applications that provide excellent user experience.

Key Metrics

MetricTargetDescription
TTFB< 200msTime to First Byte
FCP< 1.8sFirst Contentful Paint
LCP< 2.5sLargest Contentful Paint
FID< 100msFirst Input Delay
CLS< 0.1Cumulative Layout Shift
API Response< 200msP95 response time
Database Query< 50msP95 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 TypeTargetMaximum
Static assets< 50ms100ms
API read< 100ms200ms
API write< 200ms500ms
Search< 200ms500ms
Report generation< 2s5s
File upload< 5s30s

Caching Strategy by Data Type

Data TypeCache LocationTTL
Static assetsCDN1 year
User sessionRedis30 min
User profileRedis1 hour
Product catalogRedis + CDN6 hours
Search resultsRedis5 min
ConfigMemory24 hours

Skill Files

Fundamentals

Caching

Database

API

Frontend

Profiling

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
}

Source

git clone https://github.com/Fujigo-Software/f5-framework-claude/blob/main/plugins/f5-core/skills/performance/SKILL.mdView on GitHub

Overview

Delivers fast, scalable applications by applying proven performance techniques. It covers measurement, bottleneck analysis, caching, database and API tuning, and frontend optimizations to improve user experience.

How This Skill Works

Start by defining targets using the performance metric framework (TTFB, FCP, LCP, FID, CLS, API and DB timings) and reference figures from the Skill. Then apply category-specific strategies—caching, database tuning, API performance, frontend optimizations, profiling, and scaling—and validate improvements with benchmarking and monitoring.

When to Use It

  • You need to meet core Web Vitals and API latency targets in production (TTFB <200ms, LCP <2.5s, etc.)
  • You observe high p95 API or database query times and want to reduce latency
  • You’re addressing N+1 query issues or slow database performance
  • You’re deploying caching layers (CDN, Redis) and need effective invalidation and headers
  • You’re optimizing frontend deliverables (bundles, images, lazy loading) to improve Core Web Vitals

Quick Start

  1. Step 1: Define performance targets (TTFB <200ms, LCP <2.5s, CLS <0.1) and capture a baseline
  2. Step 2: Profile critical paths with CPU/memory analysis and APM to identify bottlenecks across backend, DB, API, and frontend
  3. Step 3: Implement improvements (caching, DB tuning, compression, bundle optimization) and validate with tests

Best Practices

  • Measure with the standard metrics (TTFB, FCP, LCP, FID, CLS, API and DB timings) and monitor progress
  • Profile CPU and memory, using APM tools to pinpoint bottlenecks
  • Apply caching at the right layer (HTTP headers, CDN, Redis) with clear invalidation rules
  • Optimize database performance with indexing, query optimization, and connection pooling
  • Iterate frontend performance with bundle optimization, code splitting, lazy loading, and image optimization

Example Use Cases

  • CDN-enabled static assets and edge caching reduced TTFB to under 200ms
  • Redis caching and HTTP compression cut API read latency from 400ms to 120ms
  • Indexing and query rewriting eliminated N+1 queries and lowered p95 DB time
  • Code splitting and image optimization improved Core Web Vitals scores
  • Auto-scaling and load balancing kept memory usage under 80% during peak load

Frequently Asked Questions

Add this skill to your agents

Related Skills

Sponsor this space

Reach thousands of developers