mckinsey-charts

生成麦肯锡风格的咨询图表,输出为原生 python-pptx 对象(可在 PowerPoint 中直接编辑)。包含三类核心图表:用于 TAM/单一数据故事的条形图加标注、用于收入或使用结构随时间变化的堆叠柱状图、以及用于驱动因素或桥梁分析的瀑布图。适用于需要呈现经理级或审核级专业图表而非默认 Excel 样式的场景。

仓库最近推送
GitHub Stars
167
Forks
35
Issues / PRs
1

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "mckinsey-charts":https://skillpi.com/zh/skills/deepskill-012bd5a82dd3eac22400d40b89664a59e1b272df38049e42fdd75c1983c45a88。安装前核对上游来源和版本:https://github.com/sruthir28/enterprise-ai-skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

生成麦肯锡风格的咨询图表,输出为原生 python-pptx 对象(可在 PowerPoint 中直接编辑)。包含三类核心图表:用于 TAM/单一数据故事的条形图加标注、用于收入或使用结构随时间变化的堆叠柱状图、以及用于驱动因素或桥梁分析的瀑布图。适用于需要呈现经理级或审核级专业图表而非默认 Excel 样式的场景。

0 下载

介绍来源: third_party · sruthir28 · 0.0.1 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: mckinsey-charts
description: Generate McKinsey-style consulting charts as native python-pptx objects (editable inside PowerPoint). Three workhorse types — bar+callout for TAM/single-number stories, stacked column over time for revenue/usage mix, and waterfall for drivers/bridge analysis. Use when you need a chart that looks like it came from an EM-reviewed deck, not from Excel defaults.

McKinsey Charts

Drop-in chart builders for python-pptx. Charts are inserted as native PowerPoint chart objects — your audience can edit the data, change the colors, copy the chart to their own deck. No images, no screenshots.

The Three Charts

Type When to use Example
bar_callout One number is the story. TAM, market size, headcount, anything where you want to anchor on a single highlighted bar with a big callout. "RTD coffee TAM will hit $42.5B by 2028"
stacked_bar_over_time Composition over time. Revenue by segment, usage by feature, headcount by function. Shows both total growth and mix shift. "Revenue grew 3x, but enterprise segment grew 7x"
waterfall Bridging two numbers. Revenue walk, cost walk, headcount changes, any "start → adds → subtracts → end" story. "FY24 → FY25 revenue bridge: $80M → $112M"

Design choices (intentional, not configurable)

  • Title is a claim, not a label. "RTD market will hit $42.5B by 2028" beats "Market Size."
  • One highlight color, everything else grey. McKinsey decks don't rainbow. The chart points at one thing.
  • No gridlines, no chart border, no legend unless multi-series. Less ink → more signal.
  • Source line at the bottom in light grey italic. Always include it.
  • Single font (Inter) at consistent sizes. Title 20pt, axis 10pt, source 9pt.

How to use

from pptx import Presentation
from pptx.util import Inches
from charts import add_bar_callout, add_stacked_bar_over_time, add_waterfall, new_deck

prs = new_deck()  # 16:9 with title slide layout
slide = prs.slides.add_slide(prs.slide_layouts[6])  # blank

add_bar_callout(
    slide,
    title="RTD coffee TAM will hit $42.5B by 2028",
    categories=["2023", "2024", "2025", "2026", "2027", "2028"],
    values=[28.1, 30.8, 33.6, 36.5, 39.4, 42.5],
    highlight_index=5,        # which bar to highlight (last one here)
    callout="$42.5B\n2028 TAM",
    y_label="USD, billions",
    source="Euromonitor 2025; Mintel; team analysis",
)

prs.save("output.pptx")

Same pattern for the other two:

add_stacked_bar_over_time(
    slide,
    title="Enterprise segment now drives 62% of revenue, up from 18% in 2021",
    categories=["2021", "2022", "2023", "2024", "2025"],
    series=[
        ("SMB",        [12, 14, 15, 16, 18]),
        ("Mid-market", [8,  12, 16, 22, 28]),
        ("Enterprise", [4,  10, 22, 38, 74]),
    ],
    highlight_series="Enterprise",
    y_label="Revenue, $M",
    source="Internal financials; FY21–FY25",
)

add_waterfall(
    slide,
    title="FY24 → FY25 revenue bridge: $80M → $112M, with new logos doing the heavy lifting",
    labels=["FY24",  "New logos", "Expansion", "Churn",  "Price",  "FY25"],
    values=[80.0,    24.0,        12.0,        -8.0,     4.0,      112.0],
    kinds=["start",  "pos",       "pos",       "neg",    "pos",    "total"],
    y_label="Revenue, $M",
    source="Internal financials; FY24–FY25",
)

Test it

python3 test_charts.py
open test_output.pptx

The test script generates one slide per chart type with realistic sample data. Open it in PowerPoint or Keynote and right-click any chart → "Edit Data" to confirm it's a native chart, not an image.

When NOT to use this skill

  • You need a distribution (use a histogram or box plot — not a McKinsey staple).
  • You need a scatter / quadrant (the 2x2 / portfolio map is a different skill).
  • You're showing >5 series stacked (split into small multiples instead — one chart can't carry that load).

当前收录版本

0.0.1

核对来源版本 ↗

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值85/100

亮点

  • 提供三种专业咨询图表类型,满足麦肯锡风格图表生成需求
  • 支持原生 PowerPoint 对象输出,可直接编辑
  • 适用于专业咨询场景,具有明确实用价值
触发精准90/100

亮点

  • 清晰定义三种图表类型的使用场景
  • 提供具体示例说明何时使用每种图表
  • 边界清晰,不易与其他图表工具混淆
结构规范95/100

待提升项

  • description写错位置 原报告严重程度:轻微

    description 内容位于 skill_body 内部而非顶层 frontmatter

    改进建议:建议将 description 移至顶层 frontmatter 中

亮点

  • 文档结构清晰,包含完整的使用说明
  • 提供端到端代码示例和测试方法
  • 设计原则说明详细,便于理解使用
执行可靠90/100

亮点

  • 提供完整的 Python 代码示例
  • 工具来源明确,基于 python-pptx
  • 包含测试脚本验证功能
证据可验 (前四项均值)90/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

  • 保存或修改文件

    先确认输出目录和同名文件是否会被覆盖;重要文件保留备份,优先写入新的输出目录。

    主文档提及 · 第 47 行

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。