Community图像github.com

christmas-campaign-poster

制作跨境电商圣诞活动海报、店铺首屏 Banner、礼赠专题和节日促销主视觉。先从十款场景中选款,再按产品实拍与活动信息生成成图。产品拼成圣诞树的任务使用产品圣诞树海报技能。

christmas-campaign-poster 是什么?

christmas-campaign-poster is a Codex agent skill that 制作跨境电商圣诞活动海报、店铺首屏 Banner、礼赠专题和节日促销主视觉。先从十款场景中选款,再按产品实拍与活动信息生成成图。产品拼成圣诞树的任务使用产品圣诞树海报技能。.

兼容平台~Claude Code✓Codex CLI~Cursor
npx skills add https://github.com/ping988/christmas-campaign-poster/tree/HEAD

Installed? Explore more 图像 skills: steipete/songsee, affaan-m/frontend-design, mattpocock/improve-codebase-architecture · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

Christmas Campaign Poster

Start by Browsing and Selecting a Style

Use the Ten-Stage Style Catalog. For the first time creating a new poster, if the user hasn't specified a style, include a link to the local catalog in your reply (resolve it to an absolute path using the installation directory) and list the number and name of each style as shown in the table below. Ask: "Which style would you like to use this time? Reply with the number or name." Then generate the image once selected. You may recommend a style based on the product, but the recommendation itself does not count as the user's choice. If the user directly specifies a number, name, catalog position, or a clear single image, adopt it immediately; for subsequent modifications to the same poster, retain the already selected style.

The catalog is numbered 01–10. Match the image or number selected by the user to the table below. After selection, extract only the reference image of that style as the scene input for the generation tool.

Style & Original ImageSuitable CampaignScene, Product & Text Layout
01 · Black Gold Gift Box WindowFeatured price or series promotionBlack background, left side for headline and a set of prominent price digits; right side illuminated by golden light illuminating a perspective gift box containing products. If no price is given, leave the left side for the campaign name.
02 · Winter Night Window DisplaySingle product launch, feature showcaseCold blue window scene recedes; right foreground product rests on a warm red gift box counter. Feature demo only shows what the product actually does. Dark area on the left accommodates two lines of headline and optional buttons.
03 · Miniature Christmas WorkshopToys, handmade items, brand storyLow-angle shot of a workbench, localized warm light on the right product and miniature light tree. A product-related prop hints at an ongoing action. Large dark background suitable for short headlines, can also be used as a wordless key visual.
04 · Warm Light Gift Box TheaterGift sets, household itemsGreen box lid stands upright forming a warm-lit room, box bottom extends forward as a stage. Main product at front, accessories at side, miniature Christmas trees surrounding the stage. Place the headline in the outer dark area to avoid covering the room and products.
05 · Cream Green Gift HouseColor-toned products, seasonal picksCream-colored snow surface supports a green house open at the front. Use internal layers and stands to raise product heights, top-center for headline, subtitle, and given dates in order; side ribbons remain outside the text area.
06 · Starry Night Snowfield Greeting CardBrand greetings, single product imageDeep blue night sky and snowfield form a horizontal division. Product stands on the right, crescent moon, light tree, warm light points gather nearby; left sky reserved for a brief greeting, a handwritten font can emphasize one word.
07 · Crystal Ring ShowcaseColor contrast, small accessoriesA semi-transparent ice ring frames the main product on a snowy slope, secondary product half a step ahead. Out-of-focus trees and scattered glass baubles create depth; top area provides a clean dark background for the headline. The ring's refraction avoids product printed patterns.
08 · Red Ribbon CarnivalMulti-category, brand event main venueBetween a red sky and white snow, a multi-tiered open gift box structure is built, each tier displaying a product group, with ribbons spiraling up the levels. Top left for main headline, foreground figures and boxes only serve as scale references.
09 · Snow Valley Light Track SleighSeries gift offerings, website hero bannerA warm golden light track in a snow valley winds from a distant cabin to a foreground sleigh. Product group rests on the sleigh, red ribbon extends off-screen to the right. The dark mountain area above supports centered event info and optional buttons.
10 · Red Curtain Gold Wire ShowcaseSeries promotions, multi-model displayGold tree-shaped light wires embedded in a red vertical-patterned wall on the right; red pedestals at varying heights support various products. Left area for a large white headline, short offer description, and optional buttons; gold wires must avoid product edges.

After Style Selection, Read the Design JSON

Each style's master template is stored in references/templates/{number}.json (two-digit number, e.g., 03 Miniature Christmas Workshop); each style in the catalog also has a direct link to its corresponding file. Read the selected JSON; its reference.image field points to the style's location in the offline catalog. When an independent reference image is needed, run python scripts/prepare_brief.py 03 --reference-only (replace the number); the command returns a usable local JPEG path. It is also automatically extracted when running with a brief. The overview and table above are for style selection; all actual generation and review use the selected style's design parameters.

