seamless-pattern-tile

Community@sumino/seamless-pattern-tile
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/seamless-pattern-tile
Summary

Turn your world's symbols into a seamless ornamental pattern that repeats across walls, fabric or wrapping paper.

  • You get one square pattern tile packed with 8–14 kinds of motifs drawn from your world's own objects, creatures and faction marks.
  • Bold flat colours with thick black outlines on a black or paper-toned background, with 3–5 vivid accent colours and no single focal point.
  • A 3×3 preview shows how the tile repeats, so you can check there are no visible seams before using it.
  • If the repeat shows a seam, it swaps in a mirrored version that always joins cleanly; it is four-way symmetric, and you are told.
  • Works best with a world rich in props, creatures and emblems. No characters, faces or text appear in the pattern.
SKILL.md
# Seamless Pattern Tile

The ornamental field of a decorative plate, cut loose: one square of flat colour and fat black line, packed with the world's own symbols, with no character and no focal point — a repeat unit that can cover a wall, a cloth or a box. The charm is in density and rhythm, not in a picture.

One image-generation pass, a deterministic seam fix, and inspection rules. Nothing depends on a particular world, franchise or place.

## What the user gets

- One square tile (1:1), typically `1024x1024`–`1536x1536`.
- A flat, all-over ornament: 8–14 motif types at 2–4 scales, edge to edge, no focal point.
- A thick black outline on every shape, flat fills, a black or paper base, 3–5 saturated accents.
- A **seamless** repeat unit: generated edge-safe, then verified with a 3×3 preview; if the seam shows, a mirrored repeat unit replaces it.
- A 3×3 preview image so the user can see the wallpaper effect.
- A Board card for the tile.

## When to use

Use when the user wants a **pattern, not a picture**:

- "seamless pattern", "pattern tile", "repeat pattern", "wallpaper";
- "textile pattern", "wrapping paper", "decorative tile";
- 「无缝花纹」「花纹平铺」「装饰壁纸」「平铺图案」「包装纸花纹」.

Do not use for:

- a character plate with a portrait (`full-pattern-portrait`);
- a single scene or a poster;
- a pattern that must contain a logo, readable text or a face;
- a page or interactive work — this outputs images.

## Inputs and when to ask

| Input | Required | Counts as given when |
|---|---|---|
| `[world]` / `[theme]` | yes | a world or character exists in this space, or the user names a theme |
| `[motifs]` | no | 8–14 symbols inferred from the world's props, creatures, faction marks |
| `base` | no | `black` (gothic) or `paper` (sweet); default `black` |
| `palette` | no | accent + 3–5 saturated contrasts |
| `scale` | no | medium motifs, 2–4 sizes |

If there is no world and no theme, ask once for one line of theme. If everything needed is given, build without asking.

## Out of scope

- **Do not change world settings** (config, `visualStyle`, atoms). A tile is a new Work.
- **Do not delete or overwrite existing files or Works.** A new version is a new Work; a correction uses `--target-work`.
- Do not put a character, a face or a title into the tile.
- Do not sell a mirrored fallback as a hand-drawn seamless repeat without saying so.

## Parameters

| Parameter | Values | Default | Effect |
|---|---|---|---|
| `aspect` | `1:1` | `1:1` | tile ratio |
| `size` | model-dependent | `1024x1024` | output pixels |
| `base` | `black` / `paper` | `black` | ground tone |
| `accent` | hex | from the world | main colour |
| `contrasts` | list of hex | pink, cyan, orange, purple, green | secondary palette |
| `motif_count` | `8–14` | `10` | distinct motif types |
| `scales` | `2–4` | `3` | motif size steps |
| `density` | `medium` / `high` / `max` | `high` | packing |
| `line` | `fat` / `medium` | `fat` | outline weight |
| `seamless_mode` | `generated` / `mirror` | `generated` | repeat method |
| `preview` | `on` / `off` | `on` | 3×3 contact sheet |

## Pipeline

### 0. Collect the symbols

```bash
node /mods/neta/neta atom list --type location
node /mods/neta/neta atom get "world/characters/<Name>.md"
```

Build a motif list from objects, creatures, faction marks, tools and natural forms of the world. Keep them **objects and shapes**, never faces or text.

### 1. Design the repeat

- Choose one base and one accent axis.
- Assign motif types to sizes: 2–3 large anchors, 4–5 medium, 3–5 small fillers.
- Decide the rhythm: scattered, diagonal lattice, or half-drop rows. Say it in the prompt.
- Edge rule: motifs may be cut by the tile edge — that is what makes a repeat read as continuous — but no motif should be *centred* on the exact edge.

### 2. Generate

```bash
node /mods/neta/neta generate image \
  --prompt "$(cat /tmp/<slug>-tile.txt)" \
  --work-title "<Theme> · Pattern Tile" \
  --param aspect_ratio=1:1
```

- Read [`templates/prompt.template.txt`](templates/prompt.template.txt) and fill the slots.
- Read [`references/models.md`](references/models.md) for sizes and flat-colour behaviour.
- A character reference is not needed; if one is supplied, use its accent colour only.

### 3. Verify the seam

```bash
bash scripts/preview-tile.sh "<tile>"   # writes /tmp/tile-preview-3x3.png
```

Read the preview. The pattern must continue across every internal boundary without a visible line, band or density jump.

- Good → keep it.
- Visible seam → build a guaranteed-continuous unit:

```bash
bash scripts/mirror-tile.sh "<tile>" "world/media/studio/works/<slug>-seamless.png"
bash scripts/preview-tile.sh "world/media/studio/works/<slug>-seamless.png"
```

The mirror unit is seamless by construction but four-fold symmetric; say so in the reply.

### 4. Inspect

[`references/qa.md`](references/qa.md): no focal point, edge-to-edge density, motif scale, palette, no text, no face, seam test at 100%.

### 5. Ship

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

Hand over the Work (and the preview as a second Work if the user wants to see the repeat).

## Deliver

- **Reply in the user's language.** The tile itself carries no text.
- Hand over the tile Work with an interaction-components card whose target is the Work (`{"type":"work","workId":"<id>"}`), on its own line; offer the 3×3 preview as a second image when the seam matters.
- Say which repeat unit was delivered — the generated tile or the mirrored unit — and that the mirror is four-fold symmetric.
- Name any failed generation and its cost in one line. Failed attempts are not charged, the turns are.

## Prompt structure

1. **Format + medium** — square seamless tile, flat retro print, fat black line, no gradient.
2. **Base + palette** — ground tone, accent, contrasts.
3. **Motif list** — every symbol, by name, with its size tier.
4. **Layout** — lattice/rhythm, edge-cut rule, density, no focal point.
5. **Negatives** — no character, no face, no text, no border, no drop shadow.

## Package

```
seamless-pattern-tile/
  SKILL.md
  templates/prompt.template.txt
  templates/params.example.json
  references/models.md
  references/pattern-design.md
  references/qa.md
  references/fallbacks.md
  scripts/preview-tile.sh
  scripts/mirror-tile.sh
  assets/demo-tile.webp
  assets/demo-preview.webp
  .listing/
```

## Quality bar

- square, at least 1024 px;
- no focal point, no character, no text;
- motifs at 2–4 scales, edge to edge, thick black outline;
- 3×3 preview continues across every boundary;
- flat fills, black or paper base, 3–5 accents;
- tile + preview handed over and placed.