tao-generate-anomalies

tao-generate-anomalies is a skill for Claude Code from NVIDIA/skills. It costs 163 tokens per session (5,416 once invoked), scanned A, original, Apache-2.0.

A pipeline for fine-tuning an anomaly model and generating synthetic anomaly images. It can evaluate the generated images and search settings for each sample to select better results.

In plain words
What is it for?
Use it to adapt the model to an anomaly dataset, create artificial defect images, compare their quality, and assemble filtered results.
Why use it?
It combines training, image generation, quality checking, and parameter search instead of requiring separate workflow steps.

Skill for Claude Code ✓ vendor

Written for Claude Code: allowed-tools in frontmatter.

Part of the nvidia-tao-toolkit plugin — 82 skills, 1 hook shipped together

Good fit Use it to adapt the model to an anomaly dataset, create artificial defect images, compare their quality, and assemble filtered results.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nvidia/skills/tao-generate-anomalies
About the project

NVIDIA/skills is a catalogue of portable instruction sets that teach coding agents how to use NVIDIA software for robotics, simulation, CUDA, retrieval-augmented generation, and related workflows. Developers install these skills in agents such as Claude Code or Codex, while the catalogue mirrors skills maintained in separate NVIDIA product repositories.

NVIDIA/skills · 4,222 stars · on GitHub · docs.nvidia.com

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add NVIDIA/skills --skill tao-generate-anomalies
Clone the repo
git clone --depth 1 https://github.com/NVIDIA/skills

Made for: Claude Code.

Or install nvidia-tao-toolkit, the plugin that ships this one along with the rest of its 82 skills, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for tao-generate-anomalies

README.md
[![agentmods](https://agentmods.dev/badge/skills/nvidia/skills/tao-generate-anomalies/github.svg)](https://agentmods.dev/skills/nvidia/skills/tao-generate-anomalies)
Your own site
<a href="https://agentmods.dev/skills/nvidia/skills/tao-generate-anomalies"><img src="https://agentmods.dev/badge/skills/nvidia/skills/tao-generate-anomalies/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for tao-generate-anomalies

Your own site · 80×15
<a href="https://agentmods.dev/skills/nvidia/skills/tao-generate-anomalies"><img src="https://agentmods.dev/badge/skills/nvidia/skills/tao-generate-anomalies.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 163 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,416 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00163 $0.05416
Opus 5.5 $0.00065 $0.02166
Sonnet 5.5 $0.00033 $0.01083
Haiku 4.5 $0.00016 $0.00542

Measured 4d ago against content hash eac9d8b1445e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

tao-generate-anomalies scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

plugins/nvidia-tao-toolkit/skills/tao-generate-anomalies/SKILL.md · 396 lines

How it starts

The opening of the file, as written. The whole thing — 396 lines — stays where its author put it; the contents beside it link to each section on GitHub.

TAO Generate Anomalies

Standalone install? If this session was not initialized by the TAO skill bank plugin, run the tao-setup skill first (host preflight, credentials, cross-skill discovery).

Multi-phase pipeline (0–7); the mode flag selects which phases run.

Phase What runs Mode(s)
0 Verify / download pretrained checkpoints all
1 Fine-tune on dataset_dir full, finetune_only
2 Prepare inference JSONL (AMP routing) full, inference_only
3 SDG — generate synthetic anomaly images → original/ full, inference_only
4 Eval original/ — emit per_sample.csv + eval.log, merge nn_score into SDG_result.csv full, inference_only
5 Per-sample (guidance, crop_ratio) search rounds → rounds/round_NN/ (each round runs SDG + eval) full, inference_only
6 Assemble best-of-rounds into searched/ (stitch only), plus rounds/search_summary.csv full, inference_only
7 Filter searched/ by nn_threshold (default 0.4), regen dropped samples, then canonical bucket eval → searched/{per_sample.csv, eval.log} full, inference_only

Run every phase through to completion without mid-run pauses. Collect all required parameters up front, and run every command from the repo root.

Shell setup. All ${ANOMALYGEN_SCRIPTS} references resolve to the packaged helper-script directory. Inside the container this is preset (ENV ANOMALYGEN_SCRIPTS=<dir>/scripts/utilities); on the host, export it once per shell:

export ANOMALYGEN_SCRIPTS="$(git rev-parse --show-toplevel)/scripts/utilities"

python3 -m scripts.utilities.<name> invocations work from any CWD inside the container (PYTHONPATH is preset) and from the repo root on the host. When inside a product container (ANOMALYGEN_PRODUCT_MODE=1), invoke anomalygen-guard before any GPU work; if it reports BLOCKED, fix the listed issues before continuing.

Quick Start

The pipeline runs inside the metropolis_sdg.paidf_anomalygen container (declared in versions.yaml) or any host with the cosmos-predict2 conda env active. All phase commands assume that environment, at the repo root, with ANOMALYGEN_SCRIPTS exported.

Read the full file on GitHub · 396 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 396 lines · 163 tokens per session scan A eac9d8b1445e

Subscribe to this mod's changes

tao-generate-anomalies is a skill published in the GitHub repository NVIDIA/skills (4,222 stars, last pushed 2d ago), licensed Apache-2.0. It adds 163 tokens to every session and 5,416 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-26.

Related

tao-generate-anomalies compared with skills from other repositories

tao-generate-anomalies next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
tao-generate-anomaliesNVIDIA/skillsSkill4.2k2d agoApache-2.0A163Claude Code
deep-learning-pytorchmakifbaysal/tasktrooperSkill123todayApache-2.0A55Claude Code, Codex
model-serving-and-monitoringmakifbaysal/tasktrooperSkill123todayApache-2.0A54Claude Code, Codex
data-pipeline-orchestrationmakifbaysal/tasktrooperSkill123todayApache-2.0A60Claude Code, Codex
data-validation-contractsmakifbaysal/tasktrooperSkill123todayApache-2.0A56Claude Code, Codex
experiment-tracking-and-reproducibilitymakifbaysal/tasktrooperSkill123todayApache-2.0A64Claude Code, Codex
leakage-safe-feature-engineeringmakifbaysal/tasktrooperSkill123todayApache-2.0A57Claude Code, Codex