数据清洗 logo

数据清洗

Community
ycc77cn
数据清洗

任何司法、取证、数据清洗、与数据整理的相关工作都应该被触发

Overview

Publisherycc77cn
Repositoryskills
Skill name数据清洗
Stars
55
Forks
20
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by ycc77cn on GitHub. Read the source before you install it.

Installation

Install the 数据清洗 AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/ycc77cn/skills/tree/main/电子取证/数据清洗-取证数据
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.

Use it in TypingMind

Enable 数据清洗 in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads 数据清洗 on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so 数据清洗 is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

技能名称:数据清洗

技能概述

对电子取证中获取的海量原始数据进行清洗、整理和标准化处理,去除噪声数据、修复格式问题、统一数据结构,为后续的分析和报告提供高质量的数据基础。数据清洗是连接"数据采集"和"数据分析"之间的关键桥梁。


核心能力

1. 数据去重与合并

  • 文件级去重:
    • 通过文件哈希(MD5、SHA-256)识别完全相同的文件,自动去重
    • 通过文件内容相似度比对识别近似重复文件(如多份略有修改的合同)
    • 通过文件头+大小快速筛选疑似重复文件
  • 记录级去重:
    • 对数据库记录、表格行、日志条目等进行去重
    • 基于多字段组合判重(如"时间+来源+内容")
    • 保留最新或最完整的记录,标记并归档重复项
  • 数据合并:
    • 将来自不同设备、不同来源的同类数据合并为统一格式
    • 合并时处理字段名不一致、编码不一致的问题
    • 生成合并映射表,记录每条数据的原始来源

2. 格式统一与标准化

  • 编码转换:
    • 统一字符编码(UTF-8、GBK、GB2312 等互转)
    • 修复乱码数据(通过编码检测和自动纠正)
  • 日期时间标准化:
    • 统一时间格式(如全部转为 ISO 8601 格式)
    • 统一时区(将不同时区的时间戳转换为标准时间)
    • 处理多种日期格式(2024-01-01、2024/1/1、Jan 1 2024 等)
  • 电话号码标准化:
    • 统一国内/国际号码格式
    • 去除分隔符和前缀(+86、0086 等)
    • 补全区号
  • 金额标准化:
    • 统一货币单位
    • 处理不同精度的金额(保留两位小数)
    • 识别并转换大写金额(壹万贰仟元整 → 12000.00)
  • 地址标准化:
    • 统一地址格式(省-市-区-街道-门牌号)
    • 修正错别字和简称(如"北京"→"北京市")

3. 异常值检测与处理

  • 数值异常:
    • 识别超出合理范围的数值(如年龄为 200 岁、金额为负数)
    • 识别极端离群值(如交易金额是平均值的 1000 倍)
    • 标记异常值,支持手动确认或自动修正
  • 时间异常:
    • 识别不可能的时间(如 1970 年、未来时间)
    • 识别时间顺序颠倒的记录
    • 检测时间间隔异常(如两笔交易间隔仅 1 毫秒)
  • 文本异常:
    • 识别包含乱码的文本
    • 识别异常长或异常短的文本
    • 识别包含特殊控制字符的文本
  • 逻辑异常:
    • 识别违反业务逻辑的记录(如退款金额大于支付金额)
    • 识别字段间矛盾的记录(如性别为"男"但称呼为"女士")

4. 缺失值处理

  • 缺失值检测:
    • 统计各字段的缺失率和缺失模式
    • 区分"完全随机缺失"和"有规律缺失"
    • 生成缺失值报告
  • 缺失值填充策略:
    • 数值型:均值/中位数/众数填充、前后值插值填充
    • 文本型:标注为"未知"、从关联字段推断
    • 时间型:从上下文时间推断、标记为待确认
    • 关键字段:不自动填充,标记为需人工确认
  • 缺失值删除:
    • 对缺失关键字段的记录进行标记或删除
    • 记录删除原因和数量

5. 数据质量评估

  • 完整性评估:评估数据的完整程度(字段填充率、记录完整率)。
  • 准确性评估:通过交叉验证评估数据的准确性。
  • 一致性评估:检查不同数据源之间的数据是否一致。
  • 时效性评估:评估数据的时间覆盖范围和更新频率。
  • 唯一性评估:检查数据中是否存在重复记录。
  • 生成数据质量报告:包含各项评分和改进建议。

6. 数据脱敏与保护

  • 敏感字段识别:自动识别身份证号、手机号、银行卡号、密码等敏感字段。
  • 脱敏处理:
    • 身份证号:保留前3后4位,中间用 * 替代
    • 手机号:保留前3后4位
    • 银行卡号:保留后4位
    • 姓名:保留姓,名用 * 替代
    • 地址:保留省市,详细地址用 *** 替代
  • 脱敏映射表:生成脱敏前后的映射关系表,在合法授权下可还原。

适用场景

  • 多设备取证数据合并后的清洗整理
  • 数据库导出数据的格式标准化
  • 日志数据的去重和异常值处理
  • 跨平台数据(手机+电脑+云端)的统一格式化
  • 取证分析前的数据预处理

输出成果

  • 清洗后的数据文件(CSV/Excel/JSON/数据库)
  • 数据清洗报告(含清洗规则、处理记录、统计信息)
  • 数据质量评估报告(含各项质量评分)
  • 去重记录清单(含重复项和保留项)
  • 异常值标记清单
  • 脱敏映射表(如适用)

触发条件

  • 任何司法与取证工作都应该被触发
  • 涉及数据清洗与预处理时触发
  • 需要整理和标准化取证数据时触发
  • 刑事案件中需要清理证据数据时触发
  • 企业数据质量分析时触发
  • 大数据分析前的数据准备时触发
  • 数据导入前的清洗时触发

Frequently asked questions

What does the 数据清洗 AI skill do?

任何司法、取证、数据清洗、与数据整理的相关工作都应该被触发

Why use 数据清洗 on TypingMind?

Because you install it once and use it with any model. 数据清洗 is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install 数据清洗 in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/ycc77cn/skills/tree/main/电子取证/数据清洗-取证数据. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use 数据清洗?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with 数据清洗?

As many as you like. As long as a model supports skills, you can use 数据清洗 with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the 数据清洗 AI skill free?

Yes. It is published on GitHub by ycc77cn under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