技能圖譜SKILLSGROVE
技能圖譜/辦公文件/fourteenwm/ppc-ai-skills/markdown-to-sheets-presenter

markdown-to-sheets-presenter

安裝

$npx skills add https://github.com/fourteenwm/ppc-ai-skills --skill markdown-to-sheets-presenter
$git clone --depth 1 https://github.com/fourteenwm/ppc-ai-skills.git /tmp/ppc-ai-skills && mkdir -p ~/.claude/skills && cp -r /tmp/ppc-ai-skills/markdown-to-sheets-presenter ~/.claude/skills/markdown-to-sheets-presenter
請幫我安裝這個 Agent Skill:https://github.com/fourteenwm/ppc-ai-skills/tree/90f0e419f2d820789d5e50eee1237ab9fd14dfc6/markdown-to-sheets-presenter ,先閱讀它的 SKILL.md 和指令碼,確認安全後再安裝到我的技能目錄。

簡介

原文描述 · MITTransforms markdown reports into professionally formatted Google Sheets for client presentation. Auto-invoke when user wants to make a report presentable, share analysis with clients, convert markdown to Sheets, or export competitive analysis. Triggers include "make this presentable", "create a Google Sheet", "export to sheets", "format for client".
以下 SKILL.md 內容轉載自 fourteenwm/ppc-ai-skills(提交 90f0e41),依據 MIT 許可證轉載正文(文字未改動;僅省略檔案頭後設資料、將圖片顯示為連結,超長內容會截斷);版權歸 2026 Kurt Henninger 所有。許可證:LICENSE。僅展示說明檔案,附帶指令碼請在原倉庫檢視。

Markdown to Google Sheets Presenter

Turn a markdown report (competitive analysis, ad recon, performance review) into a client-ready Google Sheet: multi-tab layout, themed formatting, conditional colors. The shipped script bootstraps the spreadsheet; everything the client actually sees is composed by the agent per references/presentation-contract.md's division of labor. Judgment calls — when to present vs hand over a CSV, theme handling, tab structure — live in rules.md.

What this skill deliberately does NOT do

  • Never edits report content. This is a formatting pass: numbers, ad copy, and quotes land verbatim, ad copy never truncates (rules, invariant 1). Wrong findings get fixed in the source report, not here.
  • Ships no converter. create_spreadsheet.py creates one header-formatted tab and exits — parsing, population, and conditional formatting are agent-composed API calls, not hidden code (contract).
  • No Drive operations. Sheets-only scope: the file lands in the Drive root of the authorized account and gets moved/shared manually.
  • Not a data pipeline. Recurring exports and re-import workflows belong to raw CSVs (rules.md § presenter vs raw CSV), not a presentation layer.

Prerequisites

  1. Credentials: google-ads.yaml at project root — see the google-ads-api-setup skill if you don't have one. The script reuses this same file's OAuth credentials for the Sheets API — its refresh token must carry the spreadsheets scope, which the setup skill's generator grants by default (token predates that? re-run the generator once)
  2. Python packages: pip install google-api-python-client google-auth pyyaml

Workflow

Step 1: Identify Input

When triggered, identify the source:

  • If path provided: Use that path directly
  • If recent analysis in conversation: Use that content
  • If ambiguous: Ask user to specify

Step 2: Parse Markdown Structure

Analyze the markdown to determine:

  • Document title and metadata
  • Section hierarchy (H1, H2, H3)
  • Tables with headers and data
  • Lists (bulleted, numbered, checkbox)
  • Scoring data (X/45, percentages, etc.)

Step 3: Determine Tab Structure

For Competitive Analysis / Ad Recon Reports:

Section Tab Name Notes
Executive Summary Summary First tab, KPIs
Strategic Analysis Strategic_Scores 15-attribute scoring
Tactical Scan Tactical_Scores 7-attribute flags
Gap Identification Gaps Opportunities list
Verified Angles Recommendations Client-ready angles
Per Competitor Competitor_[Name] If multiple competitors

For Performance Reports:

Section Tab Name Notes
Overview Dashboard KPI metrics
Campaign Data Campaigns Main data table
Recommendations Action_Items Next steps

