task icon Task

Create Character Sheet

Requirements
Character description or reference image, sheet type preference.
2

Ask the user about their character. Get: a description (appearance, outfit, distinguishing features) or a reference image to base the sheet on. Also ask what type of sheet they want: turnaround (front/side/back views), expression grid (different emotions), pose sheet (action poses), or full reference (combination). Ask about art style: anime, cartoon, realistic, chibi, or game concept art.

5

Craft a detailed prompt for the character sheet. Follow the style guide: emphasize consistency across all views, specify the layout arrangement, include art style, and request professional concept art quality. If user provided a reference image, this becomes an edit prompt to generate a full character sheet based on that character.

7

Append an entry to uiGenerated Media Index with: path (the saved character sheet path), type: character-sheet, prompt_summary (character name and sheet type), created_at (ISO date).

8

Show the user where their character sheet was saved. Offer to create additional sheets: different expressions, action poses, outfit variants, or a turnaround if they started with expressions. Can also adjust art style, add annotations, or try a different view count.

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

> Character description or reference image, sheet type preference.

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. Ask the user about their character. Get: a description (appearance, outfit, distinguishing features) or a reference image to base the sheet on. Also ask what type of sheet they want: turnaround (front/side/back views), expression grid (different emotions), pose sheet (action poses), or full reference (combination). Ask about art style: anime, cartoon, realistic, chibi, or game concept art.

3. [Read Character Sheet Style Guide]: Read the documentation in: `./skills/sauna/[skill_id]/references/media.charactersheet.style.md` (Load character sheet design guidance)

4. [Read Image Prompting Guide]: Read the documentation in: `./skills/sauna/[skill_id]/references/media.image.prompts.md` (General prompting patterns)

5. Craft a detailed prompt for the character sheet. Follow the style guide: emphasize consistency across all views, specify the layout arrangement, include art style, and request professional concept art quality. If user provided a reference image, this becomes an edit prompt to generate a full character sheet based on that character.

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 character sheet generation prompt
- `imagePath`: path to reference image if provided, or empty string for generation
- `outputDir`: ui:media.image.gallery (subdirectory: character-sheets/)

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. Append an entry to `./documents/media-index.yaml` with: path (the saved character sheet path), type: character-sheet, prompt_summary (character name and sheet type), created_at (ISO date).

9. Show the user where their character sheet was saved. Offer to create additional sheets: different expressions, action poses, outfit variants, or a turnaround if they started with expressions. Can also adjust art style, add annotations, or try a different view count.