rtos-debug

rtos-debug is a skill for Claude Code, Codex from easyzoom/aix-skills. It costs 51 tokens per session (783 once invoked), scanned A, original, MIT.

A guide for diagnosing scheduling and resource problems in embedded real-time operating systems such as FreeRTOS, RT-Thread, Zephyr, ThreadX, and CMSIS-RTOS.

In plain words
What is it for?
Use it to inspect tasks, stacks, priorities, interrupts, timers, queues, mutexes, semaphores, and task-to-interrupt communication.
Why use it?
It helps explain deadlocks, missed events, stack overflows, watchdog resets, priority problems, and tasks that do not run.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to inspect tasks, stacks, priorities, interrupts, timers, queues, mutexes, semaphores, and task-to-interrupt communication.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/easyzoom/aix-skills/rtos-debug
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add easyzoom/aix-skills --skill rtos-debug
Clone the repo
git clone --depth 1 https://github.com/easyzoom/aix-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for rtos-debug

README.md
[![agentmods](https://agentmods.dev/badge/skills/easyzoom/aix-skills/rtos-debug/github.svg)](https://agentmods.dev/skills/easyzoom/aix-skills/rtos-debug)
Your own site
<a href="https://agentmods.dev/skills/easyzoom/aix-skills/rtos-debug"><img src="https://agentmods.dev/badge/skills/easyzoom/aix-skills/rtos-debug/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for rtos-debug

Your own site · 80×15
<a href="https://agentmods.dev/skills/easyzoom/aix-skills/rtos-debug"><img src="https://agentmods.dev/badge/skills/easyzoom/aix-skills/rtos-debug.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 783 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00051 $0.00783
Opus 5 $0.00026 $0.00392
Sonnet 5 $0.00010 $0.00157
Haiku 4.5 $0.00005 $0.00078

Measured 8d ago against content hash d2ea40e86e97, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

rtos-debug scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/rtos-debug/SKILL.md · 95 lines

How it starts

The opening of the file, as written. The whole thing — 95 lines — stays where its author put it; the contents beside it link to each section on GitHub.

RTOS Debug

Overview

Use this skill to debug RTOS problems by separating scheduler state, task stack health, synchronization, interrupt priority, timing, and resource ownership. Start from observable RTOS state before changing priorities or adding delays.

When To Use

Use this skill when:

  • Firmware uses FreeRTOS, RT-Thread, Zephyr, ThreadX, CMSIS-RTOS, or another embedded scheduler.
  • The user reports deadlock, starvation, missed events, queue timeout, stack overflow, watchdog reset, priority inversion, or task not running.
  • The issue involves ISR-to-task signaling, timers, semaphores, mutexes, message queues, or task notifications.

Do not use this skill before the target is known to boot and run at least some firmware. For RTOS-specific deep dives, prefer freertos-kernel-debug, zephyr-integration, or rt-thread-integration when the RTOS is identified.

First Questions

Ask for:

  • RTOS name/version and MCU/SoC.
  • Symptom and when it occurs.
  • Task list with priorities, stack sizes, and key responsibilities.
  • Whether stack overflow checking, runtime stats, trace, or thread awareness is enabled.
  • ISR sources involved and interrupt priorities.
  • Logs, asserts, watchdog reason, or debugger task view.

Workflow

  1. Confirm the scheduler starts. Verify the system reaches scheduler start and at least one known task runs.

  2. Capture task state. Collect task names, states, priorities, stack high water marks, CPU/runtime stats, and blocked objects.

  3. Check stack and heap first. Stack overflow and heap exhaustion often masquerade as random RTOS failures.

  4. Inspect synchronization. Identify which task owns each mutex, which queue is full/empty, and whether ISR-safe APIs are used from interrupts.

  5. Check interrupt priority rules. Ensure ISR priorities are legal for RTOS API calls and do not starve the scheduler tick.

  6. Replace guesses with probes. Use trace hooks, assertions, watermarks, counters, or event logs instead of adding arbitrary delays.

Read the full file on GitHub · 95 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 95 lines · 51 tokens per session scan A d2ea40e86e97

Subscribe to this mod's changes

rtos-debug is a skill published in the GitHub repository easyzoom/aix-skills (31 stars, last pushed 1mo ago), licensed MIT. It adds 51 tokens to every session and 783 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.