Index of every page on this site: llms.txt
All skills
nvidia avatar

/physical-ai-defect-image-generation

@f41ce99
by NVIDIA Corporationnvidia/skills4.1k stars
550
Run it yourself

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.

Use this Skill: https://skilld.dev/gh/nvidia/skills/physical-ai-defect-image-generation

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

BENCHMARK.md

≈976 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Evaluation Report

Evaluation of the physical-ai-defect-image-generation skill before publication through NVSkills-Eval.

This benchmark summarizes 3-Tier Evaluation from NVSkills-Eval results for the skill. The goal is to document whether the skill is safe, discoverable, effective, and useful for agents before it is published for broader workflow use.

Evaluation Summary

  • Skill: physical-ai-defect-image-generation
  • Evaluation date: 2026-06-23
  • NVSkills-Eval profile: external
  • Environment: astra-sandbox
  • Dataset: 6 evaluation tasks
  • Attempts per task: 1
  • Pass threshold: 50%
  • Overall verdict: PASS

Agents Used

  • claude-code
  • codex

Metrics Used

Reported benchmark dimensions:

  • Security: checks whether skill-assisted execution avoids unsafe behavior such as secret leakage, destructive commands, or unauthorized access.
  • Correctness: checks whether the agent follows the expected workflow and produces the correct final output.
  • Discoverability: checks whether the agent loads the skill when relevant and avoids using it when irrelevant.
  • Effectiveness: checks whether the agent performs measurably better with the skill than without it.
  • Efficiency: checks whether the agent uses fewer tokens and avoids redundant work.

Underlying evaluation signals used in this run:

  • security (Security): checks for unsafe operations, secret leakage, and unauthorized access.
  • skill_execution (Skill Execution): verifies that the agent loaded the expected skill and workflow.
  • skill_efficiency (Efficiency): checks routing quality, decoy avoidance, and redundant tool usage.
  • accuracy (Accuracy): grades final-answer correctness against the reference answer.
  • goal_accuracy (Goal Accuracy): checks whether the overall user task completed successfully.
  • behavior_check (Behavior Check): verifies expected behavior steps, including safety expectations.
  • token_efficiency (Token Efficiency): compares token usage with and without the skill.

Test Tasks

The benchmark dataset contained 6 evaluation tasks:

  • Positive tasks: 6 tasks where the skill was expected to activate.
  • Negative tasks: 0 tasks where no skill was expected.
  • Unlabeled tasks: 0 tasks where positive/negative intent could not be inferred.

Task composition is derived from the evaluation dataset when possible. Entries with expected_skill set are treated as positive skill-activation cases, while entries with expected_skill: null are treated as negative activation cases.

Results

Dimension Num claude-code codex
Security 6 100% (+0%) 100% (+0%)
Correctness 6 94% (+71%) 94% (+52%)
Discoverability 6 95% (+70%) 79% (+33%)
Effectiveness 6 79% (+77%) 90% (+76%)
Efficiency 6 78% (+51%) 69% (+33%)

Score values show skill-assisted performance. Values in parentheses show uplift versus the no-skill baseline when baseline data is available.

Tier 1: Static Validation Summary

Tier 1 validation passed with observations. NVSkills-Eval ran 1 checks and found 3 total findings.

Top findings:

  • MEDIUM SCHEMA/body_recommended_section: Missing recommended section: '## Instructions' (skills/physical-ai-defect-image-generation/SKILL.md)
  • MEDIUM SCHEMA/body_recommended_section: Missing recommended section: '## Examples' (skills/physical-ai-defect-image-generation/SKILL.md)
  • LOW SCHEMA/author_format: Author must be of the form 'Name <email@host>' (skills/physical-ai-defect-image-generation/SKILL.md)

Tier 2: Deduplication Summary

This tier was not run or did not produce findings in this report.

Publication Recommendation

The skill is suitable to proceed toward NVSkills-Eval publication based on this benchmark. Skill owners should keep this file with the skill and refresh it when the evaluation dataset, skill behavior, or target agents materially change.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning5mo3 checks · Risk SAFE
  • Gen Agent Trust Hub5mo

    The skill is an end-to-end orchestrator for defect image generation using NVIDIA OSMO. It manages asset setup, model finetuning, and inference pipelines. Analysis shows that the skill follows security best practices, using environment variables for secret management and fetching dependencies or models from well-known, trusted platforms like GitHub and Hugging Face. No malicious patterns, obfuscation, or data exfiltration risks were detected.

  • Socket5mo

    No alerts

  • Snyk5mo

    Risk: MEDIUM · 1 issue

Signed by skilld at f41ce99. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 3 days ago.

Activeupdated 5 months ago
version
1.0.1
tools
[
  "Read",
  "Shell"
]
Other metadata
metadata
{
  "owner": "NVIDIA",
  "service": "physical-ai-data-factory",
  "version": "1.0.1",
  "reviewed": "2026-06-23",
  "author": "NVIDIA",
  "tags": [
    "physical-ai",
    "defect-image-generation",
    "aoi",
    "anomalygen",
    "usd2roi",
    "cosmos",
    "cosmos-predict2",
    "cosmos-anomalygen"
  ]
}

README badge

README badge for nvidia/skills/physical-ai-defect-image-generation