npx claudepluginhub jeremylongshore/claude-code-plugins-plus-skills --plugin gamma-packWant just this skill?
Then install: npx claudepluginhub u/[userId]/[slug]
Optimize Gamma usage costs and manage API spending. Use when reducing API costs, implementing usage quotas, or planning for scale with budget constraints. Trigger with phrases like "gamma cost", "gamma billing", "gamma budget", "gamma expensive", "gamma pricing".
This skill is limited to using the following tools:
references/implementation.mdGamma Cost Tuning
Contents
Overview
Optimize Gamma API usage to minimize costs through usage monitoring, quotas, caching, and smart AI generation patterns.
Prerequisites
- Active Gamma subscription
- Access to usage dashboard
- Understanding of pricing tiers
Instructions
Step 1: Implement Usage Monitoring
Track daily usage by operation type (presentations, generations, exports, API calls). Alert at 80% of plan limits.
Step 2: Configure Per-User Quotas
Set quotas per user with auto-reset. Check quotas before API calls and decrement on success.
Step 3: Optimize AI Generation
Use templates with targeted AI generation only for slides that need it, rather than full AI generation for every slide.
Step 4: Add Response Caching
Use Redis with 1-hour TTL to eliminate redundant API calls for repeated data.
Step 5: Batch Operations
Replace individual API calls with batch operations. Queue non-urgent work for off-peak processing.
Step 6: Set Budget Alerts
Configure threshold alerts at 50%, 75%, 90%, and 100% of monthly budget. Auto-disable non-critical features at budget cap.
See detailed implementation for advanced patterns.
Output
- Usage monitoring with alerts
- Per-user quota system
- Optimized AI generation patterns
- Caching layer for API calls
- Budget management with auto-cutoff
Error Handling
| Issue | Cause | Solution |
|---|---|---|
| Quota exceeded | Heavy usage | Increase quota or throttle |
| Budget overrun | No alerts set | Configure threshold alerts |
| Cache stale data | Long TTL | Reduce TTL or add invalidation |
Examples
Gamma Pricing Reference
| Resource | Free | Pro | Team | Enterprise |
|---|---|---|---|---|
| Presentations/mo | 10 | 100 | 500 | Custom |
| AI generations | 5 | 50 | 200 | Unlimited |
| Exports/mo | 10 | 100 | 500 | Unlimited |
Cost Reduction Strategies
| Strategy | Savings | Implementation |
|---|---|---|
| Caching | 30-50% | Redis/in-memory cache |
| Batching | 20-40% | Batch API calls |
| Templates | 40-60% | Reduce AI usage |
| Off-peak | 10-20% | Queue for low-cost periods |
Resources
Similar Skills
Expert guidance for Next.js Cache Components and Partial Prerendering (PPR). **PROACTIVE ACTIVATION**: Use this skill automatically when working in Next.js projects that have `cacheComponents: true` in their next.config.ts/next.config.js. When this config is detected, proactively apply Cache Components patterns and best practices to all React Server Component implementations. **DETECTION**: At the start of a session in a Next.js project, check for `cacheComponents: true` in next.config. If enabled, this skill's patterns should guide all component authoring, data fetching, and caching decisions. **USE CASES**: Implementing 'use cache' directive, configuring cache lifetimes with cacheLife(), tagging cached data with cacheTag(), invalidating caches with updateTag()/revalidateTag(), optimizing static vs dynamic content boundaries, debugging cache issues, and reviewing Cache Component implementations.
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.