CommunityImagegithub.com

ecom-c4d-image-pipeline

A templated pipeline skill for producing C4D-style e-commerce illustrations: analyze reference images, generate text-to-image prompts, batch-produce 3D e-commerce assets on a pure white background, and iterate quality control.

What is ecom-c4d-image-pipeline?

This skill provides a five-stage templated pipeline for generating C4D/Blender-rendered e-commerce illustrations from reference images or theme keywords. It is designed for developers and AI agent users who need to mass-produce promotional assets (e.g., for Double 11, holiday campaigns) with a consistent visual style—soft rubber-toy texture, rounded corners, high-saturation e‑commerce colors, and a pure white background. The pipeline automates: (1) analyzing reference images into six key elements (subject, scene, style, color, composition, details), (2) generating structured text-to-image prompts following a template, (3) batch image generation via an ImageGen tool only when reference images are provided (default trial of 2 images, then full batch), (4) quality checking each image against a checklist (white background, no text/watermarks, structural integrity), and (5) iterative correction and delivery. It strictly enforces rules: one prompt per element or per reference image, no merging; explicitly asks the user for the number of additional prompt variations; and only proceeds to image generation when the user has confirmed the prompts. The skill supports platforms that use the ImageGen deferred tool and is ideal for creating cohesive e‑commerce visual assets quickly and reliably.

Works with~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/shulinsheji/ecom-c4d-image-pipeline/tree/HEAD

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

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

E-Commerce C4D Illustration Pipeline Skill

Solidifies the process "Reference Image Analysis → Prompt Generation → Batch Image Generation → Quality Check → Iterative Correction" into a five-stage pipeline, supporting templated batch output for any new theme element.

Unified Visual Tone (Default Style of This Pipeline)

C4D/Blender OC renderer, soft rubber-toy texture, rounded chamfers, high-saturation e-commerce colors, anthropomorphic expressions, soft studio three-point lighting, pure white background, no text or watermark. If the user specifies a different style (flat, Chinese trend, plush, etc.), replace the tone but keep the workflow unchanged.


Stage 1: Reference Image Analysis (When Reference Images Are Available)

For each reference image, extract and record six elements:

  1. Subject: Core object, anthropomorphic features (eyes/expression/limbs), material characteristics (soft rubber/jelly/metal/plush)
  2. Scene Setting: Corresponding business scenario (promotion/holiday/membership/logistics, etc.)
  3. Style Reference: Renderer, texture type, similar IP style
  4. Color Tone: Primary color → secondary color gradient direction, contrasting accents, color temperature
  5. Composition & Perspective: Front/slight top-down/slight bottom-up/diagonal momentum, subject proportion and position
  6. Additional Details: Decorative elements (stars/blush/stickers), special material effects (translucency/glow/motion blur)

When analyzing multiple images, first summarize the common style tone (as the unified suffix for the pipeline), then extract differentiated subject elements from each image.

Stage 2: Prompt Generation

Generate prompts according to the template in references/prompt-template.md. Rules:

  • Each prompt must completely include all six elements, written as a single block of text ready to be fed directly to an image generation model (not a table).
  • When the user sends N element titles, you must generate N independent prompts—one element = one prompt. It is strictly forbidden to merge multiple elements into one prompt; other elements can only appear as auxiliary details in that prompt.
  • When the user uploads N reference images, you must reverse-engineer N prompts—one image, one prompt, one-to-one correspondence. Each prompt must be labeled with the corresponding original image number/file name. No omission or merging is allowed.
  • Additional Quantity Rule: After reverse-engineering N prompts and delivering the document, you must actively ask the user: "How many additional prompts with different themes would you like? Please reply with a number." Do not assume the quantity yourself. After the user replies with number M, generate M new prompts in addition to the N, for a total of N + M. The additional prompts must avoid any already reverse-engineered elements (including the pool of elements used across sessions) and must be documented in two groups labeled "Group A · Reverse-Engineered from Reference Images (1-N)" and "Group B · Extended Additions (N+1 onwards)." If the user does not reply with a number but says something vague like "continue generating," default to adding 5 prompts and inform the user.
  • No repetition between theme elements; if the user provides a list of already-used themes, first list the elements to avoid before brainstorming new ones.
  • Mandatory Appendices (include in every prompt):
    • Pure white background (RGB 255,255,255)
    • No text, letters, slogans, watermarks, or logos in the image
    • Unified style tone paragraph (see references/prompt-template.md)
  • When generating in batches, group by theme (e-commerce promotion/holiday/food & entertainment, etc.), 5-12 prompts per group, for the user to select based on business needs.
  • Save the output as a Markdown document (e.g., N [Theme] Text-to-Image Prompts.md), deliver it using present_files, and wait for user confirmation before proceeding to Stage 3.

