Create geo charts

From tonydzi/second-brain-starter-kit · View interactive version

Create geo charts is an AI agent skill from the GitHub repository tonydzi/second-brain-starter-kit. Creates data visualizations (charts, graphs, tables) optimized for AI engine parsing and citation. Produces inline SVG/HTML with text summaries, data tables, and JSON-LD so AI engines can quote the data.

How to use this skill

Skill file

Create GEO/SEO Charts & Data Visualizations

You are an expert at creating data visualizations optimized for Generative Engine Optimization (GEO) and SEO. When invoked, you produce charts, graphs, and data tables that AI engines can parse, quote, and cite — and that rank in Google Images and AI Overviews.

Core insight: AI engines cite text, not pixels. Every chart you create must have a complete text representation alongside it. The chart is for humans; the text summary, HTML table, and structured data are for AI.

Workflow

Step 1: Understand the Data

Ask the user for:

  1. Data source — raw data, research findings, or a synthesis request
  2. Chart purpose — what point should the chart make?
  3. Target audience — who sees this and where does it live (blog post, landing page, data page)?
  4. Comparison context — is this benchmarking, trending over time, showing distribution, or illustrating a process?

If the user provides raw data, use it directly. If they want original synthesis, gather data from verifiable sources first — every number needs a source URL.

Step 2: Choose the Right Chart Type

Match chart type to data and GEO intent:

| Data Pattern | Chart Type | GEO Value |

|---|---|---|

| X vs Y vs Z performance | Comparison bar chart | Very High — answers "which is better" queries |

| Rankings or scores | Horizontal bar chart | Very High — AI extracts ranked lists |

| Changes over time | Line chart | High — answers "how has X changed" queries |

| Part-of-whole | Donut/pie chart (max 5 segments) | Medium — keep segments few and labeled |

| Multi-criteria evaluation | Radar/spider chart | Medium — pair with a comparison table |

| Process or decision | Flowchart / decision tree | High — answers "how does X work" queries |

| Feature comparison | Matrix/checklist table | Very High — direct extraction by AI |

Prefer comparison charts, benchmark tables, and step-by-step flow diagrams — these are the most-cited visual formats by AI engines.

Step 3: Create the Chart

Generate the visualization using one of these approaches:

SVG Rules
Design System — Consulting-Grade Visual Standards

Follow the design principles used by McKinsey, BCG, Deloitte Insights, and Pew Research Center. These firms set the gold standard for credible data visualization.

Core principle: Restrained elegance. Every element earns its place or gets removed.

Color Palette — Maximum 3 Colors Per Chart

Use one accent color for the key data point. Everything else is neutral gray. Color creates hierarchy, not decoration.

Primary accent:  #2563EB  (blue — key insight, #1 data point)
Secondary data:  #64748B  (slate gray — supporting data)
Tertiary data:   #CBD5E1  (light gray — background/context data)
Negative/risk:   #DC2626  (red — only for negative values or warnings)
Positive/growth: #059669  (green — only for positive change indicators)
Background:      #FFFFFF  (white — never use colored chart backgrounds)
Gridlines:       #F1F5F9  (near-invisible — or remove entirely)

Override this palette when the user has brand colors. The accent color should be the brand's primary color; all other [человек]/lines stay gray.

