square-mosaic-portrait

Community@sumino/square-mosaic-portrait
Community skill — not reviewed. It was shared by Jagulus and has not been checked by Neta. Read SKILL.md below before letting an agent use it.
Installation
npx -y @neta-art/neta-search-cli@latest skills add @sumino/square-mosaic-portrait
Summary

Turn one character into a bust portrait made of flat-colour squares with thick black borders and line-art drawings.

  • Get one tall portrait image: 20 to 30 colour squares of different sizes, packed together on a clean cream background.
  • Each square holds one black-and-white line drawing on a single flat colour: the character's face, a scene, friends, props or symbols.
  • A few squares are left as plain colour blocks, giving the eye a place to rest between the drawings.
  • Step back and the squares together form a head-and-shoulders shape, with no outline drawn around it.
  • Works best with a character who has recognisable props, marks or companions. You get a card to keep the result on your board.
SKILL.md
# Square Mosaic Portrait

One bust, assembled from chips. Each square is its own tiny poster — flat colour ground, thick black frame, black line drawing — and the way the chips are packed, not any drawn outline, makes the head and shoulders appear. Clean cream paper holds it together.

One image-generation pass plus deterministic casting, a silhouette check, and fallback rules. Nothing depends on a particular character or world.

## What the user gets

- One 3:4 plate on a clean cream ground.
- 20–30 cells of varied size, each with an **identical thick black border** and a **single flat colour** interior.
- One large portrait cell (head), one large scene cell, medium character/prop cells, small symbol cells, and 2–3 pure colour cells.
- Black-and-white line art only inside cells — no shading, no second colour per cell.
- A cluster whose outer edge reads as a head-and-shoulders silhouette.
- A Board card.

## When to use

Use when the user wants a **grid or chip collage portrait**:

- "square mosaic portrait", "grid portrait collage", "color chip collage";
- "modular character collage", "mosaic illustration";
- 「方块拼像」「马赛克人像」「色块拼像」「网格人像拼贴」.

Do not use for:

- a painted portrait;
- a photo grid with no line art;
- a seamless pattern tile (`seamless-pattern-tile`);
- a page or interactive work.

## Inputs and when to ask

| Input | Required | Counts as given when |
|---|---|---|
| `[character]` | yes | named, attached, or the turn carries one |
| `cells` | no | infer 20–30 subjects from the atom |
| `palette` | no | 7–8 saturated flat colours, default set |
| `ground` | no | `cream` (default) / `paper white` |

Ask once only if the character is missing.

## Out of scope

- Do not change world settings (config, `visualStyle`, atoms).
- Do not delete or overwrite files or Works; a new version is a new Work.
- Do not invent canon: props, marks and companions come from the atoms.
- No text, no watermark.

## Parameters

| Parameter | Values | Default | Effect |
|---|---|---|---|
| `aspect` | `3:4` | `3:4` | plate ratio |
| `cells` | `20–30` | `26` | chip count |
| `silhouette` | `bust` / `head` / `off` | `bust` | target outline |
| `border` | `thick` | `thick` | one uniform weight |
| `palette` | list of 7–8 hex | see guide | flat chip colours |
| `ground` | `cream` / `white` | `cream` | paper |
| `pure_cells` | `2–3` | `3` | empty colour chips |

## Pipeline

### 0. Read the character

```bash
node /mods/neta/neta atom get "world/characters/<Name>.md"
node /mods/neta/neta find images "<Name>"
```

### 1. Cast the cells

- **Head**: one large portrait cell, half-body, line art, colour ground.
- **Scene**: one large world scene cell.
- **People**: 1–2 friend headshots.
- **Props**: 6–8 objects (wand, book, potion, key, ball, broom…).
- **Symbols**: 4–6 marks (bolt, glasses, moon, star, crest).
- **Rests**: 2–3 pure colour cells with nothing in them.

Every cell one theme. No cell gets two subjects.

### 2. Pack the silhouette

State the packing explicitly: the portrait cell forms the head; two or three small cells round its crown; one or two cells form the neck; the remaining cells spread left and right into a shoulder line and stop. Leave even gaps; no drawn outline.

### 3. Generate

```bash
node /mods/neta/neta generate image \
  --prompt "$(cat /tmp/<slug>-mosaic.txt)" \
  --work-title "<Character> · Square Mosaic" \
  --param aspect_ratio=3:4
```

Read [`templates/prompt.template.txt`](templates/prompt.template.txt) and [`references/guide.md`](references/guide.md).

### 4. Verify the silhouette first

Squint or downscale to 25%: does the cluster read as head-and-shoulders? If not, the plate misses its main idea.
Then check borders, colours, line art and text with [`references/qa.md`](references/qa.md).

### 5. One rework, then report

Rework only the packing, keep the cells:

```bash
node /mods/neta/neta generate image --target-work <workId> \
  --param aspect_ratio=3:4 --image "<current url>" \
  --prompt "keep every cell; repack so the outline is head-and-shoulders; add no outline"
```

If the silhouette still fails, say so plainly and deliver it as a chip collage — never claim a silhouette that is not there.

### 6. Ship

```bash
node /mods/neta/.agents/skills/board-ops/scripts/place.mjs \
  --title "<Character> · Square Mosaic" --work "works/work_<id>.json"
```

## Deliver

- Reply in the user's language; the plate carries no text.
- Hand over with an interaction-components card targeting the Work id.
- State whether the silhouette reads; name any correction spent.
- Name failed generations and their cost in one line.

## Package

```
square-mosaic-portrait/
  SKILL.md
  templates/prompt.template.txt
  templates/params.example.json
  references/guide.md
  references/qa.md
  assets/demo.webp
  .listing/
```

## Quality bar

- 3:4, cream ground, even gaps;
- uniform thick borders, one flat colour per cell, B&W line art only;
- 20–30 cells, one theme each, 2–3 pure colour rests;
- silhouette reads as head-and-shoulders (or the miss is named);
- no text; Work placed and handed over.