Googlesheets analyze data

From theexperiencecompany/gaia · View interactive version

Googlesheets analyze data is an AI agent skill from the GitHub repository theexperiencecompany/gaia. Analyze spreadsheet data intelligently - understand structure, choose right analysis tool (SQL/pivot/chart), apply formatting, present insights.

How to use this skill

Skill file

Google Sheets Analyze Data

When to Use

Tools

Discovery

Analysis

Visualization

Formatting

Sharing

Workflow

Step 1: Understand the Data (CRITICAL)

Before any analysis, read the data:

GOOGLESHEETS_SEARCH_SPREADSHEETS(query="sales data")
GOOGLESHEETS_GET_SHEET_NAMES(spreadsheet_id="...")
GOOGLESHEETS_VALUES_GET(
    spreadsheet_id="...",
    range="Sheet1!A1:Z5"
)

Study the results to understand:

Step 2: Choose the Right Analysis Tool

| Need | Tool |

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

| Simple aggregation (totals, averages) | EXECUTE_SQL |

| Cross-dimensional summary | CUSTOM_CREATE_PIVOT_TABLE |

| Visual patterns and trends | CUSTOM_CREATE_CHART |

| Highlight specific values | CUSTOM_ADD_CONDITIONAL_FORMAT |

| Restrict input options | CUSTOM_SET_DATA_VALIDATION |

Step 3: Execute Analysis

SQL Query Example:

GOOGLESHEETS_EXECUTE_SQL(
    spreadsheet_id="...",
    query="SELECT Category, SUM(Amount), AVG(Amount) FROM Sheet1 GROUP BY Category ORDER BY SUM(Amount) DESC"
)

Pivot Table Example:

GOOGLESHEETS_CUSTOM_CREATE_PIVOT_TABLE(
    spreadsheet_id="...",
    source_sheet="Sales",
    rows=["Region", "Product"],
    values=[
        {"column": "Revenue", "aggregation": "SUM"},
        {"column": "Orders", "aggregation": "COUNT"}
    ]
)

Chart Example:

GOOGLESHEETS_CUSTOM_CREATE_CHART(
    spreadsheet_id="...",
    sheet_name="Sales",
    chart_type="BAR",
    title="Revenue by Region"
)

Step 4: Apply Visual Formatting

Conditional formatting:

GOOGLESHEETS_CUSTOM_ADD_CONDITIONAL_FORMAT(
    spreadsheet_id="...",
    sheet_name="Sales",
    range="D2:D100",
    condition="greater_than",
    condition_values=["1000"],
    background_color="#4CAF50"
)

Data validation (dropdowns):

GOOGLESHEETS_CUSTOM_SET_DATA_VALIDATION(
    spreadsheet_id="...",
    sheet_name="Tracker",
    range="B2:B100",
    validation_type="dropdown_list",
    values=["High", "Medium", "Low"]
)

Step 5: Present Insights

Don't just return raw data, interpret it:

Then offer: "Want me to create a chart to visualize this?"

Step 6: Range Notation Reference

Important Rules

  1. Understand data first: Always read structure before analyzing
  2. Choose right tool: SQL for queries, pivot for summaries, charts for visuals
  3. Interpret results: Present insights, not just raw numbers
  4. Offer visualizations: After analysis, suggest charts when appropriate
  5. Respect data: Don't modify source data unless asked; create new sheets for analysis
  6. Destructive actions need consent: Deleting sheets, clearing ranges, overwriting data
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.