transaction-screening

Sanctions-list screening: query entities against public sanctions lists such as OFAC, EU, UK, HK without local deployment. Automatically downloads and caches lists from public URLs (30-day cache), supports fuzzy matching searches; can also perform batch transaction screening and produce HTML reports. Example use cases: check whether a company or individual appears on sanctions lists, search by source (OFAC/UK/EU), compare an entity against lists, perform batch transaction checks; allows adding new list sources by URL.

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 "transaction-screening" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-f104f8e53cd01760a93ac72d45db92e4a34a37fb599ad5cb8f388759f745bc45. Verify the upstream source and version against https://skillhub.cn/skills/user_96597d90/transaction-screening 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

Sanctions-list screening: query entities against public sanctions lists such as OFAC, EU, UK, HK without local deployment. Automatically downloads and caches lists from public URLs (30-day cache), supports fuzzy matching searches; can also perform batch transaction screening and produce HTML reports. Example use cases: check whether a company or individual appears on sanctions lists, search by source (OFAC/UK/EU), compare an entity against lists, perform batch transaction checks; allows adding new list sources by URL.

0 Downloads

Introduction source: third_party · user_96597d90 · 2.6.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: transaction-screening
description: |
  制裁名单搜索 — 在 OFAC/EU/UK/HK 等公开制裁名单中查询实体,无需本地部署。
  自动从公开 URL 下载并缓存名单(30天有效),支持模糊匹配搜索。
  也可用于批量交易筛查(生成 HTML 报告)。

  触发场景:
  - "查一下 XX 公司/XX 个人在不在制裁名单"
  - "搜索 XX 是否被 OFAC/UK/EU 制裁"
  - "对比 XX 和制裁名单"
  - "帮我对这批交易做调单核查"(批量模式)
  - "添加一个新名单源:URL 是..."
agent_created: true

Transaction Screening Skill — 制裁名单搜索

自动从公开 URL 拉取制裁名单,直接在 WorkBuddy 中搜索比对,零部署。

数据源

源 默认状态 条目数 自动拉取
OFAC SDN(美国) 已配置 ~19K ✅
OFAC Non-SDN(美国,补充)🆕 已配置 ~1.9K ✅
UK FCDO(英国) 已配置 ~11K(去重后) ✅
EU(欧盟) ✅ ~30K ✅
UN(联合国安理会) 🆕 ✅ ~1K ✅
INTERPOL(国际刑警红色通缉令) 🆕 ✅ ~6.4K ✅
HK CEDB(香港) ✅ ~1K(6个UN制度PDF) ✅
中国百名红通人员 🆕 ✅ 100(本地CSV) —
MPS 暴恐名单 🆕 ✅ 29(本地CSV) —
MPS 公安部A级通缉令 🆕 ✅ 159(本地CSV) —

全部 10 个源共 ~71.8K 条目。HK 为 PDF 格式,首次使用自动安装 pdfplumber。本地 CSV 数据源无需联网。

工作流 A:单实体搜索(主要模式)

用户说 "查 XX公司" → 按以下步骤:

Step 1:确保缓存存在

脚本在 <skill_dir>/scripts/ 下,用系统 python3 运行即可。

# 检查缓存状态
python3 <skill_dir>/scripts/search.py --sources

AI 助手会自动定位 skill 目录和 Python 解释器,无需手动指定路径。

如果缓存为空或缺少某个源,先拉取:

python3 <skill_dir>/scripts/fetch.py --source "OFAC SDN (美国制裁名单)"
python3 <skill_dir>/scripts/fetch.py --source "UK FCDO (英国制裁名单)"

Step 2:执行搜索

python3 <skill_dir>/scripts/search.py "用户输入的实体名" --top 10

Step 3:解读结果

  • ≥85% 🔴 高置信度 — 很可能命中,列出匹配详情
  • 60-84% 🟡 中等 — 可能相关,建议人工确认
  • 35-59% 🟢 低 — 大概率是字符串巧合
  • 无结果 — 该实体不在制裁名单中

如果用户说 "展示更多" 或 "只显示高置信度",调整 --top 和 --min-score 参数。

如果有高置信度匹配(≥60%),提示用户注意误报可能(如短音节拼音匹配)。

关于企业名称停用词过滤(v2.5)

中文企业名称中常见通用词(科技、信息技术、有限公司、国际、集团等 80+ 词)在计算相似度时会被自动剔除,避免「南京春雨灌溉科技有限公司」和「保利科技有限公司」因共享「科技有限公司」后缀而产生误报。

  • 剔除仅用于 token overlap 和 SequenceMatcher 评分
  • 精确匹配和子串匹配保留原文(不影响精准命中)
  • 中文→英文拼音桥接受 _STOP_SYLLABLES 独立控制,不受影响

