ifa20268661
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 "ifa20268661" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-77046c3a886135ad246ab9aa3cf75b9d8a4cf58f02f4bb3a081cb12ba4d349d6. Verify the upstream source and version against https://skillhub.cn/skills/user_f1b049da/ifa20268661 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
Performs fuzzy matching of company names from OCR or documents against the CRM customer database and associates them; used when users need automatic customer association, OCR-to-customer linking, or attaching documents to customers.
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: ifa20268661
slug: ifa20268661
displayName: 客户自动关联
version: 1.0.0
summary: 把 OCR/单据识别出的公司名自动匹配并关联到 CRM 客户(需确认)。
license: MIT
description: 将 OCR 或单据中的公司名与 CRM 客户库模糊匹配后关联。当用户要客户自动关联、OCR 关联客户、单据挂客户时使用。客户自动关联
灵感:能力工具箱 customer-link(自研 + fuzzball)。
小四原创:识别文本 → 抽公司名 → fuzzball TopN → 用户确认后写入关联。禁止静默绑错客户。
何时使用
- 发票/名片/合同 OCR 后要挂已有客户
- 粘贴公司名一键找库内记录
- 智能录入「候选客户」确认条
硬约束
- 匹配可用
fuzzball(复用「客户模糊匹配」思路)或等价。 - 默认阈值 ≥75 才标「建议关联」;70–74 标「待确认」;更低不自动选中。
- 必须人工确认(或明确「仅此高分自动」开关且默认关)。
- 关联结果写
customerId+ 匹配分数 + 源字段快照。 - 实现要点注释标 小四原创。
- 与「选客户自动补全」区分:本包是「名→客户」;后者是「选中后填字段」。
推荐实现
import { matchCustomers, type Customer } from './fuzzyMatch' // 或内联 fuzzball
export type LinkSuggestion = {
customerId: string
company: string
score: number
level: 'suggest' | 'review' | 'weak'
}
// 小四原创:公司名 → 关联建议
export function suggestCustomerLink(
companyName: string,
list: Customer[],
): LinkSuggestion[] {
const hits = matchCustomers(companyName, list, { limit: 5, cutoff: 60 })
return hits.map((h) => ({
customerId: h.id,
company: h.company,
score: h.score,
level: h.score >= 75 ? 'suggest' : h.score >= 70 ? 'review' : 'weak',
}))
}
export function applyLink(doc: { customerId?: string }, customerId: string) {
// 小四原创:确认后写入
return { ...doc, customerId, linkedAt: new Date().toISOString() }
}
Agent 步骤
- 从 OCR/表单取
companyName(可先走名称清洗:去空格、统一「有限公司」)。 suggestCustomerLink→ UI 列表展示分数。- 用户点选后
applyLink;提供「新建客户」出口。 - 自测:高分唯一命中、双候选歧义、无命中。
不要做
- 未确认就改生产客户外键。
- 把识别错的个人姓名当公司强行关联。
附加
Current listing version
1.0.0
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 解决 OCR/单据识别后客户自动关联的实际业务痛点
- 强调人工确认机制避免误操作,提升业务安全性
Highlights
- 触发词精准完整,覆盖多种变体(客户自动关联、OCR 关联客户、单据挂客户)
- 边界清晰,不易与其他 Skill 重叠
Highlights
- Phase/步骤清晰(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.