opensifli/sifli-sdk/sifli-crash-dump-triage
Claude Code and agent skill by opensifli/sifli-sdk
- community
Checking that the SKILL.md file is still in the repository.
Triage and modify SiFli SDK crash-dump capture/analyze workflows. Use when working on sdk.py crash-dump, capture-live, readcore, analyze, UART-DAP, J-Link/AssertDump exports, saved_stack_frame, current_registers vs saved_registers, zero-register analysis, heap-overflow/assert crash cases, or files under tools/sdk_py_actions/crash_dump.py and sifli_uart_dap.py in SiFli-SDK.
Install
npx vskill@latest install opensifli/sifli-sdk/sifli-crash-dump-triageSKILL.md
SiFli Crash Dump Triage
First Move
Start from the artifact, not the theory.
- Inspect
sdk_manifest.jsonfirst, thenmanifest.json. - Record
source,register_source,current_register_source,warnings, and whethercurrent_registersandsaved_registersexist. - Use the package's own
hcpu.axfor attached ELF for symbol addresses; do not reuse addresses from another build. - Check raw bytes for
saved_stack_frame,saved_stack_pointer,error_reason, andsaved_scb_reg. - Only then decide whether the problem is capture, firmware save order, register-source selection, or analyzer fallback.
Read references/architecture.md when you need transport details, register-source rules, or the known heap-overflow/type-2 failure pattern.
Register Source Rules
Keep these sources separate:
current_registers: CPU registers read at export time from UART-DAP or J-Link log. Trust this for where the chip is stopped now.saved_registers: registers decoded from firmwaresaved_stack_frame. Trust this for where the original exception/assert happened only if the saved frame and saved SP look sane.registers: compatibility field. It may point to current registers; do not assume it is the original crash frame.
For type-2 heap overflow/assert cases, expect current registers to point at a later assert loop such as rt_assert_handler, while saved_stack_frame may be zero, partial, or polluted.
Triage Commands
Use small focused checks:
Find symbol addresses from the package ELF:
Read raw saved-context bytes:
Replace addresses with the package's own nm output.
Fix Strategy
Prefer the smallest fix at the shared source:
- If J-Link or UART-DAP can read current core registers, save them during
capture-liveascurrent_registers. - Do not make UART depend on
JLinkExe, AssertDump, oruart_server; macOS and pure USB-serial setups must still work. - If
saved_stack_frameis invalid but current registers are valid, preserve both and report the conflict. - If firmware hits a second assert before
rt_hw_fatal_error(), the host tool cannot recover the original assert frame. Fix firmware save order: save fatal context beforert_show_sys_info()or other lock-taking diagnostics. - Keep old fields (
registers,register_source) for compatibility, but add explicit fields rather than changing meanings silently.
Verification
For code changes, run the focused tests first:
If full tests.sdk_env.test_crash_dump fails only on a CLI default engine assertion, do not mix that unrelated failure into crash-register work unless the user asks.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/sifli-crash-dump-triage/SKILL.md
Popularity
- Repository stars
- 185
- Repository forks
- 83
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/opensifli/sifli-sdk/sifli-crash-dump-triage)