Data Analysis logo

Data Analysis

Community
JimLiu
data-analysis

数据分析技能。当用户上传 Excel(.xlsx、.xls) 或 CSV 文件并要求分析时使用,基于三阶段分析法(结构理解 → 统计概况 → 发现挖掘)输出结构化的中文洞察。

Overview

PublisherJimLiu
RepositoryIllustrated-Agent-Skills
Skill namedata-analysis
Stars
734
Forks
104
Bundled files
Instructions only
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 JimLiu on GitHub. Read the source before you install it.

Installation

Install the Data Analysis 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/JimLiu/Illustrated-Agent-Skills/tree/main/examples/chapter-07/data-analysis-v2
  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.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/JimLiu/Illustrated-Agent-Skills.git /tmp/Illustrated-Agent-Skills
mkdir -p .claude/skills
cp -r /tmp/Illustrated-Agent-Skills/examples/chapter-07/data-analysis-v2 .claude/skills/data-analysis
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Data Analysis 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 Data Analysis 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 Data Analysis 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.

数据分析

用户上传数据文件后,按下列指引完成读取、思考、输出三件事。

数据读取指引

使用 pandas 读取用户上传的文件,灵活处理各种情况:

  • Excel 文件:先检查所有工作表的名称。只有一个直接读取;有多个则列出让用户选择
  • CSV 文件:用 charset-normalizer(或 chardet)检测文件编码,再用检测到的编码读取,避免逐个尝试编码导致的静默乱码问题
  • 表头检测:检查第一行是否能够合理地作为列名使用。若第一行全是数字,可能表头缺失
  • 读取后立即打印行数、列名、前 3 行,确认数据读取正确

以上是指引而非固定脚本。每份数据情况不同,需要根据实际情况灵活判断。

分析方法论

阶段一:结构理解

在做任何统计之前,先回答:

  • 一行代表什么?(一条投放记录?一个用户?一天的汇总?)
  • 哪些列是维度(用来分组的类别列,如"板块""渠道")?
  • 哪些列是指标(用来计算的数值列,如"GMV""ROI")?
  • 有没有时间列?数据覆盖什么时间范围?

阶段二:统计概况

对每个指标列:

  • 同时计算均值和中位数。两者差距大于 20% 说明分布偏斜,此时中位数比均值更能反映"典型值"
  • 计算 p25、p75、p95(即排在 25%、75%、95% 位置的值),了解数据分布范围
  • 统计零值和缺失值数量

按维度列分组,对比各组的指标差异。

阶段三:发现挖掘

  • 异常检测:找出偏离组内均值 2 个标准差以上的记录
  • 相关性:计算指标间的相关系数,标记强相关(|r|>0.7)
  • 趋势:如有时间列,检查指标随时间的变化方向

分析哲学

数据分析的目标是回答 so what(这说明什么,有什么业务价值),不能只展示数字:

  • 对比产生意义:"退货率 7.7%"是死数字,"服饰退货率是美妆退货率的 4 倍"才有冲击力
  • 回答 so what:每个发现后面追问"这意味着什么"
  • 标题就是结论:写"食品板块 ROI 连续下滑,需要预警",不写"食品板块分析",让读者看标题就知道发生了什么
  • 异常值是金矿:偏离均值的数据点往往最有价值
  • 主动挖掘隐藏问题:分析完主动追问"还有什么用户可能没意识到但数据已经暗示的趋势或风险"
  • 警惕虚假精确:"约 5%"比"4.73%"更诚实

输出结构

严格按以下结构输出:

一句话摘要

(整份数据最核心的一个发现,不超过两句话)

数据全貌

(行数、列数、时间范围、主要维度分布)

核心发现(3~5 条,按重要性排序)

(每条包含:发现 + 支撑数据 + so what)

值得关注

(异常值、数据质量问题)

建议

(基于发现的可操作建议,1~3 条)

注意

  • 所有输出使用中文
  • 数字保留两位小数
  • 仅在对话中输出,不生成文件

Frequently asked questions

What does the Data Analysis AI skill do?

数据分析技能。当用户上传 Excel(.xlsx、.xls) 或 CSV 文件并要求分析时使用,基于三阶段分析法(结构理解 → 统计概况 → 发现挖掘)输出结构化的中文洞察。

Why use Data Analysis on TypingMind?

Because you install it once and use it with any model. Data Analysis 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 Data Analysis in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/JimLiu/Illustrated-Agent-Skills/tree/main/examples/chapter-07/data-analysis-v2. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Data Analysis?

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 Data Analysis?

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

Is the Data Analysis AI skill free?

It is published on GitHub by JimLiu. Check the repository for licensing terms. 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 👇