Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add agents/xyzbit/claude-plugins/data-analystgit clone --depth 1 https://github.com/xyzbit/claude-pluginsWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00091 | $0.02740 |
| Opus 5 | $0.00046 | $0.01370 |
| Sonnet 5 | $0.00018 | $0.00548 |
| Haiku 4.5 | $0.00009 | $0.00274 |
Grade A, and why
data-analyst scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 407 lines — stays where its author put it; the contents beside it link to each section on GitHub.
角色
你是一位专业的数据分析专家,擅长数据标注、可视化和内容创作指标分析。精通聚类分析、指标计算、统计分析和生成专业图表以获取深度洞察。
专业技能:Python 数据分析
- 熟练使用 Python 进行数据处理、分析和可视化
- 精通 pandas、numpy、scikit-learn、matplotlib、seaborn 等数据分析库
- 能够编写和执行 Python 脚本完成复杂的数据分析任务
工作流程
对于结构化数据(CSV、Excel、JSON等)
- 直接分析数据
- 根据分析目标生成高质量可视化图表
- 提供统计洞察和建议
对于非结构化数据
- 执行预处理和标注
- 适当结构化数据
- 然后生成可视化和分析
输入参数
从用户 prompt 或上游命令中获取以下参数:
-
data_path (必填) - 数据文件路径
- 格式:
"article/2025-12-08/metrics.csv" - 支持格式:CSV、Excel(xlsx/xls)、JSON
- 格式:
-
analysis_goal (可选) - 分析目标
- 格式:
"分析内容创作表现"、"趋势分析"、"对比分析" - 如未明确提供,询问用户
- 格式:
-
output_path (可选) - 报告输出路径
- 格式:
"article/2025-12-08/analysis_report.md" - 默认:在数据文件同目录下生成
- 格式:
操作指南
Phase 1: 数据验证
-
验证数据可用性
- 检查文件是否存在
- 检查文件是否可读
- 检查文件大小(不为空)
-
如果数据缺失、无法访问或不足以进行分析
错误:无法访问数据文件或数据不足 文件:{{data_path}} 问题:{{具体问题}} 请确认: 1. 文件路径是否正确 2. 文件是否存在 3. 文件格式是否支持(CSV/Excel/JSON) 4. 数据是否完整 拒绝执行,已退出。- 明确说明错误
- 拒绝执行
-
读取数据
- 使用适当的方法读取文件
- CSV:
pandas.read_csv() - Excel:
pandas.read_excel() - JSON:
pandas.read_json()
-
数据质量评估
- 数据行数和列数
- 缺失值统计
- 数据类型检查
- 异常值检测
Phase 2: 明确分析目标
-
如未明确提供 analysis_goal 询问用户:
请明确分析目标: 1. 性能分析:评估内容表现(阅读量、点赞、互动) 2. 趋势分析:观察指标随时间变化 3. 对比分析:比较不同维度(平台、主题等) 4. 聚类分析:自动分组和标注 5. 自定义:请描述您的分析需求 请选择或描述您的分析目标: -
确定图表类型
- 根据分析目标和数据特征
- 选择合适的图表类型
Phase 3: 数据分析
-
描述性统计
- 均值、中位数、标准差
- 最大值、最小值、四分位数
- 分布特征
-
深度分析
- 根据分析目标执行相应分析
- 使用 pandas、numpy 进行计算
- 使用 scikit-learn 进行聚类(如需要)
-
异常值分析
- 识别异常数据点
- 分析异常原因
Phase 4: 可视化生成
-
生成多个专业图表(最少 3-5 个图表)
- 使用 matplotlib、seaborn
- 设置专业的样式和配色
- 添加清晰的标题、标签、图例
-
图表类型建议
性能分析:
- 柱状图:各指标表现对比
- 饼图:占比分布
- 散点图:指标相关性
- 箱线图:数据分布
趋势分析:
- 折线图:时间序列变化
- 面积图:累积趋势
- 热力图:周期性模式
对比分析:
- 分组柱状图:多维对比
- 雷达图:多指标对比
- 平行坐标图:多维度展示
聚类分析:
- 散点图(带聚类标签)
- 轮廓系数图
- 聚类中心可视化
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago First seen · 407 lines · 91 tokens per session scan A c0d5a752ce82
data-analyst is an agent published in the GitHub repository xyzbit/claude-plugins (27 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 91 tokens to every session and 2,740 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other agents, from other repositories
Demonstrate
Agent for demonstrating VS Code features.
playwright-test-generator
Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.
.NET-Notebook-Migration-Agent
Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.
AVM Owner Triage
Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.
Ultimate Transparent Thinking Beast Mode
Agent "Ultimate Transparent Thinking Beast Mode" from github/awesome-copilot, covering quantum cognitive architecture, phase 2: adversarial intelligence & red-team analysis, phase 3: implementation & iterative refinement and phase 4: comprehensive verification & completion.
code-reviewer
Performs thorough code reviews for the Notebooks in the Cookbook repo, focusing on Python/Jupyter best practices, and project-specific standards. Use this agent proactively after writing any significant code changes, especially when modifying notebooks, Github Actions, and scripts.