Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Debug and resolve common Gamma API errors. Use when encountering authentication failures, rate limits, generation errors, or unexpected API responses. Trigger with phrases like "gamma error", "gamma not working", "gamma API error", "gamma debug", "gamma troubleshoot".
.claude/skills/jeremylongshore-gamma-common-errors/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-03 | ✗→✓ | ▲ Improved | -10% | 0% |
| case-09 | ✗→✓ | ▲ Improved | -26% | 0% |
| case-21 | ✗→✓ | ▲ Improved | 3% | 0% |
| case-22 | ✗→✓ | ▲ Improved | -35% | 0% |
| case-05 | ✓→✗ | ▼ Worse | 16% | 0% |
Reference guide for debugging and resolving common Gamma API errors.
typescript// Error: Invalid API Key { "error": "unauthorized", "message": "Invalid or expired API key" }
Solutions:
echo $GAMMA_API_KEYtypescript// Error: Rate Limited { "error": "rate_limited", "message": "Too many requests", "retry_after": 60 }
Solutions:
X-RateLimit-Remainingtypescriptasync function withRetry(fn: () => Promise<any>, maxRetries = 3) { for (let i = 0; i < maxRetries; i++) { try { return await fn(); } catch (err) { if (err.code === 'rate_limited' && i < maxRetries - 1) { const delay = (err.retryAfter || Math.pow(2, i)) * 1000; # 1000: 1 second in ms await new Promise(r => setTimeout(r, delay)); continue; } throw err; } } }
typescript// Error: Generation Failed { "error": "generation_failed", "message": "Unable to generate presentation", "details": "Content too complex" }
Solutions:
typescript// Error: Request Timeout { "error": "timeout", "message": "Request timed out after 30000ms" }
Solutions:
typescriptconst gamma = new GammaClient({ apiKey: process.env.GAMMA_API_KEY, timeout: 60000, // 60 seconds # 60000: 1 minute in ms });
typescript// Error: Export Failed { "error": "export_failed", "message": "Unable to export presentation", "format": "pdf" }
Solutions:
typescriptconst gamma = new GammaClient({ apiKey: process.env.GAMMA_API_KEY, debug: true, // Logs all requests/responses });
typescriptconst status = await gamma.status(); console.log('API Status:', status.healthy ? 'OK' : 'Issues'); console.log('Services:', status.services);
typescriptimport { GammaError, RateLimitError, AuthError } from '@gamma/sdk'; try { const result = await gamma.presentations.create({ ... }); } catch (err) { if (err instanceof AuthError) { console.error('Check your API key'); } else if (err instanceof RateLimitError) { console.error(`Retry after ${err.retryAfter}s`); } else if (err instanceof GammaError) { console.error('API Error:', err.message); } else { throw err; } }
Proceed to gamma-debug-bundle for comprehensive debugging tools.
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→fail | 27,958 | 20,068 | -28% | 1 | 1 | 0% | 4,273 | 4,073 | -5% | 0 | 0 | — |
case-02 | pass→pass | 15,615 | 18,019 | +15% | 1 | 1 | 0% | 2,705 | 3,526 | +30% | 0 | 0 | — |
case-03 | fail→pass | 16,027 | 13,297 | -17% | 1 | 1 | 0% | 2,908 | 2,619 | -10% | 0 | 0 | — |
case-04 | pass→pass | 16,446 | 15,406 | -6% | 1 | 1 | 0% | 2,722 | 3,496 | +28% | 0 | 0 | — |
case-05 | pass→fail | 19,135 | 15,330 | -20% | 1 | 1 | 0% | 2,386 | 2,772 | +16% | 0 | 0 | — |
case-06 | pass→pass | 12,706 | 10,218 | -20% | 1 | 1 | 0% | 2,457 | 3,077 | +25% | 0 | 0 | — |
case-07 | pass→pass | 14,199 | 9,444 | -33% | 1 | 1 | 0% | 1,653 | 1,551 | -6% | 0 | 0 | — |
case-08 | pass→pass | 17,005 | 1,908 | -89% | 1 | 1 | 0% | 2,005 | 1,360 | -32% | 0 | 0 | — |
case-09 | fail→pass | 11,330 | 7,117 | -37% | 1 | 1 | 0% | 1,904 | 1,405 | -26% | 0 | 0 | — |
case-10 | pass→pass | 3,743 | 2,649 | -29% | 1 | 1 | 0% | 629 | 1,556 | +147% | 0 | 0 | — |
case-11 | fail→fail | 17,179 | 6,818 | -60% | 1 | 1 | 0% | 2,225 | 1,365 | -39% | 0 | 0 | — |
case-12 | pass→pass | 9,802 | 1,398 | -86% | 1 | 1 | 0% | 1,769 | 1,272 | -28% | 0 | 0 | — |
case-13 | pass→pass | 16,912 | 6,627 | -61% | 1 | 1 | 0% | 2,134 | 1,320 | -38% | 0 | 0 | — |
case-14 | pass→pass | 9,228 | 7,179 | -22% | 1 | 1 | 0% | 1,675 | 1,334 | -20% | 0 | 0 | — |
case-15 | pass→pass | 17,430 | 1,918 | -89% | 1 | 1 | 0% | 1,848 | 1,326 | -28% | 0 | 0 | — |
case-16 | pass→pass | 7,227 | 6,699 | -7% | 1 | 1 | 0% | 1,169 | 1,329 | +14% | 0 | 0 | — |
case-17 | pass→pass | 10,134 | 7,052 | -30% | 1 | 1 | 0% | 1,858 | 1,315 | -29% | 0 | 0 | — |
case-18 | fail→fail | 8,991 | 1,911 | -79% | 1 | 1 | 0% | 1,745 | 1,336 | -23% | 0 | 0 | — |
case-19 | fail→fail | 5,664 | 6,667 | +18% | 1 | 1 | 0% | 983 | 1,369 | +39% | 0 | 0 | — |
case-20 | pass→pass | 10,289 | 7,704 | -25% | 1 | 1 | 0% | 1,977 | 1,671 | -15% | 0 | 0 | — |
case-21 | fail→pass | 6,787 | 2,309 | -66% | 1 | 1 | 0% | 1,418 | 1,457 | +3% | 0 | 0 | — |
case-22 | fail→pass | 15,680 | 6,194 | -60% | 1 | 1 | 0% | 1,891 | 1,234 | -35% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +14 percentage points is the difference between those two pass rates over the 22 comparable cases. 1 case got worse with the skill loaded, and it is included in that figure.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.