SkillsGrove
SkillsGrove/Bürodokumente/tsukhani/jclaw/gamma-presenter

gamma-presenter

Installation

$npx skills add https://github.com/tsukhani/jclaw --skill gamma-presenter
$git clone --depth 1 https://github.com/tsukhani/jclaw.git /tmp/jclaw && mkdir -p ~/.claude/skills && cp -r /tmp/jclaw/skills/gamma-presenter ~/.claude/skills/gamma-presenter
Bitte installiere diesen Agent Skill für mich: https://github.com/tsukhani/jclaw/tree/e6d2b5ef0f1a0a0f3b1e60097ef0a1ee0ffddcc5/skills/gamma-presenter – lies zuerst seine SKILL.md und seine Skripte und installiere ihn erst dann in meinen Skills-Ordner, wenn du bestätigt hast, dass er sicher ist.

Zusammenfassung

Originalbeschreibung · MITCreate beautiful AI-generated presentations, documents, webpages, and social posts via the Gamma API. Supports generation from text prompts, templates, multi-page gammas, exports to PDF/PPTX/PNG, and management of existing gammas.
Die folgende SKILL.md ist aus tsukhani/jclaw (Commit e6d2b5e) unter der Lizenz MIT wiedergegeben. Der Text ist unverändert; lediglich die Metadaten im Dateikopf sind weggelassen, Bilder werden als Links angezeigt und sehr lange Dateien werden gekürzt. Copyright 2026 Abundent Sdn Bhd. Lizenz: LICENSE. Es wird nur die Anleitungsdatei angezeigt; etwaige Skripte finden Sie im Original-Repository.

Gamma Presenter

Generate polished presentations, documents, webpages, and social media posts using the Gamma API.

Prerequisites

  • Gamma account with Pro, Ultra, Team, or Business plan (required for API key)
  • The API key in JClaw's secret store, as GAMMA_API_KEY

Secrets

GAMMA_API_KEY=public-api.gamma.app   # A Gamma API key (starts with sk-gamma-), from Settings, API Keys

The operator adds it once; an agent cannot.

  1. Log in to Gamma at https://gamma.app
  2. Go to Settings → API Keys
  3. Generate a new API key (starts with sk-gamma-)
  4. In JClaw, open this skill from the agent's column on the Skills page and add a secret named GAMMA_API_KEY, with the host public-api.gamma.app

Any command that names $GAMMA_API_KEY receives a stand-in, and JClaw puts the real key in only on requests to that host. Never look for the key in a file. If a call answers 401 or $GAMMA_API_KEY is empty, the secret is missing: ask the operator to add it.

Quick Reference

Task Endpoint Method
Generate from text /v1.0/generations POST
Generate from template /v1.0/generations/from-template POST
Check status /v1.0/generations/{id} GET
Generate image /v1.0/images POST
Check image status /v1.0/images/{id} GET
List themes /v1.0/themes GET
List folders /v1.0/folders GET
Search gammas /v1.0/gammas/search GET
Get gamma /v1.0/gammas/{gammaId} GET
Archive gamma /v1.0/gammas/{gammaId}/archive POST
Export gamma /v1.0/gammas/{gammaId}/export POST
Check export status /v1.0/exports/{id} GET
Delete gamma /v1.0/gammas/{gammaId} DELETE

Base Configuration

Setting Value
Base URL https://public-api.gamma.app
Version v1.0
Auth header X-API-KEY
Content-Type application/json

Core Operations

1. Generate a Presentation from Text

curl -X POST "https://public-api.gamma.app/v1.0/generations" \
  -H "Content-Type: application/json" \
  -H "X-API-KEY: $GAMMA_API_KEY" \
  -d '{
    "inputText": "Your content or prompt here",
    "textMode": "generate",
    "format": "presentation",
    "numCards": 10,
    "themeId": "theme-id-here",
    "textOptions": { "language": "en" },
    "exportAs": "pdf"
  }'

