jda20260977

Use pinyin-pro to convert Chinese company names and contacts into full pinyin and initial-letter search keys. Use when the user needs Hanzi-to-pinyin conversion, pinyin search keys, or pinyin-pro.

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 "jda20260977" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-2fd1072e77c3ff94ae16b3dec4bf880e9d9d4098ac25fb7962d05352a17f51ca. Verify the upstream source and version against https://skillhub.cn/skills/user_f1b049da/jda20260977 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 pinyin-pro to convert Chinese company names and contacts into full pinyin and initial-letter search keys. Use when the user needs Hanzi-to-pinyin conversion, pinyin search keys, or pinyin-pro.

0 Downloads

Introduction source: third_party · user_f1b049da · 1.0.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: jda20260977
slug: jda20260977
displayName: 汉字转拼音
version: 1.0.0
summary: 用 pinyin-pro 把公司名/联系人转全拼与首字母,增强 CRM 检索。
license: MIT
description: 用 pinyin-pro 将中文公司名、联系人转为全拼与首字母检索键。当用户要汉字转拼音、拼音检索键、pinyin-pro 时使用。

汉字转拼音(pinyin-pro)

灵感:能力工具箱 pinyin(pkg: pinyin-pro)。

小四原创:录入时生成 pinyin / pinyinInitials,搜索框可同时匹配中文与拼音。与队列后续「拼音检索键」可并存(本包偏字段生成)。

何时使用

  • 客户名、联系人要支持拼音搜
  • 通讯录排序按首字母
  • 导入后批量补检索键

硬约束

  1. 使用 pinyin-pro;多音字取库默认或业务词典覆盖。
  2. 同时产出:全拼(无音调、小写)与首字母串。
  3. 非汉字字符可原样保留或剔除,策略写清。
  4. 实现要点注释标 小四原创。
  5. 勿把拼音当唯一主键。

推荐实现

import { pinyin } from 'pinyin-pro'

// 小四原创:检索键
export function buildPinyinKeys(text: string) {
  const s = String(text || '').trim()
  if (!s) return { full: '', initials: '' }
  const full = pinyin(s, { toneType: 'none', type: 'array' })
    .join('')
    .toLowerCase()
    .replace(/\s+/g, '')
  const initials = pinyin(s, { pattern: 'first', toneType: 'none', type: 'array' })
    .join('')
    .toLowerCase()
  return { full, initials }
}

export function withSearchKeys<T extends { name: string }>(row: T) {
  const { full, initials } = buildPinyinKeys(row.name)
  return { ...row, pinyin: full, pinyinInitials: initials }
}

Agent 步骤

  1. 接入 pinyin-pro;保存客户时写检索键。
  2. 搜索:name.includes 或 pinyin.includes / pinyinInitials.startsWith。
  3. 自测:「张三」→ zhangsan / zs;公司名含英文时行为符合约定。

不要做

  • 用错误简繁转换冒充拼音。
  • 强制用户只按拼音录入中文名。

附加

Current listing version

1.0.0

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value78/100

Highlights

  • 解决 CRM 系统中汉字转拼音的实际痛点,支持拼音搜索与排序
  • 功能明确,适用于客户名、联系人等场景
Trigger Precision85/100

Highlights

  • 触发词精准,覆盖汉字转拼音、拼音检索键等核心场景
  • 边界清晰,不易误触
Structure and Standards75/100

Areas to improve

  • 缺少端到端用户交互示例 Reported severity: Minor

    文档缺少完整的输入输出样例,用户难以直观理解使用效果

    Recommendation: 补充如「输入:张三 → 输出:pinyin: zhangsan, pinyinInitials: zs」的完整示例

Highlights

  • 结构完整,包含何时使用、硬约束、实现步骤等必要章节
  • frontmatter 信息齐全,代码示例清晰
Execution Reliability72/100

Areas to improve

  • 多音字处理策略未详细说明 Reported severity: Minor

    硬约束提到多音字取库默认或业务词典覆盖,但未在实现中体现具体处理逻辑

    Recommendation: 补充多音字处理的具体实现或配置说明,确保执行一致性

Highlights

  • 工具来源明确(pinyin-pro),参数使用正确
  • 覆盖了空字符串等基本异常处理
Evidence Verifiability (mean of the first four)78/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.