xiepro-beschannels-legacy-clean
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "xiepro-beschannels-legacy-clean":https://skillpi.com/zh/skills/deepskill-4bffedb17485bcb73d321e6149ab527bed436bd720028b85aaa0e838491c7cfd。安装前核对上游来源和版本:https://skillhub.cn/skills/user_9f2dfcc6/xiepro-beschannels-legacy-clean。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
skillhub.cn
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
用于协助检查、解释、验证或准备针对 BesChannels/智趣百川导入的项目特定客户遗留数据清洗,重点涉及 Excel/CSV 迁移文件的省-市、邮箱、手机号、职位合并、去重键、审计表及准备导入的 CSV/XLSX 输出,包括清洗前的中文确认、字段规则说明、保留源数据的历史清理与清洗后验证。
介绍来源: third_party · user_9f2dfcc6 · 1.0.1 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 输入和输出
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: xiepro-beschannels-legacy-clean
description: Use when Codex needs to help Xiepro or colleagues inspect, explain, validate, or prepare project-specific customer legacy data cleaning for BesChannels/Zhiqu Baichuan import, especially Excel/CSV migration files with province-city, email, mobile phone, job-title merge, dedupe keys, audit sheets, or import-ready CSV/XLSX outputs. Use for AI-guided Chinese confirmation before cleaning, reusable field-rule explanation, source-preserving historical data cleanup, and post-cleaning validation.Xiepro BesChannels Legacy Clean
Core Rule
Treat this as an AI-guided legacy-data cleaning workflow, not a blind one-click cleaner.
Before changing data, inspect the actual file and explain the plan in Chinese so a non-technical colleague can confirm it. Do not modify the source file. Prefer preserving every customer row and clearing only unsafe fields over weak guesses.
The bundled scripts are read-only inspection and validation tools. When actual cleaning is needed, generate or adapt a project-specific cleaning script after the user confirms fields, target import system, dedupe keys, and output format.
First Response Workflow
When a user gives a new customer file, do this first:
- Inspect the workbook or CSV with
scripts/inspect_workbook.pywhen possible. - Read only the needed references:
- Use
references/province-city-rules.mdfor省市,省,市,区,国家,地址, or BesChannels region import fields. - Use
references/email-mobile-rules.mdfor邮箱,手机号, phone-like fields, or import failures caused by contact fields.
- Use
- Reply in Chinese with a confirmation card before cleaning:
本次识别到的文件:
表/编码/行列数:
识别到的字段:
计划清洗的字段:
不会改动的字段:
拟采用的规则:
需要你确认的点:
预计输出:
The confirmation card must list the actual field names found in the file. Ask the user to confirm high-risk items: target system is still BesChannels, whether 手机号2 should be handled, whether dedupe is enabled, and the dedupe key if any.
Cleaning Defaults
- Preserve the original input file and write new output files.
- Preserve rows unless the user explicitly asks to remove or merge rows.
- If a value cannot be judged confidently, blank that field and record the reason in an audit output.
- Keep unrelated columns unchanged. If a reader or writer may affect untouched columns, run a source-vs-output check.
- Create a summary with counts for unchanged, repaired, blanked, merged, skipped, and suspicious values.
- Create an audit sheet or CSV for changed fields with row number, field, original value, cleaned value, action, and reason.
- For duplicate headers, distinguish them internally and ask before collapsing them into one output field.
- For dedupe, first clean the data, then dedupe only on user-confirmed keys. Do not dedupe on partially empty keys unless the user explicitly confirms that behavior.
Leica-Like Dedupe Template
When a file has 手机号, 邮箱, 单位, and 微信openid/openid, suggest this default in Chinese but ask before enabling it:
- Clean contact and region fields first.
- Dedupe on cleaned
手机号 + 邮箱 + 单位 + 微信openid/openid. - Dedupe only when the confirmed key fields are non-empty and identical, unless the user explicitly confirms a looser rule.
- Keep the first row as the master record.
- Merge tag/history fields such as
LMS原系统标签多行,微信标签, and(历史)工单编号by unique non-empty values. - For other fields, keep the first non-empty value and record conflicting non-empty values in a duplicate audit sheet.
- Never dedupe on this template without user confirmation.
BesChannels Field Rules
Use the references as source of truth, but keep these defaults visible in user explanations:
省市: BesChannels import expects one final field named省市; do not map国家,省,市,区,地址, or详细地址separately unless the user confirms a different target.- Province-city import values use half-width pipes. Examples:
浙江|杭州,浙江|杭州|西湖区,北京|朝阳,上海|浦东新区. - Remove
中国, detailed street addresses, building names, phone numbers, and page-display paths from省市. - Clear
省市for Hong Kong, Macau, Taiwan, overseas, implausible pairs, or uncertain addresses. 邮箱: repair only obvious import-safe defects, then keep only strict email values.手机号: keep only 11-digit mainland China mobile numbers matching^1[3-9]\d{9}$.手机号2: do not clean by default; ask before handling.
Scripts
Run scripts with UTF-8 enabled on Windows:
$env:PYTHONUTF8 = '1'
python scripts/inspect_workbook.py "D:\path\input.xlsx"
python scripts/validate_cleaned_output.py "D:\path\cleaned.csv" --source "D:\path\input.xlsx"
python scripts/validate_cleaned_output.py "D:\path\cleaned.csv" --encoding gb18030 --allow-row-count-decrease --expected-removed-rows 655
inspect_workbook.py is read-only. It reports sheets, row/column counts, headers, duplicate headers, empty columns, and likely cleaning fields.
validate_cleaned_output.py is read-only. It validates final headers, row-count changes, 省市, 邮箱, and 手机号 formats, detects suspicious encodings or mojibake headers, and reports suspicious columns or values.
Output Guidance
Prefer output names that make review easy:
<客户>-<批次>-清洗后可导入-<日期>.xlsx
<客户>-<批次>-清洗后导入-<日期>.csv
<客户>-<批次>-清洗审计-<日期>.xlsx
<客户>-<批次>-清洗摘要-<日期>.json
For BesChannels import CSV, default to GB18030 + CRLF unless the current project has verified UTF-8 BOM or another encoding. Always state the CSV encoding and line ending in the final answer.
当前收录版本
1.0.1
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 解决企业级客户遗留数据清洗痛点,支持 BesChannels/Zhiqu Baichuan 导入
- 完整 AI 引导工作流:检查 → 确认 → 清洗 → 验证
- 保留源文件并提供审计输出,确保数据可追溯
亮点
- 触发场景描述清晰,覆盖 Excel/CSV、省市、联系方式等关键要素
- 边界明确,专用于特定导入系统,避免误触发
亮点
- Phase 划分清晰,含 First Response、Defaults、Dedupe Template
- 提供端到端示例:确认卡、输出命名、脚本调用
- frontmatter 完整,文档结构规范
待提升项
-
引用文件缺失 原报告严重程度:轻微
SKILL.md 引用了 references/province-city-rules.md 和 email-mobile-rules.md,但未传入
改进建议:请补充 references 目录下的规则文件,或明确说明其为外部依赖
亮点
- 工具来源明确,参数正确,支持 UTF-8/GB18030 编码
- 清洗前需用户确认关键字段和去重逻辑,避免误操作
- 生成审计输出和摘要,确保清洗过程可验证
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。