writing-skills
writing-skills
Use when creating new skills, editing existing skills, or verifying skills work before deployment
architecture-apiInspect and modify D-FINE architecture, registry, YAMLConfig, model components, deploy mode, and API behavior.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill when a task is about D-FINE internals rather than just running a training or inference command: YAML registry construction, component names in configs, model assembly, D-FINE decoder behavior, deploy mode, criterion/postprocessor APIs, checkpoint shape mismatches, or adding a custom component.
YAMLConfig, GLOBAL_CONFIG, register(), and create() turn YAML type names into Python objects.DFINE, HGNetv2, HybridEncoder, DFINETransformer, DFINECriterion, HungarianMatcher, and DFINEPostProcessor.The module ... is not registered, Missing inject config, invalid type entries, or component channel/stride mismatches.scripts/inspect_dfine_model.py before long training or export.num_classes, remap_mscoco_category, and YAML catalog selection: use ../data-and-configs/SKILL.md.--test-only, resume, tuning, DDP, AMP, EMA, or output directories: use ../training-evaluation/SKILL.md.python scripts/inspect_dfine_model.py --repo-root <d-fine-checkout> --config <config.yml> --build-model for a safe import/config/model probe. Add --allow-pretrained only when the user wants pretrained backbone lookup/download behavior.type/injection references that select it.