product-query-service

Product query service: search products by model or brand, view best-seller rankings, check compatible models and inventory status.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "product-query-service" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-76fddbc118ad662021547661ecd7e667f3e1dbb226986c16469fd78d90cf8994. Verify the upstream source and version against https://skillhub.cn/skills/user_d8831e99/product-query-service before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Product query service: search products by model or brand, view best-seller rankings, check compatible models and inventory status.

0 Downloads

Introduction source: third_party · user_d8831e99 · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: product-query-service
slug: product-query-service
displayName: 产品查询服务
description: 产品查询服务 — 按型号/品牌查产品、查热销排行、查兼容型号、查库存状态
version: 1.0.0
author: AtomCode
tags: [产品, 查询, 数据, 对外服务]

产品查询 Skill

查询我们电脑里的产品数据库(535个SKU + Top30热销)。 所有智能体共享,可直接调用。


查询接口

1. 查产品(product_query)

按手机型号或品牌名查询匹配的产品。

用法: product_query q="Mate60Pro"
返回: 匹配的产品列表(编号/型号/品牌/系列/兼容型号)

2. 查热销(top_selling)

查询销量最高的产品。

用法: top_selling limit=10
返回: 热销排行(排名/名称/销量/金额/评级)

3. 查兼容型号(compatible_models)

查询某个手机型号兼容的所有产品。

用法: compatible_models model="iPhone16"
返回: 兼容的产品列表

4. 查库存(stock_status)

查询某个产品的库存状态。

用法: stock_status product_id="A09"
返回: 有货/缺货状态

数据文件

文件 路径
产品数据库 JSON ~/Desktop/学习池/product-query-service/product_db.json
热销数据 JSON ~/Desktop/学习池/product-query-service/top30_sales.json
MCP 服务脚本 ~/Desktop/学习池/product-query-service/mcp_server.py

调用示例

内部调用(直接读 JSON)

import json
with open('~/Desktop/学习池/product-query-service/product_db.json') as f:
    products = json.load(f)
# 搜索 iPhone 相关产品
results = [p for p in products if 'iphone' in p['model'].lower()]

外部调用(启动 MCP 服务)

cd ~/Desktop/学习池/product-query-service
python3 mcp_server.py
# 然后通过 HTTP 查询
curl http://localhost:8080/product_query?q=iPhone

关联资源

  • 产品数据查询服务对外接口方案 — Obsidian/01-项目/总策划/产品数据查询服务_对外接口方案_v1.0_2026-07-17.md
  • 产品型号总表 — Obsidian/01-项目/补货系统/01-产品型号总表.md

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 提供产品查询、热销排行、兼容型号、库存状态等核心业务功能
  • 面向535个SKU + Top30热销的明确数据场景,实用价值高
  • 支持内部直接调用和外部MCP服务集成,使用灵活
Trigger Precision88/100

Highlights

  • description清晰覆盖按型号/品牌查产品、查热销排行、查兼容型号、查库存状态等核心能力
  • 触发词精准,边界清晰,用户易于理解和使用
Structure and Standards75/100

Areas to improve

  • 缺少 When to Use 章节和端到端完整示例 Reported severity: Minor

    文档结构良好但未提供明确的使用场景说明和从查询到结果使用的完整流程示例

    Recommendation: 建议补充 When to Use 章节说明典型使用场景,并提供端到端完整示例(如从启动服务到查询结果的完整流程)

Highlights

  • 文档结构清晰,分查询接口、数据文件、调用示例等部分
  • 每个接口都有用法和返回说明,frontmatter完整
Execution Reliability70/100

Areas to improve

  • 异常处理机制未覆盖 Reported severity: Minor

    未提及文件不存在、网络错误、参数无效等常见异常的处理机制

    Recommendation: 建议在文档中补充异常处理说明,如文件路径错误、服务启动失败、参数无效等情况的处理方式

Highlights

  • 工具来源明确(JSON文件 + MCP服务脚本),参数说明清晰
  • 提供了内部调用和外部调用的具体示例
Evidence Verifiability (mean of the first four)80/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • localhost

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.