cpm20260717
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 "cpm20260717" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-ae831bedfe28d932bf10d0e9afe423e24f62d7399371326d0d9b2ac2cd21a12a. Verify the upstream source and version against https://skillhub.cn/skills/user_f1b049da/cpm20260717 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
Replace the middle four digits of mainland China 11-digit mobile numbers with asterisks for privacy display in lists and sharing.
Introduction source: third_party · user_f1b049da · 1.0.0 Reference
SkillPi interpretation
- Tasks
- In the CRM list, export preview, share text case, insert `13812345678` Show As `138****5678` , avoid the full number being explicitly revealed.
- 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
Frontmatter
name: cpm20260717
slug: cpm20260717
displayName: 手机号中间脱敏
version: 1.0.0
summary: 将中国大陆 11 位手机号中间四位替换为星号,用于列表与分享时的隐私展示。
license: MIT
description: 将中国大陆 11 位手机号中间四位替换为星号,用于列表与分享时的隐私展示。手机号中间脱敏
在 CRM 列表、导出预览、分享文案中,把 13812345678 显示为 138****5678,避免完整号码明文露出。
何时使用
- 用户要求「手机号脱敏」「隐藏中间四位」「列表里别露全号」
- 跟进记录、客户卡片需要可逆业务字段保留原文、仅展示层打码
硬约束
- 仅处理中国大陆 11 位、以
1开头的号码;其它输入原样返回并提示原因。 - 展示层打码,不要覆盖存储用的原始手机号字段。
- 打码格式固定:
前3 + **** + 后4。 - 成功/失败都要有可读提示(成功示例与失败原因)。
核心实现
export function maskCnMobile(input: string): { ok: boolean; value: string; message: string } {
const s = String(input ?? '').trim().replace(/[\s-]/g, '');
if (!/^1\d{10}$/.test(s)) {
return { ok: false, value: String(input ?? ''), message: '不是有效的 11 位大陆手机号,已原样返回' };
}
const value = `${s.slice(0, 3)}****${s.slice(7)}`;
return { ok: true, value, message: `已脱敏:${value}` };
}
验收
13812345678→138****5678,并提示成功138 1234 5678/138-1234-5678先归一化再打码12345、空串、固话 → 不打码,说明原因
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 解决手机号隐私展示的通用需求
- 适用于 CRM、导出、分享等多个业务场景
Highlights
- 触发描述清晰明确
- 覆盖多种用户表达方式
Highlights
- 结构完整,包含使用场景、约束条件和验收标准
- frontmatter 信息完整
Highlights
- 提供完整 TypeScript 实现
- 包含输入验证和错误处理机制
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.
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.
User discussion
No verified reviews yet.