Skip to content
Back to skills

Patent Map

ASecurity

专利地图:基于通俗解读已入库的 Obsidian 案例,点名后打开五种图。地形按 bge-small-zh 向量摊开。

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 17, 2026
ai-agentspythonbashrails

Works with

  • cli

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 19 files and shows the line behind each finding

Scanned November 17, 2026

npx -y skills add zrwangems/dsh-zrwang-plugin --skill patent-map --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Patent Map?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Patent Map
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/zrwangems-patent-map/badge)](https://www.skillsdirectory.com/skills/zrwangems-patent-map)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: patent-map
description: "专利地图:基于通俗解读已入库的 Obsidian 案例,点名后打开五种图。地形按 bge-small-zh 向量摊开。"
user-invocable: false
---
> [dsh-zrwang-plugin] 工作目录优先使用 `<当前项目根>/.agents/patent/` 下的对应子目录(oa / patent-map / obsidian_vault.txt),不要写 `~/Documents/patent-disclosure-skill`;Obsidian 库路径可用 `PATENT_READER_OBSIDIAN_VAULT` 覆盖。
# 专利地图

## 用途

把已经解读入库的案例摊成五种图(语义地形),给代理师找相近案子、看申请人重叠和文内引证。本包只读 vault、起本地页。空白点只表示「库里没读到」。

## 何时用

须用户点名(专利地图 / 案例地图 / `/专利地图` / `/patent-map`)。解读继续只入库。

## 输入

已有解读入库的 vault(与解读同一份:`PATENT_READER_OBSIDIAN_VAULT` 或 `~/.patent-disclosure-skill/obsidian_vault.txt`)。取数优先扫 `Research/Patents/**/*_解读_*.md`。若本机 `obsidian` CLI 可用且库已打开,用 `obsidian vaults` / `base:query` 核对,不替代磁盘扫描。

## 步骤

1. **`Read`** `prompts/guardrails.md` → `intake.md`
2. 确认库路径
3. 启动:

```bash
python ../patent-map/tools/serve_map.py
```

stdout 机读前缀:`MAP_URL:` / `MAP_PORT:` / `MAP_VAULT:` / `MAP_SOURCE:` / `MAP_CACHE:` / `MAP_MODEL:`。端口由系统随机分配(`127.0.0.1:0`)。对话里把 URL 发给用户。

地形图按解读短文向量摊开。加载名 `BAAI/bge-small-zh-v1.5`,磁盘只装 **Qdrant ONNX**(见 `prompts/guardrails.md` 取数)。数据与模型默认目录:`{Documents}/patent-disclosure-skill/patent-map/`(与 oa 同级)。未装 `fastembed` 时图仍能开,地形退回 IPC 簇。

可选:

```bash
pip install -r ../patent-map/tools/requirements.txt
python ../patent-map/tools/ensure_model.py
```

单独拷走本包时:`python tools/serve_map.py`。

## 护栏

- 细则 `prompts/guardrails.md`。地图脚本只用本包 `tools/`;解读笔记直接读 vault 文件。

## 产出物

本机页面 URL(`MAP_URL`)。索引与模型在 `{Documents}/patent-disclosure-skill/patent-map/`。本包**不设**「交付后请确认」。

Files in this skill

  • README.md1.3 KB
  • SKILL.md2.3 KB
  • data/ipc_subclasses_2026.01.csv86.7 KB
  • prompts/guardrails.md2 KB
  • prompts/intake.md934 B
  • tools/embed_layout.py7.7 KB
  • tools/ensure_model.py411 B
  • tools/ipc_scheme/README.md2.2 KB
  • tools/ipc_scheme/__init__.py68 B
  • tools/ipc_scheme/__main__.py83 B
  • tools/ipc_scheme/build.py447 B
  • tools/ipc_scheme/cli.py2 KB
  • tools/ipc_scheme/config.py2.8 KB
  • tools/ipc_scheme/download.py5.9 KB
  • tools/ipc_scheme/emit.py887 B
  • tools/ipc_scheme/parse.py5.7 KB
  • tools/ipc_scheme/requirements.txt112 B
  • tools/ipc_scheme/testdata/sample_en_scheme.xml781 B
  • tools/ipc_scheme/testdata/sample_ipcpub.json123 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.