smarttune

smarttune is a skill for Claude Code, Codex from raylanlin/smarttune-cli. It costs 56 tokens per session (2,971 once invoked), scanned A, original, MIT.

A tool for analysing aircraft flight logs and suggesting tuning changes. PID tuning adjusts control response, FFT looks for repeating vibration frequencies, and filters reduce unwanted sensor noise.

In plain words
What is it for?
Analysing .bin, .log, .bbl, .bfl, and .ulg files for PID, vibration, filter, system-identification, hardware, and magnetometer data.
Why use it?
It turns logs from ArduPilot, Betaflight, or PX4 into checks and tuning advice without requiring the aircraft to be connected.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Analysing .bin, .log, .bbl, .bfl, and .ulg files for PID, vibration, filter, system-identification, hardware, and magnetometer data.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/raylanlin/smarttune-cli/skill
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 raylanlin/smarttune-cli --skill skill
Clone the repo
git clone --depth 1 https://github.com/raylanlin/smarttune-cli

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 smarttune

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/raylanlin/smarttune-cli/skill"><img src="https://agentmods.dev/badge/skills/raylanlin/smarttune-cli/skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,971 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.00056 $0.02971
Opus 5.5 $0.00022 $0.01188
Sonnet 5.5 $0.00011 $0.00594
Haiku 4.5 $0.00006 $0.00297

Measured 1mo ago against content hash 6b2629b99ec7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

smarttune 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 1mo 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.

skill/SKILL.md · 327 lines

How it starts

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

SmartTune CLI (stune)

Multi-platform flight log analysis & tuning advisor. Supports ArduPilot (.bin/.log onboard, .tlog telemetry), Betaflight (.bbl/.bfl), and PX4 (.ulg).

Platform is auto-detected from the log file format.

Installation

cd ~/cli-tools/smarttune-cli
pip install -e .

Quick Reference

# Comprehensive analysis (recommended) — PID + FFT + Filter + Mag
stune analyze -i log.bin

# Log quality scoring — data completeness / excitation / sample rate
stune quality -i log.bin

# Individual analyses
stune pid -i log.bin -a roll
stune fft -i log.bin
stune filter -i log.bin --gyro-filter 40 --visual
stune sysid -i log.bin -a roll
stune hardware -i log.bin
stune magfit -i log.bin

# Telemetry log from a ground station (lower rate, no PID terms — limits are reported)
stune quality -i "2026-09-13 10-00-00.tlog"
stune analyze -i flight.tlog -f json | jq '.telemetry_notes'

# List supported platforms
stune platforms

Usage Rules

  1. Check help first: stune <command> --help when unsure about flags
  2. Terminal output by default: no -o flag → stdout only
  3. Optional charts: add --visual for matplotlib plots
  4. Cleanup after analysis: delete raw .bin/.log/.tlog/.bbl/.ulg files after processing
  5. ⚠️ A .tlog is a screening source, not a tuning source. Telemetry recordings carry no rate-controller terms and a 1–50 Hz gyro stream. When telemetry_notes is present in the result, repeat those limits to the user and do not present PID or vibration numbers from a .tlog as tuning-grade — ask for the onboard .bin instead.
  6. ⚠️ MANDATORY: Validate parameters before recommending. After analysis generates tuning suggestions, you MUST verify each parameter exists in the target firmware by running:
    stune params --validate <PARAM_NAME> <VALUE> -p <platform>
    
    If validation fails (exit code 1), do NOT recommend that parameter — it may not exist in the firmware, the value may be outside [min, max], or (for an enum) not a defined member. When the rejection lists allowed values, pick from those. Find an alternative or tell the user the parameter is not available.

Read the full file on GitHub · 327 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. 1mo ago Changed · +8 lines · +5 tokens per session 6b2629b99ec7
  2. 1mo ago First seen · 319 lines · 51 tokens per session scan A 660d31573324

Subscribe to this mod's changes

smarttune is a skill published in the GitHub repository raylanlin/smarttune-cli (31 stars, last pushed 1mo ago), licensed MIT. It adds 56 tokens to every session and 2,971 once invoked, about $0.0002 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.

Related

Other skills, from other repositories

triaging-robot-logs

Use when investigating a robot log or flight log with bagel — finding events, anomalies, or "what happened around X" in rosbags, MCAP, CAN, MDF4, ULog, or Betaflight files. Read-only triage through the bagel MCP tools.

Extelligence-ai/bagel · 65 tokens

operating-live-sinks

Use when subscribing to live robot data (MQTT, rosbridge) through bagel, managing standing pipelines that survive restarts, or when questions about live-buffer sizes and disk usage come up.

Extelligence-ai/bagel · 45 tokens

exporting-visualizations

Use when the user wants to SEE robot data — visualize, plot, replay, or export a log or query result from bagel to a viewer or training format (Rerun, Lichtblick, PlotJuggler, LeRobot).

Extelligence-ai/bagel · 54 tokens

authoring-pipelines

Use when the user wants a bagel data pipeline — reducing a log to windows around events ("keep 30s around every hard brake"), recurring snippets/GIFs/exports, or any tasks-and-gates automation over robot data.

Extelligence-ai/bagel · 52 tokens

opentrons-integration

Official Opentrons Protocol API for OT-2 and Flex robots. Use when writing protocols specifically for Opentrons hardware with full access to Protocol API v2 features. Best for production Opentrons protocols, official API compatibility. For multi-vendor automation or broader equipment control use pylabrobot.

synthetic-sciences/openscience · 66 tokens

pylabrobot

Vendor-agnostic lab automation framework. Use when controlling multiple equipment types (Hamilton, Tecan, Opentrons, plate readers, pumps) or needing unified programming across different vendors. Best for complex workflows, multi-vendor setups, simulation. For Opentrons-only protocols with official API…

synthetic-sciences/openscience · 73 tokens