cdf-defect-image-generation — NVIDIA skill for Claude Code
cdf-defect-image-generation produces synthetic solder-defect images for board inspection via a DAG in CDF Orchestration. Useful when rare defects need volume without manual annotation.
no license ★ 4,106 updated 2026-10-23
npx skills add NVIDIA/skills --skill cdf-defect-image-generation -a claude-codeWhat cdf-defect-image-generation does
This skill drives defect_image_generation_smt_dag_k8s. The simulation stage renders components, a sim2real step converts renders into clean golden images, and AnomalyGen applies texture defects: solder bridges, excess solder, missing parts. Pose defects like shift, tombstone and sideflip come straight out of the simulation render.
A script called scripts/payload.py runs the payload through the DAG's model and compiler. It reports job counts, output paths and the effective AnomalyGen staging. Nothing gets submitted, and no storage or cluster access happens at this stage.
You need an authorized Kubernetes connection, an Airflow 3 controller with the DIG DAG loaded, plus storage and model access. The payload checker expects a trusted CDF Orchestration checkout that includes skills/cdf-orchestration-preflight/scripts/storage_check.py. If that file is missing, the skill treats it as a readiness blocker and will not skip the storage mapping check.
The pipeline_mode field selects the stages: simulation, sim2real, full or defect. The skill does not run Simulation, Augmentation or AnomalyGen on their own; separate NVIDIA skills cover that.
What it helps with
- Generate synthetic solder-defect images for PCB inspection pipelines
- Validate a payload against the DAG model without hitting the cluster
- Run the full path from scene render to defected images
- Match each defect image back to its golden and simulated source
- Check GPU and storage readiness before launching a run
Example prompts for the agent
- Build a payload for
fullmode and check it locally withscripts/payload.py - Create JSON with
pipeline_mode: defectfor a prepared clean-image dataset understaging.fetch.input - Verify GPU readiness on the cluster before starting the DAG
How to install cdf-defect-image-generation
1Skills CLI (Vercel)
npx skills add NVIDIA/skills --skill cdf-defect-image-generation -a claude-code2Manually: put the files in place
~/.claude/skills/cdf-defect-image-generation/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/cdf-defect-image-generation/
1Skills CLI (Vercel)
npx skills add NVIDIA/skills --skill cdf-defect-image-generation -a codex2Manually: put the files in place
.agents/skills/cdf-defect-image-generation/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add NVIDIA/skills --skill cdf-defect-image-generation -a cursor2Manually: put the files in place
.cursor/skills/cdf-defect-image-generation/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install NVIDIA/skills skills/cdf-defect-image-generation2Manually: put the files in place
.github/skills/cdf-defect-image-generation/SKILL.md1Skills CLI (Vercel)
npx skills add NVIDIA/skills --skill cdf-defect-image-generation -a gemini-cli2Platform CLI
gemini skills install https://github.com/NVIDIA/skills --path skills/cdf-defect-image-generationManually: put the files in place
.devin/skills/cdf-defect-image-generation/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about cdf-defect-image-generation
How do I install cdf-defect-image-generation in Claude Code?
Run npx skills add NVIDIA/skills --skill cdf-defect-image-generation -a claude-code, then open ~/.claude/skills/cdf-defect-image-generation/SKILL.md.
What does cdf-defect-image-generation do?
It runs the defect_image_generation_smt_dag_k8s DAG, which renders PCB components, turns them into realistic golden images and adds defects through AnomalyGen. Pose defects such as shift, tombstone and sideflip are also covered.
Can this skill run Simulation or AnomalyGen alone?
No. The skill orchestrates the whole DAG and separates stages only through pipeline_mode. Running those components independently requires their own NVIDIA skills.