Use the skill: photo-to-doodle. Run `npx -y @neta-art/neta-search-cli@latest skills use @sumino/photo-to-doodle --via site` and follow what it prints. Read its complete output, redirecting it to a temporary file first if necessary, and resolve relative paths from the skill directory it prints.
Summary
Turn one character scene into a photo that flips to a clumsy marker doodle at the press of a button.
You get one shareable page: a cinematic photo of your character in their own world, plus a small crayon button.
Press the button and a marker stroke wipes across, redrawing the same shot as a flat, wobbly doodle on beige paper.
The doodle keeps the same pose, framing and props as the photo, so the two versions line up exactly. Press again to go back.
The page has a Chinese and English title, a short caption for each state, and the finished piece lands on your board.
Works best with a character who has a clear outline, such as distinctive hair, ears, a tail or a prop, in a scene from their world.
SKILL.md
# Photo to Doodle
One scene, two states. A photographic shot of `[character]` in `[place]`; press a small crayon button and the same framing reappears as a flat, clumsy marker drawing on warm beige paper — same pose, same crop, same props, no shading anywhere. The page is the delivery: both images fill most of the screen, the title is bilingual, the button is deliberately small and toy-like.
## What you get
- Two images: `photo` (cinematic, in-world) and `doodle` (generated *from* the photo so composition matches).
- A single page: warm paper wall, 3:4 image card with two strips of tape, Chinese + English title, a small crayon button, one-line caption that changes per state.
- A marker-wipe reveal (0.9 s clip-path) plus a 620 ms paper wobble; the button flips label and `aria-pressed`; a back-toggle returns to the photo.
- A published web Work and a Board card.
## When to use
- "photo to doodle", "make it look hand-drawn", "add an I-want-to-draw button";
- "照片变涂鸦", "一键手绘版", "同一张图两个版本";
- a before/after reveal where the two states must align exactly.
Not for: two unrelated illustrations; a drawing game where the user draws; a comic strip.
## Hard rules
0. **Sandbox CLI.** `node /mods/neta/neta …`.
1. **The doodle is derived from the photo**, not invented: pass the photo as `--image` and demand the same framing, pose and props.
2. **Silhouette first.** The doodle must be recognisable by outline alone; internal detail is cut to the minimum that identifies the subject.
3. **Face reduced to marks:** two dots, one short nose stroke, one mouth line. No pupils, no lashes, no blush lines unless the character's identity needs them (then one flat circle).
4. **Outline hierarchy:** the outer contour clearly thicker than internal lines; every line a single round stroke with slight tremor.
5. **Three colours maximum** (one main + two accents), everything else bare paper; flat fills, visible marker strokes, paper showing through.
6. **No shading, gradient, texture or 3D** in either state's doodle; no borders or text inside the artwork.
7. **Bilingual title** on the page; the button carries both the English action and the Chinese one.
8. **Ship it**: published Work plus Board card.
## Inputs
Required: `[character]` (a visual description, and a reference image if one exists), `[place]` (their own world's scene), and the two title lines (one Chinese, one English).
Counts as given when the user names a character plus a world/scene and a title, or says "you decide". Missing any → ask once, in one message.
## Language
Reply in the user's language. Titles on the page are bilingual by design — one line in the character's own script and one in English — because that pairing is part of the artefact; captions, button labels and any surrounding prose follow the user's language.
Do not change world settings while working, and do not delete existing files.
## Licensing check — do this before generating
If `[character]` belongs to someone else's franchise, the image provider will refuse a realistic shot of it and return `prompt_blocked` ("copyright restrictions"). Do not retry the same prompt.
Fallback order:
1. Use an image the user already owns (their upload or an illustration already in the world) as the `photo` state, and generate only the doodle from it — a stylised doodle usually passes.
2. If the doodle is blocked too, offer to substitute an original character built from the same world logic, and say plainly why.
Never claim a photorealistic image of a licensed character was produced when it was not.
## Pipeline
### 0. Read the material
```bash
node /mods/neta/neta atom get "world/characters/[character].md"
node /mods/neta/neta find images "[character]"
```
Collect: silhouette cues (hair mass, ears/horns, wings, tail, prop), palette (one main colour + one or two accents for the doodle), one prop that must survive simplification, and one in-world scene with three recognisable features.
### 1. Generate the photo
Prompt structure — [`references/prompts.md`](references/prompts.md) §1:
```bash
NETA_DEFAULT_IMAGE_MODEL=gpt-image-2 node /mods/neta/neta generate image \
--work-title "[character] · [theme] · photo" \
--param size=1536x2048 --param quality=high --param output_format=png \
--image "<ref>" \
--prompt "$(<photo prompt>)"
```
3:4, subject in the lower third, one key light + one fill, 35 mm look, film grain, no text.
### 2. Generate the doodle from that photo
Save the photo, then pass it back in. This is the step that makes the trick work — a fresh prompt never aligns.
```bash
await download of photo → /tmp/photo.png
NETA_DEFAULT_IMAGE_MODEL=gpt-image-2 node /mods/neta/neta generate image \
--work-title "[character] · [theme] · doodle" \
--param size=1536x2048 --param quality=high --param output_format=png \
--image /tmp/photo.png \
--prompt "$(<doodle prompt>)"
```
### 3. Build the page
```bash
SLUG="<character>-doodle-toggle"
WORK="works/web/$SLUG"
node /mods/neta/neta work init web "$WORK" --title "[character] · [Title]"
# the CLI may normalize works/web → works/webs; use the printed workDir
cp templates/index.html templates/style.css templates/app.js "$WORK"/
mkdir -p "$WORK/assets"
convert /tmp/photo.png -resize 1200x -quality 88 "$WORK/assets/photo.webp"
convert /tmp/doodle.png -resize 1200x -quality 90 "$WORK/assets/doodle.webp"
```
Replace the bracketed copy in `index.html`: kicker (`[place]`), `[中文标题]`, `[English Title]`, the two captions, the footer tag. Keep the button markup and both label spans.
Layout and timing are specified in [`references/page.md`](references/page.md); do not invent new numbers.
### 4. QA
[`references/qa.md`](references/qa.md). Both states must be screenshotted — a page that only shows the photo is not finished.
### 5. Publish and place
```bash
node /mods/neta/neta work publish web "$WORK"
node /mods/neta/.agents/skills/board-ops/scripts/place.mjs \
--title "[character] · [Title]" --work "$WORK"
```
Hand over the **Work** (interaction-components card with the Work id from the publish output), not the images.
## Parameters (one mechanism, not many skills)
| Parameter | Values | Effect |
| --- | --- | --- |
| `aspect` | `3:4` (default) · `4:5` · `1:1` | portrait card; keep both images at the same aspect |
| `palette` | `2` · `3` colours | doodle ink count |
| `reveal` | `wipe` (default) · `iris` · `fade` | transition style; timings stay |
| `button` | `crayon` (default) · `pencil` · `sticker` | label icon only, same size |
| `titles` | bilingual (default) · English only | header layout |
## Files
```
.agents/skills/photo-to-doodle/
SKILL.md
references/prompts.md # photo prompt, doodle prompt, negative list, licensing fallback
references/page.md # sizes, clip-path timing, button states, mobile, a11y
references/qa.md # two-state checklist and common failures
scripts/screenshot.mjs # desktop/mobile capture with --eval for the drawn state
templates/index.html · style.css · app.js
```
## Failure table (short form, full list in qa.md)
| Symptom | Fix |
| --- | --- |
| Doodle drifts from the photo | re-run with the photo as `--image`, repeat "same pose, same framing, every element in the same place" |
| Doodle comes back realistic | list the forbidden media by name: no gradients, no shading, no watercolour, no 3D, no anime |
| Pupils and lashes appear | "face reduced to two dot eyes, no pupils, no lashes" |
| Lines all the same weight | "outer contour clearly thicker than internal lines" |
| Full colour fill everywhere | "skin, most clothing and secondary objects stay bare paper" |
| Provider blocks the subject | licensing fallback above; never retry the same prompt |