Coordinates are based on the effective canvas artwork_xyxy_px of the original image, excluding the top and bottom white margins of the example screenshots. Each box_pct is a percentage [x, y, width, height] calculated from the top-left corner. It defines a spatial range; products are proportionally scaled to fit within that range, and narrow screens are reflowed according to portrait_reflow. Color codes and positions are approximate extractions from the original image. If the user only asks to swap the product, text, or elements, retain the composition, camera angle, lighting, materials, color roles, and foreground/background hierarchy from fixed_design; product colors come from the product image.

  • Swap Product In slots.products, specify a position for each item, using hero for the main product. Multiple angles of the same product belong to the same product entry. Multiple products can share the display area with staggered positions, leaving empty spaces; flat products can be tilted to show their prints.
  • Swap Copy Fill the text to be printed this time word by word into the corresponding positions in slots.copy. Null values omit the entire block, along with the button background or date border. Long text should first be split into lines according to the original alignment; if the user explicitly needs a new field, create an extended area in the current working copy that avoids products.
  • Swap Elements Bind props for this session using the keys in slots.elements; the same position inherits light direction, depth of field, and spatial role. If not specified, retain the original decoration; an explicit null removes it. Replace old elements at the same position to avoid stacking old and new. Modifications apply only to the current poster.

Local assets can be processed using the included prepare_brief.py to synthesize generation parameters from the selected master template and the current brief. Codex prepares a temporary brief and runs it independently; the user still only needs to select a style, send an image, or say what to change. The command is python scripts/prepare_brief.py 03 brief.json; the script outputs bound product, copy, element, and ordered image paths to standard output. An example brief is shown below, with image paths relative to the brief file:

{
  "products": [{"slot": "hero", "name": "Animal Puzzle", "images": ["product_image.png"], "keep": "Keep the two-row, three-column seam and original colors"}],
  "copy": {"headline": "Merry Christmas"},
  "elements": {"work_detail": "A small gift tag just tied with a red string", "side_prop": null},
  "aspect_ratio": "16:9"
}

If assets are only visible in the conversation, bind images within the context using the same fields. Whether from tool output or manual binding, the result must be passed to the internal imagegen: image parameters carry the selected original image and product image; prompt carries layout, figure numbers, roles, text, and replaced objects. Bind the merchant's logo as a brand image separately. The output parameters themselves are only the input to the generation step.

Generate the Image Using This Campaign's Assets

  1. Determine what the poster is selling and what it conveys. Extract the product, campaign theme, copy language, use case, and dimensions from the current request and provided assets. Retain known information directly. If specific items need to be displayed but images are missing, ask the user for real photos or a folder path, while keeping the style selection. If the user only requires a concept or prompt, provide the concept first.
  2. Determine what text goes on the poster. Product images determine the product's appearance and printed text; the current campaign brief determines headlines, discounts, dates, currency, qualifiers, gifts, shipping conditions, and call-to-action buttons. If a specific discount is to be promoted but the value is missing, ask for it directly; omit optional information if missing. If asked to draft copy, write a short headline based on the campaign and target language. Greeting cards or textless banners can include only a greeting or remain blank. All text in reference images is for layout illustration only, including the offers, gifts, and shipping promises in style 09 and the Boxing Day offer in style 10.
  3. Set the aspect ratio and visual hierarchy. Prioritize dimensions specified by the ad placement. If unspecified, default to a 16:9 landscape banner, and state this upon delivery. The main headline and main product must remain recognizable when scaled down. For mobile vertical versions, split the headline and product into top/bottom zones; retain the iconic spatial relationship of the selected style, avoid directly cropping the landscape image. If a website requires overlapping clickable buttons or a real headline, leave clean space as requested.
  4. Generate using the internal imagegen (GPT Image 2). First examine the selected original image and product images, pass visual inputs to the tool, labeling each image with roles such as "scene reference", "product photo", "brand logo", etc. Write a clear prompt specifying the selected style's composition, main product angle, position and quantity of other products, light direction, the exact text to be printed word for word, and the aspect ratio. Reference images only provide layout, color, lighting, and style; exclude products, competitor trademarks, screenshot floating windows, watermarks, and promotional numbers from the example. Compare against the actual product to preserve its outline, structure, material, original color, accessories, and brand marks. If generation is not usable, explain the situation and ask if retrying is desired; switching tools or models is at the user's discretion.
  5. Check and deliver. Shrink the entire image to check the first-glance readability of the campaign headline, product recognition, and cropping boundaries. Zoom in to compare against the actual product style, checking headline, dates, discount qualifiers, and buttons word by word. If discrepancies arise, bring back the corresponding original image or text for targeted correction, then re-check. Save the final image with a new filename, retaining the product code and labeling the selected style name, and provide a preview and file link.

相关技能