textMode options: generate (Gamma rewrites and expands your text), condense (Gamma summarizes it), preserve (Gamma keeps your text as it is)

themeId and textOptions are optional: leave themeId out for the workspace's default theme. The language goes inside textOptions; a top-level language is rejected with HTTP 400.

format options: presentation, document, webpage, social

exportAs options: pdf, pptx, png (PNG returns a ZIP with one image per card)

2. Poll for Generation Completion

curl -H "X-API-KEY: $GAMMA_API_KEY" \
  "https://public-api.gamma.app/v1.0/generations/{generationId}"

Poll every 5 seconds until status is completed or failed.

Completed response includes:

  • gammaUrl — live presentation link
  • exportUrl — downloadable file (if exportAs was specified)
  • gammaId — ID for future management operations
  • credits — deduction and remaining balance

3. Generate from a Template

curl -X POST "https://public-api.gamma.app/v1.0/generations/from-template" \
  -H "Content-Type: application/json" \
  -H "X-API-KEY: $GAMMA_API_KEY" \
  -d '{
    "templateGammaId": "template-id-here",
    "textMode": "generate",
    "inputText": "New content to adapt the template to"
  }'

4. Export an Existing Gamma

curl -X POST "https://public-api.gamma.app/v1.0/gammas/{gammaId}/export" \
  -H "Content-Type: application/json" \
  -H "X-API-KEY: $GAMMA_API_KEY" \
  -d '{
    "format": "pptx"
  }'

Then poll: GET /v1.0/exports/{exportId}

5. Generate a Standalone Image

curl -X POST "https://public-api.gamma.app/v1.0/images" \
  -H "Content-Type: application/json" \
  -H "X-API-KEY: $GAMMA_API_KEY" \
  -d '{
    "prompt": "A hero image of a futuristic city skyline at sunset",
    "aspectRatio": "16:9"
  }'

Available Themes and Folders

List Themes

curl -H "X-API-KEY: $GAMMA_API_KEY" \
  "https://public-api.gamma.app/v1.0/themes"

List Folders

curl -H "X-API-KEY: $GAMMA_API_KEY" \
  "https://public-api.gamma.app/v1.0/folders"

Workflow: Create → Poll → Download

When asked to create a Gamma presentation:

  1. Use $GAMMA_API_KEY in each curl call as shown above; never read or print the key
  2. Build the request payload based on user's specifications (format, numCards, themeId, exportAs, etc.)
  3. Start generation via exec using curl to POST /v1.0/generations
  4. Parse the generationId from the response
  5. Poll for completion every 5 seconds using exec with curl GET /v1.0/generations/{id}
  6. Report results — share the gammaUrl and exportUrl (if applicable) with the user
  7. Save metadata (generationId, gammaId, gammaUrl, exportUrl) to a local file in gamma-presenter/ for reference, and clean up transient artifacts after use

Tips for Best Results

  • Be specific: "10-slide marketing strategy covering target audience, channels, budget, and metrics"
  • Describe style: "professional and minimal", "colorful and creative", "corporate and clean"
  • Specify text density: "brief bullet points" vs "detailed explanations"
  • Mention folders: "save to my Marketing folder" (use folder ID from /folders)
  • Use textMode: "preserve" when you already have the full content written

Error Handling

Status Meaning Action
401 Invalid or missing API key Ask the operator to check the GAMMA_API_KEY secret on the Skills page
403 Insufficient credits Purchase more credits in Gamma settings
429 Rate limited Wait and retry with exponential backoff
422 Invalid parameters Check request payload against API docs
5xx Server error Retry after a short delay

Important Notes

  • API calls must be server-side only — never from browser JavaScript
  • Generations are async — always poll for completion
  • Credits are deducted per generation; check remaining credits in the response
  • Export URLs expire after a period; download files promptly
  • Multi-page gammas require the generate_multi_page tool (via MCP) — REST API generates single gammas per call
Vollständigen Lizenztext ansehen (MIT)
MIT License

Copyright (c) 2026 Abundent Sdn Bhd

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.