---
name: papercut
description: Generate practical papercutting tutorials from a short subject request, with step text, consistent SVG diagrams, printable templates, AI presentation images, and versioned JSON. Use for 剪纸教程、剪一只猫、窗花制作 and structured papercut lesson generation; not origami-only lessons or unrelated image creation.
---

# Papercut

Turn a short request into a tutorial a beginner can follow. Deliver actual step images and machine-readable data, not just image prompts.

## Contract and defaults

Read [references/contract.md](references/contract.md) and [references/tutorial.schema.json](references/tutorial.schema.json) before authoring data. Use [examples/cat/tutorial.json](examples/cat/tutorial.json) as a complete flat-cut example, not a universal template for every subject.

For folding or curves, also inspect [examples/heart/tutorial.json](examples/heart/tutorial.json) and its [illustrated lesson](examples/heart/tutorial.md): a one-fold curved heart with manually authored SVG states, tested separately from the flat renderer.

Default to the user's language (Chinese when unspecified), beginner level, scissors, one sheet of 80–100 gsm paper, and a subject-appropriate design. Record inferred choices in `request.assumptions`. Ask only for constraints that change feasibility; otherwise proceed. Do not silently change an explicitly requested subject or technique.

For Spring Festival, 囍, inverted characters, zodiac animals, window papercuts, Western zodiac or MBTI requests, read [references/theme-guide.md](references/theme-guide.md) for subject-specific choices. These are supported themes, not a fixed output count.

## Workflow

1. **Design first.** Choose flat cutting or folding based on the subject. Build a single millimetre geometry with named regions and cuts. A silhouette can omit facial holes; eyes/whiskers must be explicit cuts or clearly described optional drawing. Keep intended retained parts connected. Record a geometric review; only a real trial can pass `physical_trial`.
2. **States before prose.** Define paper orientation, fold layers, traced lines, completed cuts and whether the retained shape is detached. Derive ordered steps with explicit before/after state IDs. Each cut says where to start, follow and stop, what to keep, and how to recognize completion. Use manageable actions rather than a fixed step count.
3. **Draw from the same geometry.** Create at least one before/after diagram per step, plus a printable template and a final geometry preview. Use distinct line patterns and a legend, not color alone. For unfolded, straight-edged, single-polygon flat designs, run `python <skill>/scripts/render_flat.py <package>/tutorial.json`. For curves, holes or folding, author exact SVGs using the contract; the flat renderer does not simulate folding. Folded diagrams must show fold edge, direction, current layers and matching unfolded result. Trace cuts through the layer stack during review.
4. **AI presentation image.** Use an available image-generation tool and the local image skill when present. Supply the final geometry preview as a reference and require its silhouette, holes and connections to remain unchanged. Save the actual result into the package; inspect against geometry and label it as illustrative. Reattempt once for a demonstrated mismatch. If unavailable/failed, record a failed or pending cover with reason, set tutorial `partial`, and still deliver all usable SVGs. Never invent a file or replace an image with its prompt. If the user requests SVG-only, omit the AI cover and record that choice.
5. **Package and verify.** Write UTF-8 `tutorial.json`, `tutorial.md`, and `assets/` under a new output directory. Markdown follows JSON step order and embeds local diagram paths. Include materials, print dimensions, legend, checkpoints, template and limitations. Run `python <skill>/scripts/validate_tutorial.py <package>/tutorial.json`; fix data/file errors before delivery. On missing `jsonschema`, use the dependency instruction in the contract. Report unavailable checks honestly.

Use `ready` only when every requested asset exists and visual review passes. No publication or external upload is implied. Link the tutorial, data and template; briefly identify any incomplete images or untested physical assumptions.
