andreworia/pivot-table-builder

フラットなデータ範囲から、行・列・値・フィルターを指定してピボットテーブルを作成します。生の表形式データから、手作業でセルごとに作成することなく集計ビューが必要な場合に使用します。

pivot-table-builder とは?

このスキルは、エンジニアやパワーユーザーが、スプレッドシート上のフラットなデータ範囲から、望む集計を自然言語で指示するだけでピボットテーブルを自動生成できるように設計されています。ユーザーは「地域と月ごとに売上を集計したい」といった要望を伝えると、スキルが最適な行・列・値(集計方法:合計、カウント、平均など)およびフィルターのレイアウトを提案し、実際にピボットテーブルをワークシート上に構築します。たとえば、データが1行1レコードでヘッダー行があり、結合セルや小計行が混在しないことを確認した上で、不明な集計目的があれば質問して明確化します。このスキルはClaude CodeやCursor、CodexなどのAIエージェントプラットフォーム上で動作し、ユーザーの意図をくみ取って適切なピボットテーブルを構築することで、手動作業の手間を大幅に削減し、データ分析の生産性を向上させます。

対応~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に質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

Pivot Table Builder

使用するタイミング

フラットなデータ範囲(1行1レコード)があり、カテゴリ、期間、セグメントごとに集計されたビューが必要で、ピボットテーブルを手動で作成するよりも、希望する集計を説明したい場合に使用します。

手順

  1. データ範囲が本当にフラットであることを確認します(ヘッダー行が1行、結合セルやデータ内に小計行が混在していないこと)。
  2. 目的が明示されていない場合は、どのような質問に答えるための集計かを尋ねます。これによってどのフィールドをどこに配置するかが決まります。
  3. ピボットテーブルのレイアウトを提案します。どのフィールドを行に、どのフィールドを列に、どのフィールドを値(集計方法:合計、カウント、平均など)に、そしてどのフィールドをフィルターに使用するかを決定します。
  4. そのレイアウトでピボットテーブルを作成します。
  5. テキスト列が誤って値に入れられているなど、集計に適さないフィールドがあれば指摘します。

プロンプト例

  • 「この販売データを地域と月ごとに集計するために、pivot-table-builderスキルを使用してください。」
  • 「この生の人事エクスポートから、部門とレベル別の人員数を示すピボットを作成してください。」

出力

ピボットテーブルの仕様(行、列、値、フィルター)と、ワークシート上に作成されたピボットテーブル、およびそのピボットが何に答えるのかを説明する1行のメモ。

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.

関連スキル