environment-setup-guide
Guide developers through setting up development environments with proper tools, dependencies, and configurations
gamma-performance-tuning
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".
Full skill instructions
Optimize Gamma API integration performance for faster response times and better throughput.
import { GammaClient } from '@gamma/sdk';
const gamma = new GammaClient({
apiKey: process.env.GAMMA_API_KEY,
// Connection optimization
timeout: 30000,
keepAlive: true,
maxSockets: 10,
// Retry configuration
retries: 3,
retryDelay: 1000,
retryCondition: (err) => err.status >= 500 || err.status === 429,
// Compression
compression: true,
});
import NodeCache from 'node-cache';
const cache = new NodeCache({
stdTTL: 300, // 5 minutes default
checkperiod: 60,
});
async function getCachedPresentation(id: string) {
const cacheKey = `presentation:${id}`;
// Check cache first
const cached = cache.get(cacheKey);
if (cached) {
return cached;
}
// Fetch from API
const presentation = await gamma.presentations.get(id);
// Cache the result
cache.set(cacheKey, presentation);
return presentation;
}
// Cache invalidation on updates
gamma.on('presentation.updated', (event) => {
cache.del(`presentation:${event.data.id}`);
});
// Instead of sequential requests
async function getSequential(ids: string[]) {
const results = [];
for (const id of ids) {
results.push(await gamma.presentations.get(id)); // Slow!
}
return results;
}
// Use parallel requests with concurrency control
import pLimit from 'p-limit';
const limit = pLimit(5); // Max 5 concurrent requests
async function getParallel(ids: string[]) {
return Promise.all(
ids.map(id => limit(() => gamma.presentations.get(id)))
);
}
// Batch API if available
async function getBatch(ids: string[]) {
return gamma.presentations.getBatch(ids); // Single request for multiple items
}
// Pagination for large lists
async function* getAllPresentations() {
let cursor: string | undefined;
do {
const page = await gamma.presentations.list({
limit: 100,
cursor,
});
for (const presentation of page.items) {
yield presentation;
}
cursor = page.nextCursor;
} while (cursor);
}
// Usage
for await (const presentation of getAllPresentations()) {
// Process one at a time, memory efficient
}
// Only request needed fields
const presentation = await gamma.presentations.get(id, {
fields: ['id', 'title', 'url', 'updatedAt'], // Skip large fields
});
// Avoid redundant API calls
const createOptions = {
title: 'My Presentation',
prompt: 'AI content',
returnImmediately: true, // Don't wait for generation
};
const { id, statusUrl } = await gamma.presentations.create(createOptions);
// Poll status separately if needed
const status = await gamma.presentations.status(id);
import http from 'http';
import https from 'https';
// Reuse connections
const httpAgent = new http.Agent({
keepAlive: true,
maxSockets: 25,
maxFreeSockets: 10,
timeout: 60000,
});
const httpsAgent = new https.Agent({
keepAlive: true,
maxSockets: 25,
maxFreeSockets: 10,
timeout: 60000,
});
const gamma = new GammaClient({
apiKey: process.env.GAMMA_API_KEY,
httpAgent,
httpsAgent,
});
import { performance } from 'perf_hooks';
async function timedRequest<T>(name: string, fn: () => Promise<T>): Promise<T> {
const start = performance.now();
try {
const result = await fn();
const duration = performance.now() - start;
console.log(`[PERF] ${name}: ${duration.toFixed(2)}ms`);
metrics.recordLatency(name, duration);
return result;
} catch (err) {
const duration = performance.now() - start;
console.log(`[PERF] ${name} FAILED: ${duration.toFixed(2)}ms`);
throw err;
}
}
// Usage
const presentation = await timedRequest('gamma.get', () =>
gamma.presentations.get(id)
);
| Operation | Target | Action if Exceeded |
|---|---|---|
| Simple GET | < 200ms | Check network, use caching |
| List (100 items) | < 500ms | Reduce page size |
| Create presentation | < 5s | Use async pattern |
| Export PDF | < 30s | Use webhook notification |
Proceed to gamma-cost-tuning for cost optimization.
Guide developers through setting up development environments with proper tools, dependencies, and configurations
Implement Exa lint rules, policy enforcement, and automated guardrails. Use when setting up code quality rules for Exa integrations, implementing pre-commit hooks, or configuring CI policy checks for Exa best practices. Trigger with phrases like "exa policy", "exa lint", "exa guardrails", "exa be...
Configure CI/CD pipelines for Documenso integrations. Use when setting up automated testing, deployment pipelines, or continuous integration for Documenso projects. Trigger with phrases like "documenso CI", "documenso GitHub Actions", "documenso pipeline", "documenso automated testing".
Build check model availability and implement fallback chains. Use when building resilient systems or handling model outages. Trigger with phrases like 'openrouter availability', 'openrouter fallback', 'openrouter model down', 'openrouter health check'.
Configure Langfuse enterprise organization management and access control. Use when implementing team access controls, configuring organization settings, or setting up role-based permissions for Langfuse projects. Trigger with phrases like "langfuse RBAC", "langfuse teams", "langfuse organization"...
Execute compliance and security auditing for Cursor usage. Triggers on "cursor compliance", "cursor audit", "cursor security review", "cursor soc2", "cursor gdpr". Use when analyzing or auditing cursor compliance audit. Trigger with phrases like "cursor compliance audit", "cursor audit", "cursor".
Configure Apollo.io CI/CD integration. Use when setting up automated testing, continuous integration, or deployment pipelines for Apollo integrations. Trigger with phrases like "apollo ci", "apollo github actions", "apollo pipeline", "apollo ci/cd", "apollo automated tests".
Create robust Python automation with full logging and safety checks. Use when tasks need complex data processing, authenticated API work, conditional file operations, or error handling beyond simple shell commands.
Configure PostHog across development, staging, and production environments. Use when setting up multi-environment deployments, configuring per-environment secrets, or implementing environment-specific PostHog configurations. Trigger with phrases like "posthog environments", "posthog staging", "po...
Expert in designing and building autonomous AI agents. Masters tool use, memory systems, planning strategies, and multi-agent orchestration. Use when: build agent, AI agent, autonomous agent, tool use, function calling.
Validate insecure deserialization checker operations. Auto-activating skill for Security Fundamentals. Triggers on: insecure deserialization checker, insecure deserialization checker Part of the Security Fundamentals skill category. Use when working with insecure deserialization checker functiona...
Manage path traversal finder operations. Auto-activating skill for Security Fundamentals. Triggers on: path traversal finder, path traversal finder Part of the Security Fundamentals skill category. Use when working with path traversal finder functionality. Trigger with phrases like "path traversa...
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience