Skip to content
Back to skills

Rtos Task

ASecurity

Create an RTOS task with the right stack, priority, and inter-task communication

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 3, 2026
ai-agentsgoapi

Works with

  • api

Security analysis

A100/100

Scanned September 3, 2026

npx -y skills add black141312/ada --skill rtos-task --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Rtos Task?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Rtos Task
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/black141312-rtos-task/badge)](https://www.skillsdirectory.com/skills/black141312-rtos-task)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: rtos-task
description: Create an RTOS task with the right stack, priority, and inter-task communication
category: gamedev
---

# RTOS Task

Use when adding a task/thread under an RTOS (FreeRTOS, Zephyr, ThreadX) and wiring it into the scheduler safely.

1. Define the task function as an infinite loop that blocks on something (queue, semaphore, delay) — never a tight spin.
2. Size the stack from worst-case call depth plus ISR/printf usage; start generous, then measure the high-water mark.
3. Assign priority by deadline urgency, not importance; keep most tasks at the same level to avoid starvation.
4. Use queues or message buffers for data hand-off and semaphores/notifications for signaling between tasks/ISRs.
5. Block with `vTaskDelayUntil` (or equivalent) for periodic work so the period does not drift with execution time.
6. From ISRs use only the `FromISR` APIs and yield if a higher-priority task was woken.

## Rules
- Never busy-wait in a task; block on a primitive so lower-priority tasks and idle/sleep can run.
- Protect shared state with a mutex (with priority inheritance), not by disabling interrupts for long spans.
- Keep ISRs short: defer work to a task via a queue or task notification, call only `FromISR` variants.
- Validate stack high-water marks and enable stack-overflow checking during bring-up — overflow corrupts silently.
- Beware priority inversion and unbounded blocking; prefer mutexes with inheritance over plain binary semaphores for locking.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…