Stage 3: Batch Image Generation (Reverse-Engineering from Reference Images Only)

Trigger Restriction: Image generation is only allowed in the "reverse-engineering from reference images" workflow—after reverse-engineering N prompts, default to trial-producing 2 images (let the user verify the accuracy of the reverse engineering), then generate the batch based on user instructions. In the following cases, do not generate images at all; deliver the prompt document and end the task:

  • The user sends a list of element titles to generate prompts (no reference images);
  • The user requests additional prompts (Group B extended additions);
  • The user only asks to organize/optimize the prompt document.

If, in the above scenarios, the user explicitly says "generate images/output images/see the effects" or similar instructions, you may proceed with the parameters below.

Use the ImageGen tool (deferred tool—must load its schema via ToolSearch). Fixed parameters:

  • size: "1024x1536" (2:3 portrait, default for e-commerce posters); landscape uses "1536x1024", square uses "1024x1024"
  • quality: "high"
  • output_dir: generated-images/ directory in the workspace
  • Before generation, you must inform the user of the credit consumption (approximately 5-10 credits per image, high quality)
  • Trial first, then scale up: Only generate 2 images initially for the user to verify the effect. After confirmation, batch-generate the rest
  • Multiple images can be called in parallel (multiple tool calls within the same message)

Stage 4: Quality Check (Mandatory for Every Image)

Use ViewImage to check each image against references/qc-checklist.md:

  1. Is the background pure white? (grayish = fail)
  2. Does the subject match the prompt? (shape/color/quantity)
  3. Are there any unwanted text, letters, watermarks, or logos?
  4. Are there any structural or limb anomalies?
  5. Does the color tone and texture match the intended style?

Judgment baseline for trial verification: A glowing subject (flame/lightbulb/glow stick, etc.) with a slight halo at the bottom is considered a normal rendering and should not be penalized as a background failure. The judgment for a pure white background is based on "no debris, no obvious gray background patches."

Stage 5: Iterative Correction and Delivery

Choose countermeasures based on the issue type (see details in references/qc-checklist.md):

  • Text/watermark appears → If the prompt already contains the prohibition but the issue still occurs, regenerate once. If it is a model-inherent watermark (e.g., an "AI-generated" corner mark) that cannot be removed via prompts, use image processing skills to erase it, or suggest the user crop/overlay it later
  • Background is grayish → Emphasize "pure white background (RGB 255,255,255) + no drop shadows + no bottom halo" in the prompt. If still grayish, use image processing skills to purify it
  • Subject deviates → Place the subject description at the very beginning of the prompt, add detailed qualifiers, reduce ambiguous modifiers, and regenerate
  • In each correction round, only regenerate the images that failed; keep the ones that passed
  • Final delivery: Use present_files to display all final images, accompanied by a text-based effect evaluation and a credit consumption summary

Quick Reference Flow

Flow A · Reverse-Engineer from Reference Images (the only flow that generates images):
  N reference images → Stage 1 image analysis → Stage 2 reverse-engineer N prompts document → user confirms
  → Stage 3 trial produce 2 images → Stage 4 quality check → user confirms
  → Batch generate remaining → Stage 4 full quality check → Stage 5 correct and deliver

Flow B · Element Titles / Additional Prompts (output document only, no images):
  Element list or additional quantity → Stage 2 generate prompt document → deliver and end
  (Enter Stage 3-5 only when the user explicitly requests image generation)

Flow C · Additional Inquiry:
  After reverse-engineering delivery → actively ask "How many additional? Reply with a number" → user replies with number → proceed with Flow B

Key principles: Document first, then images (prompts must be confirmed by the user); trial first, then scale up; every image must be quality-checked; only regenerate failed images.

Related Skills