task icon Task

Generate Gamma

Generate a Gamma presentation, document, social post, or webpage from markdown content

Requirements
Markdown content (text or file path). Output format (presentation, document, social, webpage). Optionally: number of cards, tone, audience, language.
3

Confirm the markdown content to use. If user provided a file path, read that file. If they pasted content, use it directly.

4

Write a preview draft with _action frontmatter:


_action:
label: "Generate [format]"
prompt: "Generate this Gamma content using the settings and markdown below"
isComplete: false

Format: [presentation / document / social / webpage]
Cards: [suggested based on content length]
Tone: [professional / casual / etc.]
Audience: [if specified]
Language: [en / etc.]

Content Summary

[brief summary of what will be generated]

Source Content

[markdown content or file reference]

Sauna displays this as a preview card with a "Generate [format]" button.
User can adjust settings, then click to generate.

6

Share the Gamma URL with the user. Explain they can view, edit, or export from there. Offer to generate another version with different settings.

                    To run this task you must have the following required information:

> Markdown content (text or file path). Output format (presentation, document, social, webpage). Optionally: number of cards, tone, audience, language.

If you don't have all of this information, exit here and respond asking for any extra information you require, and instructions to run this task again with ALL required information.

---

You MUST use a todo list to complete these steps in order. Never move on to one step if you haven't completed the previous step. If you have multiple CONSECUTIVE read steps in a row, read them all at once (in parallel). Otherwise, do not read a file until you reach that step.

Add all steps to your todo list now and begin executing.

## Steps

1. [Read External Actions Guide]: Read the documentation in: `skills/sauna/[skill_id]/references/sauna.actions.external.md` (Preview UI pattern for external actions)

2. [Read Gamma Generation Rules]: Read the documentation in: `skills/sauna/[skill_id]/references/media.gamma.rules.md` (Load generation guidance)

3. Confirm the markdown content to use. If user provided a file path, read that file. If they pasted content, use it directly.

4. Write a preview draft with _action frontmatter:

---
_action:
  label: "Generate [format]"
  prompt: "Generate this Gamma content using the settings and markdown below"
  isComplete: false
---

**Format:** [presentation / document / social / webpage]
**Cards:** [suggested based on content length]
**Tone:** [professional / casual / etc.]
**Audience:** [if specified]
**Language:** [en / etc.]

## Content Summary

[brief summary of what will be generated]

## Source Content

[markdown content or file reference]

Sauna displays this as a preview card with a "Generate [format]" button.
User can adjust settings, then click to generate.


5. [Gather Arguments: Create Gamma] The next step has the following requirements for arguments, do not proceed until you have all the required information:
- `content`: the markdown content
- `format` (default: "presentation"): format (presentation, document, social, or webpage)
- `numCards` (default: "10"): number of cards (default 10)
- `tone` (default: "professional"): tone if specified, otherwise professional
- `audience`: audience if specified, otherwise empty
- `language` (default: "en"): language code if specified, otherwise en

6. [Run Code: Create Gamma]: Call `run_script` with:

```json
{
  "file": {
    "path": https://sk.ills.app/code/media.gamma.create/preview,
    "args": [
      "content",
      "format",
      "numCards",
      "tone",
      "audience",
      "language"
    ]
  },
  "packages": null
}
```

7. Share the Gamma URL with the user. Explain they can view, edit, or export from there. Offer to generate another version with different settings.