Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

Back to skills

Ecommerce Material Studio

ASecurity

电商素材工坊(中英双语)。用户需要生成电商主图、详情图、场景图、产品图合成、品牌叠加时使用。自动识别品类→匹配风格→场景感知合成→统一文字→自动质检→多平台适配→标准化交付。E-commerce product image studio: category detection, style matching, scene-aware compositing, text overlay, quality check, multi-platform adaptation, batch delivery.

2 stars
0 votes
0 copies
0 views
Added 9/22/2026
ai-agentspythongobashgitapi

Works with

cliapi

Security Analysis

A96/100
mediumInstalls packages at runtime which could introduce malicious dependencies

Scanned 9/22/2026

Install to Claude Code

$npx -y skills add jiawood2006/hermes-skills --skill ecommerce-material-studio --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ecommerce Material Studio?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Ecommerce Material Studio
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jiawood2006-ecommerce-material-studio/badge)](https://www.skillsdirectory.com/skills/jiawood2006-ecommerce-material-studio)

More formats (shields.io, HTML) on the badges page.

Download Zip
Files
SKILL.md
---
name: ecommerce-material-studio
description: "电商素材工坊(中英双语)。用户需要生成电商主图、详情图、场景图、产品图合成、品牌叠加时使用。自动识别品类→匹配风格→场景感知合成→统一文字→自动质检→多平台适配→标准化交付。E-commerce product image studio: category detection, style matching, scene-aware compositing, text overlay, quality check, multi-platform adaptation, batch delivery."
version: 1.0.0
author: 涛哥
license: MIT
metadata:
  hermes:
    tags: [ecommerce, image-generation, product-photo, 电商, 主图, 素材, 场景图]
---

# 电商素材工坊 / E-commerce Material Studio

生成电商产品素材(主图/详情图/场景图)的一站式工具链。输入产品图片 → 自动完成品类识别、风格匹配、场景合成、文字叠加、质检、多平台适配、批量交付。

**v2 新增:AI 场景融合合成器**(`scripts/ai_compositor.py`)——用 Qwen-Image-Edit 图生图把产品真实融入使用场景(AI 重绘光影/透视,非 PIL 贴图),支持卖点→场景自动匹配。

**One-stop pipeline for e-commerce product images: category detection → style matching → scene compositing → text overlay → quality check → platform adaptation → batch delivery.**

> ⚠️ **本技能只做图,不做视频**(`scripts/` 里 0 处视频代码,已验证)。
> **视频侧**在 `ai-video-ad-production` 技能 —— 整机 = 它的 `scripts/make_ad.py`(一条命令出片:
> 提交→轮询→抽帧核验→装配30s/15s→交付)。
> 两边**共用同一份产品档案**:本技能 `references/product_profiles.json`(例:`haier_hsq1_shaver`)。
> 生图脚本读 `image` 段;视频读 `video` + `video_lock` 段。**改档案一处,图/视频同时生效。**

## 何时使用 / When to use

- 用户需要生成**电商主图/详情图**(如"帮我做一套剃须刀主图")
- 需要**产品图合成到场景**(白底图 → 场景图)
- 需要**品牌叠加**(Logo/保障条/卖点文字/徽章)
- 需要**多平台尺寸适配**(淘宝/快手/抖音/拼多多/京东等 7 平台)
- 需要**批量生成**多个产品素材

## 使用流程 / Workflow

```bash
# 0. 环境依赖(一次性)
pip install Pillow numpy scipy

# 1. 品类识别:输入产品图 → 识别品类/风格
python3 scripts/category_detector.py --image product.png

# 2. 风格匹配:品类+价位+平台+品牌 → 推荐模板
python3 scripts/style_matcher.py --category 个护电器 --sub-category 剃须刀 --price 169 --platform kuaishou

# 3. 场景感知合成(核心):库调用(SceneAwareCompositor 是 Python 库,非 CLI)
python3 -c "
from PIL import Image
from scripts.scene_aware_compositor import SceneAwareCompositor
c = SceneAwareCompositor()
scene = Image.open('scene.jpg'); product = Image.open('product.png')
result = c.composite(scene_image=scene, product_image=product, scene_type='lifestyle_bathroom', position=(0.5, 0.45))
result.save('result.png')
"

# 4. 统一文字叠加(处理 plan.json 里所有文字层)
python3 scripts/text_engine.py --plan output/plan.json --brand langke --scene-tone dark

# 5. 自动质检(读取 plan.json + 检查成品图)
python3 scripts/quality_check.py --plan output/plan.json

# 6. 多平台尺寸适配
python3 scripts/platform_adapter.py --input-dir ./output --platforms kuaishou --output-dir ./platform_output

# 7. 标准化交付打包(自动生成使用指南+清单+zip)
python3 scripts/delivery_packager.py --project-dir ./output --product-name "示例产品"

# 8. 批量处理(多产品,断点续传)
python3 scripts/batch_processor.py --input products.json --output-dir ./batch --prepare

# 9. AI 场景融合(v2,需 SILICON_FLOW_API_KEY)
python3 scripts/ai_compositor.py product.png --selling-point "90天续航" -o output/ai_scene.png
#    卖点→场景模板:口袋mini/90天续航/动力/防水/便携(自动匹配专属场景)
#    或自定义场景:--scene "自定义场景描述"
#    预览 prompt 不调用:--dry-run
```

> ⚠️ AI 融合铁律(来自 siliconflow-image-api 实战):
> - **产品必须写死**:`--product-desc` 写清产品部件特征(如"深色磨砂圆柱机身,顶部三头浮动刀头"),否则 AI 改画
> - **禁止只画场景不画产品**:prompt 已内置"产品必须是画面绝对主角"锁定句
> - **卖点→场景绑定**:每个卖点有专属场景(含视觉证据),不写抽象纹理背景
> - 生成后必须 vision/人眼校验:产品保真?场景贴卖点?不贴合重新生成

## 模块清单 / Modules

| 模块 | 功能 | 依赖 |
|:---|:---|:---|
| `category_detector.py` | 品类识别(色调/材质→子品类) | Pillow |
| `style_matcher.py` | 风格匹配(品类+价位+平台+品牌→模板) | 无 |
| `brand_loader.py` | 品牌配置加载(多品牌/Logo选择) | 无 |
| `text_engine.py` | 统一文字引擎(z-index/避让/对比度) | Pillow |
| `quality_check.py` | 自动质检(分辨率/可读性/Logo/完整/重叠) | Pillow |
| `preference_memory.py` | 偏好记忆(跨项目复用风格) | 无 |
| `batch_processor.py` | 批量处理(断点续传/重试/报告) | 无 |
| `platform_adapter.py` | 7 平台尺寸适配(resize/crop/压缩) | Pillow |
| `delivery_packager.py` | 交付打包(使用指南+清单+zip) | Pillow |
| `layout_engine.py` | 布局引擎(物理尺寸→像素比例) | 无 |
| `scene_aware_compositor.py` | 场景感知合成(参照物尺度/透视/景深) | Pillow+numpy+scipy |

## 数据文件 / Data (references/)

- `category_templates.json` — 12 品类场景模板库(推荐场景/prompt/配色/文字风格)
- `product_profiles.json` — 产品档案库(示例:example_shaver)
- `brand_profiles/langke.json` — 示例品牌配置(朗科=示例品牌,非真实)
- `brand_config_template.json` — 新建品牌模板
- `user_preferences.json` — 偏好记忆库(模板)

## 注意事项 / Notes

- **字体**:`text_engine.py` 需要中文字体(macOS: `/System/Library/Fonts/PingFang.ttc`,Linux: NotoSansCJK,Windows: msyh.ttc)——按需修改 `FONT_PATHS_BOLD`/`FONT_PATHS_REGULAR` 常量
- **品牌配置**:用 `brand_config_template.json` 新建自己的品牌(含 Logo 路径/色系/保障条)
- **合成模式**:`scene_aware_compositor.py` 支持场景感知模式(自动算尺度)和兼容模式(固定 scale)
- 参考数据中的"朗科/LangKe"为**示例品牌**,可直接替换为自己的品牌配置

## 💛 免费使用 · 自愿支持 / Free with optional support

**本技能完全免费使用。** 觉得好用、帮到你了,可以**自愿扫码支持**(金额随意,一杯咖啡即可):

![支付宝收款码](assets/alipay_qr.jpg)

> 支持过我的人,后续 Pro 版/批量服务有优惠。
> 想提需求、反馈问题,欢迎到 Gitee 仓库提 Issue:https://gitee.com/tao6677/useful-tools

Attribution

jiawood2006jiawood2006
View sourceMore from jiawood2006 →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Ultra-compressed communication mode that cuts output tokens while keeping technical accuracy. Levels: lite, full, ultra and the wenyan variants. Use for /caveman, "caveman mode", "talk like caveman", "be brief" or "less tokens".

1066601 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

686011 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3351 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

651 votes

math-skill

A comprehensive mathematical reasoning skill for AI assistants — handles arithmetic to research-level problems with rigorous step-by-step reasoning, systematic verification, and transparent uncertainty handling

381 votes
View all in ai-agents →