AGENT SKILL

games-and-configs

Selects, validates, and adapts MuZero General games, MuZeroConfig fields, custom Game wrappers, and optional environment dependencies.

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

01 前言 Front Matter

name
games-and-configs
license
MIT
metadata
{ "disco-role": "operating" }
description
Selects, validates, and adapts MuZero General games, MuZeroConfig fields, custom Game wrappers, and optional environment dependencies.
disable-model-invocation
true

02 资源文件 5

03 SKILL.md 正文

Games and Configs

Use this sub-skill when the task is to choose a built-in MuZero General game, inspect or modify MuZeroConfig, add a new game wrapper, validate observation/action contracts, troubleshoot optional game dependencies, or explain single-player/two-player game behavior.

Fast route

  1. Read games-and-configs.md for the built-in game catalog, AbstractGame contract, custom game recipe, and optional dependency map.

  2. Read configuration-reference.md before editing MuZeroConfig fields for game shape, self-play, network, training, replay buffer, reanalyse, GPU, or temperature behavior.

  3. Read troubleshooting.md when imports fail, observations do not match observation_shape, legal actions are empty/illegal, rendering blocks, or optional dependencies are missing.

  4. Discover available game modules without training:

    python sub-skills/games-and-configs/scripts/list_builtin_games.py --format table
    
  5. Validate a selected or custom game wrapper without rendering/training:

    python sub-skills/games-and-configs/scripts/validate_game_module.py --module games.tictactoe --json
    

Scope and boundaries

This sub-skill owns:

  • games.abstract_game.AbstractGame methods and expected Game wrapper behavior.
  • Built-in game names, player counts, observation shapes, action spaces, network defaults, opponent defaults, and optional package needs.
  • MuZeroConfig field groups and how they affect training/search/model construction.
  • Custom game wrapper authoring and validation steps.
  • Dependency handling for Gym classic-control, Box2D LunarLander, Atari/OpenCV/ALE, MiniGrid, and OpenSpiel.

Route elsewhere when the task is primarily about:

  • Running training/testing, building CLI commands, Ray workers, or TensorBoard: training-and-cli.
  • Debugging model tensor shapes, support transforms, MCTS action masks, or GameHistory stacking: models-and-mcts.
  • Loading checkpoints or diagnosing learned dynamics from saved weights: checkpoints-and-diagnostics.

Safe defaults

  • Use tictactoe, connect4, gomoku, twentyone, and cartpole for dependency-light validation in normal CPU environments.
  • Skip render() and human_to_action() in automated checks; many wrappers call input().
  • Treat lunarlander, atari, breakout, gridworld, and spiel as optional integrations until their specific dependencies are installed.
  • Keep action spaces as contiguous integer indexes (list(range(n))) unless changing MuZero internals, because policy logits and one-hot dynamics use actions as tensor indexes.

Custom game checklist

Before training a custom game:

  • For a new editable game, first stage the bundled source with python scripts/stage_muzero_source.py --dest <workdir>/muzero-general-source; then create a module importable as games.<name> inside that staged copy and pass --repo-root <workdir>/muzero-general-source to validators.
  • Define MuZeroConfig with observation_shape, action_space, players, network, self-play/training/replay fields, and visit_softmax_temperature_fn.
  • Define Game with reset(), step(action), legal_actions(), render(), and optional to_play(), close(), human_to_action(), expert_agent(), action_to_string().
  • Ensure reset() and step() return observations exactly shaped like config.observation_shape.
  • Ensure legal_actions() is non-empty before search and a subset of config.action_space.
  • Run validate_game_module.py and then the model/MCTS smoke before training. Omit --repo-root for bundled built-ins; pass --repo-root only for staged custom-game copies.

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