task icon Task

Generate Image

Create an image from a text description

Requirements

Text description of the image to generate.

4
instruction icon Help the user refine their description into a detailed prompt. Layer specificity: subject, style, lighting, composition.
6
instruction icon Tell the user the image was saved and where. Offer to generate variations or make edits.
                  To run this task you must have the following required information:


Text description of the image to generate.


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 read steps in a row, read them all at once (in parallel).

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

## Steps

1. [Run Code: Verify Gemini Connection]: Call `run_script` with:

```json
{
  "file": {
    "path": https://sk.ills.app/code/media.gemini.verify/preview,
    "args": [

    ]
  },
  "packages": null
}
```

2. [Read Image Generator Rules]: Read the documentation in: `./skills/sauna//resources/context/media.image.rules.md` (Behavioral rules - fail fast, don't retry)

3. [Read Image Prompting Guide]: Read the documentation in: `./skills/sauna//resources/context/media.image.prompts.md` (How to craft effective prompts)

4. Help the user refine their description into a detailed prompt. Layer specificity: subject, style, lighting, composition.

5. [Gather Arguments: Generate or Edit Image] The next step has the following requirements for arguments, do not proceed until you have all the required information:
- `prompt`: the refined prompt
- `imagePath` - Optional absolute path to source image for editing

6. [Run Code: Generate or Edit Image]: Call `run_script` with:

```json
{
  "file": {
    "path": https://sk.ills.app/code/media.image.generate/preview,
    "args": [
      "prompt",
      "imagePath"
    ]
  },
  "packages": null
}
```

7. Tell the user the image was saved and where. Offer to generate variations or make edits.