task icon Task

Create Knolling Layout

Requirements
Items to arrange (list or photo), optional background preference.
Instructions
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).
2

Ask the user what they want to knoll. Options: a list of items to arrange, a photo of items to reorganize, or a theme (e.g., 'coffee gear', 'tech essentials'). Also ask for background preference: white, marble, wood, concrete, or custom.

5

Craft a detailed prompt for the knolling layout. Follow the style guide: perfect grid alignment, consistent spacing, soft drop shadows, top-down view. Include the user's items and background choice. If the user provided a photo, this becomes an edit prompt to reorganize the items into knolling format.

7

Show the user where their knolling layout was saved. Offer to adjust: different background surface, more/fewer items, tighter or looser grid spacing, add labels or annotations, or create a new arrangement.

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

> Items to arrange (list or photo), optional background 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 what they want to knoll. Options: a list of items to arrange, a photo of items to reorganize, or a theme (e.g., 'coffee gear', 'tech essentials'). Also ask for background preference: white, marble, wood, concrete, or custom.

3. [Read Knolling Style Guide]: Read the documentation in: `./skills/sauna/[skill_id]/references/media.knolling.style.md` (Load knolling aesthetic 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 knolling layout. Follow the style guide: perfect grid alignment, consistent spacing, soft drop shadows, top-down view. Include the user's items and background choice. If the user provided a photo, this becomes an edit prompt to reorganize the items into knolling format.

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 knolling generation prompt
- `imagePath`: path to source image if editing, or empty string for generation
- `outputDir`: ./documents/knolling/*

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. Show the user where their knolling layout was saved. Offer to adjust: different background surface, more/fewer items, tighter or looser grid spacing, add labels or annotations, or create a new arrangement.