agentleFS
Kaalia0912Kaalia0912/dsh-data-analysis-mode/skills/data-analysis/SKILL.md

data-analysis

Skill2 starsChanged 3 months agoMITView on GitHub

数据分析领域工作流:数据采集、清洗、EDA、统计建模、可视化与结论报告的标准流程与检查清单。当任务是分析数据、处理数据集、做统计或画图时加载本技能。A five-stage data analysis workflow — collection, cleaning, EDA, statistical modelling, visualisation and reporting — with a per-stage checklist. Load when a task involves analysing a dataset, running statistics, or producing charts.

  • Installs packages

76 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use algorithm-design, review-r and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • lingzhi227Skill

    algorithm-design

    Design algorithms with LaTeX pseudocode and UML diagrams. Generate algorithmic environments, Mermaid class/sequence diagrams, and ensure consistency between pseudocode and implementation. Use when formalizing methods for a paper.

    Also in 5 projects that use this

  • luischanciSkill

    review-r

    Run the R code review protocol on R scripts. Checks code quality, reproducibility, domain correctness, and professional standards. Produces a report without editing files.

    Also in 4 projects that use this

  • zephyrwang6Skill

    deepl

    Übersetzt Texte, Dokumente und XLIFF-Dateien via DeepL API. Verwende für Übersetzungen mit /deepl translate, /deepl file oder /deepl xliff.

    Also in 4 projects that use this

  • zephyrwang6Skill

    imagemagick-conversion

    Convert and manipulate images with ImageMagick. Covers format conversion, resizing, batch processing, quality adjustment, and image transformations. Use when user mentions image conversion, resizing images, ImageMagick, magick command, batch image processing, or thumbnail generation.

    Also in 4 projects that use this

  • lingzhi227Skill

    latex-formatting

    Handle LaTeX formatting, templates, and styling for academic papers. Set up conference templates (ICML, ICLR, NeurIPS, AAAI, ACL), fix formatting issues, manage packages, and ensure venue-specific compliance. Use when the user needs to set up a paper template, fix LaTeX formatting, or prepare for submission.

    Also in 4 projects that use this

  • stophobiaSkill

    surprise-me

    Create a delightful, unexpected "wow" experience for the user by dynamically discovering and creatively combining other enabled skills. Triggers when the user says "surprise me" or any request expressing a desire for an unexpected creative showcase. Also triggers when the user is bored, wants inspiration, or asks for "something interesting".

    Also in 4 projects that use this

  • +3 more from zephyrwang6
  • +2 more from lingzhi227

The file

Files
SKILL.md

数据分析工作流(Data Analysis Workflow)

本技能定义「数据分析模式」下的标准工作流。目标:让每次分析可复现、可追溯、结论可辩护。

标准流程(按阶段推进,允许回跳)

0. 明确问题

  • 用一句话写出分析目标,与主人确认指标口径(什么是「好」、什么算「成功」)。
  • 列出可用的数据源与字段;缺失的关键数据先说明,不硬编。

1. 数据采集与探查

  • 先看结构:行数、列数、类型、每列缺失率、唯一值数、数值列的 min/max/分位数。
  • 检查来源与编码(CSV 注意 BOM/分隔符/编码,Excel 注意多 sheet)。
  • 记录数据版本与获取时间。

2. 数据清洗(可复现)

  • 清洗必须写进脚本(pandas 管道),不手工改。
  • 处理缺失(说明策略:删除/填充/插值及其理由)、去重、类型纠正、异常值标记(不轻易删除,先标记再决定)。
  • 每一步清洗在脚本里留注释,说明「为什么」。

3. EDA(探索性分析)

  • 单变量:分布(直方图/箱线图)、类别频数。
  • 双变量:相关性矩阵、分组对比、时间趋势。
  • 记录观察到的模式与疑点,作为建模依据。

4. 统计建模 / 分析

  • 先选最简方法,验证后再加复杂度;固定随机种子(如 np.random.seed(42))。
  • 划分训练/验证集(时间序列按时间切分,不随机切)。
  • 报告模型假设、评估指标与置信区间;区分相关与因果。

5. 可视化与报告

  • 图表规范:标题、轴标签、单位、图例、来源标注;中文标签注意字体(Windows 下 matplotlib 用 SimHei 或 Microsoft YaHei,否则中文会变方块)。
  • 结论先行:一句话结论 → 证据(图表/表格)→ 局限与后续建议。
  • 输出可交付物:脚本、数据快照、报告(Markdown/HTML)。

环境与工具约定(Windows + Python)

  • 优先 Python 数据栈:pandas / numpy / matplotlib / seaborn / scipy / statsmodels;大表用 polars 或 pyarrow。
  • 命令走 pwsh;安装依赖前先与主人确认(pip install 或 venv 变更)。
  • 数据量大时先抽样验证脚本逻辑,再全量跑;长任务用后台任务。
  • 路径注意 Windows 反斜杠与中文路径编码;写文件统一 UTF-8。

检查清单(交付前逐项核对)

  • 分析脚本可复现(数据路径、参数、种子固定)
  • 缺失/异常值处理有说明
  • 图表有标题、轴标签、单位
  • 结论有证据支撑,局限与不确定点已标注
  • 未编造任何数据或统计量

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

Reviews can't be read right now.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.