{"id":"92418838-54a8-4bf5-a09a-7a0973b490b8","shortId":"FyvxVg","kind":"skill","title":"native-sim","tagline":"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.","description":"# Zephyr Native Simulation\n\nDevelop, test, and debug Zephyr applications with the speed and convenience of your host machine.\n\n## Core Workflows\n\n### 1. Simulation Basics\nUnderstand when to use `native_sim` vs. QEMU and how to map host resources.\n- **Reference**: **[simulation_basics.md](references/simulation_basics.md)**\n- **Key Tools**: `west build -b native_sim`.\n\n### 2. Host-Side Debugging\nUse professional host tools to find the most elusive bugs.\n- **Reference**: **[debugging.md](references/debugging.md)**\n- **Key Tools**: `gdb`, `valgrind`, `gprof`, `pcap`.\n\n### 3. Automated Testing (CI/CD)\nThe foundation of modern firmware development.\n- **Reference**: See the `testing-debugging` skill (Phase 3) for comprehensive testing workflows.\n- **Key Tools**: `twister -p native_sim`.\n\n## Quick Start\n```bash\n# Build for host\nwest build -b native_sim samples/hello_world\n\n# Run the app\n./build/zephyr/zephyr.exe\n\n# Debug with GDB\nwest debug\n```\n\n## Automation Tools\n- **[native_log_scan.py](scripts/native_log_scan.py)**: Scan native simulation logs for common crash/failure signatures.\n\n## Examples & Templates\n- **[native_sim_ci_checklist.md](assets/native_sim_ci_checklist.md)**: Starter checklist for CI simulation coverage.\n\n## Validation Checklist\n- [ ] `west build -b native_sim` succeeds for at least one sample and one app target.\n- [ ] Built binary runs on host and emits expected startup logs.\n- [ ] Host debugger (GDB/Valgrind) can attach and surface expected symbols.\n- [ ] Simulation test path is integrated into CI (for example Twister native_sim run).\n\n## Resources\n\n- **[References](references/)**:\n  - `simulation_basics.md`: Architectural overview and usage patterns.\n  - `debugging.md`: GDB, Valgrind, and profiling guide.\n- **[Scripts](scripts/)**:\n  - `native_log_scan.py`: Failure signature scanner for native_sim logs.\n- **[Assets](assets/)**:\n  - `native_sim_ci_checklist.md`: CI simulation review checklist.","tags":["native","sim","zephyr","agent","skills","beriberikix","agent-skills","agentic-coding","zephyr-rtos"],"capabilities":["skill","source-beriberikix","skill-native-sim","topic-agent-skills","topic-agentic-coding","topic-zephyr-rtos"],"categories":["zephyr-agent-skills"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/beriberikix/zephyr-agent-skills/native-sim","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"cli":"npx skills add beriberikix/zephyr-agent-skills","source_repo":"https://github.com/beriberikix/zephyr-agent-skills","install_from":"skills.sh"}},"qualityScore":"0.462","qualityRationale":"deterministic score 0.46 from registry signals: · indexed on github topic:agent-skills · 25 github stars · SKILL.md body (1,939 chars)","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"deterministic:skill-github:v1","enrichmentVersion":1,"enrichedAt":"2026-04-24T07:01:42.552Z","embedding":null,"createdAt":"2026-04-18T23:04:59.965Z","updatedAt":"2026-04-24T07:01:42.552Z","lastSeenAt":"2026-04-24T07:01:42.552Z","tsv":"'/build/zephyr/zephyr.exe':158 '1':63 '2':90 '3':114,132 'app':157,201 'applic':34,51 'architectur':239 'asset':260,261 'assets/native_sim_ci_checklist.md':179 'attach':217 'autom':18,115,164 'b':87,151,190 'base':6 'bash':145 'basic':65 'binari':204 'board':13 'bug':104 'build':15,86,146,150,189 'built':203 'checklist':181,187,266 'ci':183,228,263 'ci/cd':41,117 'common':173 'comprehens':134 'conveni':56 'core':61 'cover':14 'coverag':185 'crash/failure':174 'debug':23,49,94,129,159,163 'debugg':214 'debugging.md':106,244 'develop':33,46,123 'elus':103 'emit':209 'exampl':176,230 'expect':210,220 'failur':253 'find':100 'firmwar':122 'foundat':119 'gdb':24,110,161,245 'gdb/valgrind':215 'gprof':112 'guid':249 'hardwar':37 'host':5,21,28,59,78,92,97,148,207,213 'host-bas':4 'host-sid':20,91 'host-target':27 'integr':30,226 'key':83,108,137 'least':196 'linux/macos/windows':17 'log':171,212,259 'logic':35 'machin':60 'map':77 'modern':121 'nativ':2,11,44,70,88,141,152,169,191,232,257 'native-sim':1 'native_log_scan.py':166,252 'native_sim_ci_checklist.md':178,262 'one':197,200 'overview':240 'p':140 'path':224 'pattern':243 'pcap':113 'phase':131 'profession':96 'profil':248 'qemu':73 'quick':143 'refer':80,105,124,236,237 'references/debugging.md':107 'references/simulation_basics.md':82 'resourc':79,235 'review':265 'run':155,205,234 'sampl':198 'samples/hello_world':154 'scan':168 'scanner':255 'script':250,251 'scripts/native_log_scan.py':167 'see':125 'set':39 'side':22,93 'signatur':175,254 'sim':3,12,71,89,142,153,192,233,258 'simul':7,45,64,170,184,222,264 'simulation_basics.md':81,238 'skill':130 'skill-native-sim' 'source-beriberikix' 'speed':54 'start':144 'starter':180 'startup':211 'succeed':193 'surfac':219 'symbol':221 'target':29,202 'templat':177 'test':19,42,47,116,128,135,223 'testing-debug':127 'tool':84,98,109,138,165 'topic-agent-skills' 'topic-agentic-coding' 'topic-zephyr-rtos' 'trigger':31 'twister':139,231 'understand':66 'usag':242 'use':8,69,95 'valgrind':25,111,246 'valid':186 'vs':72 'west':85,149,162,188 'without':36 'workflow':62,136 'zephyr':10,43,50","prices":[{"id":"93604bf0-70d5-417f-b240-b5511120d22b","listingId":"92418838-54a8-4bf5-a09a-7a0973b490b8","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"beriberikix","category":"zephyr-agent-skills","install_from":"skills.sh"},"createdAt":"2026-04-18T23:04:59.965Z"}],"sources":[{"listingId":"92418838-54a8-4bf5-a09a-7a0973b490b8","source":"github","sourceId":"beriberikix/zephyr-agent-skills/native-sim","sourceUrl":"https://github.com/beriberikix/zephyr-agent-skills/tree/main/skills/native-sim","isPrimary":false,"firstSeenAt":"2026-04-18T23:04:59.965Z","lastSeenAt":"2026-04-24T07:01:42.552Z"}],"details":{"listingId":"92418838-54a8-4bf5-a09a-7a0973b490b8","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"beriberikix","slug":"native-sim","github":{"repo":"beriberikix/zephyr-agent-skills","stars":25,"topics":["agent-skills","agentic-coding","zephyr-rtos"],"license":"apache-2.0","html_url":"https://github.com/beriberikix/zephyr-agent-skills","pushed_at":"2026-04-20T21:40:18Z","description":"A complete catalog of Agent Skills (agentskills.io) for Zephyr RTOS development.","skill_md_sha":"a20fc8b80832751f72a363c129a4223c400feb80","skill_md_path":"skills/native-sim/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/beriberikix/zephyr-agent-skills/tree/main/skills/native-sim"},"layout":"multi","source":"github","category":"zephyr-agent-skills","frontmatter":{"name":"native-sim","description":"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."},"skills_sh_url":"https://skills.sh/beriberikix/zephyr-agent-skills/native-sim"},"updatedAt":"2026-04-24T07:01:42.552Z"}}