embedded-systems

embedded-systems is a skill for Claude Code from atretyak1985/swarmery. It costs 67 tokens per session (4,456 once invoked), scanned B, original, Apache-2.0.

A skill for Python code that runs on Raspberry Pi 5 devices and controls serial ports, cameras, GPIO pins, system services, and device resources. It supports mock operation so the code can be checked without attached hardware.

In plain words
What is it for?
Use it to write or review UART drivers, camera streaming, GPIO control, systemd configuration, resource monitoring, and hardware communication fixes.
Why use it?
It helps hardware code remain testable and clean up devices correctly when errors or shutdowns occur. It also separates low-level hardware work from drone-message parsing and deployment work.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths.

Part of the uav-pack plugin — 3 skills, 4 agents shipped together

Good fit Use it to write or review UART drivers, camera streaming, GPIO control, systemd configuration, resource monitoring, and hardware communication fixes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/atretyak1985/swarmery/embedded-systems
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add atretyak1985/swarmery --skill embedded-systems
Clone the repo
git clone --depth 1 https://github.com/atretyak1985/swarmery

Made for: Claude Code.

Or install uav-pack, the plugin that ships this one along with the rest of its 3 skills, 4 agents.

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 embedded-systems

README.md
[![agentmods](https://agentmods.dev/badge/skills/atretyak1985/swarmery/embedded-systems/github.svg)](https://agentmods.dev/skills/atretyak1985/swarmery/embedded-systems)
Your own site
<a href="https://agentmods.dev/skills/atretyak1985/swarmery/embedded-systems"><img src="https://agentmods.dev/badge/skills/atretyak1985/swarmery/embedded-systems/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 embedded-systems

Your own site · 80×15
<a href="https://agentmods.dev/skills/atretyak1985/swarmery/embedded-systems"><img src="https://agentmods.dev/badge/skills/atretyak1985/swarmery/embedded-systems.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,456 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00067 $0.04456
Opus 5 $0.00034 $0.02228
Sonnet 5 $0.00013 $0.00891
Haiku 4.5 $0.00007 $0.00446

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

Security

Grade B, and why

embedded-systems scanned grade B with 1 finding 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 6d 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

Usage: `sudo systemctl enable <device>@ubuntu` (where `ubuntu` is the deploy user).
plugins/uav-pack/skills/embedded-systems/SKILL.md · 425 lines

How it starts

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

Purpose

Produce and review Python code for Raspberry Pi 5 edge devices running the edge service. Covers UART serial communication, picamera2 camera streaming, GPIO control, resource monitoring, and systemd service configuration. All generated code passes mypy, handles MOCK_MODE for CI, and releases hardware resources on exit. For MAVLink protocol parsing (message IDs, dialects, command sequences), compose with mavlink-integration.

Success criteria: generated code imports without hardware attached (MOCK_MODE=true), passes mypy with zero errors, and releases every acquired resource in a finally block.

When to use

  • Writing or reviewing Python code that interfaces with RPi5 hardware (UART, GPIO, camera)
  • Configuring systemd services for the edge service on edge devices
  • Debugging hardware communication issues (serial port, camera initialization)
  • Implementing resource monitoring (CPU temperature, memory, throttling) on edge devices

When NOT to use

  • Web portal server-side TypeScript code (use api-integration or code-standards)
  • Infrastructure or Helm chart work (use the project's deployment workflow)
  • MAVLink message parsing, dialect selection, or command sequencing (use mavlink-integration)
  • Docker image building for the edge service (use docker-build)
  • Python dependency auditing (use deps-check)
  • Any Python code in the edge service that is purely MAVLink protocol without hardware driver concerns (use mavlink-integration)

Required environment

  • Runtime: .claude/skills/embedded-systems/SKILL.md
  • Tools/libraries: Python 3.11+, serial_asyncio, picamera2, psutil, asyncio
  • Hardware: Raspberry Pi 5 (or MOCK_MODE=true for CI/dev without hardware)
  • Code standards: mypy for type checking, black (line length 100), isort, flake8 (max complexity 10)

Inputs

  • component: "uart" | "camera" | "gpio" | "systemd" | "monitoring" -- which hardware subsystem to work with
  • mock_mode: boolean -- if true, generate code that works without physical hardware (for CI testing)

Read the full file on GitHub · 425 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. 6d ago First seen · 425 lines · 67 tokens per session scan B b6cef1f33795

Subscribe to this mod's changes

embedded-systems is a skill published in the GitHub repository atretyak1985/swarmery (5 stars, last pushed today), licensed Apache-2.0. It adds 67 tokens to every session and 4,456 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

web3-testing

Test smart contracts comprehensively using Hardhat and Foundry with unit tests, integration tests, and mainnet forking. Use when testing Solidity contracts, setting up blockchain test suites, or validating DeFi protocols.

wshobson/agents · 46 tokens

temporal-python-testing

Test Temporal workflows with pytest, time-skipping, and mocking strategies. Covers unit testing, integration testing, replay testing, and local development setup. Use when implementing Temporal workflow tests or debugging test failures.

wshobson/agents · 45 tokens

data-quality-frameworks

Implement data quality validation with Great Expectations, dbt tests, and data contracts. Use when building data quality pipelines, implementing validation rules, or establishing data contracts.

wshobson/agents · 37 tokens

writing-tests

How to write a Kiro Crew backend test that has NO side effects and does not flake. Use when adding, editing, reviewing, or debugging a pytest test in the Kiro Crew source repo: which conftest is under your file, what leaks (temp dirs, the real data home, /.kiro, cron, threads, child processes), how to tell which of…

kirodotdev/KiroCrew · 123 tokens

adk-verify-snippets

Checks that every Python code block in a Markdown file actually compiles and runs, by extracting each block to a temporary file, executing it in an isolated subprocess, and writing a pass/fail report with per-snippet coverage. Use when the user asks to verify, test, or validate the code samples in a README, a guide…

google/adk-python · 149 tokens

adk-setup

Sets up a local ADK Python development environment in a git clone of the open-source adk-python repository: a uv virtual environment, all dependency extras, pre-commit hooks, and a first unit-test run. Runs only when explicitly requested, never on its own. Use when asked to set up, bootstrap, or repair a development…

google/adk-python · 146 tokens