Skip to content
Back to skills

Package Apis

ASecurity

"Inspect and use detrex Python APIs for layers, losses, matchers,

  • 247 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 8, 2026
developmentpythonapibackend

Works with

  • api

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill package-apis --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Package Apis?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Package Apis
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-package-apis/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-package-apis)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: package-apis
description: "Inspect and use detrex Python APIs for layers, losses, matchers,
  backbones, data mappers, config helpers, checkpointing, EMA, distributed
  utilities, and WandB writer."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# detrex package APIs

Use this sub-skill when the task is to import, inspect, instantiate, or debug detrex Python APIs rather than run a training, evaluation, demo, or model-zoo workflow.

## Fast route

1. If the user is unsure whether detrex is importable, run the bundled helper first:
   - `python scripts/api_smoke.py --help` to see safe checks.
   - `python scripts/api_smoke.py --strict` to inspect public imports and signatures without downloads or training.
   - Add `--check-cuda-extension` only when the user specifically needs the compiled multi-scale deformable-attention extension.
2. Read [references/api-reference.md](references/api-reference.md) for layers, losses, matchers, config helpers, checkpointing, EMA, distributed helpers, and WandB writer usage.
3. Read [references/backbones-and-data.md](references/backbones-and-data.md) when the task involves `ResNet`, `TimmBackbone`, `TorchvisionBackbone`, `ChannelMapper`, data mappers, transforms, or feature-shape wiring.
4. Read [references/troubleshooting.md](references/troubleshooting.md) when imports fail, CUDA operators are missing, LazyConfig lookup fails, a matcher or loss signature is confusing, a mapper cannot consume a dataset dict, or WandB/distributed/checkpoint behavior is surprising.

## Operating rules

- Prefer public package imports such as `detrex.layers`, `detrex.modeling`, `detrex.modeling.backbone`, `detrex.data`, `detrex.config`, `detrex.checkpoint`, and `detrex.utils`.
- Do not rely on the repository source tree being present. Use installed-package imports or user-provided code/config paths.
- Do not trigger downloads by default. For backbone experiments, set `pretrained=False` unless the user explicitly asks for pretrained weights and has arranged caches/network access.
- Do not run training, evaluation, dataset registration, native repo tests, or large CUDA kernels just to answer an API question. Use the bundled smoke helper for inspection and escalate only if the user asks for backend verification.
- Treat compiled operators (`detrex._C`, multi-scale deformable attention, DCNv3) as backend-sensitive. Inspect availability before constructing workflows that require them.

Files in this skill

  • SKILL.md2.4 KB
  • references/api-reference.md13.4 KB
  • references/backbones-and-data.md8.8 KB
  • references/troubleshooting.md10.3 KB
  • scripts/api_smoke.py12.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.