These are the standard maps. When to deviate — merging small sections, single-table reports, prose-only sources — is rules.md § table-structure judgment.

Step 4: Load the Theme

Every presentation value — colors (with API-ready RGB decimals), typography tiers, conditional-formatting thresholds, row heights and column widths — lives in templates/professional-blue-theme.json. Read it before composing any formatting call; don't improvise values inline. Client-brand variants are copies of that file (rules.md § theme judgment). What the file owns, block by block: references/presentation-contract.md.

Step 5: Create Google Sheet

Use the create_spreadsheet.py script from your project root (where google-ads.yaml lives):

python .claude/skills/markdown-to-sheets-presenter/scripts/create_spreadsheet.py "Report Name"

Pass --config path/to/google-ads.yaml if your credentials live elsewhere. The sheet is created in the Drive root of the authorized account — move it into a client folder in Drive afterward if needed. The script returns the spreadsheet ID and URL as JSON; use the ID for the data-population and formatting calls that follow.

Naming Convention:

[Client Name] - [Report Type] - [YYYY-MM-DD]
Example: "Example Client - Competitive Analysis - 2025-12-16"

Step 6: Populate and Format

The agent-composed pass (no shipped code — contract § division of labor): rename Data/add tabs per the Step 3 plan, write values, then format from the theme — header/subheader styling, alternating rows, conditional formatting on scores and status columns, column widths, number formats. Formatting decisions (truncation ban, currency and percentage handling, missing data as "—", large tables, chart placement) are rules.md's tables — apply them as you build.

Step 7: Return Results

Provide user with:

  1. Clickable Google Sheets link
  2. Summary of tabs created
  3. Data rows per tab

Output Format

## Google Sheet Created

**Sheet Name:** [Name]
**Link:** [URL]

### Tabs Created:
| Tab | Rows | Description |
|-----|------|-------------|
| Summary | 15 | Executive overview with KPIs |
| Strategic_Scores | 20 | 15-attribute competitive scoring |
| ... | ... | ... |

---
*Click the link above to open your Google Sheet.*

Error Handling

Error Action
No credentials Point at the google-ads-api-setup skill
403 / PERMISSION_DENIED Refresh token predates the Sheets scope — re-run the api-setup generator once, paste the new refresh_token into google-ads.yaml
File not found Ask user to verify path
API quota Suggest waiting or manual copy
Parse failure Fall back to raw text layout

Files

File Purpose
SKILL.md This file — workflow + routing
rules.md Judgment layer: presenter vs raw CSV, theme judgment, table structure, false alarms, escalation
examples.md Three worked decisions incl. the asks this skill should decline
references/presentation-contract.md The script/agent division of labor, exact script behavior, the theme file's contract
SETUP.md Credential setup + quick test + troubleshooting
scripts/create_spreadsheet.py The bootstrap: one spreadsheet, one formatted header row, JSON on stdout
templates/professional-blue-theme.json The theme — single home of every presentation value, consumed by the agent (no script reads it)
README.md User-facing overview + install

After a Run

The Google Sheet is the artifact; nothing lands on local disk. The spreadsheet ID and URL print as JSON on stdout (contract) — capture them if you'll need the sheet programmatically later, because creation is never idempotent: re-running makes a second spreadsheet with the same name, and Drive allows that.

When to Load What

Moment Load
Deciding sheet-vs-CSV, structuring tabs, theming rules.md
Exact script behavior, stdout/stderr contract, theme file blocks references/presentation-contract.md
First run, or the ask smells like a decline case examples.md
The input is a competitive analysis competitor-analysis-v2 produces it — its 15 strategic + 7 tactical scoring is what the Strategic/Tactical tab map was built for
The ask is machine-readable data, not presentation google-ads-query — its CSVs are the re-import surface
The source skill already writes a Sheet natively Use it directly — e.g. account-diagnostic with --sheet-id; don't re-present a sheet
No credentials yet / 403 at the Sheets step google-ads-api-setup (SETUP.md has the short version)
檢視許可證全文(MIT)
MIT License

Copyright (c) 2026 Kurt Henninger

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.