task icon Task

Generate Ecosystem Infographic

Requirements
Ecosystem analysis must be complete. User must choose biome: savanna, ocean, or forest.
4

Using the biomes guide, craft the image prompt for the user's chosen biome. Include species counts, health indicators, and marker-style instructions.

5

Add health visual elements: lush/withered vegetation, balanced/overcrowded predators, golden/harsh lighting based on health score.

7

Present the saved infographic as their 'Inbox Ecosystem Portrait.' Mention biome, key species, health score, and offer to generate in different biomes.

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

> Ecosystem analysis must be complete. User must choose biome: savanna, ocean, or forest.

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 Ecosystem Analysis]: Read the file at `session/ecosystem-analysis.json` and analyze its contents (Load species counts and health metrics)

3. [Read Ecosystem Biome Visual Styles]: Read the documentation in: `skills/sauna/[skill_id]/references/email.ecosystem.biomes.md` (Visual prompt templates for each biome style)

4. Using the biomes guide, craft the image prompt for the user's chosen biome. Include species counts, health indicators, and marker-style instructions.

5. Add health visual elements: lush/withered vegetation, balanced/overcrowded predators, golden/harsh lighting based on health score.

6. [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 complete biome prompt with species counts and health indicators
- `imagePath`: empty string—no source image
- `outputDir`: documents/inbox-ecosystem/*.png

7. [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",
      "outputDir"
    ]
  },
  "packages": null
}
```

8. Present the saved infographic as their 'Inbox Ecosystem Portrait.' Mention biome, key species, health score, and offer to generate in different biomes.