协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
repo-development【开发与工程】Use this sub-skill for maintainer-facing Ultralytics repository edits, editable installs, focused tests, docs/style checks, optional extras, CI-aware validation, and safe native verification planning.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when working inside the Ultralytics repository itself: editable setup, source edits, tests, docs/config updates, style tooling, optional development extras, CI-local parity, or safe native test selection.
../data-and-configuration/SKILL.md../training-and-validation/SKILL.mdResults object usage, plotting, postprocessing, and CLI/Python inference: ../inference-and-results/SKILL.md../export-and-deployment/SKILL.md../tracking-and-solutions/SKILL.md../model-families-and-tasks/SKILL.mdStay here when the user is editing repo code, tests, docs, packaging, CI, or maintainer tooling even if the touched subsystem is owned by another user-facing sub-skill.
python -m pip install -e ".[dev]" in a prepared development environment, then python -c "import ultralytics; print(ultralytics.__version__)".python sub-skills/repo-development/scripts/select_tests.py <changed-path> ....yolo --help, yolo version, yolo cfg, exact pytest nodes) before broad tests.tests/test_*.py file unless the change introduces a new broad test category.pyproject.toml; do not invent a new formatter, linter, docs builder, or dependency policy.Editable maintainer setup:
python -m pip install -e ".[dev]"
python -c "import ultralytics; print(ultralytics.__version__)"
yolo --help
yolo cfg
Focused planner examples:
python sub-skills/repo-development/scripts/select_tests.py ultralytics/engine/results.py
python sub-skills/repo-development/scripts/select_tests.py --json docs/en/help/contributing.md mkdocs.yml
Cheap focused checks after parser/config changes:
pytest tests/test_cli.py::test_special_modes
pytest tests/test_python.py::test_cfg_init
yolo --help
yolo version
yolo cfg
Docs-only change planning should prefer markdown/style/reference checks and skip ML tests unless docs examples changed runtime code:
ruff check docs/en/help/contributing.md
python docs/build_reference.py
python docs/build_docs.py
Treat docs build scripts as environment-gated because they require docs/dev dependencies and may update generated files.
ultralytics/engine/results.py changes should start with exact or file-level engine/API tests plus a direct Results smoke if needed; do not run export matrices unless exporter/backend code changed.docs/, README.md, and mkdocs.yml changes should route to markdown, Ruff, docs reference, and MkDocs checks; skip ML tests by default.tests/ changes should run the changed test node/file first, then the adjacent subsystem only if the test exercises changed behavior.ultralytics/cfg/default.yaml and CLI parser changes should combine tests/test_cli.py::test_special_modes, tests/test_python.py::test_cfg_init, and yolo cfg.references/workflows.mdreferences/api-reference.mdreferences/troubleshooting.mdscripts/select_tests.pyscripts/check_ultralytics_env.py