Skip to content

xinian8684-sudo/hybrid-psd-ecommerce-skill

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Hybrid PSD Ecommerce Skill

AI backgrounds + real products = professional hero images in 30 minutes.

A Codex-style skill for creating production-ready, layered Photoshop files that combine AI-generated backgrounds with real product photography. No manual compositing required.


Why This Skill Exists

Ecommerce teams face a dilemma:

  • AI image generation produces polished, contextual backgrounds — but lacks real product authenticity
  • Manual product photography is authentic but expensive and slow
  • Hand-compositing (AI background + real product) is tedious and error-prone
  • Existing tools force a false choice: use generated images or real photos, but not both

This skill automates the middle ground: generate a background, drop in your real product, get an editable Photoshop file — without hiring a compositing artist.


What It Does

The skill handles the three hardest parts of ecommerce image creation:

  1. AI background generation — Creates contextual, on-brand backgrounds
  2. Product placement & scaling — Automatically positions and scales your product photo
  3. Photorealistic compositing — Adds shadows, reflections, and lighting adjustments to make the product look "native" to the background

Output: Layered, fully-editable PSD file with:

  • Separated design elements (background, product, text layers, badges)
  • Editable headlines, benefit cards, offer panels
  • Non-destructive adjustment layers (shadows, color grading)
  • Ready for tweaks in Photoshop or export as PNG/JPG

Real-World Workflow

Input

1. Product photo (PNG with transparency, 1000x1000px)
2. Visual reference (brand mood, color palette)
3. Copy (headline, benefits, CTA, offer)
4. Dimensions (canvas size, placement zones)

Process (Automated)

1. Generate AI background (contextual, on-brand)
2. Extract product cutout edges (if needed)
3. Calculate optimal product placement and scale
4. Generate matching shadows and reflections
5. Compose into Photoshop-ready layers
6. Add text layers, badges, benefit cards
7. Render preview PNG for QA

Output

hero_v1.psd          # Fully editable Photoshop file
hero_v1_preview.png  # QA reference image
hero_config.json     # Reproducible configuration

Total time: 20–30 minutes (vs. 2–4 hours of manual compositing)


Installation

Codex-Style Folder Skills

mkdir -p ~/.codex/skills/hybrid-psd-ecommerce
cp -R hybrid-psd-ecommerce/* ~/.codex/skills/hybrid-psd-ecommerce/

Other Claude Code Agents

Keep the skill folder available and reference it when asking Claude to generate ecommerce images.


Example Prompts

Use $hybrid-psd-ecommerce to create a hero image for this skincare product. 
Background: Minimal spa aesthetic with soft lighting.
Product photo: [attached]
Copy: "Radiant Skin Starts Here" + 3 key benefits
Canvas: 1200x800px
Use $hybrid-psd-ecommerce to generate 5 hero image variations for this fitness tracker.
Same product and copy, but 5 different background contexts (gym, outdoor, lifestyle, tech, luxury).
Output: 5 layered PSDs for A/B testing.
Use $hybrid-psd-ecommerce to create an editable ecommerce banner from this reference mood board and product cutout.
Make it feel premium and minimal.

Technical Details

Configuration Format

{
  "background": {
    "description": "Spa-inspired, soft natural lighting, neutral tones",
    "reference_mood": "calm, minimal, luxury"
  },
  "product": {
    "path": "input/product.png",
    "height_px": 600,
    "placement": "center-right",
    "shadow_type": "soft-drop"
  },
  "canvas": {
    "width": 1200,
    "height": 800,
    "safe_area": [100, 100, 100, 100]
  },
  "copy": {
    "brand": "BRAND_NAME",
    "headline": "Main value proposition",
    "subheadline": "Support copy",
    "benefits": [
      { "icon_type": "checkmark", "text": "Benefit 1" },
      { "icon_type": "star", "text": "Benefit 2" }
    ],
    "cta": "Shop Now",
    "offer": "Limited time offer"
  }
}

Scripts Included

Script Purpose
make_psd_hybrid_template.py Generate Photoshop JSX from config + product photo
validate_hybrid_psd.py Check compositing quality, detect edge artifacts, validate layer structure
generate_variants.py Create multiple background contexts for A/B testing

Dependencies

  • Python 3.9+
  • Pillow (image processing)
  • NumPy (array operations)
  • Photoshop or compatible (for executing JSX, saving PSD)
  • Optional: ImageMagick (batch processing)

Workflow Best Practices

✅ Best For

  • Ecommerce hero images (main product page, category banners)
  • Product launch marketing materials
  • Social media carousel posts (generate variants)
  • Email campaign hero images
  • A/B testing visual alternatives

⚠️ Considerations

  • Product cutout quality matters — Clean, transparent background on your product photo = better compositing
  • Copy tone — Generated text can sound generic; 10–15 min of human copywriting polish recommended
  • Brand consistency — Requires clear brand guidelines (colors, typography, mood)
  • Photoshop required — For final editing and PSD export (not included in skill)

🔄 Iteration Pattern

  1. Generate hero with initial config
  2. Review preview PNG
  3. Adjust product placement, shadow intensity, copy
  4. Re-generate
  5. Open in Photoshop, make final tweaks
  6. Export for web/print

Output Quality Benchmarks

Aspect Result
Compositing realism Shadows and reflections are plausible (not perfect)
Layer organization Groups by element (background, product, text, badges)
Editability All text is live text layer (editable in Photoshop)
File size Typically 8–15 MB layered PSD
Format compatibility Native Photoshop .psd (opens in PS CC 2020+)

Gallery & Case Studies

Share your ecommerce heroes built with this skill (anonymized or full credit):

  • Submit issues with before/after images
  • Tag with #hybrid-psd-ecommerce on Twitter/LinkedIn
  • Contribute to community showcase

Troubleshooting

Issue Solution
Shadows look flat Adjust shadow_intensity in config; try soft-drop or hard-drop
Product doesn't fit Reduce height_px or increase canvas size
Text is hard to read Increase background contrast or add text background layer
PSD won't open Ensure Photoshop CC 2020 or later; check file isn't corrupted

Contributing

If you:

  • Find edge cases (unusual product shapes, transparent backgrounds), open an issue
  • Improve the compositing algorithm, submit a PR
  • Create case studies or tutorials, share them in Discussions

License

MIT — Use freely for personal and commercial projects.


Next Steps

  1. Prepare your product photo — PNG, transparent background, 1000x1000px minimum
  2. Write your brand brief — Colors, tone, mood, target audience
  3. Use the skill — Generate your first hero
  4. Review & iterate — Adjust config, regenerate
  5. Polish in Photoshop — Final tweaks and export

Professional ecommerce image generation, without the professional price tag.

About

Codex skill for editable ecommerce PSD hero images with AI backgrounds and real product layers

Topics

Resources

License

Stars

2 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages