协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
contribution-maintenance【开发与工程】Contributor and maintainer workflow guidance for MuJoCo Menagerie checks, formatting, license regeneration, gallery updates, and safe test selection.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the user is preparing, reviewing, or repairing a MuJoCo Menagerie contribution and needs the repo's maintainer checks, generated-file workflows, or contribution policy. Keep this sub-skill focused on contribution hygiene and CI-equivalent validation.
model-catalog.mujoco.viewer, robot_descriptions, compile errors, and short simulation smoke tests to model-loading.model-editing.make install, make check, make test, make gallery, make all, pre-commit hooks, XML formatting, top-level license regeneration, README gallery maintenance, changelog/contributor/CLA policy, and choosing an efficient validation subset from changed paths.make all, or gallery render as well.| Change type | Minimum local checks | Escalate when |
|---|---|---|
One or more *.xml files | Run the Menagerie XML formatter in --check or --write mode, then run structural/layout checks for the affected model directory and a selected compile/step smoke through model-loading. | Scene XML, asset references, actuator definitions, or includes changed; run full make test if many directories changed. |
A model LICENSE changed or a model directory was added/removed | Regenerate or check the top-level LICENSE; run make check; run structural tests. | The generated top-level license diff is unexpected, a base license cannot be found, or several model licenses changed. |
| New model directory | Confirm README.md, LICENSE, CHANGELOG.md, one or more *.xml, and normally scene*.xml; update changelog/contributors; update gallery model map when it should appear in the README gallery; run make all. | Sensor-only or non-standalone assets may not need scene*.xml; route catalog/layout judgment to model-catalog. |
| Gallery entry, category, preview, or thumbnail changed | Run make gallery when writes are allowed; inspect README.md and assets/*.png diffs; then run selected loading checks for affected XMLs. | Rendering dependencies or MuJoCo/OpenGL fail; route loading/runtime errors to model-loading. |
| Tooling, tests, Makefile, or pre-commit config changed | Run make check and make test (make all); compare with the GitHub workflow command. | CI differs from local output, pytest parallelism changes, or hook configuration changed. |
| Changelog or contributors changed | Ensure the proper global or per-model changelog was updated; keep contributors sorted alphabetically by first name; run pytest test/model_dir_test.py::ContributorsTest -q when contributors changed. | Contribution ownership or CLA status is unclear; the user must resolve CLA outside the repo. |
From a Menagerie checkout root:
make install # one-time: install pre-commit and the git hook via uv
make check # pre-commit run --all-files: lint, format, license, XML checks
make test # manual pre-commit pytest hook over model + structural tests
make gallery # render thumbnails and update README gallery
make all # make check followed by make test
Bundled helpers in this sub-skill:
python scripts/menagerie_checklist.py path/to/changed.xml path/to/LICENSE
python scripts/format_mjcf_xml.py --check path/to/file.xml
python scripts/format_mjcf_xml.py --write path/to/file.xml
python scripts/check_menagerie_license.py --root /path/to/checkout --check
python scripts/check_menagerie_license.py --root /path/to/checkout --write
Use the repo's own format_xml.py, regenerate_license.py, and generate_gallery.py when operating inside a current checkout; use the bundled helpers when you need portable behavior or a scoped plan outside the source checkout.
--check modes and report exact commands needed to fix generated files.model-loading and request a selected smoke rather than running the full model suite by default.make check, make test, make all, selected structural tests, selected loading smoke, license check, and gallery render were run or intentionally skipped.LICENSE, run structural tests for the model directory, then route one selected scene compile/step smoke to model-loading; do not run make gallery unless the gallery-facing XML, thumbnail, category, or README gallery changed.README.md, LICENSE, CHANGELOG.md, model XML, normally scene*.xml, assets/meshes as referenced, per-model changelog and contributor entry, top-level LICENSE regeneration, gallery MODEL_MAP/category/preview updates when it should be listed, and full make all before PR readiness.