chsh-sk-ncs-4-test-validation

Validates NCS firmware on hardware by planning, executing, and reporting PRD acceptance tests.

1|Updated Jan 30, 2026
One-click install
npx skills add https://github.com/chshzh/claude --skill chsh-sk-ncs-4-test-validation-chshzh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: chsh-sk-ncs-4-test-validation
Source: https://github.com/chshzh/claude/tree/main/skills/chsh-sk-ncs-4-test-validation
Command: npx skills add https://github.com/chshzh/claude --skill chsh-sk-ncs-4-test-validation-chshzh

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? It closes the gap between static code review and release by confirming that PRD acceptance criteria actually hold at runtime on real Nordic NCS hardware, while capturing accurate peak thread and heap memory watermarks under load. ## Core Features & Use Cases - Collaborative test planning: Derives a reviewable VALIDATION_PLAN.md from PRD acceptance criteria, with a coverage matrix, 1-5 test rounds, and explicit human-interaction steps negotiated via AskQuestion. - Shell-first hardware execution: Drives connected boards (nRF7002DK, nRF54LM20DK) through a delegated serial terminal agent, with button/log fallback for no-shell boards and loop tests for stability criteria. - ZView memory watermark capture: Records thread stack and heap peaks over SWD/J-Link concurrently with UART sessions, producing a Memory Watermarks section that feeds directly into memory re-sizing. - Use Case: After finishing a Wi-Fi feature on an nRF54LM20DK project, run a validation pass that flashes the board, exercises connection and OTA scenarios, captures ZView watermarks, and produces a VALIDATION_REPORT.md with a pass/fail verdict and routing for any failures. ## Quick Start Ask Claude to run hardware validation for the current NCS project against the PRD acceptance criteria on the connected boards.

Frequently Asked Questions about chsh-sk-ncs-4-test-validation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run hardware validation tests for an NCS Zephyr project?

Invoke the validation skill after static verification or a feature completion. It reads your PRD acceptance criteria, builds a coverage matrix into VALIDATION_PLAN.md, executes test rounds on connected boards via shell commands, and produces VALIDATION_REPORT.md with evidence and a verdict.

How to capture peak thread stack and heap usage on nRF boards?

Use ZView over SWD with a J-Link probe while driving load over UART. Build with CONFIG_INIT_STACKS, CONFIG_THREAD_MONITOR, and CONFIG_THREAD_STACK_INFO, then run west zview record during the high-memory round and extract peaks with west zview dump --frame last --json.

Does this validation workflow support boards without a shell?

Yes, no-shell boards like the nRF7002DK with CONFIG_SHELL=n are supported. Tests are driven via button triggers and UART log parsing instead of shell commands, with explicit human instructions written into the plan for manual steps.

Why does west zview dump return empty threads and heaps?

Empty ZView output means the firmware build is missing the required instrumentation configs. Rebuild with an overlay enabling CONFIG_INIT_STACKS, CONFIG_THREAD_MONITOR, CONFIG_THREAD_STACK_INFO, and CONFIG_SYS_HEAP_RUNTIME_STATS, then flash that instrumented build for the ZView round.

When should I run hardware validation versus static verification?

Run static verification first for code review, security, and format checks without hardware. Run this hardware validation anytime after that—post-feature or pre-release—to confirm PRD criteria hold at runtime and to capture real memory watermarks under load.