Freertos Patterns logo

Freertos Patterns

Community
wedsamuel1230
freertos-patterns

Use when users need ESP32 FreeRTOS or RP2040 multicore patterns for task creation, queues, synchronization, memory checks, task notifications, or cross-core coordination.

Overview

Publisherwedsamuel1230
Repositoryembedded-engineering-skills
Skill namefreertos-patterns
Stars
29
Forks
1
Bundled files
6
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 6 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by wedsamuel1230 on GitHub. Read the source before you install it.

Installation

Install the Freertos Patterns AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/wedsamuel1230/embedded-engineering-skills/tree/main/skills/freertos-patterns
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/wedsamuel1230/embedded-engineering-skills.git /tmp/embedded-engineering-skills
mkdir -p .claude/skills
cp -r /tmp/embedded-engineering-skills/skills/freertos-patterns .claude/skills/freertos-patterns
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Freertos Patterns in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Freertos Patterns on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Freertos Patterns is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

FreeRTOS Patterns for ESP32 and RP2040

Use this skill for real concurrency problems on ESP32 or RP2040. Keep the main flow focused and load the detailed reference that matches the user's exact problem.

Resources

  • references/patterns-task-creation.md - task lifecycle, priorities, stack sizing, and task startup
  • references/patterns-queues.md - inter-task communication with queues
  • references/patterns-synchronization.md - mutexes, semaphores, critical sections, and ISR coordination
  • references/patterns-memory.md - stack sizing, heap checks, and monitoring
  • references/patterns-advanced.md - watchdogs, notifications, event groups, timers, and affinity
  • assets/workflow.mmd - architecture overview

When to Use

Use this skill when the request includes:

  • multiple concurrent jobs on ESP32
  • task priorities or preemption
  • queue, semaphore, mutex, or notification design
  • RP2040 setup1 and loop1 multicore coordination
  • watchdog-safe long-running behavior
  • debugging race conditions, stack overflows, or deadlocks

Do not use this skill when:

  • the target is UNO or another single-core board
  • a simple millis() scheduler solves the problem
  • the request is only about one blocking loop with no concurrency requirement

Workflow

For a control system's task/resource ownership, action timing or deadline budget, start with realtime-control-design. Return here for the actual RTOS primitive. Native ESP-IDF uses its own port's stack units, affinity and critical section rules; do not copy an Arduino/RP2040 example into another framework without checking the selected SDK.

  1. Confirm the target platform first:
    • ESP32 -> FreeRTOS task model
    • RP2040 -> dual-core coordination model
  2. Identify the dominant problem:
    • task startup -> open patterns-task-creation.md
    • communication -> open patterns-queues.md
    • shared data or ISR signaling -> open patterns-synchronization.md
    • stack or heap risk -> open patterns-memory.md
    • watchdogs, notifications, timers, or affinity -> open patterns-advanced.md
  3. Solve one synchronization boundary at a time. Avoid mixing queue, mutex, and notification advice unless the design truly needs all of them.
  4. Keep board-specific details explicit. ESP32 FreeRTOS guidance and RP2040 multicore guidance are not interchangeable.

Core Rules

  • Prefer the smallest concurrency primitive that solves the problem.
  • Protect shared state explicitly. "Probably safe" is not safe.
  • Use vTaskDelay() or event-driven blocking on ESP32, never delay() inside a task.
  • Budget stack size deliberately and verify it with runtime evidence.
  • For RP2040, define core ownership clearly before sharing data.

Verification

  • Confirm each task or core has a single clear responsibility.
  • Check queue depth, notification flow, or mutex coverage against the concrete data path.
  • For ESP32, inspect stack headroom with uxTaskGetStackHighWaterMark() where the task size is uncertain.
  • Verify the sketch can keep making progress without deadlock or busy waiting.
  • If an ISR is involved, verify the synchronization primitive is ISR-safe for that platform.

Common Failure Modes

  • undersized task stack
  • delay() used inside a FreeRTOS task
  • unprotected shared data
  • deadlock from inconsistent lock order
  • RP2040 core startup assumptions without mutex or ownership discipline

Integration

  • Combine with arduino-code-generator when the user needs a full sketch rather than design guidance.
  • Combine with circuit-debugger only after the concurrency design looks sound and a hardware timing issue still remains.
  • Combine with mermaid-diagram-generator when the concurrency design needs a task, queue, or event-flow diagram.

Shared Output Contract

Use the shared Arduino skill contract: state assumptions, required tools and versions, implementation steps, tests/evidence by proof stage, known limitations, and recovery/security notes.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Freertos Patterns AI skill do?

Use when users need ESP32 FreeRTOS or RP2040 multicore patterns for task creation, queues, synchronization, memory checks, task notifications, or cross-core coordination.

Why use Freertos Patterns on TypingMind?

Because you install it once and use it with any model. Freertos Patterns is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Freertos Patterns in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/wedsamuel1230/embedded-engineering-skills/tree/main/skills/freertos-patterns. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Freertos Patterns?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Freertos Patterns?

As many as you like. As long as a model supports skills, you can use Freertos Patterns with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Freertos Patterns AI skill free?

Yes. It is published on GitHub by wedsamuel1230 under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