Skill
Community

gamma-performance-tuning

Install
1
Install the plugin
$
npx claudepluginhub jeremylongshore/claude-code-plugins-plus-skills --plugin gamma-pack

Want just this skill?

Then install: npx claudepluginhub u/[userId]/[slug]

Description

Optimize Gamma API performance and reduce latency. Use when experiencing slow response times, optimizing throughput, or improving user experience with Gamma integrations. Trigger with phrases like "gamma performance", "gamma slow", "gamma latency", "gamma optimization", "gamma speed".

Tool Access

This skill is limited to using the following tools:

ReadWriteEdit
Supporting Assets
View in Repository
references/implementation.md
Skill Content

Gamma Performance Tuning

Contents

Overview

Optimize Gamma API integration performance through client configuration, caching, connection pooling, and parallel request patterns.

Prerequisites

  • Working Gamma integration
  • Performance monitoring tools
  • Understanding of caching concepts

Instructions

Step 1: Optimize Client Configuration

Enable keep-alive, compression, and configure max sockets (10). Set retry conditions for 5xx and 429 errors.

Step 2: Implement Response Caching

Use node-cache with 5-minute TTL. Invalidate on presentation.updated events.

Step 3: Parallelize Requests

Replace sequential loops with p-limit (concurrency 5) for bulk operations. Use batch API where available.

Step 4: Add Pagination with Generators

Use async generators for memory-efficient iteration over large presentation lists.

Step 5: Optimize Request Payloads

Request only needed fields to reduce response size. Use returnImmediately for creation operations.

Step 6: Configure Connection Pooling

Create shared HTTP/HTTPS agents with keep-alive, 25 max sockets, and 60s timeout.

See detailed implementation for advanced patterns.

Output

  • Optimized client configuration
  • Response caching layer
  • Parallel request patterns
  • Connection pooling setup
  • Performance monitoring

Error Handling

IssueCauseSolution
High latencyNo connection reuseEnable keep-alive and pooling
Memory growthUnbounded cacheSet TTL and max cache size
Rate limitingToo many parallel requestsUse p-limit with concurrency cap

Examples

Performance Targets

OperationTargetAction if Exceeded
Simple GET< 200msCheck network, use caching
List (100 items)< 500msReduce page size
Create presentation< 5sUse async pattern
Export PDF< 30sUse webhook notification

Resources

Stats
Stars1676
Forks210
Last CommitMar 11, 2026

Similar Skills