Anomalib Repo Skill
Use this repo skill when the user asks about the anomalib Python package, anomaly-detection data modules, model selection, training and evaluation, export and inference, or benchmark pipelines.
This skill tree is self-contained. Future agents should use the bundled references and scripts inside this directory, not the original source checkout.
Repo at a glance
src/anomalib/: public package source for data, models, engine, deploy, and pipelines.
docs/source/...: user-facing guides, API references, and troubleshooting notes distilled into bundled references.
examples/api/ and examples/cli/: runnable workflow examples that informed the bundled recipes and scripts.
tests/: behavior evidence for defaults, errors, and edge cases.
tools/: repo-owned helpers and advanced entry points that were copied, adapted, or referenced where safe.
Quick start
- If you only need to confirm the package imports, run
scripts/check_import.py.
- If installation, optional extras, or CLI flags are the problem, start with
sub-skills/install-and-cli/SKILL.md.
- If the request is about data layout or choosing a model, route to
sub-skills/data-and-models/SKILL.md.
- If the request is about fit/train/test/validate, metrics, callbacks, logging, preprocessing, or visualization, route to
sub-skills/training-and-evaluation/SKILL.md.
- If the request is about export,
Engine.predict, or runtime inferencers, route to sub-skills/deployment-and-inference/SKILL.md.
- If the request is about benchmark configs or tiled ensemble workflows, route to
sub-skills/pipelines-and-benchmarks/SKILL.md.
Route by task
| User request |
Go to |
| "How do I install anomalib or fix a CLI/help problem?" |
sub-skills/install-and-cli/ |
| "Which datamodule or model should I use?" |
sub-skills/data-and-models/ |
| "How do training, validation, metrics, or callbacks work?" |
sub-skills/training-and-evaluation/ |
| "How do I export or run inference from a checkpoint?" |
sub-skills/deployment-and-inference/ |
| "How do I run a benchmark or tiled ensemble config?" |
sub-skills/pipelines-and-benchmarks/ |
How to choose quickly
- Start with the smallest workflow that matches the user's current step.
- If the user is blocked by installation or CLI syntax, resolve that first through install-and-cli.
- If the user already has data and a model choice, use data-and-models before any training step.
- If the user has a checkpoint and wants predictions or deployment artifacts, use deployment-and-inference.
- If the user needs benchmark-scale orchestration, use pipelines-and-benchmarks and keep execution planning separate from model or data selection.
Shared references
references/repo-provenance.md records the source snapshot, package version, and evidence footprint.
references/repo-routing-metadata.json feeds the managed repo-skill router during import.
references/troubleshooting.md covers package-wide install, import, and routing failures.
scripts/check_import.py is a minimal package-import smoke check.
Operating notes
- Prefer the most specific sub-skill instead of staying at the root.
- Keep install and CLI issues separate from model or pipeline questions.
- Keep deployment and inference separate from training and evaluation.
- Keep benchmark orchestration separate from engine internals unless the user explicitly asks for both.
- If a user asks for a broad end-to-end task, use the sub-skill that owns the current bottleneck, then cross-link to the next step.
Self-check
A healthy runtime installation should at least be able to import anomalib and report its version. Use the bundled import check first, then move into the relevant sub-skill for deeper guidance.
1---2name: anomalib3description: "Use anomalib for anomaly-detection install, data/model selection,4 training and evaluation, deployment and inference, and benchmark pipelines."5metadata:6 source: https://skillmd.com/skills/vectorspacelab/anomalib7 disco-role: operating8disable-model-invocation: true9license: Apache 2.010---1112# Anomalib Repo Skill1314Use this repo skill when the user asks about the `anomalib` Python package, anomaly-detection data modules, model selection, training and evaluation, export and inference, or benchmark pipelines.1516This skill tree is self-contained. Future agents should use the bundled references and scripts inside this directory, not the original source checkout.1718## Repo at a glance1920- `src/anomalib/`: public package source for data, models, engine, deploy, and pipelines.21- `docs/source/...`: user-facing guides, API references, and troubleshooting notes distilled into bundled references.22- `examples/api/` and `examples/cli/`: runnable workflow examples that informed the bundled recipes and scripts.23- `tests/`: behavior evidence for defaults, errors, and edge cases.24- `tools/`: repo-owned helpers and advanced entry points that were copied, adapted, or referenced where safe.2526## Quick start2728- If you only need to confirm the package imports, run `scripts/check_import.py`.29- If installation, optional extras, or CLI flags are the problem, start with `sub-skills/install-and-cli/SKILL.md`.30- If the request is about data layout or choosing a model, route to `sub-skills/data-and-models/SKILL.md`.31- If the request is about fit/train/test/validate, metrics, callbacks, logging, preprocessing, or visualization, route to `sub-skills/training-and-evaluation/SKILL.md`.32- If the request is about export, `Engine.predict`, or runtime inferencers, route to `sub-skills/deployment-and-inference/SKILL.md`.33- If the request is about benchmark configs or tiled ensemble workflows, route to `sub-skills/pipelines-and-benchmarks/SKILL.md`.3435## Route by task3637| User request | Go to |38| --- | --- |39| "How do I install anomalib or fix a CLI/help problem?" | `sub-skills/install-and-cli/` |40| "Which datamodule or model should I use?" | `sub-skills/data-and-models/` |41| "How do training, validation, metrics, or callbacks work?" | `sub-skills/training-and-evaluation/` |42| "How do I export or run inference from a checkpoint?" | `sub-skills/deployment-and-inference/` |43| "How do I run a benchmark or tiled ensemble config?" | `sub-skills/pipelines-and-benchmarks/` |4445## How to choose quickly46471. Start with the smallest workflow that matches the user's current step.482. If the user is blocked by installation or CLI syntax, resolve that first through install-and-cli.493. If the user already has data and a model choice, use data-and-models before any training step.504. If the user has a checkpoint and wants predictions or deployment artifacts, use deployment-and-inference.515. If the user needs benchmark-scale orchestration, use pipelines-and-benchmarks and keep execution planning separate from model or data selection.5253## Shared references5455- `references/repo-provenance.md` records the source snapshot, package version, and evidence footprint.56- `references/repo-routing-metadata.json` feeds the managed repo-skill router during import.57- `references/troubleshooting.md` covers package-wide install, import, and routing failures.58- `scripts/check_import.py` is a minimal package-import smoke check.5960## Operating notes6162- Prefer the most specific sub-skill instead of staying at the root.63- Keep install and CLI issues separate from model or pipeline questions.64- Keep deployment and inference separate from training and evaluation.65- Keep benchmark orchestration separate from engine internals unless the user explicitly asks for both.66- If a user asks for a broad end-to-end task, use the sub-skill that owns the current bottleneck, then cross-link to the next step.6768## Self-check6970A healthy runtime installation should at least be able to import `anomalib` and report its version. Use the bundled import check first, then move into the relevant sub-skill for deeper guidance.