lcq20264575
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 "lcq20264575" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-f58760587d0b5b35153c7582c7edb9fa028b41dea21be3b1ce2203a3e9af97be. Verify the upstream source and version against https://skillhub.cn/skills/user_f1b049da/lcq20264575 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
Use fuzzball to perform fuzzy similarity matching on customer databases to assist deduplication and association during customer entry; intended for use when users need customer fuzzy matching or company-name similarity.
Introduction source: third_party · user_f1b049da · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: lcq20264575
slug: lcq20264575
displayName: 客户模糊匹配
version: 1.0.0
summary: 用 fuzzball 按公司名/简称/联系人从客户库找最相似记录。
license: MIT
description: 用 fuzzball 对客户库做模糊相似度匹配,辅助录入去重与关联。当用户要客户模糊匹配、fuzzball、公司名相似度时使用。客户模糊匹配(fuzzball)
灵感:能力工具箱 fuzzy-match(pkg: fuzzball)。
小四原创:输入公司名/联系人 → 对本地客户列表算相似度 TopN;与 Fuse.js 全文检索互补(本包偏「像不像」打分)。
何时使用
- 新建客户前查重
- OCR/粘贴公司名自动关联已有客户
- 简称、错别字、多写了「有限公司」仍要命中
硬约束
- 使用
fuzzball(如token_set_ratio/extract)。 - 默认阈值(如 ≥70)可配置;低于阈值标「无可靠命中」。
- 匹配字段至少:
company、contact(可加权或分别跑)。 - 库过大(>5k)提示先按首字/城市缩小候选,再 fuzz。
- 实现要点注释标 小四原创。
- 与
fuse-local-search区分:Fuse 偏搜索列表;fuzzball 偏相似度排名。
推荐实现
import fuzz from 'fuzzball'
export type Customer = { id: string; company: string; contact?: string }
// 小四原创:TopN 相似客户
export function matchCustomers(
query: string,
list: Customer[],
opts?: { limit?: number; cutoff?: number },
) {
const q = String(query || '').trim()
if (!q) return []
const limit = opts?.limit ?? 5
const cutoff = opts?.cutoff ?? 70
const choices = list.map((c) => c.company)
const hits = fuzz.extract(q, choices, {
scorer: fuzz.token_set_ratio,
limit,
cutoff,
}) as Array<[string, number, number]>
return hits.map(([company, score, idx]) => ({
...list[idx],
company,
score,
}))
}
Agent 步骤
- 接入 fuzzball;封装
matchCustomers。 - 输入防抖 200–300ms;展示 Top 结果与分数。
- 「选用」回填客户 id;无命中引导新建。
- 自测:全称 vs 简称、多写「有限公司」、完全无关词。
不要做
- 分数未达阈值仍自动覆盖已有客户。
- 把全库明文发到第三方相似度 API(默认本地)。
附加
Current listing version
1.0.0
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 解决客户录入去重与关联的实际业务痛点
- 使用 fuzzball 实现模糊相似度匹配,具有明确的高频刚需场景
Highlights
- 触发词明确且覆盖合理:客户模糊匹配、fuzzball、公司名相似度
Highlights
- 文档结构完整,包含何时使用、硬约束、推荐实现、Agent 步骤等章节
- 提供端到端 TypeScript 示例,frontmatter 完整
Highlights
- 工具来源明确(fuzzball),参数正确,覆盖主要异常
- 不可逆操作有确认机制,避免自动覆盖已有客户
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.
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.
User discussion
No verified reviews yet.