Token导航 LogoToken导航TokenDH.com
前端设计只读github未标认证来源可访问许可证需确认审计提醒

product-analysis-stylingproduct analysis styling 命令行

Agent Skill

product-analysis-styling 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

360

周安装

15

GitHub Stars

1

下载量

120
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:product-analysis-styling(product analysis styling 命令行)
来源仓库:https://github.com/tara-shopos/shopos-prototype
仓库路径:skills/product-analysis-styling
安装命令:
npx skills add https://github.com/tara-shopos/shopos-prototype --skill product-analysis-styling
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/tara-shopos/shopos-prototype --skill product-analysis-styling

简介

用于处理产品分析与样式设计的协同工作流程。

  • 适合在电商后台、商品详情页或视觉规范制定中应用。
  • 通过 GitHub 安装,支持 Codex、Claude、Cursor 和 Gemini CLI 等宿主环境。
  • 使用时需结合设计系统与前端框架进行集成。product-analysis-styling 属于前端设计类 Skill,可作为该场景下的辅助能力补充。
  • 安装前建议确认权限范围,防止误改生产环境样式表。

SKILL.md

Product Analysis and Styling

When to Use This Skill

Use this skill when you need to:

  • Analyze product images before creating photography
  • Extract product attributes for accurate representation
  • Generate styling recommendations for product shoots
  • Determine appropriate complementary items
  • Understand product positioning and target audience
  • Create cohesive styled product compositions

Core Concepts

Three-Level Material Specificity

Always analyze materials with three levels:

  1. Base Material: Cotton, leather, polyester, metal, ceramic
  2. Construction: Weave type, grain pattern, metal type
  3. Surface Finish: Texture, treatment, appearance

Example: "cotton denim with right-hand twill weave and stone-washed matte finish"

Analysis Categories

Product Classification:

  • Category (top, bottom, fullbody, accessory, home goods)
  • Specific type (silk blouse, leather boots, ceramic vase)
  • Gender/target demographic
  • Age category (infant, child, teen, adult)

Style Assessment:

  • Style classification (casual, formal, sporty, elegant, minimalist)
  • Occasion suitability
  • Brand positioning (budget, mid-market, premium, luxury)

Material Analysis:

  • Base materials
  • Construction methods
  • Surface treatments and finishes

Design Details:

  • Silhouette and fit
  • Key design elements
  • Construction details
  • Brand indicators

Step-by-Step Instructions

Step 1: Visual Product Analysis

Examine product images to identify:

  • Product category and specific type
  • Gender/target demographic
  • Age category
  • Style classification
  • Occasion suitability

Step 2: Material and Construction Analysis

Apply three-level specificity:

  • Identify base materials
  • Determine construction methods
  • Assess surface finishes and treatments

Step 3: Color and Pattern Analysis

Extract:

  • Primary colors (specific names: "navy blue" not "blue")
  • Secondary/accent colors
  • Pattern type (solid, striped, floral, geometric)
  • Color temperature (warm, cool, neutral)
  • Finish (matte, glossy, metallic)

Step 4: Design Details Extraction

Document:

  • Silhouette and fit characteristics
  • Key design elements (buttons, zippers, pockets)
  • Construction details (stitching, seams, hardware)
  • Brand indicators and distinctive features

Step 5: Generate Styling Recommendations

Based on analysis, recommend:

For Garments:

  • Complementary topwear (if bottom analyzed)
  • Complementary bottomwear (if top analyzed)
  • Appropriate footwear (specific style and color)
  • Accessories (minimal, statement, or none)
  • Overall styling approach

For Accessories:

  • Outfit context (what to pair with)
  • Styling placement (how to wear/display)
  • Complementary pieces
  • Occasion suitability

For Products:

  • Display context (environment, props)
  • Complementary items
  • Lifestyle integration

Step 6: Create Structured Output

Format as JSON:

{
  "product_category": "top|bottom|fullbody|accessory",
  "product_type": "specific item name",
  "gender": "male|female|unisex",
  "age_category": "infant|child|teen|adult",
  "style_classification": "casual|formal|sporty|elegant",
  "materials": {
    "base": "primary material",
    "construction": "weave/grain/type",
    "finish": "surface treatment"
  },
  "colors": {
    "primary": "specific color name",
    "secondary": ["color1", "color2"],
    "temperature": "warm|cool|neutral"
  },
  "design_details": ["feature1", "feature2"],
  "styling_recommendations": {
    "topwear": "recommendation or N/A",
    "bottomwear": "recommendation or N/A",
    "footwear": "specific style and color",
    "accessories": "minimal|statement|none",
    "overall_approach": "styling philosophy"
  }
}

Examples

Example 1: Denim Jacket Analysis

Input: Image of blue denim jacket

Analysis Output:

{
  "product_category": "top",
  "product_type": "denim trucker jacket",
  "gender": "unisex",
  "age_category": "adult",
  "style_classification": "casual",
  "materials": {
    "base": "cotton denim",
    "construction": "right-hand twill weave",
    "finish": "stone-washed with slight fading, matte surface"
  },
  "colors": {
    "primary": "medium indigo blue",
    "secondary": ["brass hardware", "white contrast stitching"],
    "temperature": "cool"
  },
  "design_details": [
    "Classic trucker silhouette with pointed collar",
    "Brass button closure and rivets",
    "Two chest pockets with button flaps",
    "Adjustable side tabs at waist"
  ],
  "styling_recommendations": {
    "topwear": "N/A (this is the top)",
    "bottomwear": "Black or dark grey slim-fit chinos, or light wash jeans for contrast",
    "footwear": "White leather sneakers or tan suede desert boots",
    "accessories": "Minimal - simple watch, no competing denim",
    "overall_approach": "Classic casual Americana - keep styling clean and unfussy, let the jacket be the statement piece"
  }
}

