技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
contribution-and-testing【数据与研究】Use for TorchGeo repository edits, style/type conventions, adding datasets/models/tasks/transforms, fake fixtures, docs updates, and targeted verification commands.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when modifying the TorchGeo repository rather than only using the package.
# Copyright (c) TorchGeo Contributors. All rights reserved.
# Licensed under the MIT License.
X | Y unions.Args, Returns, Raises, and Warns sections as needed.Exception catches. Use TorchGeo dataset errors such as DatasetNotFoundError, RGBBandsMissingError, or DependencyNotFoundError where applicable.torchgeo/datasets/<dataset>.py with the license header.torchgeo/datasets/__init__.py.tests/data/<dataset>/.tests/datasets/test_<dataset>.py with enough coverage for initialization, __getitem__, plotting, missing data, checksum/download behavior, and split handling as applicable.docs/api/datasets.rst and the relevant dataset CSV under docs/api/datasets/.From the repository root:
ruff format && ruff check && ty check && prettier --write .
pytest --cov=torchgeo tests/
pytest --cov=torchgeo.datasets tests/datasets/test_<dataset>.py
pytest --cov=torchgeo.datasets tests/datasets/test_<dataset>.py::TestDataset::test_getitem
pytest -m "" --cov=torchgeo tests/ # includes slow tests, use only when approved
For docs, install docs dependencies and run:
cd docs && make clean && make html
@pytest.mark.slow and respect the default socket-disabled test settings.pytest.importorskip for optional dependencies.