agentleFS
hlbhlb/gamma-claude-skill/SKILL.md

gamma

Skill2 starsChanged 12 months agoMITView on GitHub

Create professional presentations, documents, webpages, and social posts using Gamma's AI-powered design API. Use when the user asks to create, generate, or build any type of presentation, slide deck, document, webpage, or social media post. Supports AI-generated content from prompts, condensing existing text, or preserving exact content with beautiful design.

  • Reads credentials

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. thevibethinker/vibe-thinker-skills★ 1same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

The file

We split this skill into the rules it gives an agent

10 rules. About 0 are common, 6 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Create professional presentations, documents, webpages, and social posts using Gamma's Generate API.

    line 8
  2. Very specific:

    Check if GAMMA_API_KEY environment variable is set: [ -n "$GAMMA_API_KEY" ] && echo "API key is set" || echo "API key not set"

    line 14
  3. Very specific:

    If not set, explicitly ask the user: "To use Gamma, I need your API key.

    line 15
  4. Distinctive:

    Create a new generation

    line 71
  5. Distinctive:

    Check status of a generation

    line 75
  6. Distinctive:

    403: No credits or account issue

    line 179
  7. Very specific:

    Use scripts/list_resources.py to see themes and folders:

    line 188
  8. Distinctive:

    Token Limits: Keep inputText under 100k tokens when possible

    line 215
  9. Very specific:

    Card Breaks: Use \n---\n to control slide splits

    line 217
  10. Distinctive:

    Timeouts: Default 5-minute timeout works for most cases

    line 219

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Gamma

Create professional presentations, documents, webpages, and social posts using Gamma's Generate API.

Prerequisites

CRITICAL: Gamma API requires an API key. Before proceeding:

  1. Check if GAMMA_API_KEY environment variable is set: [ -n "$GAMMA_API_KEY" ] && echo "API key is set" || echo "API key not set"
  2. If not set, explicitly ask the user: "To use Gamma, I need your API key. You can get it from https://gamma.app/settings/api-keys. Please provide it or set it as GAMMA_API_KEY environment variable."
  3. Store the key securely when provided: export GAMMA_API_KEY="sk-gamma-xxxxx"

Using the Python Script

The scripts/generate_presentation.py script can be used in three ways:

1. From Stdin (Recommended for Automation)

python scripts/generate_presentation.py << 'EOF'
{
    "inputText": "Your content here",
    "textMode": "generate",
    "format": "presentation",
    "numCards": 10
}
EOF

Or from a file:

python scripts/generate_presentation.py < payload.json

2. As a Python Module

from scripts.generate_presentation import GammaAPI

# Initialize (reads GAMMA_API_KEY from environment)
client = GammaAPI()

# Create payload
payload = {
    "inputText": "Your content here",
    "textMode": "generate",
    "format": "presentation",
    "numCards": 10
}

# Generate and wait for completion
result = client.generate_and_wait(payload, verbose=True)

# Access results
print(result['gammaUrl'])  # Link to view in Gamma
print(result['credits'])    # Credit usage info

Key Methods

GammaAPI(api_key=None)

  • Initialize client
  • Reads from GAMMA_API_KEY environment variable if not provided

create_generation(payload)

  • Create a new generation
  • Returns: generation ID string

get_generation(generation_id)

  • Check status of a generation
  • Returns: dict with status and details

poll_until_complete(generation_id, poll_interval=5, max_wait=300, verbose=True)

  • Poll until generation completes
  • Uses 5-second intervals by default
  • Raises TimeoutError if exceeds max_wait

generate_and_wait(payload, poll_interval=5, max_wait=300, verbose=True)

  • Convenience method: create + poll in one call
  • Recommended for most use cases

Payload Parameters

Required

  • inputText: Content to generate from (1-100k tokens, ~400k chars)
  • textMode: "generate" (expand), "condense" (summarize), or "preserve" (keep exact)
  • format: "presentation", "document", "social", or "webpage"

Common Options

  • numCards: Number of slides/cards (1-60 for Pro, 1-75 for Ultra)
  • themeId: Theme ID from workspace (use scripts/list_resources.py themes)
  • additionalInstructions: Extra specifications (1-2000 chars)
  • exportAs: "pdf" or "pptx" for direct export
  • textOptions: Control amount, tone, audience, language
  • imageOptions: Control source, model, style
  • cardOptions: Control dimensions, headerFooter
  • sharingOptions: Control workspaceAccess, externalAccess, emailOptions
  • folderIds: Array of folder IDs to save to

See references/api_parameters.md for complete parameter documentation.

Common Patterns

Quick Presentation from Topic (via stdin)

python scripts/generate_presentation.py << 'EOF'
{
    "inputText": "The future of renewable energy",
    "textMode": "generate",
    "format": "presentation",
    "numCards": 10,
    "textOptions": {"amount": "detailed"}
}
EOF

Quick Presentation from Topic (Python module)

payload = {
    "inputText": "The future of renewable energy",
    "textMode": "generate",
    "format": "presentation",
    "numCards": 10,
    "textOptions": {"amount": "detailed"}
}
result = client.generate_and_wait(payload)

Preserve Long Structured Content (via stdin)

python scripts/generate_presentation.py << 'EOF'
{
    "inputText": "# Weekly Changelog\nNovember 14-21, 2025\n\n---\n\n## Major Features\n\n- Feature 1\n- Feature 2\n\n---\n\n## Bug Fixes\n\n- Fix 1\n- Fix 2",
    "textMode": "preserve",
    "format": "document",
    "cardSplit": "inputTextBreaks",
    "textOptions": {
        "tone": "professional, enthusiastic",
        "audience": "developers and technical users"
    },
    "imageOptions": {
        "source": "aiGenerated",
        "style": "modern, clean, tech-focused"
    },
    "additionalInstructions": "Create a visually appealing document with clear sections and professional styling"
}
EOF

Custom Styling

payload = {
    "inputText": "Digital marketing strategies",
    "textMode": "generate",
    "format": "presentation",
    "numCards": 12,
    "textOptions": {
        "amount": "detailed",
        "tone": "energetic, persuasive",
        "audience": "marketing professionals"
    },
    "imageOptions": {
        "source": "aiGenerated",
        "style": "modern, vibrant, professional"
    }
}
result = client.generate_and_wait(payload)

Error Handling

The script automatically handles:

  • 401: Invalid API key - check X-API-KEY header
  • 403: No credits or account issue
  • 400: Invalid parameters - check error message
  • 404: Generation ID not found
  • 422: Generation failed - check input
  • 429: Rate limit - implement exponential backoff
  • 500/503: Server error - retry with backoff

Listing Available Resources

Use scripts/list_resources.py to see themes and folders:

# List themes
python scripts/list_resources.py themes

# List folders
python scripts/list_resources.py folders

# List both
python scripts/list_resources.py all

Then use the IDs in your payload:

payload = {
    "inputText": "Content",
    "textMode": "generate",
    "format": "presentation",
    "themeId": "theme-id-from-list",
    "folderIds": ["folder-id-from-list"]
}

Implementation Tips

  1. Polling: 10 second intervals is optimal (default in script)
  2. Token Limits: Keep inputText under 100k tokens when possible
  3. Image URLs: Include URLs directly in inputText where needed
  4. Card Breaks: Use \n---\n to control slide splits
  5. Export Links: Download PDF/PPTX immediately - links expire
  6. Timeouts: Default 5-minute timeout works for most cases

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.