data-interpreter
Use MetaGPT Data Interpreter and RoleZero workflows for data analysis, notebook execution, DI benchmark prompts, and dynamic analyst/SWE roles.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- data-interpreter
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Use MetaGPT Data Interpreter and RoleZero workflows for data analysis, notebook execution, DI benchmark prompts, and dynamic analyst/SWE roles.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/api-reference.md9.7 KB
- 参考文档references/data-formats.md8.6 KB
- 参考文档references/troubleshooting.md9.8 KB
- 参考文档references/workflows.md10.7 KB
- 脚本scripts/di_import_check.py8.8 KB
03 SKILL.md 正文
Data Interpreter
Use this sub-skill when the user asks to run or reason about MetaGPT Data Interpreter (DI), RoleZero, DataAnalyst, SWEAgent, Engineer2, or TeamLeader workflows for data analysis, planning, generated code execution, benchmark prompts, browser/tool-assisted analysis, or DI role debugging.
Route Here When
- The request mentions
DataInterpreter,RoleZero,DataAnalyst,SWEAgent,Engineer2,TeamLeader, DI benchmark tasks, open-ended DI tasks, or notebook-style code execution. - The user wants an Iris/Titanic/Wine/House Prices-style analysis prompt, a DI benchmark task, an open-ended OCR/browser/email/image/game task prompt, or a
data_dirlayout check. - The agent must diagnose DI planning, reflection, tool recommendation, generated-code execution, notebook timeout, or role/tool-command behavior without running an expensive LLM workflow.
- The user asks how DI uses tools such as browser, editor, terminal, custom registered tools, or
tools=["<all>"]from a workflow perspective.
Route Elsewhere
- Core MetaGPT CLI, startup commands, project generation, and software-company workflows belong in
software-company. - Tool registry internals, RAG/search/browser/editor implementation details, and data preprocessing tool internals belong in
rag-and-tools. - AFlow, SPO, optimizer, or experiment-environment workflows belong in
extensions-and-environments. - Serialization, storage, provenance stores, memory backends, or package-maintainer APIs belong in
maintainer-apis. - API-key/provider setup and cross-cutting package configuration errors should use the root MetaGPT troubleshooting guidance, then return here for DI-specific checks.
First Moves
- Confirm the user understands DI runs LLM calls and generated Python/tool code; do not treat DI examples or benchmark runners as safe smoke tests.
- For import or constructor issues, run the bundled diagnostic helper:
python scripts/di_import_check.py. Use--strictonly when a nonzero exit should fail CI. - For dataset tasks, validate
data_dir,task_name, and file placeholders withreferences/data-formats.mdbefore constructing the prompt. - For code execution failures, inspect
references/workflows.mdandreferences/troubleshooting.mdbefore re-running generated code. - For browser, editor, search, terminal, OCR, Stable Diffusion, email, or game-tool tasks, verify prerequisites and safety boundaries first; route implementation details to
rag-and-tools.
Bundled References
references/workflows.md: DI quick starts, benchmark/open-ended task adaptation, planning/execution loops, notebook caveats, RoleZero/team workflows, and safe adaptation rules.references/api-reference.md: key DI roles, actions, constructor knobs, run patterns, tool recommenders, and safe diagnostic guidance.references/data-formats.md: DI dataset layout,task_namekeys,data_dirbehavior, prompt path placeholders, DABench notes, and test-fixture expectations.references/troubleshooting.md: API keys, missing datasets, credentials, browser/OCR/SD optional dependencies, notebook errors, long runs, and unsafe file execution.
Runtime Safety
DI can write and execute Python, operate browser/editor/terminal tools, access networks, and process user data. Prefer sandboxed workspaces, inspect generated code before execution, protect credentials, and skip tasks requiring external API keys, downloads, browsers, Android/devices, Stable Diffusion services, OCR engines, or long LLM benchmarks unless the user explicitly provides those prerequisites.
Evidence provenance distilled from examples/di/README.md, DI example runners, metagpt/roles/di/*, metagpt/actions/di/*, tool library usage, and DI tests. These paths are provenance only; this sub-skill is intended to be self-contained at runtime.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).