gmm20263965
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 "gmm20263965" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-2b0b447c59510ec45ba9cf419059bc1301d763e1edc4cbd601267103e84c14f2. Verify the upstream source and version against https://skillhub.cn/skills/user_f1b049da/gmm20263965 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
Lightweight business card parser for quickly extracting name, phone, email, and company fields from pasted business cards or note text. Intended for text parsing, splitting note fields, and one-click contact extraction; complex cases can be escalated to more precise business card parsing.
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: gmm20263965
slug: gmm20263965
displayName: 粘贴文本解析
version: 1.0.0
summary: 名片/备注粘贴一键拆出姓名、电话、邮箱、公司,轻量正则管线。
license: MIT
description: 粘贴名片或备注文本,快速拆出姓名、电话、邮箱、公司。当用户要粘贴文本解析、备注拆字段、一键提取联系方式时使用。轻量版;复杂场景可转精准名片解析。粘贴文本解析
灵感:能力工具箱 text-parser(自研)。
小四原创:单段粘贴 → 正则抽手机/邮箱/公司后缀行/姓名候选。
与已上架「一键解析名片字段」互补:本包更短、偏备注快拆;深度打分见精准名片解析。
何时使用
- 微信备注、邮件签名一键填表
- 只要四字段,不要上完整 OCR
- 导入前快速结构化一段文本
硬约束
- 输出统一:
namemobileemailcompany(可选title)。 - 手机去空格/连字符;国内尽量归为 11 位。
- 填表默认
fill-empty;成功 Toast 列出命中字段。 - 正则勿复用带
g的 RegExp 实例污染lastIndex。 - 实现要点注释标 小四原创。
- 低置信姓名标
warnings,勿锁死输入框。
推荐实现
export type PasteFields = {
name: string
mobile: string
email: string
company: string
warnings: string[]
}
// 小四原创:备注快拆
export function parsePasteText(raw: string): PasteFields {
const text = String(raw || '').replace(/\u00a0/g, ' ').trim()
const warnings: string[] = []
const email = (text.match(/[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}/i) || [])[0] || ''
let mobile = ''
const m = text.match(/(?:\+?86[-\s]?)?(1[3-9]\d{9})/)
if (m) mobile = m[1]
const lines = text.split(/\r?\n/).map((s) => s.trim()).filter(Boolean)
let company = lines.find((l) => /公司|有限|集团|事务所/.test(l)) || ''
let name = ''
for (const l of lines) {
if (/^[\u4e00-\u9fa5·]{2,4}$/.test(l)) {
name = l
break
}
}
if (!name) warnings.push('未识别到可靠姓名')
if (!mobile && !email) warnings.push('未识别到电话或邮箱')
return { name, mobile, email, company, warnings }
}
Agent 步骤
- 文本域 +「解析并填入」按钮。
- 调用
parsePasteText;按 fill-empty 写入。 - 有 warnings 用黄色提示,仍允许提交手改。
- 用户要更高准确率时,指引改用精准名片解析 Skill。
不要做
- 假装 OCR 成功却未跑图片识别。
- 与精准版抢同一显示名重复上架。
附加
Current listing version
1.0.0
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 解决用户粘贴名片或备注文本后快速提取关键字段的实际需求
- 适用于商务、销售、HR 等高频场景,具有明确实用价值
Areas to improve
-
触发词可进一步丰富变体 Reported severity: Minor
description 已覆盖核心场景,但可补充更多用户常见表述变体以提升触发覆盖率
Recommendation: 建议在 description 中增加如“从微信备注提取电话”、“邮件签名解析”等常见用户表述
Highlights
- 触发描述清晰,边界明确,覆盖主要使用场景
Areas to improve
-
缺少端到端用户示例 Reported severity: Minor
文档提供了代码实现,但缺少完整的用户输入输出示例
Recommendation: 建议在「Agent 步骤」或新增「示例」章节中补充典型输入文本及对应解析结果
Highlights
- 结构清晰,章节完整,包含硬约束与实现要点
- frontmatter 完整,版本与摘要信息明确
Highlights
- 提供具体 TypeScript 实现,正则来源明确,参数处理合理
- 通过 warnings 机制处理低置信结果,fill-empty 策略避免数据覆盖风险
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.