Community生产力与协作github.com

andreworia/pivot-table-builder

根据平面数据范围指定并生成数据透视表,选择行、列、值和筛选条件。当您拥有原始表格数据并希望获得汇总视图,而无需逐格手动构建时使用。

pivot-table-builder 是什么?

该技能使AI代理能够根据原始平面数据自动构建数据透视表,无需用户进行手动操作。用户只需描述所需的汇总视图(例如按类别、时间段或细分市场),AI即可自动确定数据透视表的布局,包括行、列、值(聚合函数如求和、计数或平均值)以及筛选条件。该技能会先确认数据范围是否确实是平面结构(单行表头、无合并单元格、无小计行),然后提出布局建议,最后构建表格。它还特别关注可能存在的聚合问题,例如将文本列错误地放入值区域,从而确保数据准确性。支持在Claude Code、Cursor、Codex等代理平台上使用,通过描述而非手动操作来生成数据透视表,大幅提升数据处理效率。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/andreworia/claude-excel-skills/tree/main/skills/pivot-table-builder

Installed? Explore more 生产力与协作 skills: steipete/gemini, steipete/gh-issues, steipete/skill-creator · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

数据透视表构建器

何时使用

当您有一个平面数据范围(每行一条记录)且需要按类别、时间段或细分市场进行汇总视图,并且更愿意描述您所需的汇总方式而非手动构建数据透视表时,使用此技能。

操作说明

  1. 确认数据范围确实为平面结构:一行表头,无合并单元格,数据中无小计行混杂。
  2. 如果未说明,询问摘要需要回答什么问题,因为这将决定哪些字段放在何处。
  3. 提出数据透视表布局:哪个字段放在行、哪个放在列、哪个放在值(以及聚合方式:求和、计数或平均值),以及任何筛选条件。
  4. 使用该布局构建数据透视表。
  5. 标记任何无法正常聚合的字段,例如将文本列错误地放入值区域。

示例提示

  • “使用 pivot-table-builder 技能按区域和月份汇总此销售数据。”
  • “根据此原始人力资源导出数据,构建一个显示按部门和级别划分的员工人数的数据透视表。”

输出

数据透视表规格(行、列、值、筛选条件)以及在工作表上构建好的数据透视表,并附带一行注释说明其回答的问题。

Individual skills in this repo

This repo contains 11 individual skills — each has its own dedicated page.

andreworia/assumption-registry-builder

Creates a structured assumption register for any Excel model with columns for name, category, base value, source, Bull/Bear values, sensitivity rank, and owner, plus a formula for computing sensitivity rank from Data Table outputs.

andreworia/data-cleaning-for-excel

Turns pasted or exported data with mixed formats, blank rows, or duplicates into a clean, consistently formatted range ready for analysis. Use it right after pasting raw data into a worksheet.

andreworia/formula-audit-checker

Provides a systematic audit checklist for Excel model formula logic, hardcoded values, circular references, and error handling, with step-by-step instructions for using Excel's native auditing tools.

andreworia/inputs-calcs-outputs-design

Enforces the three-tab separation principle for any Excel model, producing a full design for a dedicated Inputs tab, one or more Calculations tabs, and a clean Outputs tab with a conventions checklist.

andreworia/model-architecture-template

Defines the master tab structure, naming conventions, color codes, number formats, and print area setup for any new strategy or finance Excel model, serving as the structural template before any content is added.

andreworia/output-summary-tab

Designs the executive summary tab of an Excel model with KPI tiles, a narrative block, a sensitivity summary, and an assumption log, formatted for print or screenshot use in a board pack.

andreworia/revenue-build

Builds a driver-based revenue forecast .xlsx with live formulas across separate drivers, build, and output tabs plus checks, rolling a customer or units schedule (beginning, adds, churn, ending) into revenue with Base/Bull/Bear scenario toggles. Use when someone needs a bottom-up revenue model, an ARR build, or a driver-based forecast for planning or a board deck. Do not trigger for editing an existing workbook through the Claude for Excel add-in.

andreworia/scenario-manager

Builds a Base/Bull/Bear scenario switching layer for a model in a .xlsx with a live selector, CHOOSE or INDEX assumption links, a side-by-side output comparison, and a recalc check, then delivers the workbook. Use when someone wants an auditable scenario toggle instead of Excel's hidden Scenario Manager. Do not trigger for editing an existing workbook through the Claude for Excel add-in.

andreworia/sensitivity-tables

Builds one- and two-variable sensitivity (Data Table) analysis on a model output in a .xlsx with live formulas and a recalc check, then delivers the workbook. Use when someone wants to see how an output (NPV, IRR, EPS, margin) moves as one or two inputs change. Do not trigger for editing an existing workbook through the Claude for Excel add-in.

andreworia/sensitivity-tornado

Ranks variable sensitivities to a key output and builds a tornado chart by swinging each input over a defined range, computing output impact, and producing a horizontal bar chart data structure.

andreworia/unit-economics

Builds a unit-economics and cohort .xlsx with live formulas across separate assumptions, cohort, and output tabs plus checks, computing CAC, LTV, LTV/CAC, and CAC payback from a monthly cohort retention grid. Use when someone needs unit economics, an LTV/CAC analysis, a payback model, or a cohort retention build. Do not trigger for editing an existing workbook through the Claude for Excel add-in.

相关技能