platformio-mcp: Skill for Claude Code

.agents/skills/pio-manager/SKILL.md

pio-manager is a skill for Claude Code, Codex from jl-codes/platformio-mcp. It costs 120 tokens per session (1,989 once invoked), scanned A, original, MIT.

A coding guide for using PlatformIO, a tool for building and loading firmware onto microcontroller boards. It also covers serial logs, libraries, tests, device information, and safe access to shared hardware.

In plain words
What is it for?
Use it for PlatformIO projects when building firmware, uploading firmware or filesystems, reading serial output, managing libraries, running tests, or diagnosing resource-busy errors.
Why use it?
It gives coding agents a fixed way to compile, flash, test, and inspect embedded projects while handling busy hardware and device locks.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is jl-codes/platformio-mcp's own configuration. It tells Claude Code and Codex how to work on platformio-mcp 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 platformio-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to jl-codes/platformio-mcp. 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/jl-codes/platformio-mcp/main/.agents/skills/pio-manager/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/jl-codes/platformio-mcp

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 pio-manager

README.md
[![agentmods](https://agentmods.dev/badge/skills/jl-codes/platformio-mcp/pio-manager.svg)](https://agentmods.dev/skills/jl-codes/platformio-mcp/pio-manager)
Your own site
<a href="https://agentmods.dev/skills/jl-codes/platformio-mcp/pio-manager"><img src="https://agentmods.dev/badge/skills/jl-codes/platformio-mcp/pio-manager.svg" alt="Measured on agentmods" height="20"></a>
Per session 120 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,989 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.00120 $0.01989
Opus 5 $0.00060 $0.00994
Sonnet 5 $0.00024 $0.00398
Haiku 4.5 $0.00012 $0.00199

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

Security

Grade A, and why

pio-manager 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 7d ago.

The scan reads SKILL.md. This mod also ships 6 executable files (assets/build.sh, assets/clean.sh, assets/flash.sh, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

.agents/skills/pio-manager/SKILL.md · 80 lines

How it starts

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

PIO Manager (Mega-Skill)

This skill provides the mandatory 3-Tier Execution Architecture for interacting with PlatformIO builds, hardware flashing, and serial port logs. All agents MUST consult this skill before executing any target compilation.

The 3-Tier Execution Hierarchy

🟢 Tier 1 (Preferred): MCP Server Primitives

The platformio-mcp server encapsulates atomic locking, compilation, and log spooling safely. You must ALWAYS attempt to use these tools first:

  1. Compilation/Deployment/Analysis: mcp_platformio_build_project, mcp_platformio_clean_project, mcp_platformio_upload_firmware, mcp_platformio_upload_filesystem, mcp_platformio_check_project, mcp_platformio_run_tests
  2. Asynchronous Polling: mcp_platformio_check_task_status
  3. Hardware Locking: mcp_platformio_get_lock_status, mcp_platformio_acquire_lock, mcp_platformio_release_lock, mcp_platformio_reset_server_state
  4. Serial Monitor: mcp_platformio_start_monitor, mcp_platformio_stop_monitor, mcp_platformio_query_logs
  5. Environment/Libraries: mcp_platformio_list_boards, mcp_platformio_get_board_info, mcp_platformio_list_devices, mcp_platformio_init_project, mcp_platformio_search_libraries, mcp_platformio_install_library, mcp_platformio_uninstall_library, mcp_platformio_update_library, mcp_platformio_list_installed_libraries
  6. Diagnostics/Dashboard: mcp_platformio_get_dashboard_url, mcp_platformio_get_project_config, mcp_platformio_system_info

Reference: For exact tool parameters and best practices, load and read references/mcp-agent-reference.md.

Discovery Best Practices:

  • ALWAYS use mcp_platformio_list_boards to dynamically find a board before trying to query specs with mcp_platformio_get_board_info.
  • ALWAYS use mcp_platformio_list_devices before uploading or monitoring to discover the correct port dynamically if multiple serial devices are attached.
  • ALWAYS use explicit versions when using mcp_platformio_install_library to ensure reproducible builds.

Read the full file on GitHub · 80 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. 7d ago First seen · 80 lines · 120 tokens per session scan A 7afb70d4be31

Subscribe to this mod's changes

pio-manager is a skill published in the GitHub repository jl-codes/platformio-mcp (50 stars, last pushed today), licensed MIT. It adds 120 tokens to every session and 1,989 once invoked, about $0.0006 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-08-30.