tao-prepare-anomalygennext-inputs

tao-prepare-anomalygennext-inputs is a skill for Claude Code from NVIDIA/skills. It costs 59 tokens per session (1,459 once invoked), scanned A, original, Apache-2.0.

A preparation workflow for AnomalyGenNext that converts object-detection false negatives into fixed image-mask pairs and embedding inputs. A false negative is an object the detector failed to find; an embedding is a numerical representation used for comparison.

In plain words
What is it for?
Use it to prepare normalized masks, clean-image references, and verified inputs for AnomalyGenNext. It does not train models or generate images.
Why use it?
It preserves the link between each missed object and its clean reference while checking which pairs are valid for later generation.

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 prepare normalized masks, clean-image references, and verified inputs for AnomalyGenNext. It does not train models or generate images.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nvidia/skills/tao-prepare-anomalygennext-inputs
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-prepare-anomalygennext-inputs
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-prepare-anomalygennext-inputs

README.md
[![agentmods](https://agentmods.dev/badge/skills/nvidia/skills/tao-prepare-anomalygennext-inputs/github.svg)](https://agentmods.dev/skills/nvidia/skills/tao-prepare-anomalygennext-inputs)
Your own site
<a href="https://agentmods.dev/skills/nvidia/skills/tao-prepare-anomalygennext-inputs"><img src="https://agentmods.dev/badge/skills/nvidia/skills/tao-prepare-anomalygennext-inputs/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-prepare-anomalygennext-inputs

Your own site · 80×15
<a href="https://agentmods.dev/skills/nvidia/skills/tao-prepare-anomalygennext-inputs"><img src="https://agentmods.dev/badge/skills/nvidia/skills/tao-prepare-anomalygennext-inputs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,459 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.00059 $0.01459
Opus 5.5 $0.00024 $0.00584
Sonnet 5.5 $0.00012 $0.00292
Haiku 4.5 $0.00006 $0.00146

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

Security

Grade A, and why

tao-prepare-anomalygennext-inputs 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.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/finalize_anomalygennext_inputs.py, scripts/prepare_anomalygennext_inputs.py, scripts/run_anomalygennext_amp.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

plugins/nvidia-tao-toolkit/skills/tao-prepare-anomalygennext-inputs/SKILL.md · 144 lines

How it starts

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

Prepare AnomalyGenNext Inputs

The first action freezes eligible false-negative identities, isolates each FN mask to its bounding box, selects one deterministic same-type mask, and emits the clean and FN embedding specs. The second action consumes those embedding results, preserves every FN-to-clean pair, and runs native automatic mask placement (AMP) from the AnomalyGenNext container. The final action accepts only pairs for which both mask branches passed AMP, then freezes the exact generation inputs and their hashes.

Input contract

Start from assets/default_filtering.yaml. The gap parquet must contain:

image_id filepath gap_type bbox class split
dataset_id texture_id defect_class anomaly_type fn_mask_source

Identity is explicit: anomaly_type must equal texture_id+defect_class. Preparation intentionally has no filename or directory-layout inference. A caller adapting an unfamiliar dataset must normalize these fields before this boundary.

Clean references are resolved independently for each routed FN/type. A missing directory or a directory with no supported images skips only affected FNs with reason no_clean_reference_images; it does not disable other types.

Each selected dataset maps to an existing fine-tuned checkpoint and recipe. The recipe must declare the exact anomaly type, and defect_spec.jsonl must contain its placement definition. Text-routed definitions require a nonempty roi_prompt_defect_location. The pool layout is:

POOL/TEXTURE/clean_image/*
POOL/TEXTURE/mask/DEFECT/*

Action

Run through the selected platform after the common launch review:

scripts/prepare_anomalygennext_inputs.py \
  --config /path/to/filtering.yaml \
  --pool-dataset-root /path/to/anomalygen_pool \
  --output-dir /new/result/root

The output root must not exist. The action emits fn_queries.parquet, selected_fn_queries.parquet, mask_selection.parquet, clean_pool.parquet, two tao-generate-image-embeddings specs, the copied filtering config, and input_contract.json. Mask eligibility is evaluated per FN. The contract lists eligible FN IDs plus stable skipped FN IDs and machine-readable reasons; skipped FNs are absent from every query, embedding, mask, and AMP input. Donor masks are tried in deterministic order until one valid same-type donor is found.

Read the full file on GitHub · 144 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 144 lines · 59 tokens per session scan A 7473916e433e

Subscribe to this mod's changes

tao-prepare-anomalygennext-inputs is a skill published in the GitHub repository NVIDIA/skills (4,222 stars, last pushed 2d ago), licensed Apache-2.0. It adds 59 tokens to every session and 1,459 once invoked, about $0.0002 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-prepare-anomalygennext-inputs compared with skills from other repositories

tao-prepare-anomalygennext-inputs next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
tao-prepare-anomalygennext-inputsNVIDIA/skillsSkill4.2k2d agoApache-2.0A59Claude Code
tao-prepare-anomalygennext-inputsNVIDIA-TAO/tao-skill-bankSkill1024d agoApache-2.0A59Claude Code
tao-generate-od-defectsNVIDIA-TAO/tao-skill-bankSkill1024d agoApache-2.0A54Claude Code
tao-finetune-anomalygennextNVIDIA-TAO/tao-skill-bankSkill1024d agoApache-2.0A58Claude Code
data-validation-contractsmakifbaysal/tasktrooperSkill123todayApache-2.0A56Claude Code, Codex
eda-and-data-profilingmakifbaysal/tasktrooperSkill123todayApache-2.0A61Claude Code, Codex
tao-analyze-gaps-od-mapNVIDIA-TAO/tao-skill-bankSkill1024d agoApache-2.0A84Claude Code