# Physical AI defect image generation

> Physical AI defect image generation is an open-source agent skill for design and media. Use when the user wants to orchestrate defect image generation with NVIDIA Cosmos AnomalyGen (Cosmos-Predict2-derived) on OSMO for PCBA, met. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/NVIDIA/skills/tree/main/skills/physical-ai-defect-image-generation
- **Repository:** https://github.com/nvidia/skills
- **GitHub stars:** 4,037
- **License:** Apache-2.0
- **Skill name:** physical-ai-defect-image-generation
- **Collection:** https://github.com/NVIDIA/skills
- **Categories:** design and media
- **Listing updated:** 2026-11-17

## About

Use when the user wants to orchestrate defect image generation with NVIDIA Cosmos AnomalyGen (Cosmos-Predict2-derived) on OSMO for PCBA, metal surface, and glass inspection. The Day 0 path handles cold-start with USD-to-ROI, image-edit augmentation, and AnomalyGen to create initial PCBA datasets. The Day 1 path performs inference and labeling on real images. This skill helps with first-time asset setup, creation of finetuning checkpoints, and configuring deployment.
Trigger keywords: defect image generation, dig workflow, dig pipeline, defect image detection workflow, aoi pipeline, aoi anomalygen, usd2roi anomalygen, day 0 pcba, day 1 pcba, day 1 real-photo alignment, day 1 manual roi, metal surface anomaly, glass defect, anomalygen finetune, setup_pcb, setup_metal, setup_glass, setup_pretrained, dig setup, dig datasets, dig pretrained checkpoint, dig image-edit endpoint, cosmos defect generation, cosmos-predict2 defect, cosmos-anomalygen, cosmos predict2 finetune.

## When your agent uses it

> Use when the user wants to orchestrate defect image generation with NVIDIA Cosmos AnomalyGen (Cosmos-Predict2-derived) on OSMO for PCBA, metal surface, and glass inspection. The Day 0 path handles cold-start with USD-to-ROI, image-edit augmentation, and AnomalyGen to create initial PCBA datasets. The Day 1 path performs inference and labeling on real images. This skill helps with first-time asset setup, creation of finetuning checkpoints, and configuring deployment. Trigger keywords: defect image generation, dig workflow, dig pipeline, defect image detection workflow, aoi pipeline, aoi anomalygen, usd2roi anomalygen, day 0 pcba, day 1 pcba, day 1 real-photo alignment, day 1 manual roi, metal surface anomaly, glass defect, anomalygen finetune, setup_pcb, setup_metal, setup_glass, setup_pretrained, dig setup, dig datasets, dig pretrained checkpoint, dig image-edit endpoint, cosmos defect generation, cosmos-predict2 defect, cosmos-anomalygen, cosmos predict2 finetune.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs shell and Python scripts](https://github.com/NVIDIA/skills/tree/HEAD/skills/physical-ai-defect-image-generation)
- [Network calls found in its scripts](https://github.com/NVIDIA/skills/tree/HEAD/skills/physical-ai-defect-image-generation)
- [License: Apache-2.0](https://github.com/NVIDIA/skills/tree/HEAD/skills/physical-ai-defect-image-generation)

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/physical-ai-defect-image-generation` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/NVIDIA/skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/physical-ai-defect-image-generation &&
cp -R "$tmp/skills/physical-ai-defect-image-generation" ~/.claude/skills/physical-ai-defect-image-generation &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/physical-ai-defect-image-generation` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/physical-ai-defect-image-generation` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/NVIDIA/skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/physical-ai-defect-image-generation &&
cp -R "$tmp/skills/physical-ai-defect-image-generation" ~/.agents/skills/physical-ai-defect-image-generation &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/physical-ai-defect-image-generation` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/physical-ai-defect-image-generation` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/NVIDIA/skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/physical-ai-defect-image-generation &&
cp -R "$tmp/skills/physical-ai-defect-image-generation" ~/.cursor/skills/physical-ai-defect-image-generation &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/physical-ai-defect-image-generation` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/NVIDIA/skills.git --path skills/physical-ai-defect-image-generation
```

Or copy the folder to `~/.gemini/skills/physical-ai-defect-image-generation` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/physical-ai-defect-image-generation`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/NVIDIA/skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/physical-ai-defect-image-generation &&
cp -R "$tmp/skills/physical-ai-defect-image-generation" ~/.copilot/skills/physical-ai-defect-image-generation &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/physical-ai-defect-image-generation` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/NVIDIA/skills.git
```

Then copy `skills/skills/physical-ai-defect-image-generation` into your agent's skills folder as `physical-ai-defect-image-generation`. Agents that support SKILL.md read one folder per skill.

## FAQ

### How do I install Physical AI defect image generation in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/physical-ai-defect-image-generation to use it in all your projects, or to .claude/skills/physical-ai-defect-image-generation in one project.

### Does Physical AI defect image generation run scripts?

Yes. It runs shell and Python scripts. Its scripts contain network calls. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Physical AI defect image generation?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Physical AI defect image generation?

The closest alternatives to Physical AI defect image generation are Rea tool design, Codebase design, Frontend design, Canvas design and Web design reviewer.

## Alternatives

- [Rea tool design](https://ai-powered.com/skills/rea-tool-design): Rea tool design is an open-source agent skill for design and media.
- [Codebase design](https://ai-powered.com/skills/codebase-design): Codebase design is an open-source agent skill for design and media.
- [Frontend design](https://ai-powered.com/skills/frontend-design): Frontend design is an agent skill for design and media.
- [Canvas design](https://ai-powered.com/skills/canvas-design): Canvas design is an agent skill for design and media.
- [Web design reviewer](https://ai-powered.com/skills/web-design-reviewer): Web design reviewer is an open-source agent skill for design and media.
- [Nano banana pro openrouter](https://ai-powered.com/skills/nano-banana-pro-openrouter): Nano banana pro openrouter is an open-source agent skill for design and media.
- [Salesforce flow design](https://ai-powered.com/skills/salesforce-flow-design): Salesforce flow design is an open-source agent skill for sales and crm.
- [Power bi model design review](https://ai-powered.com/skills/power-bi-model-design-review): Power bi model design review is an open-source agent skill for analytics and data.

---
Source: https://ai-powered.com/skills/physical-ai-defect-image-generation