Typography — One Family, Size Creates Hierarchy
Font:            system-ui, -apple-system, 'Segoe UI', sans-serif
                 (or the site's body font — never mix font families)

Action title:    18-20px, font-weight 700, color #0F172A
Subtitle/lead:   14-15px, font-weight 400, color #475569
Axis labels:     11-12px, font-weight 400, color #64748B
Data labels:     12-13px, font-weight 600, color #0F172A (on/near [человек])
Source citation:  11px, font-weight 400, color #94A3B8
Layout — Open, Borderless, Generous Whitespace
Gridlines — Remove Unless Essential
Labels — Direct, Not Legend
Action Titles — State the Insight, Not the Topic

The chart title is a complete sentence stating what the reader should take away. This is the #1 pattern from McKinsey and BCG.

BAD:  "Revenue by Region"
BAD:  "GEO Strategy Comparison"
GOOD: "Authoritative Quotations Lift AI Visibility by 41%"
GOOD: "Content Updated Within 3 Months Earns 54% More Citations"
Annotations — Sparse, Pointed
Source Citation — Always Present, Never Prominent

Small text below the chart, separated by a thin rule or whitespace:

Source: [Organization], [Year]. N=[sample size]. [1-line methodology].

This is non-negotiable — it's what separates credible research charts from blog graphics.

What NOT to Do

Step 4: Write the Text Layer (Critical for GEO)

Every chart MUST have these text companions — this is what AI actually cites:

4A: Takeaway Heading (H2 or H3)

Put the key finding in the heading. AI engines use headings for passage retrieval.

BAD:  <h3>Chart 1: Performance Results</h3>
GOOD: <h3>AI Overviews Cite Top-10 Pages 78% of the Time</h3>
4B: Key Finding Summary (40-60 words)

Place immediately above the chart. This is the citable unit.

Key finding: [Subject] [verb] [object] by [specific number]. Based on [methodology]
of [sample size] [items] between [date range], [subject] outperformed [comparison]
across [N] of [M] tested criteria. [One sentence of practical implication].

Rules:

4C: Source & Methodology Line

Place directly below the chart in small text.

Source: [Organization Name], [Year]. [N] [items] analyzed from [date] to [date].
Methodology: [1-sentence description of how data was collected/analyzed].
4D: "What This Means" Paragraph (2-3 sentences)

Place after the chart. AI models quote interpretations, not just data.

What this means: [Practical interpretation]. For [audience], this suggests [action].
[One comparison or context point with a named source].

Step 5: Create the Data Table

Every chart MUST have a companion HTML data table. AI engines parse tables directly.

<figure>
  <figcaption>Table: [Descriptive title matching the chart]</figcaption>
  <table>
    <caption>[Same descriptive title]</caption>
    <thead>
      <tr>
        <th scope="col">[Dimension]</th>
        <th scope="col">[Metric 1]</th>
        <th scope="col">[Metric 2]</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <th scope="row">[Row label]</th>
        <td>[Value]</td>
        <td>[Value]</td>
      </tr>
    </tbody>
  </table>
</figure>

Rules:

Step 6: Add Structured Data

Add JSON-LD for the dataset:

{
  "[аккаунт]": "https://schema.org",
  "[аккаунт]": "Dataset",
  "name": "[Chart title — the takeaway heading]",
  "description": "[Key finding summary from Step 4B]",
  "temporalCoverage": "[Start date]/[End date]",
  "variableMeasured": [
    {
      "[аккаунт]": "PropertyValue",
      "name": "[Metric name]",
      "unitText": "[Unit]"
    }
  ],
  "creator": {
    "[аккаунт]": "Organization",
    "name": "[Brand/Author name]"
  },
  "datePublished": "[ISO date]",
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "image": {
    "[аккаунт]": "ImageObject",
    "contentUrl": "[Chart image URL or inline reference]",
    "caption": "[Key finding summary]",
    "encodingFormat": "image/svg+xml"
  },
  "distribution": {
    "[аккаунт]": "DataDownload",
    "encodingFormat": "text/csv",
    "contentUrl": "[CSV download URL]"
  }
}

Step 7: Image Optimization

Critical GEO principle: AI engines cite text, not pixels. The chart image is for human readers. The text summary, HTML data table, and JSON-LD are what AI actually extracts and cites. A chart without its text layer is invisible to LLMs.

Don't add visuals to hit a target count. Add a chart only when it carries data, explains a process, or proves a claim. Decorative graphics add zero GEO value.

For the chart image file itself:

Step 8: Internal Linking


Step 9: Visual QA — Render and Verify Before Delivery

After generating any chart, you MUST open it in a browser and visually inspect it before delivering to the user. SVG coordinate math is error-prone — elements frequently overflow, overlap, or clip.

QA process

  1. Save the chart as an HTML file
  2. Open it in the browser (use open command)
  3. Check for these common SVG issues:

| Issue | What to Look For |

|---|---|

| Text overflow | Labels or callout boxes extending past the SVG viewBox edge — especially right-side text, long annotations, and regional/legend callouts |

| Text clipping | Data labels cut off at top of chart (y too small) or bottom (below baseline) |

| Overlap | Bar labels overlapping each other, especially in horizontal [человек] with many rows |

| Misalignment | Data labels not centered over their [человек]/points |

| Axis mismatch | Data values that don't align with the axis scale visually |

| Readability | Text too small at rendered size, low contrast against background |

Safe SVG layout rules

If you find issues

Fix them immediately — adjust coordinates, [человек] text, break lines, or expand the viewBox. Then re-open and verify the fix. Do NOT deliver a chart you haven't visually confirmed.


Integration with Other Skills

This skill is designed to work alongside the write-seo-geo-content and geo-content-research skills.

When called from write-seo-geo-content

The blog writer may request charts for Part 3 (problem statistics) or Part 4 (solution comparison). When creating charts for a blog post:

When called from geo-content-research

The GEO skill may request charts for Phase 4 Data & Evidence Pages. When creating charts for these pages:


Complete Output Template

For every chart, deliver all of these:

1. TAKEAWAY HEADING
   <h2>AI Overviews Cite Top-10 Pages 78% of the Time</h2>

2. KEY FINDING SUMMARY (40-60 words, above chart)
   [Text block]

3. CHART
   [SVG code / Mermaid code / Chart config]

4. SOURCE & METHODOLOGY (below chart)
   Source: [Org], [Year]. N=[sample]. Methodology: [1 sentence].

5. "WHAT THIS MEANS" (2-3 sentences, after chart)
   [Interpretation paragraph]

6. DATA TABLE (HTML)
   [Full semantic <table>]

7. DOWNLOADABLE DATA
   [CSV content or link]

8. STRUCTURED DATA (JSON-LD)
   [Dataset schema]

9. IMAGE METADATA
   - Filename: [descriptive-name.svg]
   - Alt text: [conclusion-focused description]
   - Figcaption: [visible caption text]

Quality Checklist

Before delivering any chart, verify:

<!--kit-footer-->


Like this skill? It is part of second-brain-starter-kit: the second brain we built for ourselves and run every day at Palo Alto AI Research Lab. Install the whole set with npx skills add tonydzi/second-brain-starter-kit. Everything is open source and free, so take what you need.

Flagships worth a look on their own: secondop-panel (a second opinion from a panel of external models), claude-memory-tidy (stop your agent's memory from rotting), telegram-mcp-kit (your own Telegram over MCP in about 15 minutes).

Author: Anton Dziatkovskii, Palo Alto AI Research Lab. Telegram @tonydzi - WhatsApp +1 341 222 9178 - X @Tony_Stef_

Engineers: want to test-drive this setup? Message me. I hand out free starter seeds to engineers who test and report back, and custom skill requests are welcome.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.