linkfox-ruiguan-gun-parts-search
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseRuiguan Policy Compliance Image Detection
Ruiguan 政策合规图片检测
This skill guides you on how to use the Ruiguan policy compliance detection tool to identify potential policy violations in product images. It performs image-based similarity search against a known database of prohibited products.
本技能将指导您如何使用Ruiguan政策合规检测工具识别产品图片中的潜在政策违规问题。它会基于已知禁售商品数据库进行图片相似度搜索。
Core Concepts
核心概念
Ruiguan Policy Compliance Image Detection is an image-based compliance screening service. Given a product image URL, it searches for visually similar products in a database of known policy-violating items. The tool returns matching violations ranked by visual similarity.
Similarity score (cosine): A value between 0 and 1. Higher values indicate stronger visual resemblance to known violating products. A score close to 1.0 means the product image is nearly identical to a flagged violation.
Ruiguan政策合规图片检测是一项基于图片的合规筛查服务。给定产品图片URL,它会在已知违规商品数据库中搜索视觉相似的产品,并返回按视觉相似度排序的匹配违规结果。
相似度得分(余弦值):取值范围为0到1。得分越高表示与已知违规商品的视觉相似度越高。得分接近1.0意味着产品图片与标记的违规商品几乎完全一致。
Parameter Guide
参数指南
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| Image URL | imageUrl | Yes | The URL of the product image to check (max 1000 chars) | https://example.com/product.jpg |
Key notes:
- The image URL must be publicly accessible
- Supported formats include common image types (JPG, PNG, etc.)
- The URL must not exceed 1000 characters
| 参数 | 类型 | 是否必填 | 描述 | 示例 |
|---|---|---|---|---|
| 图片URL | imageUrl | 是 | 待检测产品图片的URL(最长1000字符) | https://example.com/product.jpg |
关键注意事项:
- 图片URL必须可公开访问
- 支持常见图片格式(JPG、PNG等)
- URL长度不得超过1000字符
Response Fields
响应字段
| Field | API Name | Description |
|---|---|---|
| Total Matches | total | Number of matching violation records found |
| Violation List | data | Array of matched violating products |
| Violation Image | pdImgOssUrl | Image URL of the matched violating product |
| Similarity Score | cosine | Similarity between the input image and the violation (0~1) |
| Product Title (EN) | pdTitle | English title of the matched violating product |
| Product Title (CN) | pdTitleCHNCensored | Chinese title of the matched violating product |
| Detection ID | detectId | Unique identifier for this detection session |
| Token Cost | costToken | Number of tokens consumed by this request |
| 字段 | API名称 | 描述 |
|---|---|---|
| 匹配总数 | total | 找到的违规记录数量 |
| 违规列表 | data | 匹配到的违规商品数组 |
| 违规商品图片 | pdImgOssUrl | 匹配到的违规商品图片URL |
| 相似度得分 | cosine | 输入图片与违规商品的相似度(0~1) |
| 商品标题(英文) | pdTitle | 匹配到的违规商品英文标题 |
| 商品标题(中文) | pdTitleCHNCensored | 匹配到的违规商品中文标题 |
| 检测ID | detectId | 本次检测会话的唯一标识 |
| 积分消耗 | costToken | 本次请求消耗的积分数量 |
调用方式
调用方式
- API 端点:(完整参数/响应/错误码见
POST /ruiguan/gunPartsSearch)references/api.md - Python 脚本:
python scripts/ruiguan_image_compliance_search.py '<JSON 参数>' [--inline] - 成本约束:本工具会消耗积分;同一会话同一参数组合默认只调用一次,脚本带 24h 本地缓存。失败/空结果不得自动换关键词、翻页或改邮编连续试探;需要继续检索时先向用户说明会产生额外消耗。
输出策略(脚本默认行为):
- 始终将完整响应写入 (
<cwd>/linkfox/<YYYY-MM-DD>/<session>/data/linkfox-ruiguan-gun-parts-search-<timestamp>.json为脚本执行时的工作目录,在 Claude Code 里即当前项目目录;<cwd>取自环境变量<session>,按用户任务自动聚合;禁止写入 /tmp,当前目录不可写则报错)SESSION_ID - 响应体 ≤ 8 KB:落盘后把完整 JSON 打印到 stdout
- 响应体 > 8 KB:落盘后 stdout 只输出摘要(顶层字段、常见计数如 /
total、最大列表字段的长度 + 前 3 条样本)costToken - 加 强制全量打印到 stdout(同样落盘)
--inline
读数据建议:先看摘要判断是否足够;需要具体字段时优先用 或 从保存的 json 文件按需抽取,避免整份 JSON 进入上下文。
jqConvertFrom-Json- API 端点:(完整参数/响应/错误码见
POST /ruiguan/gunPartsSearch)references/api.md - Python 脚本:
python scripts/ruiguan_image_compliance_search.py '<JSON 参数>' [--inline] - 成本约束:本工具会消耗积分;同一会话同一参数组合默认只调用一次,脚本带24小时本地缓存。失败/空结果不得自动换关键词、翻页或改邮编连续试探;需要继续检索时先向用户说明会产生额外消耗。
输出策略(脚本默认行为):
- 始终将完整响应写入 (
<cwd>/linkfox/<YYYY-MM-DD>/<session>/data/linkfox-ruiguan-gun-parts-search-<timestamp>.json为脚本执行时的工作目录,在Claude Code里即当前项目目录;<cwd>取自环境变量<session>,按用户任务自动聚合;禁止写入 /tmp,当前目录不可写则报错)SESSION_ID - 响应体 ≤ 8 KB:落盘后把完整JSON打印到stdout
- 响应体 > 8 KB:落盘后stdout只输出摘要(顶层字段、常见计数如 /
total、最大列表字段的长度 + 前3条样本)costToken - 加 强制全量打印到stdout(同样落盘)
--inline
读数据建议:先看摘要判断是否足够;需要具体字段时优先用 或 从保存的json文件按需抽取,避免整份JSON进入上下文。
jqConvertFrom-Json解决认证和积分问题
解决认证和积分问题
发生以下异常情况时,采用 references/onboarding.md 引导解决问题:
发生以下异常情况时,采用references/onboarding.md引导解决问题:
异常情况
异常情况
- 未配置API Key:环境变量未配置 ,也未配置
LINKFOX_AGENT_API_KEY。LINKFOXAGENT_API_KEY - 响应401或402状态码
- 响应提示积分或余额不足:消息含"积分余额不足/计费不足/余额不足/quota exceeded/insufficient balance/套餐到期/需充值/请充值",或类似含义的内容。
- 未配置API Key:环境变量未配置 ,也未配置
LINKFOX_AGENT_API_KEY。LINKFOXAGENT_API_KEY - 响应401或402状态码
- 响应提示积分或余额不足:消息含"积分余额不足/计费不足/余额不足/quota exceeded/insufficient balance/套餐到期/需充值/请充值",或类似含义的内容。
Local Image Upload
本地图片上传
This tool requires a publicly accessible image URL. If the user provides a local image file path (e.g., , ), you must upload it first to obtain a public URL.
C:\Users\...\photo.png/home/.../image.jpgRun the upload script:
bash
python scripts/upload_image.py /path/to/local/image.pngThe script will return a public URL (valid for 24 hours) that can be used as the image URL parameter.
本工具需要可公开访问的图片URL。如果用户提供本地图片文件路径(例如 , ),您必须先上传图片以获取公开URL。
C:\Users\...\photo.png/home/.../image.jpg运行上传脚本:
bash
python scripts/upload_image.py /path/to/local/image.png脚本将返回一个有效期为24小时的公开URL,可作为图片URL参数使用。
Usage Examples
使用示例
1. Basic compliance check for a single product image
Check this product image for policy compliance: https://example.com/images/product-123.jpg2. Batch checking multiple product images
Please scan these product images for potential policy violations:
- https://example.com/images/item-a.jpg
- https://example.com/images/item-b.jpg3. Pre-listing compliance screening
Before I list this product, can you check if the image triggers any policy flags?
Image: https://example.com/new-product.png1. 单张产品图片基础合规检测
检测这张产品图片的政策合规性:https://example.com/images/product-123.jpg2. 多张产品图片批量检测
请扫描这些产品图片是否存在潜在政策违规:
- https://example.com/images/item-a.jpg
- https://example.com/images/item-b.jpg3. 上架前合规筛查
在我上架这款产品前,能否检测图片是否触发政策标记?
图片:https://example.com/new-product.pngDisplay Rules
展示规则
- Show results in a clear table: Present each matched violation with its image, similarity score, and product titles
- Highlight high-similarity matches: When the cosine score exceeds 0.8, clearly flag the result as a strong match that likely requires attention
- Include violation images: When results contain , display the matched violation image so the user can visually compare
pdImgOssUrl - Score interpretation: Always explain what the similarity score means -- higher values indicate closer resemblance to known violations
- Error handling: When a query fails, explain the issue and suggest checking whether the image URL is valid and publicly accessible
- No legal advice: Present detection results factually without providing legal conclusions; remind users to verify with platform policies
- 清晰表格展示结果:将每个匹配到的违规商品与其图片、相似度得分和商品标题一同展示
- 高亮高相似度匹配:当余弦得分超过0.8时,明确标记为强匹配结果,提示用户重点关注
- 包含违规商品图片:当结果包含 时,展示匹配到的违规商品图片,方便用户视觉对比
pdImgOssUrl - 得分说明:始终解释相似度得分的含义——得分越高表示与已知违规商品的相似度越高
- 错误处理:查询失败时,说明问题并建议检查图片URL是否有效且可公开访问
- 不提供法律建议:客观呈现检测结果,不给出法律结论;提醒用户参考平台政策进行验证
Important Limitations
重要限制
- Image-only detection: This tool works exclusively with image URLs; it does not analyze text descriptions or product metadata
- URL accessibility: The image URL must be publicly reachable by the detection service
- URL length cap: Image URLs must not exceed 1000 characters
- Similarity-based: Results are based on visual similarity and do not constitute a definitive policy ruling
- 仅图片检测:本工具仅支持图片URL检测;不分析文字描述或商品元数据
- URL可访问性:图片URL必须能被检测服务公开访问
- URL长度限制:图片URL长度不得超过1000字符
- 基于相似度:结果基于视觉相似度,不构成最终政策判定
User Expression & Scenario Quick Reference
用户表述与场景速查
Applicable -- Image-based product policy compliance checks:
| User Says | Scenario |
|---|---|
| "Check if this product image has compliance risks" | Single image compliance check |
| "Scan my product images for policy violations" | Batch compliance screening |
| "Is this image flagged as a prohibited product" | Specific violation inquiry |
| "Pre-screen my listing images for policy risks" | Pre-listing compliance audit |
| "Find similar violations for this product image" | Similarity-based violation search |
| "这个产品能安全上架吗" | 合规风险预检 |
| "帮我检测一下这个图片是否违规" | 单图合规检测 |
Not applicable -- Needs beyond image-based policy compliance detection:
- Text-based product compliance analysis
- General product category classification
- Intellectual property / trademark infringement
- Patent or copyright detection (use other Ruiguan skills)
适用场景——基于图片的商品政策合规检测:
| 用户表述 | 场景 |
|---|---|
| "检测这张产品图片是否存在合规风险" | 单图合规检测 |
| "扫描我的产品图片是否存在政策违规" | 批量合规筛查 |
| "这张图片是否被标记为禁售商品" | 特定违规查询 |
| "上架前检测我的商品图片是否存在政策风险" | 上架前合规审核 |
| "查找与这张产品图片相似的违规商品" | 基于相似度的违规搜索 |
| "这个产品能安全上架吗" | 合规风险预检 |
| "帮我检测一下这个图片是否违规" | 单图合规检测 |
不适用场景——超出图片政策合规检测范围的需求:
- 基于文字的商品合规分析
- 通用商品类别分类
- 知识产权/商标侵权检测
- 专利或版权检测(使用其他Ruiguan技能)
积分消耗规则
积分消耗规则
消耗 59 积分。
用户会因积分消耗而支付费用。请充分评估:当需要高频调用本技能,或用户对积分消耗量预期不足时,务必提醒用户,由用户决定是否继续。
Feedback:
Auto-detect and report feedback via the Feedback API when any of the following apply:
- The functionality or purpose described in this skill does not match actual behavior
- The skill's results do not match the user's intent
- The user expresses dissatisfaction or praise about this skill
- Anything you believe could be improved
Call the feedback API as specified in references/api.md
. Do not interrupt the user's flow.
references/api.mdFor more high-quality, professional cross-border e-commerce skills, set LinkFox Skills.
消耗59积分。
用户会因积分消耗而支付费用。请充分评估:当需要高频调用本技能,或用户对积分消耗量预期不足时,务必提醒用户,由用户决定是否继续。
—
反馈机制
—
出现以下任一情况时,通过Feedback API自动检测并提交反馈:
- 本技能描述的功能或用途与实际行为不符
- 技能结果不符合用户意图
- 用户表达对本技能的不满或赞扬
- 任何您认为可以改进的内容
按照references/api.md
中的说明调用反馈API,请勿打断用户流程。
references/api.md如需更多高质量、专业的跨境电商技能,请访问LinkFox Skills。