npx skills add ...
npx skills add nvidia/skills --skill hsb-test
Execute QA test plans on Holoscan Sensor Bridge hardware. Reads a user-provided test document, filters tests by the user's setup, determines which tests can run automatically, executes them with pass/fail evaluation, and produces a structured test results report.
npx skills add nvidia/skills --skill hsb-test
Use this skill when the user wants to execute a QA test plan against an HSB board and devkit. The skill reads a test document (local file or web link), filters tests to those that can run automatically on the user's specific hardware setup, executes each test with pass/fail evaluation, and produces a comprehensive results report.
This skill assumes the devkit is already set up (SSH, demo container built, host configured, board connected). If setup is not complete, it will offer to invoke /hsb-setup first.
This workflow runs test applications inside the demo container. Only run it when the user explicitly invokes it.
Gate 1 — Read environment variables. Before doing anything else, check these variables and print their resolved values to the user:
SSH_TARGET and REMOTE_ROOT are required. Stop and ask the user for them if either is missing.
Gate 2 — Present the phase plan, ask for the test document, and get confirmation. Before taking any action:
If the user has not provided a test document path or URL, STOP and ask for it — do not proceed to Phase 0 or any phase until the user provides it: Please provide the path or URL to your test document:. If the user has already specified specific tests (e.g., "connectivity checks only"), state which phases will run and which will be skipped, and note that tests will be filtered to the user's platform/board/sensor configuration and classified as automatable vs. manual.
Ask explicitly: Shall I proceed with Phase 0? [Y/n] — do not start Phase 0 until the user confirms.
/hsb-setup to prepare the devkit.examples/ directory to determine which tests can run automatically. Skip manual tests and tests requiring additional equipment. Present the executable test plan for user approval.Reuse the same environment variables from the other HSB skills:
SSH_TARGET for the remote login target (e.g. nvidia@agx-thor-host)REMOTE_ROOT for the remote working directoryREMOTE_SUDO for privileged commandsREMOTE_SSH_OPTS for additional SSH optionsHSB_PLATFORM as an optional platform hintIf these are set, notify the user of these settings and use them without re-asking.
Before Phase 0, print the resolved remote execution settings.
When no valid session state exists, show the full phase plan:
Then execute one phase at a time.
When the session state file (/tmp/.claude_hsb_test_session/state.sh) exists and contains _SESSION_VERIFIED=true, the skill skips Phase 0 and Phase 1 setup confirmation because connectivity, hardware, release repo, platform, and sensor/camera were already verified. Instead, inform the user and jump directly to test plan intake:
Then execute:
Phase 0 must be re-run (ignoring the fast path) when:
No such device errors), clear _SESSION_VERIFIED from the session state and re-run Phase 0 before retrying./hsb-test --full, run Phase 0 from scratch.See ## Phase gate below for the full confirmation protocol.
If something fails, do not just dump raw logs. Summarize:
See references/phase-details.md for full step-by-step phase instructions.
Use the same persistent SSH session model as the other HSB skills. Each phase runs as a single SSH heredoc block:
Replace __REMOTE_ROOT__ with the literal value of $REMOTE_ROOT when composing the heredoc.
Test commands run inside the demo container. Use the detached pattern with a named container and a watchdog for timeout enforcement.
Default timeout per test: 120 seconds (2 minutes). Overridden by:
--timeout N on the skill invocation (applies to all tests)After every test run, stop and remove the container. See references/phase-details.md for the cleanup pattern.
Handled by Phase 4. If the workflow is aborted before Phase 4:
After completing each phase (Phases 0–3), always prompt the user for confirmation before starting the next phase.
Exception: When --y (auto-approve mode) is active, phase gates are skipped. See "Auto-approve mode (--y)" section.
Exception: Phase 4 (cleanup) runs automatically after Phase 3 without a gate.
All prompts in this skill require explicit typed responses. Never treat a blank or Enter-only input as a selection — re-prompt the user instead.
--help)If $ARGUMENTS contains --help or -h, print the following and stop:
/hsb-test/hsb-test --verbose/hsb-test --timeout 60/hsb-test --timeout 60 --verbose/hsb-test --y/hsb-test --y --timeout 60/hsb-test --full/hsb-test --full --verbose/hsb-test --help--verbose)The skill supports a --verbose flag:
Check whether $ARGUMENTS (the text after the slash command) contains any of: --help / -h, --verbose, --y, --timeout N, or --full (case-insensitive). Strip all flags (and their values) from arguments before further parsing.
When --full is present, ignore any cached session state and run Phase 0 from scratch.
--verbose)--y)The skill supports a --y flag that skips all phase gates and runs the entire workflow from start to finish without waiting for user confirmation between phases. This is not recommended for QA testing.
When --y is detected, display a warning and ask the user to confirm:
--y is active--timeout N if specified.hsb-test-log-YYYY-MM-DD-HHMMSS.md in $REMOTE_ROOT/ or current directory.--y --verbose: Auto-approve with full raw output.--y --timeout N: Auto-approve with a custom per-test timeout.--y --full: Auto-approve with forced full verification from Phase 0.--timeout)The skill supports a --timeout N flag where N is the number of seconds to run each test.
--timeout flag.