attitude-controller-planner

attitude-controller-planner is a skill for Claude Code, Codex from benchflow-ai/skillsbench. It costs 60 tokens per session (770 once invoked), scanned A, original, Apache-2.0.

A quadrotor flight-control method that turns desired movement into roll and pitch angles, then adjusts the drone’s rotation with PID feedback. PID uses present, accumulated, and changing errors to guide corrections.

In plain words
What is it for?
Use it to implement the inner attitude-control loop of a quadrotor simulator.
Why use it?
It connects movement commands to the drone’s orientation while correcting attitude errors during flight.

Skill for Claude CodeCodex

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

Good fit Use it to implement the inner attitude-control loop of a quadrotor simulator.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/benchflow-ai/skillsbench/attitude-controller-planner
About the project

SkillsBench is a benchmark for measuring how effectively AI agents use modular skills—folders containing instructions, scripts, and resources—to complete specialized tasks. It helps researchers and developers evaluate both skill quality and agent behavior, including tasks that require combining multiple skills. The catalogue’s skills and instructions are evaluated as part of this workflow.

benchflow-ai/skillsbench · 1,760 stars · on GitHub · skillsbench.ai

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 benchflow-ai/skillsbench --skill attitude-controller-planner
Clone the repo
git clone --depth 1 https://github.com/benchflow-ai/skillsbench

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 attitude-controller-planner

README.md
[![agentmods](https://agentmods.dev/badge/skills/benchflow-ai/skillsbench/attitude-controller-planner/github.svg)](https://agentmods.dev/skills/benchflow-ai/skillsbench/attitude-controller-planner)
Your own site
<a href="https://agentmods.dev/skills/benchflow-ai/skillsbench/attitude-controller-planner"><img src="https://agentmods.dev/badge/skills/benchflow-ai/skillsbench/attitude-controller-planner/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 attitude-controller-planner

Your own site · 80×15
<a href="https://agentmods.dev/skills/benchflow-ai/skillsbench/attitude-controller-planner"><img src="https://agentmods.dev/badge/skills/benchflow-ai/skillsbench/attitude-controller-planner.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 770 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 warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium analysis-evasion · line 1
    Suspicious Unicode normalization or mixed-script content
    Fix: Review the flagged content for security risks. Ensure no credentials, secrets, or sensitive data are exposed.
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.00060 $0.00770
Opus 5 $0.00030 $0.00385
Sonnet 5 $0.00012 $0.00154
Haiku 4.5 $0.00006 $0.00077

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

Security

Grade A, and why

attitude-controller-planner 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.

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.

tasks/drone-planning-control/environment/skills/attitude-controller-planner/SKILL.md · 67 lines

How it starts

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

Attitude Controller and Planner

Overview

Two cooperating modules form the inner loop:

  1. Attitude planner — converts desired linear acceleration → desired roll/pitch angles (φ_des, θ_des)
  2. Attitude controller — PID feedback on Euler angle errors → moments [M₁, M₂, M₃]

Attitude Planner

Implementation Logic

Given desired acceleration [ax, ay] and current yaw ψ, compute desired roll/pitch via inverse kinematics:

  • φ_des is proportional to (ax·sin(ψ) − ay·cos(ψ)) / g
  • θ_des is proportional to (ax·cos(ψ) + ay·sin(ψ)) / g

Return rot = [φ_des, θ_des, ψ] and omega = [0, 0, desired_yaw_rate].

Attitude Controller

Implementation Logic

PID control on Euler angle errors, scaled by the inertia matrix:

  1. Compute angle error: e = desired_rot − current_rot (element-wise, 3D vector).
  2. Accumulate integral: integral_e += e * dt.
  3. Compute moment: M = I @ (kp * e + ki * integral_e + kd * (desired_omega − current_omega)).

Use make_attitude_integral() to create a fresh {"e": zeros(3)} dict before the simulation loop. Never use a mutable default argument for this state.

Gain Tuning

No tuning range is provided — choose PID gains freely to best satisfy the success criteria. Start with small values (e.g. kp_att = [100, 100, 50], ki_att = [0.0, 0.0, 0.0], kd_att = [0.0, 0.0, 0.0]) and increase gradually.

Critical Design Rules

  • Never use a mutable default for the integral — this causes wind-up across simulation runs. Always pass integral explicitly and create it with make_attitude_integral() before the loop.
  • Ki should be small (≤ 0.5 for attitude) — attitude integral wind-up causes x/y oscillations during z-only maneuvers.
  • dt = 1.0 / params['sample_rate'] — never hardcode 0.005.
  • Gains are arrays [phi, theta, psi]; multiply element-wise, not matrix multiply, before the inertia @.

Tuning Guidelines

Symptom Fix
Slow roll/pitch correction Increase kp_att[0] or kp_att[1]
Roll/pitch oscillates Increase kd_att[0] or kd_att[1]
Yaw drifts slowly Increase ki_att[2]
x/y oscillation during hover Decrease ki_att

Read the full file on GitHub · 67 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 · 67 lines · 60 tokens per session scan A e2f325e78f3f

Subscribe to this mod's changes

attitude-controller-planner is a skill published in the GitHub repository benchflow-ai/skillsbench (1,760 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 60 tokens to every session and 770 once invoked, about $0.0003 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-09-03.

Related

Other skills, from other repositories

exploded-view-illustration

Techniques for drawing isometric or orthographic exploded-view hardware diagrams programmatically using Pillow, with annotation leader lines and layer separation.

cxcscmu/SkillLearnBench · 33 tokens

membrowse-integrate

Integrate MemBrowse memory tracking into a project that produces ELF binaries. Use when the user wants to set up MemBrowse, add memory analysis GitHub workflows, create membrowse-targets.json for tracking memory usage, or add a MemBrowse badge to the README. Works with embedded firmware (STM32, ESP32, nRF, RISC-V) and…

membrowse/membrowse-action · 96 tokens

pcbway

PCBWay PCB fabrication and assembly — turnkey/consigned assembly, design rules, ordering workflow. Alternative to JLCPCB for manufacturing. Use with KiCad. Use this skill when the user mentions PCBWay, needs turnkey assembly (PCBWay sources parts by MPN), has parts not available on LCSC, needs assembled boards with…

aklofas/kicad-happy · 119 tokens

unifi-protect

How to manage UniFi Protect cameras and NVR — view cameras, smart detections, Find Anything detection search, recordings, snapshots, lights, sensors, Known Faces, license plates, and the Alarm Manager. Use this skill when the user mentions UniFi cameras, security cameras, NVR, recordings, motion detection, person…

sirkirby/unifi-mcp · 112 tokens

akg-agents

An agent workflow for developing, generating, testing, and tuning AKG operators. AKG is a toolkit for generating optimized computational kernels.

XiaoLuoLYG/GOD · 75 tokens

fpga

FPGA development guidelines covering Vivado, SystemVerilog, timing closure, AXI interfaces, and hardware optimization.

Mindrally/skills · 26 tokens