Example 2: Statement Earrings Analysis

Input: Image of gold chandelier earrings

Analysis Output:

{
  "product_category": "accessory",
  "product_type": "chandelier drop earrings",
  "gender": "female",
  "age_category": "adult",
  "style_classification": "elegant",
  "materials": {
    "base": "gold-plated brass",
    "construction": "multi-tier chandelier structure",
    "finish": "polished with high shine"
  },
  "colors": {
    "primary": "warm gold",
    "secondary": ["clear crystal accents"],
    "temperature": "warm"
  },
  "design_details": [
    "Three-tier cascading design with crystal embellishments",
    "Approximately 3 inches in length",
    "Post back closure",
    "Intricate filigree metalwork"
  ],
  "styling_recommendations": {
    "topwear": "N/A",
    "bottomwear": "N/A",
    "footwear": "N/A",
    "accessories": "Keep other jewelry minimal - these are statement pieces",
    "overall_approach": "Pair with updo or swept-back hair to showcase earrings. Wear with elegant neckline (off-shoulder, V-neck, or strapless) in solid colors. Avoid competing patterns or necklaces. Suitable for formal events, weddings, or evening occasions."
  }
}

Example 3: Ceramic Vase Analysis

Input: Image of white ceramic vase

Analysis Output:

{
  "product_category": "home_decor",
  "product_type": "minimalist ceramic vase",
  "gender": "unisex",
  "age_category": "adult",
  "style_classification": "minimalist",
  "materials": {
    "base": "ceramic stoneware",
    "construction": "wheel-thrown with hand-finished rim",
    "finish": "matte white glaze with subtle texture"
  },
  "colors": {
    "primary": "warm off-white",
    "secondary": [],
    "temperature": "warm neutral"
  },
  "design_details": [
    "Organic asymmetrical form",
    "Narrow neck opening to wide body",
    "Approximately 10 inches tall",
    "Visible throwing lines add handcrafted character"
  ],
  "styling_recommendations": {
    "topwear": "N/A",
    "bottomwear": "N/A",
    "footwear": "N/A",
    "accessories": "N/A",
    "overall_approach": "Display on natural wood surface or light-colored shelf. Pair with single stem or small dried arrangement - avoid overcrowding. Complement with other neutral tones and natural materials. Suitable for Scandinavian, minimalist, or modern organic interiors. Photograph with soft natural light and clean background."
  }
}

Key Principles

  1. Precision Over Generalization: "Navy blue cotton twill" not "blue pants"
  2. Three-Level Material Specificity: Always base + construction + finish
  3. Actionable Recommendations: Specific items, not vague suggestions
  4. Style Consistency: Recommendations match product's aesthetic level
  5. Avoid Redundancy: Don't recommend competing items
  6. Context Awareness: Consider occasion, season, target audience

Common Mistakes to Avoid

  • ❌ Generic descriptions: "nice fabric" instead of specific material
  • ❌ Vague colors: "blue" instead of "navy blue" or "cobalt blue"
  • ❌ Missing construction details: "leather" instead of "full-grain leather with pebbled finish"
  • ❌ Inconsistent styling: Recommending formal shoes with casual garment
  • ❌ Over-styling: Too many competing elements
  • ❌ Ignoring target audience: Adult styling for children's products

Integration Pattern

# Analyze product
analysis = await analyze_product(
    product_images=["url1", "url2"],
    model_category="default"  # or "male", "female", "child"
)

# Use analysis for prompt generation
prompt = f"""
Professional fashion photography of {analysis['product_type']}.

PRODUCT DETAILS:
- Material: {analysis['materials']['base']} with {analysis['materials']['finish']}
- Color: {analysis['colors']['primary']}
- Style: {analysis['style_classification']}

STYLING:
- {analysis['styling_recommendations']['bottomwear']}
- {analysis['styling_recommendations']['footwear']}
- Accessories: {analysis['styling_recommendations']['accessories']}

{analysis['styling_recommendations']['overall_approach']}

Shot on professional camera, editorial quality, 8K resolution.
"""

# Generate image
result = await image_gen(
    prompt=prompt,
    images=[{"url": product_image, "name": "Product"}],
    aspect_ratio="2:3"
)

Output Schema

from pydantic import BaseModel, Field
from typing import List, Optional
from enum import Enum

class GarmentCategory(str, Enum):
    TOP = "top"
    BOTTOM = "bottom"
    FULLBODY = "fullbody"
    ACCESSORY = "accessory"

class Gender(str, Enum):
    MALE = "male"
    FEMALE = "female"
    UNISEX = "unisex"

class StyleCategory(str, Enum):
    CASUAL = "casual"
    FORMAL = "formal"
    SPORTY = "sporty"
    ELEGANT = "elegant"
    MINIMALIST = "minimalist"

class StylingRecommendations(BaseModel):
    topwear: str
    bottomwear: str
    footwear: str
    accessories: str
    overall_approach: str

class ProductAnalysis(BaseModel):
    product_category: GarmentCategory
    product_type: str
    gender: Gender
    age_category: str
    style_classification: StyleCategory
    materials: dict
    colors: dict
    design_details: List[str]
    styling_recommendations: StylingRecommendations

References

  • Source: workflow_garments_v2/implementation/utils/garment_analysis.py
  • Related Skills: product-background-generation, fashion-model-photography
  • Material Terminology Guide: See references/materials.md

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

38.78%
按下载量换算47

Claude

31.78%
按下载量换算38

Cursor

17.59%
按下载量换算21

Gemini CLI

9.26%
按下载量换算11

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills