electronic-mcp-server: Skill for Claude Code

.github/skills/freertos-patterns/SKILL.md

freertos-patterns is a skill for Claude Code, Codex from wedsamuel1230/electronic-mcp-server. It costs 0 tokens per session (9,040 once invoked), scanned A, original, MIT.

Reusable patterns for running several tasks at once on ESP32 and RP2040 microcontrollers using FreeRTOS, a system for managing concurrent tasks.

In plain words
What is it for?
Creating tasks, passing messages through queues, using mutexes and semaphores, monitoring memory, handling watchdogs, and synchronizing RP2040 cores.
Why use it?
It helps embedded developers coordinate tasks safely and manage priorities, communication, synchronization, and memory.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument.

This is wedsamuel1230/electronic-mcp-server's own configuration. It tells Claude Code and Codex how to work on electronic-mcp-server itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything electronic-mcp-server configures →

Reuse

Borrowing it

Nothing to install: this file belongs to wedsamuel1230/electronic-mcp-server. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/wedsamuel1230/electronic-mcp-server/main/.github/skills/freertos-patterns/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/wedsamuel1230/electronic-mcp-server

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 freertos-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/wedsamuel1230/electronic-mcp-server/freertos-patterns/github.svg)](https://agentmods.dev/skills/wedsamuel1230/electronic-mcp-server/freertos-patterns)
Your own site
<a href="https://agentmods.dev/skills/wedsamuel1230/electronic-mcp-server/freertos-patterns"><img src="https://agentmods.dev/badge/skills/wedsamuel1230/electronic-mcp-server/freertos-patterns/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 freertos-patterns

Your own site · 80×15
<a href="https://agentmods.dev/skills/wedsamuel1230/electronic-mcp-server/freertos-patterns"><img src="https://agentmods.dev/badge/skills/wedsamuel1230/electronic-mcp-server/freertos-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 9,040 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.00000 $0.09040
Opus 5 $0.00000 $0.04520
Sonnet 5 $0.00000 $0.01808
Haiku 4.5 $0.00000 $0.00904

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

Security

Grade A, and why

freertos-patterns 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 9d 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.

.github/skills/freertos-patterns/SKILL.md · 1,212 lines

How it starts

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

FreeRTOS Patterns for ESP32 & RP2040 Multicore

Comprehensive patterns for multitasking on ESP32 (FreeRTOS) and RP2040 (dual-core with mutex synchronization).

Resources

  • references/patterns-task-creation.md - Task lifecycle, priorities, stack sizing
  • references/patterns-queues.md - Inter-task communication via queues
  • references/patterns-synchronization.md - Semaphores, mutexes, critical sections
  • references/patterns-memory.md - Heap management, stack monitoring
  • references/patterns-advanced.md - Watchdogs, notifications, event groups
  • assets/workflow.mmd - FreeRTOS architecture diagram

Quick Start

#include <Arduino.h>

// Task function prototype
void taskBlink(void* parameter);

void setup() {
  Serial.begin(115200);
  pinMode(LED_BUILTIN, OUTPUT);
  
  // Create task with priority 1, 2KB stack
  xTaskCreate(
    taskBlink,          // Task function
    "Blink",            // Task name
    2048,               // Stack size (bytes)
    NULL,               // Parameters
    1,                  // Priority (0 = lowest)
    NULL                // Task handle
  );
}

void taskBlink(void* parameter) {
  while(true) {
    digitalWrite(LED_BUILTIN, HIGH);
    vTaskDelay(pdMS_TO_TICKS(500));
    digitalWrite(LED_BUILTIN, LOW);
    vTaskDelay(pdMS_TO_TICKS(500));
  }
}

void loop() {
  // Empty - FreeRTOS scheduler manages tasks
}

When to Use

ESP32 FreeRTOS

Use FreeRTOS patterns when:

  • Multiple concurrent operations - WiFi + sensor reading + display updates
  • Priority-based scheduling - Critical tasks (safety) must preempt low-priority tasks
  • Real-time constraints - Guaranteed response time needed
  • Complex synchronization - Shared resources between tasks (UART, SPI, I2C)
  • Event-driven architecture - Tasks wake on events (button press, network packet)

RP2040 Dual-Core

Use RP2040 multicore patterns when:

  • Parallel execution - WiFi/Bluetooth on Core1, sensors on Core0
  • Dedicated cores - Audio processing on Core1, UI on Core0
  • Simple threading - Only 2 tasks needed (setup1/loop1 simpler than FreeRTOS)
  • Mutex protection - Shared data between cores (similar to FreeRTOS mutex)

Read the full file on GitHub · 1,212 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 9d ago First seen · 1,212 lines · 0 tokens per session scan A a9a9d3d648d3

Subscribe to this mod's changes

freertos-patterns is a skill published in the GitHub repository wedsamuel1230/electronic-mcp-server (1 stars, last pushed 8mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 9,040 tokens. 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-08-31.

Related

Other skills, from other repositories

library-migration-guide

Complete guide for converting Arduino/ESP32 hardware libraries into Aily Blockly compatible format. Covers the full workflow: source analysis, block.json design, generator.js implementation, toolbox.json configuration, bus initialization (Serial/I2C/SPI), board adaptation, and packaging.

ailyProject/aily-blockly · 58 tokens

blockly-best-practices

Aily Blockly implementation workflow for scoped library evidence, ABS editing, workspace synchronization, and focused validation. Use for creating or modifying Blockly/ABS programs.

ailyProject/aily-blockly · 37 tokens

blockly-project-planning

Blockly project planning and creation workflow for no-project hardware requests. Trigger words: create project, new Blockly project, board selection, library selection, hardware plan, LED blink, sensor, actuator.

ailyProject/aily-blockly · 43 tokens

beu1000-evuba

A hardware-specific guide for writing firmware for the BE-U1000, a RISC-V microcontroller, on Baikal Electronics EVU-BA development boards. It documents the chip, board wiring, SDK, build setup, and built-in peripherals.

alexex1993/mcu-skills · 289 tokens

atmega32u4-beetle

Firmware development for the Beetle — the CJMCU / DFRobot "Mini Arduino Leonardo" USB board (ATmega32U4 @ 16 MHz, 5 V, 21×28 mm, castellated pads) — its native USB (CDC serial + HID keyboard/mouse/joystick), Caterina bootloader and 1200 bps touch upload, ten exposed I/O pads, four PWM pins across Timer0/Timer1, five…

alexex1993/mcu-skills · 0 tokens

esp32-wroom-36pin

Firmware development for the 36-pin ESP32-WROOM-32 development board — the original DOIT ESP32 DevKit V1 with 18 pins per side, i.e. the 30-pin layout plus the six in-package flash pins (SD0 SD1 SD2 SD3 CMD CLK = GPIO6-11) broken out at the USB end, CH340G or CP2102 bridge, AMS1117 LDO, user LED on GPIO2, GPIO0 not on…

alexex1993/mcu-skills · 0 tokens