Skills Plugins MCP Prompt Model 博客 我的中心

data-clean

Clean a CSV/TSV/Excel file - fix headers, trim whitespace, remove duplicates, validate

DeepseekModel 官方收录技能 质量 优秀 · 90 v1.0.0

获取

https://deepseekmodel.com/api/download.php?id=dathere-qsv-claude-skills-skills-data-clean-skill-md&format=skill
下载 .skill 标准格式,含 system_prompt 与 model_config,导入任意 Agent 框架即可使用
.skill 文件中 system_prompt 字段的实际内容。
name data-clean description Clean a CSV/TSV/Excel file - fix headers, trim whitespace, remove duplicates, validate user-invocable true argument-hint <file> allowed-tools ["mcp__qsv__qsv_sniff","mcp__qsv__qsv_count","mcp__qsv__qsv_headers","mcp__qsv__qsv_index","mcp__qsv__qsv_stats","mcp__qsv__qsv_sqlp","mcp__qsv__qsv_command","mcp__qsv__qsv_list_files","mcp__qsv__qsv_search_tools","mcp__qsv__qsv_get_working_dir","mcp__qsv__qsv_set_working_dir"] Data Clean Clean the given tabular data file by fixing common data quality issues. Cowork note: If relative paths don't resolve, call mcp__qsv__qsv_get_working_dir and mcp__qsv__qsv_set_working_dir to sync the working directory. Steps Index : Run mcp__qsv__qsv_index on the file for fast random access in subsequent steps. Assess current state : Run mcp__qsv__qsv_sniff and mcp__qsv__qsv_count to understand the file format and size. Profile for cleaning decisions : Run mcp__qsv__qsv_stats with cardinality: true, stats_jsonl: true . Read .stats.csv to decide which cleaning steps are needed: Stats Column What It Reveals Cleaning Action nullcount , sparsity Missing values per column If sparsity > 0.5, decide: impute, drop column, or flag cardinality vs row count Duplicate rows exist if any key column has cardinality < row count Run dedup min_length , max_length String length variation Large gap suggests ragged data or embedded whitespace sort_order Whether data is pre-sorted Use dedup --sorted for streaming mode if sorted mode , mode_count Dominant values If mode_count > 80% of rows, investigate data entry defaults type Inferred types String columns that should be numeric indicate format issues Check headers : Run mcp__qsv__qsv_headers to inspect column names. If names contain spaces, special characters, or are duplicated, plan to use safenames . Build cleaning steps : Apply these operations in order (skip any that aren't needed based on assessment): a. safenames - Normalize column names to safe, ASCII-only identifiers (removes spaces, special chars, ensures uniqueness) b. fixlengths - Ensure all rows have the same number of fields (pads short rows, truncates long rows) c. sqlp - Remove leading/trailing whitespace from columns using TRIM() . Example: SELECT TRIM(col1) AS col1, TRIM(col2) AS col2 FROM _t_1 . d. dedup - Remove exact duplicate rows. Loads all data into memory and sorts internally. Use --sorted if input is already sorted to enable streaming mode with constant memory. e. validate - If a JSON Schema is available, validate against it and report violations. Verify results : Run mcp__qsv__qsv_count on the output to confirm row count. Run mcp__qsv__qsv_stats with cardinality: true to verify improvements. Report changes : Summarize what was cleaned: Headers renamed (before -> after) Rows with wrong field count (fixed by fixlengths) Duplicate rows removed Whitespace trimmed Cleaning Steps Call each tool sequentially, passing the output of one step as input to the next: mcp__qsv__qsv_command with command: "safenames" , input_file: "<file>" , output_file: "step1.csv" mcp__qsv__qsv_command with command: "fixlengths" , input_file: "step1.csv" , output_file: "step2.csv" mcp__qsv__qsv_sqlp with input_file: "step2.csv" , sql: "SELECT TRIM(col1) AS col1, TRIM(col2) AS col2, ... FROM _t_1" , output_file: "step3.csv" (list all columns with TRIM) mcp__qsv__qsv_command with command: "dedup" , input_file: "step3.csv" , output_file: "<output>" Notes Always preserve the original file - write output to a new file For large files (> 100MB), dedup loads entire file into memory to sort and deduplicate; consider using sqlp with SELECT DISTINCT instead safenames uses --mode conditional by default (only renames if needed) If the user specifies particular columns to clean, use column selection syntax instead of cleaning all columns dedup loads all data into memory and sorts internally; if input is already sorted, use --sorted for streaming mode Use mcp__qsv__qsv_search_tools to find additional cleaning tools if needed (e.g., replace for regex substitution)
Agent 识别该技能的关键词,点击任意一个即可复制。

该技能未提供触发词。

下载的 .skill 包内含以下字段。
字段 说明
format格式标识(skill/v1)
skill_id技能唯一 ID
name技能名称
version版本号
description技能描述
category所属分类(数组)
trigger_words触发词列表
tags标签列表
source来源标识
source_url来源链接(本页地址)
exported_at导出时间(每次下载生成)
system_prompt系统提示词正文
model_config模型参数:provider / model / temperature / max_tokens / top_p
examples示例
install_guide各平台导入说明(Coze / Dify / Claude / 自定义框架)
同一份技能可按不同平台格式导出。
.skill 标准格式,含 system_prompt 与 model_config,导入任意 Agent 框架即可使用 下载
.skillpro 增强格式,额外含脚本 / 工具 / 依赖 / 钩子占位 下载
.json 纯 JSON 导出,只含 system_prompt 与模型参数 下载
Coze 带 frontmatter 的 Markdown,Coze 平台导入用 下载
Dify Dify DSL,创建应用后直接导入 下载

每日精选 Skill 推荐,免费送到你邮箱

输入邮箱,每天接收一个精选 AI Agent 技能推荐。完全免费,持续更新。

验证码 --

提交后我们会发送一封确认邮件,点击邮件里的链接才会开始收信。

完全免费,取消任意时间。我们不会发送垃圾邮件。