AGENT SKILL

extensions-and-environments

Use MetaGPT extension optimizers, Android/Stanford Town/werewolf/Minecraft integrations, and external environment APIs safely.

License 许可
MIT
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
extensions-and-environments
license
MIT
metadata
{ "disco-role": "operating" }
description
Use MetaGPT extension optimizers, Android/Stanford Town/werewolf/Minecraft integrations, and external environment APIs safely.
disable-model-invocation
true

02 资源文件 5

03 SKILL.md 正文

Extensions and Environments

Use this sub-skill when a request involves MetaGPT extension workflows or external environment integrations: AFlow workflow optimization, SPO prompt optimization, CR code-review experiments, SELA AutoML experiments, Android Assistant, Stanford Town, werewolf, Minecraft, MGX/software environments, or custom ExtEnv read/write APIs.

Route Here For

  • Running safe preflight for AFlow or SPO optimizer entrypoints without downloading datasets or calling LLMs.
  • Planning AFlow optimization, custom AFlow benchmarks, workflow templates, operators, datasets, and optimizer output directories.
  • Planning SPO prompt optimization, template YAMLs, CLI/API use, Streamlit UI setup, and prompt output inspection.
  • Understanding Android Assistant learning/acting stages, ADB/device/emulator prerequisites, screenshots/XML paths, and safe setup checks.
  • Starting or adapting Stanford Town or werewolf simulations when the user confirms LLM cost, assets, services, and run length.
  • Designing custom environment integrations with ExtEnv, Environment, EnvAPIAbstract, mark_as_readable, mark_as_writeable, and concrete Android/Stanford Town/werewolf/Minecraft envs.
  • Understanding high-level CR and SELA extension flows, including Python/Java patch review points and AutoML/MCTS experiment configs.

Route Elsewhere

  • Core Action, Role, Team, CLI project generation, incremental runs, and software-company workflows: use software-company.
  • Data Interpreter task planning/execution and notebook-style analysis: use data-interpreter.
  • RAG pipelines, search/browser tools, vector stores, and tool registries: use rag-and-tools.
  • Serialization, maintainer internals, memory/experience persistence APIs, and repository parser internals: use maintainer-apis when present.
  • Provider credentials, root installation, and cross-cutting LLM configuration failures: use the root MetaGPT config/troubleshooting guidance first, then return here for extension-specific setup.

Reference Map

  • references/workflows.md: AFlow, SPO, Android Assistant, Stanford Town, werewolf, CR/SELA, Minecraft, and custom environment recipes.
  • references/api-reference.md: extension modules, optimizer classes, environment APIs, action/observation spaces, and config concepts.
  • references/configuration.md: optimizer configs, LLM model names, datasets, workspaces, device/browser/service prerequisites, and skip conditions.
  • references/troubleshooting.md: missing datasets/templates, API keys, long optimization costs, optional imports, Android/ADB, simulations, Minecraft services, and environment API misuse.
  • scripts/optimizer_help_check.py: safe helper for AFlow/SPO parser help and module import availability checks.

Safe First Steps

  1. Use scripts/optimizer_help_check.py --target all --mode help to confirm bundled AFlow/SPO parser surfaces without importing optimizer modules or running optimization.
  2. Treat AFlow/SPO full optimization, CR confirmation, SELA experiments, Android Assistant, Stanford Town, werewolf, and Minecraft as LLM-costing, service/device-dependent, or long-running unless the user explicitly confirms prerequisites.
  3. Prefer planning, config validation, parser help, and module import checks before any command that downloads datasets, starts devices/services, launches browser/UI processes, or runs multi-round simulations.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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).

★ 351