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 124 tokens per session (2,814 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/github.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/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 pio-manager

Your own site · 80×15
<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="Reviewed on agentmods" width="80" height="20"></a>
Per session 124 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,814 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00124 $0.02814
Opus 5.5 $0.00050 $0.01126
Sonnet 5.5 $0.00025 $0.00563
Haiku 4.5 $0.00012 $0.00281

Measured 25d ago against content hash 8ede016d6e98, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 25d 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 · 156 lines

How it starts

The opening of the file, as written. The whole thing — 156 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): The pio-agent CLI

Run pio-agent as a normal shell command. It needs no server, starts nothing that outlives the command, and returns structured JSON with --json.

  1. Compilation/Deployment/Analysis: pio-agent build, pio-agent clean, pio-agent flash, pio-agent upload-fs, pio-agent project check, pio-agent test
  2. Asynchronous Polling: pio-agent task-status <id>, pio-agent task-cancel <id>
  3. Hardware Claims: pio-agent lock status, pio-agent port release --port <p>
  4. Serial Monitor: pio-agent monitor, pio-agent monitor-stop --port <p>, pio-agent logs query
  5. Environment/Libraries: pio-agent boards, pio-agent board-info --board <id>, pio-agent devices, pio-agent init, pio-agent lib search|install|uninstall|update|list
  6. Diagnostics/Dashboard: pio-agent dashboard, pio-agent project config, pio-agent project context, pio-agent system-info, pio-agent policy-status
  7. Exact Targets: pio-agent target-resolve
  8. Bounded Monitoring: pio-agent monitor-status, pio-agent logs capture, pio-agent monitor-health
  9. Approval Status (read-only): pio-agent approval-status <id>, pio-agent pending-approvals

Always pass --json when you intend to parse the result.

Reference: load references/cli-reference.md for exact flags.

Reading results: stdout, stderr and exit codes

There are three outcomes, not two, and conflating them makes failures look like silence:

Outcome Where the payload goes Exit code
Succeeded stdout, success: true (or a plain result) 0
Ran, but failed — a build with compiler errors, an unresolvable target stdout, success: false non-zero
Could not run — bad arguments, policy refusal, a busy port stderr, with errorType non-zero

Read the full file on GitHub · 156 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. 25d ago Changed · +70 lines · +4 tokens per session 8ede016d6e98
  2. 1mo ago Changed 2bdaa30567e1
  3. 1mo ago Changed · +6 lines 9ca189297423
  4. 1mo 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 (54 stars, last pushed 16d ago), licensed MIT. It adds 124 tokens to every session and 2,814 once invoked, about $0.0005 per session on Opus 5.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.