nvt20269175

Use @faker-js/faker (Chinese locale) to bulk-generate demo customers/leads (company, contact, phone, source, stage). For simulating customer data, faker data generation, mock leads, and demo lists. Do not write to production databases.

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 "nvt20269175" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-fe7994636c691f32712b897209ad63205910de00a452ead694f4f5a401c200c6. Verify the upstream source and version against https://skillhub.cn/skills/user_f1b049da/nvt20269175 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 @faker-js/faker (Chinese locale) to bulk-generate demo customers/leads (company, contact, phone, source, stage). For simulating customer data, faker data generation, mock leads, and demo lists. Do not write to production databases.

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: nvt20269175
slug: nvt20269175
displayName: 模拟客户数据
version: 1.0.0
summary: 用 @faker-js/faker 中文一键生成演示客户与线索行,仅供界面联调。
license: MIT
description: 用 @faker-js/faker 中文 locale 批量生成演示客户/线索(公司、联系人、手机、来源、阶段)。当用户要模拟客户数据、faker 造数、Mock 线索、演示名单时使用。禁止写入生产库。

模拟客户数据(@faker-js/faker)

灵感:能力工具箱 faker-mock(pkg: @faker-js/faker)。

小四原创:一键造「看起来像真的」中文客户/线索行,给列表与筛选联调;与仅四字段客户表的造数 Skill 可并存,本包多 来源 + 阶段。

何时使用

  • 演示环境要一批客户/线索
  • 联调筛选、看板、分页不想连真库
  • 「faker 中文造数 / Mock 客户」

硬约束

  1. 仅演示:UI 标明「非真实客户」;默认禁止写入生产客户库。
  2. Locale:zh_CN(或等价中文包)。
  3. 默认字段:company contact mobile city source stage;批量默认 10,上限 50(超限二次确认)。
  4. 「换一批」默认整表替换。
  5. 纯本地生成,不请求外网假数据 API。
  6. 实现要点注释标 小四原创。

推荐实现

import { fakerZH_CN as faker } from '@faker-js/faker'

export type DemoLead = {
  id: string
  company: string
  contact: string
  mobile: string
  city: string
  source: string
  stage: string
  demo: true
}

const SOURCES = ['展会', '转介绍', '官网', '企微', '电话']
const STAGES = ['新建', '建联', '跟进', '报价', '成交']

// 小四原创:批量演示线索
export function mockDemoLeads(count = 10): DemoLead[] {
  const n = Math.min(50, Math.max(1, count | 0))
  return Array.from({ length: n }, () => ({
    id: faker.string.uuid(),
    company: faker.company.name(),
    contact: faker.person.fullName(),
    mobile: faker.phone.number({ style: 'national' }).replace(/\s/g, ''),
    city: faker.location.city(),
    source: faker.helpers.arrayElement(SOURCES),
    stage: faker.helpers.arrayElement(STAGES),
    demo: true as const,
  }))
}

Agent 步骤

  1. 接入 faker 中文;实现 mockDemoLeads。
  2. 按钮:生成 / 换一批;Toast「已生成 N 条演示数据」。
  3. 导出 JSON 可选;文件名带 demo- 前缀。
  4. 自测:中文公司名、手机形态合理、皆含 demo: true。

不要做

  • 把演示数据默认同步进生产 CRM。
  • 冒充真实成交客户做对外承诺。

附加

Current listing version

1.0.0

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value78/100

Highlights

  • 提供中文演示客户/线索批量生成能力,适用于演示环境、联调筛选等明确场景
  • 功能实用,能有效提升开发测试效率
Trigger Precision88/100

Highlights

  • 触发描述清晰,覆盖多种使用场景(模拟客户数据、faker 造数、Mock 线索、演示名单)
  • 边界明确,用户能准确理解适用场景
Structure and Standards75/100

Highlights

  • 文档结构清晰,包含完整的使用说明、约束条件和实现建议
  • frontmatter 完整,代码示例规范
Execution Reliability65/100

Areas to improve

  • Missing referenced files Reported severity: Major

    SKILL.md 引用了 README.md、reference.md、templates/usage.md,但 ZIP 包中未提供这些文件

    Recommendation: 请补充缺失的引用文件,或移除 SKILL.md 中的引用链接

Highlights

  • 核心实现逻辑完整,工具来源明确,参数处理合理
  • 有异常处理机制(数量限制和二次确认)
Evidence Verifiability (mean of the first four)77/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.