一键导入
data-analysis
Analyze data (e.g. an uploaded CSV/Excel) with pandas and produce a chart or report file, returned to the user as an attachment.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Analyze data (e.g. an uploaded CSV/Excel) with pandas and produce a chart or report file, returned to the user as an attachment.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Solve the user's task by writing Python; the harness runs it in an isolated sandbox and returns stdout.
Use when the user asks about using Gemini in an enterprise environment or explicitly mentions Vertex AI, Google Cloud, or Agent Platform. Guides the usage of the Gemini API on Agent Platform with the Google Gen AI SDK. Covers SDK usage (Python, JS/TS, Go, Java, C#), capabilities like multimodal inputs, tools, media generation, caching, batch prediction, and Live API.
Manages datasets, tables, and jobs in BigQuery, and integrates with BigQuery ML and Gemini for advanced data analytics and AI-driven insights. Use when you need to interact with BigQuery, run SQL queries, manage BigQuery resources, or leverage BigQuery's built-in ML capabilities. Also use when performing data analysis, ingesting data into BigQuery, or developing AI applications on BigQuery.
Echo the user input back verbatim
Compute the prime factorization of an integer by executing Python in the sandbox
Reverse the user input string
| name | data-analysis |
| description | Analyze data (e.g. an uploaded CSV/Excel) with pandas and produce a chart or report file, returned to the user as an attachment. |
Use this skill when the user wants to analyze data and/or get a chart or report — especially when they uploaded a data file.
Steps:
df = pandas.read_csv("data.csv") (or read_excel). Inspect columns/dtypes as needed.matplotlib/seaborn fig.savefig("chart.png", dpi=150, bbox_inches="tight").report.xlsx (df.to_excel) or report.csv.run_code with the full script.Displaying charts in the UI:
chart.png -> {{chart:ab12}}. To show it, make ONE send_a2ui_json_to_client call
whose a2ui_json is a JSON list with BOTH a beginRendering and a surfaceUpdate —
never beginRendering alone (that's an empty surface). Lay the surface out top-to-bottom:
a title Text, a thinking Text (2–4 short sentences explaining how you approached the
task and what the data shows — your reasoning, in plain language), then the chart in an
Image whose url is the token copied EXACTLY (it resolves to the real image).
Column.children uses {"explicitList": [<ids>]}:
[
{"beginRendering": {"surfaceId": "report", "root": "root", "styles": {}}},
{"surfaceUpdate": {"surfaceId": "report", "components": [
{"id": "root", "component": {"Column": {"children": {"explicitList": ["title", "thinking", "chart"]}}}},
{"id": "title", "component": {"Text": {"text": {"literalString": "<headline>"}, "usageHint": "h3"}}},
{"id": "thinking", "component": {"Text": {"text": {"literalString": "<2-4 sentences: how you analyzed it + what the data shows>"}}}},
{"id": "chart", "component": {"Image": {"url": {"literalString": "{{chart:ab12}}"}}}}
]}}
]
Guidance:
savefig("chart.png", ...) so the user gets a rendered image.