customer-fingerprint

Generate customer fingerprints using company name + phone number + unified social credit code with a local SHA-256 algorithm to assist customer deduplication. Suitable for customer deduplication, fingerprint hash generation, and Web Crypto customer unique key scenarios.

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 "customer-fingerprint" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-3c4d25fde27925eb56da2fdbb5cee46747094bbc86dec7f42cd7aeef8597bc38. Verify the upstream source and version against https://skillhub.cn/skills/user_f1b049da/lmqs2026715 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

Generate customer fingerprints using company name + phone number + unified social credit code with a local SHA-256 algorithm to assist customer deduplication. Suitable for customer deduplication, fingerprint hash generation, and Web Crypto customer unique key scenarios.

0 Downloads

Introduction source: third_party · user_f1b049da · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Audience
Not specified in the source documentation.
Inputs and outputs
Not specified in the source documentation.
Software, accounts and paid services
Not specified in the source documentation.
Limits and differences
Not specified in the source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: customer-fingerprint
slug: lmqs2026715
displayName: 客户指纹去重
version: 1.0.0
summary: 用公司名+手机+信用代码本地 SHA-256 生成客户指纹,辅助去重。
license: MIT
description: 用公司名+手机+信用代码本地 SHA-256 生成客户指纹,辅助去重。当用户要客户去重、指纹哈希、Web Crypto 客户唯一键时使用。

客户指纹去重

灵感:能力工具箱 fingerprint(Web Crypto,无后端)。

把客户关键字段规范化后拼接,用 SHA-256 生成短指纹,用于本地查重(相同指纹视为疑似同一客户)。

何时使用

  • 新建客户前提示「可能已存在」
  • 导入列表前生成指纹索引

硬约束

  1. 使用 crypto.subtle.digest('SHA-256')(或注明不兼容环境的降级)。
  2. 规范化:公司名去空白与常见后缀;手机仅保留数字;信用代码转大写。
  3. 载荷格式固定:name|mobile|uscc(缺省段为空串)。
  4. 输出十六进制,默认截取前 32 位(可配置);截取规则写进文档。
  5. 指纹相同 ≠ 法律同一主体,仅作疑似重复提示。

推荐实现要点

export type FingerprintInput = { name: string; mobile?: string; uscc?: string }

function normalizeName(name: string) {
  return String(name || '')
    .replace(/\s+/g, '')
    .replace(/(有限公司|股份有限公司|有限责任公司|集团|公司)/g, '')
    .toLowerCase()
}

export async function buildCustomerFingerprint(input: FingerprintInput): Promise<string> {
  const payload = [
    normalizeName(input.name),
    String(input.mobile || '').replace(/\D/g, ''),
    String(input.uscc || '').toUpperCase(),
  ].join('|')
  const buf = await crypto.subtle.digest('SHA-256', new TextEncoder().encode(payload))
  return Array.from(new Uint8Array(buf))
    .map((b) => b.toString(16).padStart(2, '0'))
    .join('')
    .slice(0, 32)
}

Agent 步骤

  1. 实现指纹函数;建档前与本地索引比对。
  2. 自测:同名同号同码指纹一致;改一字则变化。
  3. HTTPS/安全上下文说明:非安全上下文可能无 subtle。

附加

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value78/100

Highlights

  • 解决企业客户管理中的实际去重痛点
  • 功能聚焦,适用于客户指纹生成、查重等明确场景
Trigger Precision85/100

Highlights

  • 触发描述清晰,覆盖客户去重、指纹哈希等核心场景
  • 边界定义明确,不易与其他 Skill 混淆
Structure and Standards68/100

Areas to improve

  • 引用文件缺失 Reported severity: Major

    SKILL.md 中引用了 README.md、reference.md、templates/usage.md,但未传入这些文件

    Recommendation: 请补充被引用的文件,或移除无效引用链接

Highlights

  • 文档结构清晰,包含使用场景、约束条件和实现要点
  • 提供了完整的 TypeScript 代码示例
Execution Reliability72/100

Areas to improve

  • 异常处理不完善 Reported severity: Minor

    未明确处理非安全上下文(HTTP)下 crypto.subtle 不可用的降级方案

    Recommendation: 建议补充非安全环境下的降级处理说明或错误提示

Highlights

  • 使用标准 Web Crypto API,参数处理规范
  • 字段规范化逻辑完整,覆盖常见业务场景
Evidence Verifiability (mean of the first four)76/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.

Not specified in the source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.