Agent skill · software engineering · secondsky
api-response-optimization
Optimizes API performance through payload reduction, caching strategies, and compression techniques. Use when improving API response times, reducing bandwidth usage, or implementing efficient caching.
Why this skill is useful
Provides specific implementation patterns for API optimization that the AI wouldn't reliably generate on its own.
What it needs
Requires compression installed locally. About 1k tokens when loaded. Last updated 2026-08-06. 204 stars on the source repository.
What this skill does
API Response Optimization Reduce payload sizes, implement caching, and enable compression for faster APIs. Sparse Fieldsets HTTP Caching Headers Response Compression Performance Targets Metric Target -------- -------- Response time <100ms (from 500ms) Payload size <50KB (from 500KB) Server CPU <30% (from 80%) Optimization Checklist [ ] Remove sensitive/unnecessary fields from responses [ ] Implement sparse fieldsets [ ] Add ETag/Last-Modified headers [ ] Enable gzip/brotli compression [ ] Use pagination for collections [ ] Eager load to prevent N+1 queries [ ] Monitor with APM tools Best Practices Cache immutable resources aggressively Use short TTL for frequently changing data Invalidate cache on writes Compress responses >1KB Profile before optimizing
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills secondsky/api-response-optimization