This skill guides you on how to analyze and group products by the visual similarity of their main images. It helps Amazon sellers identify same-style products, detect competitor lookalikes, and organize product lists into visually coherent clusters.
Product Image Similarity Analysis uses multimodal AI to compare the main images of products and automatically group them based on visual features such as appearance, color, composition, and material. It is a post-processing tool -- it operates on product data that has already been retrieved by a preceding step (e.g., product search, product recommendations).
Similarity threshold: The similarityThreshold parameter controls how visually close two products must be to land in the same group. It is an integer from 0 to 100 representing a percentage. A higher value means stricter matching (only near-identical images group together); a lower value means more lenient matching (broader visual clusters). The default is 60.
Single-brand group filtering: The includeSingleBrandGroups flag (default true) controls whether groups containing products from only one brand are included in the results. Setting it to false filters out single-brand groups, which is useful when the user wants to focus on cross-brand visual overlaps (e.g., competitor lookalike analysis).
This tool requires a products list from a preceding step. It cannot fetch product data on its own. The typical workflow is:
refResultData for visual similarity grouping.The input data must be a JSON object containing a products array.
ParameterTypeRequiredDescriptionsimilarityThresholdintegerNoSimilarity threshold (0-100), default 60. Higher = stricter matching.includeSingleBrandGroupsbooleanNoWhether to include groups with only one brand, default true. Set to false to focus on cross-brand similarity.refResultDatastringNoJSON string of the preceding tool's result data containing the product list.userInputstringNoThe original user query or instruction text.
FieldTypeDescriptiongroupsarrayList of similarity groups. Each group contains groupNumber, reason, brandCount, and an asins array of product details.analysisInfoobjectSummary: totalProductsAnalyzed, totalGroupsFound, similarityThreshold, analysisTimestamp.tablesarrayTabular result data, each element with data, columns, and name.totalintegerTotal number of result items.titlestringResult title.typestringRendering style hint.costTokenintegerTotal LLM tokens consumed (input + output).
FieldTypeDescriptionasinstringProduct ASINproductIdstringProduct IDbrandstringBrand namepricenumberPriceratingnumberRating scoreratingsintegerNumber of ratingsmonthlySalesUnitsintegerMonthly sales unitsmonthlySalesRevenuenumberMonthly sales revenuemonthlySalesUnitsGrowthRatenumberMonthly sales growth rateimageUrlstringMain image URLproductImageUrlsarrayAll product image URLsimagePromptstringAI-generated image descriptionasinUrlstringProduct detail page URLavailableDatestringListing datecolorstringColormaterialstringMaterial
POST /multimodal/analyzeProductSimilarity(完整参数/响应/错误码见 references/api.md)python scripts/multimodal_analyze_product_similarity.py '<JSON 参数>' [--inline]输出策略(脚本默认行为):
<cwd>/linkfox/<YYYY-MM-DD>/<session>/data/linkfox-multimodal-product-similarity-<timestamp>.json( <cwd> 为脚本执行时的工作目录,在 Claude Code 里即当前项目目录; <session> 取自环境变量 SESSION_ID,按用户任务自动聚合; 禁止写入 /tmp,当前目录不可写则报错)total/ costToken、最大列表字段的长度 + 前 3 条样本)--inline 强制全量打印到 stdout(同样落盘)读数据建议:先看摘要判断是否足够;需要具体字段时优先用 jq 或 ConvertFrom-Json 从保存的 json 文件按需抽取,避免整份 JSON 进入上下文。
发生以下异常情况时,采用 references/onboarding.md 引导解决问题:
LINKFOX_AGENT_API_KEY,也未配置 LINKFOXAGENT_API_KEY。1. Group search results by visual similarity (default threshold) After obtaining a product list from a search tool, pass the results to this tool to cluster visually similar items:
text
User: "Group these products by how similar they look."
Action: Call the API with refResultData set to the preceding product list JSON, using the default similarityThreshold of 60.
2. Find near-identical products (strict matching)
text
User: "Which of these products have almost the same main image?"
Action: Call the API with similarityThreshold set to 85 or higher for strict visual matching.
3. Cross-brand competitor lookalike detection
text
User: "Show me groups where different brands have similar-looking products."
Action: Call the API with includeSingleBrandGroups set to false to filter out single-brand clusters.
4. Broad visual clustering (lenient threshold)
text
User: "Roughly categorize these products by appearance."
Action: Call the API with similarityThreshold set to 40 for broad grouping.
5. Combined: strict similarity across brands
text
User: "Find products from different brands that look nearly identical."
Action: Call the API with similarityThreshold set to 80 and includeSingleBrandGroups set to false.
products array.Applicable -- Visual similarity analysis on product lists:
User SaysScenario"Group these by how they look"Visual clustering"Find similar-looking products", "find lookalikes"Similarity detection"Which products look the same"Image deduplication"Show me competitor copycats"Cross-brand lookalike analysis"Cluster by appearance / color / style"Visual categorization"Are there duplicates in this list"Image-based dedup"Same-style products from different brands"Cross-brand similarity
Not applicable -- Needs beyond image similarity:
按动态规则计费:消耗算力 = sum(每个商品主图提示词生成调用的(输入消耗的算力 + 输出结果消耗的算力))。
重要:本技能的服务按倍数动态计算,可能一次性消耗大量算力,必须提醒用户,由用户决定是否继续。
Feedback:
Auto-detect and report feedback via the Feedback API when any of the following apply:
Call the feedback API as specified in references/api.md. Do not interrupt the user's flow.
For more high-quality, professional cross-border e-commerce skills, set LinkFox Skills.