Imported from zczc1001/artifact-template-travel-ticket (
SKILL.md). Install upstream withnpx skills add zczc1001/artifact-template-travel-ticket. Copyright stays with the author.
Travel Ticket 旅行票根
Create an image from this template. Keep the reference file unchanged.
Workflow
- Read
artifact-template.jsonand resolve its paths relative to this skill directory. - Invoke $imagegen with the retained PNG as a layout and material reference, and the user's photo as the content and color source.
- Treat the user's prompt and available sources as the content input. Do not invent factual claims merely to fill the composition.
- Preserve the reference's visual language unless the user explicitly requests a deviation.
- Visually inspect the generated image for fidelity and defects, then return the final image.
Semi-adaptive background color
The background hue is variable. Do not copy the blue hue from the retained reference by default. The retained reference controls the woven-fabric texture, lighting, shadow, and spatial composition—not a fixed background color.
For every source photo:
- Identify one supportive dominant or secondary color from a large, visually important area of the photo, such as sky, water, foliage, masonry, night, or warm artificial light.
- Convert it into a quiet background color by reducing saturation and, when needed, shifting lightness so the warm ivory ticket remains clearly separated from the backdrop.
- Favor harmony over literal color matching. The background should echo the photo without competing with the photo window.
- Choose the color independently for each image in a set. Do not force all outputs to share one hue.
- Use blue only when the source photo genuinely supports blue or blue-gray. Otherwise use an appropriate muted family such as sage, moss, warm sand, ochre, terracotta, mauve, charcoal, or stone gray.
- If the photo has no stable color cue, fall back to a neutral warm gray or stone tone rather than the reference blue.
Never introduce a saturated unrelated color, a multicolor gradient, or a background that reduces the contrast of the ticket edge.
Fidelity
Preserve the reference image's composition, visual hierarchy, typography, material treatment, lighting, and recurring brand elements. Preserve the palette relationship and restraint, but derive the backdrop hue from the user's photo according to the semi-adaptive color rules above.
User instructions control requested content and explicit deviations. The retained reference controls layout and formatting where the user has not requested a change.