This skill generates professional studio or lifestyle backgrounds tailored to product aesthetics and brand positioning for compelling e-commerce visuals.
npx playbooks add skill tara-shopos/shopos-prototype --skill product-background-generation
Use this skill when you need to:
Studio Mode - Clean, professional product photography:
Lifestyle Mode - Contextual, aspirational imagery:
Always use three-level material specificity:
Example: "warm terracotta plaster wall with matte finish" not "orange wall"
Extract from product images:
Choose based on use case:
Create 2-4 sentence description including:
Professional [studio/lifestyle] photography background for [product type].
BACKGROUND:
[Detailed description from Step 4]
LIGHTING:
- [Specific lighting setup]
- [Direction and quality]
- [Color temperature]
CAMERA:
- [Camera type and lens]
- [Aperture for depth effect]
- [Angle and framing]
MOOD: [Atmospheric qualities]
Professional product photography, commercial quality, 8K resolution.
Input:
Background Description:
"Elevated studio setup with gradient backdrop transitioning from deep charcoal to warm graphite, creating dimensional depth. Brushed metal accent panel on left third adds subtle industrial sophistication. Soft key light from 45-degree angle with fill light creating gentle shadows that emphasize the watch's metallic finish. Matte surface treatment prevents glare while maintaining rich tonal depth."
Full Prompt:
Professional studio photography background for luxury gold watch.
BACKGROUND:
Gradient backdrop transitioning from deep charcoal to warm graphite with dimensional depth, brushed metal accent panel on left creating industrial sophistication. Matte surface treatment, no glare.
LIGHTING:
- Soft diffused key light at 45 degrees with subtle fill
- Creating gentle shadows
- Cool neutral color temperature (5500K)
CAMERA:
- Medium format camera
- 85mm lens, f/5.6 for balanced depth
- Eye-level straight-on angle
MOOD: Refined, sophisticated, premium
Professional product photography, commercial quality, 8K resolution.
Input:
Background Description:
"Urban outdoor setting with textured concrete wall featuring natural weathering and subtle graffiti remnants, creating authentic street culture context. Warm afternoon sunlight casting diagonal shadows across the surface. Visible urban elements in soft focus background - metal fire escape, brick building corner. Raw, unpolished aesthetic with genuine environmental texture."
Full Prompt:
Professional lifestyle photography background for urban streetwear hoodie.
BACKGROUND:
Textured concrete wall with natural weathering and subtle graffiti remnants, authentic street culture aesthetic. Soft focus urban elements in background - metal fire escape, brick building. Raw, unpolished texture.
LIGHTING:
- Warm afternoon sunlight creating diagonal shadows
- Natural outdoor light
- Golden hour color temperature (3500K)
CAMERA:
- DSLR, 50mm lens, f/2.8 for shallow depth
- Eye-level angle
- Medium framing
MOOD: Authentic, urban, energetic
Professional fashion photography, editorial quality, 8K resolution.
Input:
Background Description:
"Modern minimalist interior with smooth plaster wall in warm off-white, natural oak floating shelf creating horizontal line. Soft diffused window light from right creating gentle gradient across wall. Subtle texture visible in plaster finish. Clean, serene Scandinavian aesthetic with emphasis on negative space and natural materials."
Full Prompt:
Professional lifestyle photography background for ceramic vase.
BACKGROUND:
Modern minimalist interior, smooth plaster wall in warm off-white, natural oak floating shelf. Subtle plaster texture visible. Clean Scandinavian aesthetic, emphasis on negative space.
LIGHTING:
- Soft diffused window light from right
- Creating gentle gradient
- Warm neutral color temperature (4500K)
CAMERA:
- Full-frame camera, 35mm lens, f/4
- Eye-level angle
- Environmental context framing
MOOD: Serene, minimal, natural
Professional interior photography, commercial quality, 8K resolution.
# Analyze product
product_analysis = {
"category": "garment",
"style": "casual",
"colors": ["navy blue", "white"],
"materials": ["cotton denim", "metal hardware"]
}
# Generate background
background_desc = generate_background(
product_analysis=product_analysis,
background_type="lifestyle", # or "studio"
brand_positioning="mid-market"
)
# Create full prompt
prompt = f"""
Professional lifestyle photography background for {product_analysis['category']}.
{background_desc}
CRITICAL: Extract and feature ONLY the product from the product image.
Completely disregard any existing background in the product image.
Place the product in the newly generated background described above.
Ensure proper lighting, shadows, and spatial integration.
"""
# Call image generation
result = await image_gen(
prompt=prompt,
images=[{"url": product_image_url, "name": "Product"}],
aspect_ratio="16:9",
output_format="jpeg"
)
workflow_garments_v2/implementation/utils/background_generation.pyWeekly roundup of top Claude Code skills, MCP servers, and AI coding tips.