界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
开发与工程 · SKILL.md

repository-development

repository-development

【开发与工程】Edit RF-DETR source while following project contribution, test, style, docs, packaging, model-selection, and CI conventions.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: repository-development description: "Edit RF-DETR source while following project contribution, test, style, docs, packaging, model-selection, and CI conventions." disable-model-invocation: true metadata: disco-role: operating license: Apache 2.0

RF-DETR Repository Development

Use this sub-skill when you are changing RF-DETR source, tests, docs, packaging, or CI. It is for contributor workflows, not for end-user inference, training, or export recipes.

Start Here

  1. Read Contributor guidance before editing source, tests, docs, package metadata, or workflow files.
  2. Use Test selection to choose focused checks during development and full gates before handoff.
  3. If a check fails or optional backends are involved, use Troubleshooting.
  4. To get a dry recommendation from changed paths, run:
python sub-skills/repository-development/scripts/select_checks.py PATH [PATH ...]

The script prints commands only; it does not run tests or modify files.

Routing

Non-Negotiables

  • Use TDD: failing test first for bug fixes; comprehensive tests for features.
  • Every new or changed function/class needs type hints and a Google-style docstring; do not duplicate types inside docstrings.
  • Python files need the RF-DETR license header.
  • Run pre-commit run --all-files before any commit/handoff.
  • Default examples/docs/tests to RFDETRSmall / "rfdetr-small"; do not add new RFDETRBase, "rfdetr-base", segmentation preview, or detection preview usage. Keypoint preview is the only preview variant to use for new material.
  • Keep imports direct and module-scope unless there is a clear optional-dependency, circular-import, import-behavior-test, or startup-side-effect reason.
  • Prefer small visible duplication over a helper that adds indirection without reducing cognitive load.
我的收藏