sbt-product-query

Tool for bulk querying SBT (sinobestech.com.hk) product models, limited to extracting product descriptions and brand information and exporting the results to an Excel file.

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 "sbt-product-query" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-b011e2fc607e7a9f9de45a8872d054176457d4f55b332ce5eea79d97f9dca28b. Verify the upstream source and version against https://skillhub.cn/skills/user_4b76bf15/sinobest-partnumber-query 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

Tool for bulk querying SBT (sinobestech.com.hk) product models, limited to extracting product descriptions and brand information and exporting the results to an Excel file.

0 Downloads

Introduction source: third_party · user_4b76bf15 · 1.3.1 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Inputs and outputs
Translation pending; see source documentation.
Software, accounts and paid services
Translation pending; see source documentation.
Limits and differences
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: sbt-product-query
version: 1.3.1
description: 批量查询 SBT (sinobestech.com.hk) 产品型号,只提取描述和品牌,输出 Excel
triggers:
  - 查型号
  - 查SBT
  - sinobestech
  - 批量查型号
  - 查一下
  - SBT型号
  - 型号查询
  - 上传 Excel
  - 从 Excel 查型号
  - 文件查询
agent_created: true

SBT 产品型号批量查询(简化版)

批量查询 sinobestech.com.hk (SBT Greater China Limited) 网站的产品型号,只提取产品描述和品牌,自动输出 Excel 表格。

与完整版不同,此版本直接使用 SBT 站内搜索,不需要抓取所有分类页面,因此速度更快、输出更简洁。

触发条件

当用户提到以下关键词时触发:

  • "查型号"、"查SBT"、"批量查型号"、"sinobestech"、"查一下 XX型号"、"SBT型号"、"型号查询"
  • "上传 Excel"、"从 Excel 查型号"、"文件查询"
  • 用户直接给出一组存储产品型号(如 ST4000DM004, MZQL27T6HBLA-00A07 等)
  • 用户上传包含型号列的 Excel 文件

输入格式

用户在对话中提供型号列表,或上传 Excel 文件。

文本输入

支持以下格式:

  • 逗号分隔:ST1000VX013 P, CT32G56C46S5T
  • 换行分隔:每行一个型号
  • 混合格式

注意:型号内部的空格会被保留(例如 ST1000VX013 P 视为一个型号),因此不再用空格作为多个型号的分隔符。

Excel 输入

上传 .xlsx 文件,要求:

  • 第一行为表头
  • 包含一个型号列,列名会被自动识别(不区分大小写),支持: 料号、Part No.、PartNo、Part Number、型号、Model、PN、Part # 等
  • 从第二行开始为型号数据

如果系统无法识别型号列,会列出当前表头并提示支持的列名。

工作流程

  1. 解析输入:从用户消息或上传的 Excel 中提取所有型号(逗号/换行分隔)
  2. 站内搜索:对每个型号直接调用 SBT 网站搜索,获取结果页面
  3. 后缀回退:如果完整型号未找到,依次尝试去掉最后一个空格后缀或连字符后缀再查
    • 空格后缀:ST1000VX013 P → ST1000VX013
    • 连字符后缀:WUH722424ALE6L4-0F62796 → WUH722424ALE6L4
  4. 提取信息:从搜索结果表格中读取产品描述和品牌
  5. 输出 Excel:结果写入 Excel 文件,未找到的型号标记为"未找到";回退查到的型号作为新增行,序号标记为 1-1、2-1 等
  6. 展示结果:通过 present_files 将 Excel 文件呈现给用户

输出字段

列名 说明
序号 输入顺序(从 1 开始)。若触发了后缀回退,新增行的序号为 1-1、2-1 等
型号 (Part No.) 产品型号
描述 (Description) 产品规格描述
品牌 (Brand) 制造商
状态 "找到" 或 "未找到"

环境准备

首次使用前,安装 Python 依赖:

pip install -r ~/.workbuddy/skills/sbt-product-query/requirements.txt

依赖包:requests、beautifulsoup4、openpyxl、lxml。

执行命令

文本模式

python ~/.workbuddy/skills/sbt-product-query/scripts/sbt_query.py \
  --partnos "ST4000DM004,ST8000DM004,MZQL27T6HBLA-00A07" \
  --output "SBT查询结果.xlsx"

Excel 模式

python ~/.workbuddy/skills/sbt-product-query/scripts/sbt_query.py \
  --file "型号列表.xlsx" \
  --output "SBT查询结果.xlsx"

注意事项

  • 每次查询直接调用 SBT 站内搜索,确保信息最新
  • 查询速度取决于型号数量,每型号约 1-3 秒
  • 型号匹配为精确匹配或包含匹配;如果搜索返回多个结果,取第一个匹配项
  • 后缀回退:完整型号未找到时,依次尝试去掉最后一个空格后缀(ST1000VX013 P → ST1000VX013)或连字符后缀(WUH722424ALE6L4-0F62796 → WUH722424ALE6L4)。原型号行保留,回退命中结果作为新增行输出
  • 网站数据可能更新,如有疑问建议在网站上二次确认

Current listing version

1.3.1

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value65/100

Highlights

  • 提供批量查询 SBT 产品型号的实用功能,解决用户在采购、库存管理等场景下的实际需求
  • 支持多种输入格式(文本、Excel)和触发方式,提升使用便利性
Trigger Precision85/100

Highlights

  • 触发词覆盖全面,包括关键词、文件上传等多种触发方式,边界清晰
Structure and Standards90/100

Highlights

  • 文档结构清晰完整,包含触发条件、输入格式、工作流程、输出字段、环境准备、执行命令等章节
  • 提供了详细的输入格式说明和执行示例,便于用户理解和使用
Execution Reliability75/100

Areas to improve

  • 异常处理未完全覆盖 Reported severity: Minor

    未明确说明网络请求失败、网站结构变更等异常情况的处理方式

    Recommendation: 建议补充网络异常、网站结构变更等场景的处理说明,提升执行可靠性

Evidence Verifiability (mean of the first four)79/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.

  • Install or fetch external dependencies

    Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.

    Mentioned in main document · lines 82

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.

Translation pending; see source documentation.

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