关于拼音桥接(v2.5.1 词边界匹配)

search.py 默认启用拼音桥接,但做了四层过滤:

  1. 先剥离再滑窗: 对 pinyin 字符序列先剔除所有停用词跨度(城市名/企业后缀/噪声字),再对剩余有意义字符做滑动窗口
  2. 城市/地区名过滤: 北京/上海/深圳等 30+ 城市名 + 中国/香港等地区名的拼音加入 _STOP_SYLLABLES,避免「深圳XX」误匹配「SHENZHEN YY」
  3. 词边界匹配(\b): 拼音 token 必须在英语名中作为独立单词出现,而非词内碎片
    • kunlun 在「BANK OF KUNLUN CO LTD」→ 独立词 ✓
    • shishi 在「tarSHISHI」→ 嵌入长词 ✗
  4. 评分上限 0.45: 纯拼音匹配永远进 review 区间,不可能进 hit(≥85%)

批量筛查默认启用拼音,可用 --no-pinyin 关闭。

工作流 C:批量筛查(Excel → CSV + HTML 报告)

输入 Excel 文件(.xlsx),自动提取所有名称列,逐条搜索并输出:

<managed_python> <skill_dir>/scripts/batch_screen.py <input.xlsx> --html

输出:

  • CSV:每实体一行,含 verdict/score/matched_name/sources/top_matches
  • HTML 报告(--html):含统计面板、来源概览、逐实体匹配卡片、可折叠匹配详情

常用参数:

参数 说明 默认
-n N 每实体显示前 N 条匹配 3
-m 0.X 最低置信度阈值 0.35
--html 生成 HTML 报告 关闭
--pinyin 启用拼音桥接 开启(默认)
--no-pinyin 关闭拼音桥接 —
-o output.csv 指定输出路径 自动命名

工作流 B:添加新名单源

用户提供了新名单 URL → 用 fetch.py --add-url 拉取,会自动合并到搜索索引:

# 基本用法
<managed_python> <skill_dir>/scripts/fetch.py \
  --add-url "<URL>" --name "自定义名单名"

# CSV 需要指定参数时
<managed_python> <skill_dir>/scripts/fetch.py \
  --add-url "<URL>" --name "我的名单" \
  --name-field "entity_name" --delimiter "," --skip-rows 0

# 无 header 的 CSV
<managed_python> <skill_dir>/scripts/fetch.py \
  --add-url "<URL>" --name "无头CSV" \
  --csv-columns "id,name,type" --name-field "name"

自动合并: 新名单拉取后,后续所有 search.py 调用自动包含它。不需要额外操作。

本地文件也支持: 把 URL 换成本地路径即可,如 /path/to/my_list.csv。

参数速查

search.py

参数 说明 默认
query 搜索的实体名 必填
--top N / -n N 返回 N 条结果 10
--min-score M / -m M 最低置信度阈值 0.35
--json-only / -j 只输出 JSON -
--sources / -s 列出已加载数据源 -
--no-pinyin 禁用中文拼音桥接 -

fetch.py

参数 说明
--source "名称" 拉取指定预配置数据源
--add-url "URL" 拉取自定义 URL
--name "名称" 配合 --add-url 使用
--name-field "列名" CSV 中实体名的列名
--delimiter ";" CSV 分隔符
--skip-rows N 跳过前 N 行(如元数据行)
--csv-columns "a,b,c" 无 header CSV 的列名
--list / -l 列出已缓存的数据源
--purge 清除所有缓存后重新拉取

Current listing version

2.6.0

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 支持 OFAC/EU/UK/HK/UN/INTERPOL 等 10 个权威制裁名单源,覆盖 ~71.8K 条目
  • 提供单实体搜索与批量 Excel 筛查双模式,满足企业合规高频需求
  • 内置中文停用词过滤与拼音桥接机制,显著降低误报率
Trigger Precision90/100

Highlights

  • 触发词覆盖单查、批量、添加源等核心场景,边界清晰
  • 支持自然语言变体(如“调单核查”“对比制裁名单”)
Structure and Standards90/100

Highlights

  • 文档分工作流 A/B/C 结构清晰,含完整参数速查表
  • 提供端到端命令示例与输出解读标准(≥85% 高置信度等)
Execution Reliability75/100

Areas to improve

  • 关键异常处理缺失 Reported severity: Minor

    未显式处理网络拉取失败、PDF 解析异常、CSV 格式错误等场景

    Recommendation: 建议在 fetch.py 和 batch_screen.py 中添加 try-catch 块,对网络请求、文件解析等操作进行错误捕获与友好提示

Highlights

  • 缓存机制合理(30天有效期),避免重复拉取
  • 批量模式支持 HTML 报告输出,便于人工复核
Evidence Verifiability (mean of the first four)85/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.

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.