Wedding Decor Blueprint Poster
Deliver a 3:4 vertical PNG. The main image area uses the user-provided original image; the elevation, floor plan, six core components, and five assembly steps use schematic illustrations of the same scene. The title, all annotations, dimension lines, brand header bar, and cards are laid out by Pillow. By default, the main image is fully displayed; use --hero-fit cover only when the user requests full-bleed cropping. Layout and final check
Confirm Input and Output
- Review one original image that allows identification of the decor subject. When the user submits multiple images, use the specified main image; if the main image is unclear, ask the user to select one. If an image is missing, the scene subject cannot be identified, or the host cannot view the image, explain the missing input or capability and ask the user to provide a viewable decor image or an existing analysis to verify against. The only scene reference used for generation is always that original image.
- Prioritize using the delivery directory specified by the user or project. Record the relative paths (from the run directory) of the original image, specification, assets directory, output file, and any optional files actually used. Recommended output file name:
board.png, specification name:decor-spec.json, prompt package name:image-prompts.md, with sub-images stored in theassets/subdirectory of the same delivery directory. - The script requires Python 3.9+ and Pillow 9.1+, handling file reading, cropping, validation, and layout offline. Codex, Claude, and WorkBuddy choose the path based on the current session's tool capabilities. When the original image can be viewed, a generation tool supporting reference image input and file export can be invoked, and the script can be executed, the full process can be run.
Write and Validate the Specification
Fill in decor-spec.json based on visible evidence. First include venue and measurement data provided by the user, then record identifiable structural, positional, color matching, and material characteristics visible in the image. Use null for measured dimensions that are missing; by default display 'to be verified'. Use null for prompt_detail values lacking illustrative evidence; use placeholders for those illustration positions. Default language is zh-CN; the title and all labels follow the output language. If no theme is specified, derive a title from the scene, roughly four Chinese characters. Brand name and Logo are taken from user-specified materials; if both are missing, leave the top bar blank. If palette is omitted, the layout script extracts a deep accent color from the original image. Decor analysis and field filling · Specification definition · Example specification
Execute the following command in the skill root directory, replacing relative paths with the current file locations. On Windows and other environments, you may also use the installed Python 3.9+ command python.
python3 scripts/validate_spec.py --spec "task-output/decor-spec.json"
Generate Sub-images or Prepare Placeholder Version
Complete path. Use the host's reference-image-based generation capability to generate the elevation and plan views one by one. Core components and assembly steps may be generated individually, or as a single three-column, two-row grid. Each time, attach only the same original image, and generate text-free illustrations according to the specification. Skip positions where prompt_detail is null. If a grid causes the model to hallucinate invisible content, switch to evidence-based single-image prompts. Sub-images and grid prompts
Single-panel complete path. Suitable when generating one candidate full panel in a single attempt and all 13 sub-images have verifiable illustration basis. Compare all text on the candidate full panel against the specification and layout concatenation results character by character. If typos, additions/deletions, or order shifts are found, or any sub-image cannot be cleanly extracted, revert to the complete path. After the candidate passes, extract 13 sub-images containing only illustrations, and save them under the following file names. The final layout will still be re-composed by Pillow using the same original image. Full panel prompts and extraction verification
Degraded path. When the host lacks image generation capability that accepts reference images, expand all single-image slots and the two grid prompts, and save them as image-prompts.md in the delivery directory. Mark skipped single images and constrained grids, and render a placeholder version using the original image, specification, and available sub-images. When the host lacks Python or Pillow execution capability, deliver the specification, complete prompts, and any acquired sub-images, along with commands for validation, cropping (if applicable), and layout (with actual input paths substituted), and state the current file completion status. Generate a directly copyable prompt package
Store approved PNG files in task-output/assets/, with the following file names.
| Asset | File Name |
|---|---|
| Elevation & floor plan | elevation.png, plan.png |
| Six core components | component-01.png through component-06.png, in the same order as components |
| Five assembly steps | step-01.png through step-05.png, in the same order as steps |
For grids, arrange left to right, top to bottom; leave the last cell of the step grid blank. After verifying grid completeness, run the corresponding command.
python3 scripts/slice_grid.py --input "task-output/components-grid.png" --output-dir "task-output/assets" --kind components
python3 scripts/slice_grid.py --input "task-output/steps-grid.png" --output-dir "task-output/assets" --kind steps
The script defaults to --rows 2 --cols 3. For grids with different rules, explicitly pass --rows N --cols N, ensuring that the corresponding number of images can be cropped out. Use --inset PX to crop each cell inward, suitable for drawings with ample margins. When re-cropping and replacing same-named files in this session, add --overwrite after confirming the target. After cropping, check each image for position, edges, content, and slot order.
Layout and Delivery
python3 scripts/compose_board.py --spec "task-output/decor-spec.json" --original "scene.jpg" --assets "task-output/assets" --output "task-output/board.png"
Default size is 2160 × 2880. Use --logo to point to a user-provided logo, and --font to point to a font file that overrides the text in the output. When the user has explicit export size or cropping requirements, pass a supported size format, e.g., --size 2160x2880; for the main image, choose --hero-fit contain or --hero-fit cover. Use placeholders for missing or damaged sub-images. Keep slots with null prompt_detail as placeholders.
Open the PNG and check the original image, title and section text, 'to be verified' dimension status, illustration order, cropping, and glyphs. Verify that the channel markings on the floor plan align with the visible near edge. After correcting text per the specification, re-validate and re-layout. If image evidence is missing or fails verification, leave placeholders and list the corresponding file names. Write the prompts actually used or intended for re-generation into image-prompts.md. Deliver the final output, specification, prompts, and sub-image directory; if the theme was derived from the scene, inform the user that they can modify theme and re-layout.
When re-generating, use the same original image and call the already expanded corresponding prompts. Replace approved sub-images by file name; if new evidence is added, first update the respective prompt_detail or dimensions, then re-validate the specification, re-layout with the original command, and re-read the output. Layout and final check
Common Failures
- Garbled text or font errors. Switch to a font file that covers all text, pass
--font, then re-layout. - Sub-images misplaced, overlapping cells, or containing text. Re-check per cell; regenerate defective slots using the corresponding single-image prompts; verify the image and naming before saving.
- Image format unreadable. Keep the source file, convert to PNG or JPEG, and resubmit the path.
- Text fits but is hard to read at preview. Prioritize shortening the wording of configuration, steps, or labels while preserving user-provided information, then re-layout and re-read.