agentsclimarketplace

Native sim

Skill beriberikix/zephyr-agent-skills/skills/native-sim

Host-based simulation using the Zephyr native_sim board. Covers building for Linux/macOS/Windows, automated testing, host-side debugging (GDB, Valgrind), and host-target integration. Trigger when developing application logic without hardware or setting up CI/CD tests.From its SKILL.md

Install
npx -y skills add beriberikix/zephyr-agent-skills --skill native-sim

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • runs commandsInstructs the agent to run 3 commands, including `west build -b native_sim samples/hello_world` and 2 more.

SKILL.md

2.2 KB, 487 tokens by cl100k_base, as published. Nobody here has run it

Zephyr Native Simulation

Develop, test, and debug Zephyr applications with the speed and convenience of your host machine.

Core Workflows

1. Simulation Basics

Understand when to use native_sim vs. QEMU and how to map host resources.

2. Host-Side Debugging

Use professional host tools to find the most elusive bugs.

  • Reference: debugging.md
  • Key Tools: gdb, valgrind, gprof, pcap.

3. Automated Testing (CI/CD)

The foundation of modern firmware development.

  • Reference: See the testing-debugging skill (Phase 3) for comprehensive testing workflows.
  • Key Tools: twister -p native_sim.

Quick Start

# Build for host
west build -b native_sim samples/hello_world

# Run the app
./build/zephyr/zephyr.exe

# Debug with GDB
west debug

Automation Tools

Examples & Templates

Validation Checklist

  • west build -b native_sim succeeds for at least one sample and one app target.
  • Built binary runs on host and emits expected startup logs.
  • Host debugger (GDB/Valgrind) can attach and surface expected symbols.
  • Simulation test path is integrated into CI (for example Twister native_sim run).

Resources

  • References:
    • simulation_basics.md: Architectural overview and usage patterns.
    • debugging.md: GDB, Valgrind, and profiling guide.
  • Scripts:
    • native_log_scan.py: Failure signature scanner for native_sim logs.
  • Assets:
    • native_sim_ci_checklist.md: CI simulation review checklist.

What ships with it: 5 files

4.5 KB alongside SKILL.md, 1 of them executable

references/

scripts/

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.