Skip to content
Agentmart
Submit a tool

data-analysis

数据解读与分析 — 统计方法、趋势分析、透视汇总、结论输出规范

Skill by claude-office-skills

IndexedMIT★ 9
Write a review

Chalk Labs

Need help deploying data-analysis?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/claude-office-skills-data-analysis

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

数据解读与分析 — 统计方法、趋势分析、透视汇总、结论输出规范

Use cases: data

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/data-analysis

What's inside

Skill name
data-analysis
Description
数据解读与分析 — 统计方法、趋势分析、透视汇总、结论输出规范
License
MIT
Instructions
104 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

## 数据分析输出规范

### 核心原则

- 分析结果必须新建工作表,不修改原始数据
- 结果包含:数据概况 → 统计指标 → 可视化 → 结论
- 所有计算用 .Formula 写入,用户可溯源验证

### 新建分析表的标准结构

```javascript
function CL(c){var s="";while(c>0){c--;s=String.fromCharCode(65+(c%26))+s;c=Math.floor(c/26);}return s;}
var wb = Application.ActiveWorkbook;
var srcWs = Application.ActiveSheet;
var srcName = srcWs.Name;

wb.Sheets.Add();
var ws = Application.ActiveSheet;
ws.Name = "数据分析";
ws.Activate();

// 区域 A: 标题
ws.Range("A1").Value2 = "数据分析报告 — " + srcName;
ws.Range("A1").Font.Size = 16;
ws.Range("A1").Font.Bold = true;
ws.Range("A1").Interior.Color = 0x8B4513;
ws.Range("A1").Font.Color = 0xFFFFFF;

// 区域 B: 数据概况
ws.Range("A3").Value2 = "数据概况";
ws.Range("A3").Font.Bold = true;
ws.Range("A4").Value2 = "数据源";
ws.Range("B4").Value2 = srcName;
ws.Range("A5").Value2 = "总行数";
ws.Range("B5").Formula = "=COUNTA('" + srcName + "'!A:A)-1";
// ... 列数、空值数等

// 区域 C: 描述性统计表
// 每个数值列: 均值/中位数/最大/最小/标准差/四分位
```

### 描述性统计公式

| 指标 | 公式 |
|------|------|
| 均值 | `=AVERAGE('源表'!B2:B1000)` |
| 中位数 | `=MEDIAN('源表'!B2:B1000)` |
| 标准差 | `=STDEV('源表'!B2:B1000)` |
| 最大值 | `=MAX('源表'!B2:B1000)` |
| 最小值 | `=MIN('源表'!B2:B1000)` |
| 计数 | `=COUNTA('源表'!B2:B1000)` |
| 空值数 | `=COUNTBLANK('源表'!B2:B1000)` |

### 趋势与对比分析

```javascript
// 环比增长率
ws.Range("C" + r).Formula = "=('" + srcName + "'!B" + r + "-'" + srcName + "'!B" + (r-1) + ")/'" + srcName + "'!B" + (r-1);
ws.Range("C" + r).NumberFormat = "0.0%";

// 占比计算
ws.Range("D" + r).Formula = "='" + srcName + "'!B" + r + "/SUM('" + srcName + "'!B2:B" + lastRow + ")";
ws.Range("D" + r).NumberFormat = "0.0%";
```

### 透视汇总(手动实现)

WPS 加载项中不支持 PivotTable API,需手动聚合:

```javascript
// 按分类列汇总
var groups = {};
for (var r = 2; r <= lastRow; r++) {
  var cat = String(ws.Range(CL(catCol) + r).Value2);
  var val = Number(ws.Range(CL(valCol) + r).Value2) || 0;
  if (!groups[cat]) groups[cat] = { sum: 0, count: 0 };
  groups[cat].sum += val;
  groups[cat].count++;
}
// 写入汇总表
var keys = Object.keys(groups);
for (var i = 0; i < keys.length; i++) {
  ws.Range("A" + (startRow + i)).Value2 = keys[i];
  ws.Range("B" + (startRow + i)).Value2 = groups[keys[i]].sum;
  ws.Range("C" + (startRow + i)).Value2 = groups[keys[i]].count;
  ws.Range("D" + (startRow + i)).Value2 = groups[keys[i]].sum / groups[keys[i]].count;
}
```

### 分析结论输出

在分析表底部,用文本形式写出关键发现:

```javascript
var conclusionRow = lastOutputRow + 2;
ws.Range("A" + conclusionRow).Value2 = "分析结论";
ws.Range("A" + conclusionRow).Font.Bold = true;
ws.Range("A" + conclusionRow).Font.Size = 14;
// 结论内容由 AI 根据计算结果生成
ws.Range("A" + (conclusionRow + 1)).Value2 = "1. 总销售额为 XXX 万元,环比增长 XX%";
ws.Range("A" + (conclusionRow + 2)).Value2 = "2. TOP3 品类占总额的 XX%";
```

From claude-office-skills/claude-office-plugin, MIT.

More from claude-office-skills/claude-office-plugin

Signals

Stars
9
Forks
3
Open issues
0
Last commit (this folder)
Mar 9, 2026 (7 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from claude-office-skills

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get data-analysis running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying data-analysis?

CallGet help
Cite this page

data-analysis skill. Agent Mart. https://agentmart.dev/skills/claude-office-skills-data-analysis (last updated 2026-10-24)