xiepro-beschannels-legacy-clean
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 "xiepro-beschannels-legacy-clean" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-4bffedb17485bcb73d321e6149ab527bed436bd720028b85aaa0e838491c7cfd. Verify the upstream source and version against https://skillhub.cn/skills/user_9f2dfcc6/xiepro-beschannels-legacy-clean 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
Used to assist checking, explaining, validating, or preparing project-specific legacy customer data cleaning for BesChannels/Zhiqu Baichuan imports, focusing on Excel/CSV migration files (province-city, emails, phone numbers, position merging, dedupe keys, audit tables, and preparing CSV/XLSX outputs). Includes pre-cleaning Chinese confirmations, reusable field rule descriptions, preservation of source-data history, and post-cleaning validation.
Introduction source: third_party · user_9f2dfcc6 · 1.0.1 Reference
SkillPi interpretation
- Tasks
- 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.
- Inputs and outputs
- Prefer output names that make review easy: 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.
- Testing
- Not tested
Browse files
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.
Current listing version
1.0.1
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 解决企业级客户遗留数据清洗痛点,支持 BesChannels/Zhiqu Baichuan 导入
- 完整 AI 引导工作流:检查 → 确认 → 清洗 → 验证
- 保留源文件并提供审计输出,确保数据可追溯
Highlights
- 触发场景描述清晰,覆盖 Excel/CSV、省市、联系方式等关键要素
- 边界明确,专用于特定导入系统,避免误触发
Highlights
- Phase 划分清晰,含 First Response、Defaults、Dedupe Template
- 提供端到端示例:确认卡、输出命名、脚本调用
- frontmatter 完整,文档结构规范
Areas to improve
-
引用文件缺失 Reported severity: Minor
SKILL.md 引用了 references/province-city-rules.md 和 email-mobile-rules.md,但未传入
Recommendation: 请补充 references 目录下的规则文件,或明确说明其为外部依赖
Highlights
- 工具来源明确,参数正确,支持 UTF-8/GB18030 编码
- 清洗前需用户确认关键字段和去重逻辑,避免误操作
- 生成审计输出和摘要,确保清洗过程可验证
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.