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.
2

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 following the _action frontmatter pattern from the slice.
Use label: "Generate [format]" and prompt: "Generate this Gamma content using the settings and markdown below."

Include Format:, Cards:, Tone:, Audience:, Language:, content summary, and source content below the frontmatter.

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 Gamma Generation Rules]: Read the documentation in: `skills/sauna/[skill_id]/references/media.gamma.rules.md` (Load generation guidance)

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

3. [Read External Actions Guide]: Read the documentation in: `skills/sauna/[skill_id]/references/sauna.actions.external.md` (Preview pattern - read immediately before use)

4. Write a preview draft following the _action frontmatter pattern from the slice.
Use label: "Generate [format]" and prompt: "Generate this Gamma content using the settings and markdown below."

Include **Format:**, **Cards:**, **Tone:**, **Audience:**, **Language:**, content summary, and source content below the frontmatter.


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.