Pva Build Test
NVIDIAOfficialCreated by Venkat BalanDistributed by NVIDIA
- Skill
- Workflow
- Software development
- Apache-2.0
- Medium risk
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
The pva-build-test skill provides a structured procedure to build and verify NVIDIA PVA operators. It manages the end-to-end process of compiling source code, running emulator-based correctness checks, deploying to a connected Tegra device via SSH, and executing hardware-level system tests. The skill enforces strict input validation, requires documented references from a Doctor report, and produces detailed evidence-based reports in both Markdown and JSON formats.
What it does
- Validates input configurations and SDK references against a Doctor report.
- Performs emulator-based correctness testing for PVA operators.
- Compiles operators for L4T using specified NVVPU or ASIP/Chess backends.
- Deploys and executes system tests on target Tegra hardware via direct SSH.
- Collects and reports performance metrics when requested.
- Generates comprehensive build and test logs with verifiable evidence.
When to use it
- When you need to verify the correctness of a PVA operator build.
- When you require automated testing on physical Tegra hardware.
- When integrating operator verification into an OpGen workflow.
- When you need to generate standardized evidence reports for PVA operator builds.
Advantages
- Ensures consistent verification by requiring Doctor-approved references.
- Automates the transition from emulator testing to hardware deployment.
- Provides clear, evidence-based verdicts of PASSED, FAILED, or BLOCKED.
- Maintains strict separation between build, test, and deployment stages.
Usage examples
- “Run pva-build-test for operator my_op with correctness-only scope.”
- The agent validates the environment, builds the operator, runs the emulator and hardware tests, and generates a report confirming the operator's correctness.
- “Execute pva-build-test with correctness-and-performance for my_op.”
- The agent performs the full build and hardware test suite, collects performance profiling data, and includes the results in the final report.
Install
Download the skill as a ZIP:
https://mp-staging.autogineer.com/agent-skills/nvidia/pva-build-test/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip pva-build-test.zip -d .agents/skills
Documentation by Venkat Balan
<!-- SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. -->
Build and test a PVA operator
Build the current source. Test it on a directly connected Tegra. Do not change source code, expected results, or tolerances.
Build-Test owns verification stages, evidence, and verdicts.
Resolve paths
SKILL_ROOT is the absolute directory containing this skill's SKILL.md,
after resolving symlinks. Bundled files are relative to that directory. Resolve
supplied relative paths against the invocation directory before changing
directories. PROJECT_ROOT is the active source
workspace; RESULT_DIR is the caller's result directory. All build directories,
reports, logs, and manifests below are under RESULT_DIR, not the shell's CWD.
Get the inputs
Require these inputs for all scopes:
Caller identity:
OpGenfor an OpGen call; otherwise the direct user.A Doctor report that is ready for
build-test, or accepted limitations.Absolute project (
PROJECT_ROOT) and result (RESULT_DIR) paths.Operator name and PVA generation.
Test scope:
correctness-onlyorcorrectness-and-performance.Report label. Use
build-testwhen none is supplied.SDK version, safety variant, and Doctor's proved compiler backend.
EMU policy; when EMU execution is available or required, Doctor's proved EMU build mode and configure options, plus test commands.
L4T configure command and hardware system-test target and filter.
Correctness cases, independent references, and tolerances.
Complete install target or deployment manifest.
Tegra address, user, port, and persistent known-hosts file.
For correctness-and-performance, also require:
KPI or profiling target and case filter.
Profiling method, metric, warm-up count, and at least 1000 samples.
User-approved clock and clock-verification commands.
Expected clock values and target power mode.
Performance target and acceptance rule when the caller requests a comparison.
Do not require a KPI target, profiling artifact, clock input, sample count, or
performance filter for correctness-only.
Do not guess a command, target account, filter, expected result, clock setting, or acceptance rule.
Verify the inputs and references
Require Doctor's public-reference-corpus check to be PASS. Set
SDK_REFERENCES to the report's absolute sdk_reference_root. Require a readable
index.md and reference-lock.json, a lock SHA-256 matching the report's
sdk_reference_lock_sha256, and the reported SDK version matching this task.
If these fields are absent or no longer match, return BLOCKED and request a
fresh Doctor report. Do not fall back to an installed package or CWD path. Read the
pva-build-test route in $SDK_REFERENCES/index.md.
Before reading Markdown, check its SHA-256 against the lock
outputs entry; return BLOCKED on a mismatch. Resolve links relative to each
generated file. Use rg to
select relevant build, compiler, deployment, signing, EMU, and
profiling Markdown.
Read the direct-SSH procedure before target access. Fill the JSON result template using the result rules, then write the Markdown report from the same values.
Validate:
Absolute and readable project paths and a writable result path.
At least one correctness case with an independent expected result.
Unambiguous build, test, deployment, and target commands.
At least one matching hardware system test.
Performance inputs only when performance is in scope.
PVA generation, SDK runtime, and safety-variant consistency.
Return BLOCKED for a missing or ambiguous required input.
For each product fact, record the SDK documentation root, local Markdown path, packaged source path, source SHA-256, version, and section or PDF page.
Protect evidence
Before the build:
Create new build directories under the result directory.
Write
source-manifest-before.sha256with paths relative to the project root. Exclude new build and result directories.Record Git identity and dirty state when Git metadata exists.
Record each command, exit code, log, and principal artifact hash.
Do not reuse a build, log, target result, or profile from an earlier source state.
Run the stages
Run these stages in order:
| Stage | Required action |
|---|---|
| Input | Validate inputs, source identity, references, and scope. |
| EMU build | If EMU is available or required, create a fresh build using Doctor's proved EMU mode and configure options. Otherwise record SKIPPED_OPTIONAL. |
| EMU test | Run the approved EMU cases. Stop with FAILED on a demonstrated source or result defect. |
| L4T build | Create a fresh release build with PVA_BUILD_MODE=L4T, the requested generation, PVA_DISASSEMBLE=ON, and Doctor's proved NVVPU or ASIP/Chess backend. |
| Listing | Record and inspect the generated compiler listing. Confirm vectorization in the main data path. |
| Target probe | Use the direct-SSH procedure. Confirm Arm64, BSP, runtime version, safety variant, libraries, and required permissions. |
| Deploy | Stage and transfer an explicit archive. Check dynamic dependencies on the target. |
| Hardware test | List and run the filtered system tests for the complete correctness matrix. |
| Performance | Run only for correctness-and-performance, after hardware correctness passes. |
| Freshness | Hash the final source and compare it with the initial manifest. |
EMU rules
Use PVA_BUILD_MODE=EMU with Doctor's proved SDK, generation, compiler, and
other EMU configure options. Keep the L4T compiler selection separate.
Replace the probe's source and build paths with PROJECT_ROOT and a new
directory under RESULT_DIR;
use the project's supplied test targets. Record the selected mode and options
in emulator and the full command in commands.log. Return BLOCKED
if an available or required EMU backend lacks this evidence or its settings
conflict with the requested SDK or generation. Do not substitute another host
execution tool for EMU.
With policy optional, an unavailable EMU component is
SKIPPED_OPTIONAL. An EMU stage that starts and shows a source, build, or
result defect is FAILED.
With policy required, an unavailable EMU component is BLOCKED.
EMU execution is an early correctness aid. It is not hardware evidence.
Run the same approved correctness cases, inputs, references, and tolerances on EMU and hardware when EMU runs. Do not reduce the EMU matrix because it is slow. Record the case IDs and counts for both environments.
L4T and compiler rules
Build the hardware system-test executable for both scopes. Build the KPI or
profiling executable only for correctness-and-performance.
Accept the NVVPU or ASIP/Chess backend that Doctor proved. Do not require an
ASIP path or Synopsys license when NVVPU is selected. Return BLOCKED if the
proved backend is no longer usable. Return FAILED when current source causes
the build to fail.
Require the compiler listing after a successful build. Record its path, hash,
generation, entry point, main vector operations, address-generation evidence,
spills, warnings, and scheduling facts that affect correctness. Return
FAILED if the main data path is not vectorized.
Deployment rules
Use a project install target when it creates a complete deployment tree. Otherwise, use the supplied manifest.
Always include the hardware system-test executable, project libraries, device
data, and test assets. Include the KPI or profiling executable and its assets
only for correctness-and-performance.
Do not copy host-architecture libraries. Retain the remote directory unless the user asks for its removal.
Hardware correctness rules
Run --gtest_list_tests with the approved filter. Reject a zero-match filter.
Then run the same filtered system-test executable.
For each case, record the input shape, format, pitch, parameters, independent reference, tolerance, exit code, comparison, and maximum error when relevant.
Return FAILED if the process, command status, output, case coverage, or
tolerance check fails. Do not use a KPI-binary pass as correctness evidence.
Performance rules
Skip this stage for correctness-only.
For correctness-and-performance:
Run the approved clock command and verify clocks and power mode.
Run warm-ups separately.
Collect at least 1000 hardware samples with the approved public profiling method.
Verify clocks and power mode again.
Record the metric, unit, workload, warm-ups, samples, minimum, maximum, mean, median, target conditions, and raw data path.
Compare with a target only when the caller supplied a target and acceptance rule.
Do not use EMU time, host wall time, or total test duration as PVA execution time. Do not derive a target from the implementation under test.
A missed target is FAILED only when the acceptance rule makes it required.
Decide the verdict
PASSED: Every stage required by the selected scope passed for the current source. An optional EMU stage can beSKIPPED_OPTIONAL.FAILED: A stage ran and produced a negative source, build, correctness, vectorization, or required performance result.BLOCKED: A required stage could not run because an external input, dependency, permission, corpus, or target was unavailable.
Do not return PASSED from evidence for another source state. Do not change
BLOCKED to PASSED because EMU tests passed.
Write the outputs
Always write:
reports/<report-label>.mdreports/<report-label>.jsonsource-manifest-before.sha256source-manifest.sha256source-identity.txtcommands.log
Write stage logs and artifact hashes only for stages that run. For
correctness-only, do not require clock, profile, KPI, or raw performance
files. If work stops early, mark later stages NOT_RUN and name the exact
failed or blocked stage.
Do not remove raw evidence or replace it with a summary.
Return control
Return the verdict and absolute report paths to the caller. When called by
OpGen, continue the existing OpGen workflow before ending the overall run:
FAILED with remaining attempts goes to Debug; zero or exhausted attempts go
to OpGen's final FAILED report. PASSED and BLOCKED also require OpGen's
final report. Do not reinvoke OpGen or end with only a Build-Test response.
Files
- ATTRIBUTION.mdAdded by AutoGineer940 B
- BENCHMARK.md9.8 KiB
- LICENSELicence file added by AutoGineer11.2 KiB
- README.md7.6 KiB
- SKILL.md10.7 KiB
- agents/openai.yaml398 B
- assets/build-test-result-template.json3.0 KiB
- config/skillspector-baseline.yaml400 B
- evals/EVAL.md1.4 KiB
- evals/config.yml167 B
- evals/evals.json4.2 KiB
- evals/files/emu-only/emu.log131 B
- evals/files/unverified/doctor-report.md278 B
- references/build-test-result-schema.md1.5 KiB
- references/direct-ssh-tegra.md5.6 KiB
- skill-card.md4.7 KiB
- skill.oms.sig6.8 KiB
README.md
<!-- SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. -->
PVA development skills
Agent skills for creating, changing, or repairing NVIDIA PVA operators in your PVA SDK application or PVA Solutions source tree. They turn requirements into code, verify it on Tegra hardware, and repair failures within a debug budget.
Skills
| Skill | Purpose |
|---|---|
| Doctor | Check the SDK, toolchain, project, target, and SDK references. |
| Setup | Install missing SDK, NVVPU, and L4T runtime components, then rerun Doctor. |
| Spec | Define operator behavior, correctness tests, and the OpGen handoff. |
| OpGen | Generate and integrate the operator, then invoke Build-Test and Debug. |
| Build-Test | Build, verify correctness on hardware, and measure requested performance cases. |
| Debug | Diagnose and repair a reproduced failure. |
Prerequisites
An authenticated coding agent with local skill support and shell/file access. See agent support below.
A development host running regular x86-64 Ubuntu supported by the requested SDK.
An Arm64 Jetson board running compatible Jetson Linux (L4T), with working key-based SSH and a trusted host key.
A matching SDK installation guide (file or URL), access to its installer, and administrative permissions for required installation steps.
A writable project: your PVA SDK application or a PVA Solutions source package or checkout. This is where OpGen adds or changes code. Install Git LFS if the project uses it.
When PVA Solutions is selected, Setup uses
NVIDIA/PVA-Solutions by default and
clones into the supplied project path, or $WORK_DIR/source when omitted.
It reuses an existing source tree and accepts another repository or archive.
Doctor checks the selected source and reports missing required files.
Run the agent and build tools on the development host. PVA_BUILD_MODE=L4T
cross-compiles there for execution on the board. PVA_BUILD_MODE=EMU builds
for emulation on the development host.
Setup installs or reuses the SDK, NVVPU, required build and reference tools, and board runtime. EMU is optional. Setup calls Doctor before making changes and again afterward; no existing Doctor report is required. Setup reads the installer URL from the guide. Supply a separate installer path or URL only when the guide does not provide one. The guide and installer must match the requested SDK release. Setup reads the board's installed BSP and checks SDK compatibility. Supply an expected BSP release only when you want to require a specific release.
Set up a workspace
Copy all six PVA skill folders from the public
NVIDIA skills catalog
into $HOME/pva-sdk-skills. Keep each folder's scripts, references, and assets.
The resulting layout is $HOME/pva-sdk-skills/pva-setup/SKILL.md, and the
same layout for the other five skills.
git clone --depth 1 https://github.com/NVIDIA/skills.git "$HOME/nvidia-skills"
mkdir -p "$HOME/pva-sdk-skills"
for pva_skill in pva-setup pva-doctor pva-spec pva-opgen pva-build-test pva-debug; do
cp -R "$HOME/nvidia-skills/skills/$pva_skill" "$HOME/pva-sdk-skills/"
doneUse a separate workspace for each operator task. Replace the project path below with your writable PVA SDK application or PVA Solutions source directory.
mkdir -p "$HOME/operator_test/my_operator"
cd "$HOME/operator_test/my_operator"
ln -s "/absolute/path/to/your/project" source
pva_skill_dir=.claude/skills # For Codex, use .agents/skills
mkdir -p "$pva_skill_dir"
for pva_skill in "$HOME/pva-sdk-skills"/pva-*; do
ln -s "$pva_skill" "$pva_skill_dir/"
doneReload skills or restart the agent session after creating the links.
source/ points to the project OpGen will modify; the surrounding workspace
holds your inputs, generated configuration, and reports. Each skill carries its
required scripts and templates. Install all six for the full workflow;
OpGen invokes Build-Test and Debug by their installed skill names.
Generated SDK references belong in references/sdk/ in this workspace.
Doctor records their verified absolute location in its report.
Agent support
Claude Code: Used for the recorded operator runs and the commands below.
Codex: Supports local skills in
.agents/skills, invoked with$pva-specor another skill name. These skills includeagents/openai.yamlmetadata. OpGen uses the agent's available skill mechanism for Build-Test and Debug. Without a callable skill tool, it loads the child skill'sSKILL.mdand executes its full workflow before resuming OpGen with the reports and verdict.
Run Setup → Doctor → Spec → OpGen
Create requirements.md in the workspace: operator name/path, task mode (new,
change, or repair), required behavior, supported inputs, API, and performance
requirements. For an existing operator, include relevant source and test paths.
Run these headless Claude Code commands one at a time from the development host's workspace. Replace the guide and board settings below. Setup resolves the SDK release, installer, package names, and installation paths from the guide and package metadata. Package paths are not fixed in the skill. You can provide an explicit SDK release or path override when needed.
export PVA_OPERATOR_MAX_DEBUG_ATTEMPTS=3
# 1. Setup: check and prepare the host and board
claude -p "Run pva-setup for spec, opgen, and build-test.
Installation guide: http://docs.nvidia.com/pva/sdk/installation.html.
Target: user@<board-IP>; PVA generation: <generation for your board>.
Project: $PWD/source; work directory: $PWD."
# 2. Doctor: verify readiness after Setup
claude -p "Run pva-doctor for spec, opgen, and build-test using
$PWD/reports/pva-setup-report.md.
Project: $PWD/source; work directory: $PWD."
# 3. Spec: run after Doctor is ready
# Spec runs its finalizer to create and validate configure/opgen-inputs.json.
claude -p "Invoke pva-spec through the Skill tool using
$PWD/requirements.md and $PWD/reports/doctor-report.md.
Project: $PWD/source; work directory: $PWD."
# 4. OpGen: run after Spec returns CONFIGURED
claude -p "Invoke pva-opgen through the Skill tool using $PWD/configure/opgen-inputs.json."Doctor writes $WORK_DIR/reports/doctor-report.md automatically. The examples
use $PWD as the work directory so Spec and OpGen can use the resulting files.
OpGen runs Build-Test and invokes Debug as needed. Read the final result in
reports/opgen-report.md.
See reference maintenance for SDK-reference regeneration and upgrades.
Maintaining the helpers
Spec owns finalize_opgen_inputs.py. OpGen ships an identical copy so handoff validation works when the skills are installed separately. After changing the Spec helper, update the OpGen copy too. Generated SDK references and operator reports belong in the operator workspace.
Requirements and compatibility
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Security
What our scanner noticed· Medium risk
- Large base64-encoded blobs
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- Created by
- Venkat Balan
- Publisher
- NVIDIA (Official)
- Distributed by
- NVIDIA
- Source
- NVIDIA/skills · skills/pva-build-test · commit fce3cca
- Licence
- Apache License 2.0 (redistribution allowed)
- LICENSE (added by AutoGineer from LICENSE-APACHE)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
AutoGineer is not affiliated with or endorsed by Venkat Balan or NVIDIA.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download pva-build-test.zip