gamma-cost-tuning
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".
- License 许可
- MIT
- 最近更新
- 2026-03-20
- Stars
- ★ 4
- Forks
- 0
01 前言 Front Matter
- name
- gamma-cost-tuning
- author
- Jeremy Longshore <jeremy@intentsolutions.io>
- license
- MIT
- version
- 1.0.0
- description
- 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".
- allowed-tools
- Read, Write, Edit
- compatible-with
- claude-code, codex, openclaw
02 资源文件 1
- 参考文档references/implementation.md3.0 KB
03 SKILL.md 正文
Gamma 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
04 同仓库更多 Skills
azure-apim-architecture
Analyzes and explains Azure API Management architecture decisions for enterprise API marketplace implementations using VNet Internal mode, Front Door, hybrid authentication, and multi-environment strategies. Use when discussing APIM component selection, network topology, cost optimization, or comparing alternatives like workspaces vs instances, VNet Internal vs External mode, or Front Door vs Application Gateway.
apiops-deployment
Guides deployment of Azure API Management infrastructure using Infrastructure as Code (Bicep/Terraform), CI/CD pipelines (GitHub Actions/Azure DevOps), and APIOps workflows. Use when deploying APIM, creating pipelines, or implementing dev→test→prod promotion strategies.
apim-policy-authoring
Creates production-ready Azure API Management policy XML for authentication (OAuth 2.0, JWT validation, subscription keys), rate limiting, CORS configuration, error handling, and API transformations. Use when implementing API security, access control, or request/response processing logic.
api-security-review
Reviews Azure API Management configurations for security vulnerabilities, OWASP API Security Top 10 compliance, VNet Internal mode validation, Private Link verification, and Azure Security Benchmark alignment. Use when performing security audits, pre-deployment validation, or compliance reviews.
jira-cli
Interact with Jira from the command line to create, list, view, edit, and transition issues, manage sprints and epics, and perform common Jira workflows. Use when the user asks about Jira tasks, tickets, issues, sprints, or needs to manage project work items.
calculator
Performs arbitrary-precision arithmetic calculations including addition, subtraction, multiplication, division, and exponents. Use when the user asks to calculate, compute, or evaluate math expressions, or when precise decimal arithmetic is needed to avoid floating-point errors.