← Back to Skills Marketplace
linhongbijkm-dot

海关知识产权备案查询

by linhongbijkm-dot · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
46
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install customs-ip-search
Description
海关知识产权备案查询。通过 Chrome 浏览器自动化访问海关总署备案查询系统(http://202.127.48.145:8888),查询品牌的海关保护备案状态,并提供风险评估和物流建议。当用户提到"查海关备案"、"品牌备案"、"海关备案查询"、"品牌合规筛查"、"知识产权海关备案"、"备案状态"等场景时使用。
README (SKILL.md)

海关知识产权备案查询

前置依赖

查询前按顺序检测并安装:

  1. Chrome 浏览器 — 运行检测:

    python3 scripts/customs_search.py --check-env
    

    若 chrome 字段为 false,提示用户安装 Chrome(https://www.google.com/chrome/),中止。

  2. Python 依赖 — 若 nodriver 字段为 false,安装:

    python3 scripts/customs_search.py --install-deps
    

    安装超时则自动切换清华镜像(https://pypi.tuna.tsinghua.edu.cn/simple)。

工作流

1. 识别品牌

从用户消息中提取品牌名称列表。示例:

  • "查一下 TRW 的备案" → ["TRW"]
  • "帮我查 NIKE ADIDAS PUMA" → ["NIKE", "ADIDAS", "PUMA"]

2. 逐条查询

对每个品牌,调用脚本执行查询:

# 如果 .venv 存在,使用 venv 的 Python
if [ -f scripts/../.venv/bin/python ]; then
  .venv/bin/python scripts/customs_search.py --brand "TRW"
else
  python3 scripts/customs_search.py --brand "TRW"
fi

简化判断:先用 --check-env 检测,返回的 venv_python 字段即为可用的 Python 路径。

脚本内部自动完成:

  • 检测 Chrome + Python 环境
  • 读取本地 CSV 缓存,判断是否需要在线查询
  • 缓存 \x3C 7 天 → 直接返回缓存结果
  • 缓存 ≥ 7 天或无缓存 → nodriver 启动 Chrome 在线查询
  • 在线查询结果自动写入 CSV

多个品牌串行查询,每次间隔 2 秒,避免被封 IP。

3. 解析结果

脚本输出 JSON,格式:

{
  "brand": "TRW",
  "source": "online|cache",
  "count": 4,
  "records": [
    {
      "查询品牌": "TRW",
      "权利名称": "TRW",
      "权利人名称": "TRW知识产权公司",
      "权利人国别": "美国",
      "权利号": "244497",
      "备案号": "T2016-50578",
      "权利类别": "国内注册",
      "商品分类": "第9类",
      "备案状态": "生效",
      "备案开始日期": "2026-02-28",
      "备案截止日期": "2036-02-27",
      "查询时间": "2026-05-25 18:00:00"
    }
  ],
  "risk": {
    "level": "high|medium|low",
    "emoji": "🔴|🟡|🟢",
    "label": "高风险|中风险|低风险",
    "advice": "物流建议文本"
  }
}

4. 通知用户

按品牌分组展示结果,格式:

🔍 TRW 查询结果(共 4 条,来源:在线)

🔴 高风险 — 品牌已备案生效,海关重点监控

1. TRW | TRW知识产权公司 | 美国 | T2016-50578 | 第9类 | 生效 | 2026-02-28 ~ 2036-02-27
2. TRW | TRW知识产权公司 | 美国 | T2016-50576 | 第9类 | 生效 | 2026-02-28 ~ 2036-02-27
...

⚠️ 物流建议:品牌已备案生效,海关重点监控。请确认货物是否有品牌授权书,无授权情况下退运/扣货风险极高。

5. 多品牌汇总

全部查询完毕后,如有多个品牌,给出汇总表格。

风险评估规则

备案状态 风险等级 建议
生效 🔴 高风险 确认是否有品牌授权,无授权退运/扣货风险极高
到期 🟡 中风险 曾有保护记录,存在追溯风险,谨慎处理
撤销/注销 🟢 低风险 常规通关,建议定期复查
无记录 🟢 低风险 通关风险较低

CSV 缓存

  • 文件:知识产权海关保护备案.csv(工作区根目录)
  • 编码:UTF-8 BOM
  • 表头:查询品牌,权利名称,权利人名称,权利人国别,权利号,备案号,权利类别,商品分类,备案状态,备案开始日期,备案截止日期,查询时间
  • 同一品牌多条备案按行存储
  • 过期判断:该品牌最新 查询时间 距今 ≥ 7 天则重新查询
  • 更新策略:重新查询后替换该品牌全部旧记录

注意事项

  • 每次查询约 15-20 秒(含 WAF 验证)
  • 不要并发查询,串行处理
  • 查询过程中会弹出 Chrome 窗口,查询完毕自动关闭
  • 需要能访问 202.127.48.145:8888
  • 如果脚本报错,检查 Chrome 和 Python 环境是否正常
Usage Guidance
Install only if you are comfortable with the skill creating or using a Python environment, downloading nodriver at runtime from a public package index or mirror, opening Chrome to the customs site, and saving searched brand names plus results in a local CSV. Prefer a version that pins dependencies, asks before installing packages, narrows activation phrases, and offers cache opt-out or deletion controls.
Capability Assessment
Purpose & Capability
The browser automation, customs-site network access, result parsing, risk assessment, and CSV caching are coherent with the stated customs intellectual-property filing lookup purpose.
Instruction Scope
The activation text includes broad phrases such as brand compliance screening and filing status, which could trigger external lookups and local caching in loosely related brand or compliance conversations.
Install Mechanism
The skill instructs the agent to run --install-deps when nodriver is missing; the script creates a .venv and runs pip install nodriver from PyPI or a Tsinghua mirror without pinning versions, hashes, or an explicit approval gate.
Credentials
Chrome automation and access to the listed customs URL are proportionate to the lookup workflow, but the runtime dependency installation materially expands the environment impact for a records-query skill.
Persistence & Privilege
The skill discloses a CSV cache in the workspace root or skill directory and updates brand query results there; this persistence is purpose-aligned but may retain sensitive business-search history.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install customs-ip-search
  3. After installation, invoke the skill by name or use /customs-ip-search
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
初始版本
Metadata
Slug customs-ip-search
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is 海关知识产权备案查询?

海关知识产权备案查询。通过 Chrome 浏览器自动化访问海关总署备案查询系统(http://202.127.48.145:8888),查询品牌的海关保护备案状态,并提供风险评估和物流建议。当用户提到"查海关备案"、"品牌备案"、"海关备案查询"、"品牌合规筛查"、"知识产权海关备案"、"备案状态"等场景时使用。 It is an AI Agent Skill for Claude Code / OpenClaw, with 46 downloads so far.

How do I install 海关知识产权备案查询?

Run "/install customs-ip-search" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is 海关知识产权备案查询 free?

Yes, 海关知识产权备案查询 is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does 海关知识产权备案查询 support?

海关知识产权备案查询 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created 海关知识产权备案查询?

It is built and maintained by linhongbijkm-dot (@linhongbijkm-dot); the current version is v1.0.0.

💬 Comments