Agent skill

Build Px4 Linux

by PX4 in PX4/PX4-Autopilot

Build PX4 firmware or SITL natively on a Linux host, in the current checkout, without flashing hardware.

BSD-3-ClauseAuto-check passedDevelopment

Install Build Px4 Linux

skills CLI
$ npx skills add PX4/PX4-Autopilot --skill build-px4-linux -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install PX4/PX4-Autopilot build-px4-linux --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/PX4/PX4-Autopilot.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/build-px4-linux .claude/skills/build-px4-linux && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
build-px4-linux
GitHub stars
13k
Token cost
~385 tokens
SKILL.md length
188 words
Files
1
Skills in repo
6
Repo updated
First seen
Licence
BSD-3-Clause

At a glance

Build PX4 firmware or SITL natively on a Linux host, in the current checkout, without flashing hardware.

  • Works in 2 steps: arm-none-eabi-gcc --version must succeed… → The build initializes submodules itself;…
  • Development work in your project
  • SKILL.md covers Inputs, Prepare, Build and Report
  • Calls make and docker

What it does

Build Px4 Linux is an agent skill from PX4/PX4-Autopilot. Build PX4 firmware or SITL natively on a Linux host, in the current checkout, without flashing hardware.

Its SKILL.md is about 390 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development. It works with Linux. The repository describes itself as: PX4 Autopilot Software. The licence is BSD-3-Clause.

When your agent uses it

  • Development work in your project

Example prompts

  • “/build-px4-linux”

Requirements

  • Docker

Workflow steps

2 steps, taken from the first numbered list in SKILL.md.

  1. arm-none-eabi-gcc --version must succeed for NuttX targets. If it does
  2. The build initializes submodules itself; do not overwrite locally modified

What it can do on your machine

Read from SKILL.md and the folder at commit df387bd. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • make
    • docker

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use docker, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Build Px4 Linux loads about 385 tokens when it runs. Until then it costs about 30 tokens; SKILL.md has 188 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~30
When it runs · the whole SKILL.md, loaded when a task matches
~385

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from PX4/PX4-Autopilot at commit df387bd, republished under its BSD-3-Clause licence (© PX4). 188 words, ~385 tokens.

Download SKILL.mdSave it as .claude/skills/build-px4-linux/SKILL.md (or your agent's skills folder).
name
build-px4-linux
description
Build PX4 firmware or SITL natively on a Linux host, in the current checkout, without flashing hardware.

Build PX4 on Linux

Inputs

  • A make target, for example px4_fmu-v6x_default or px4_sitl. Ask for it if missing; validate it against boards/.

Build the current checkout as-is, worktree or not. Do not create a worktree or switch branches to build.

Prepare

  1. arm-none-eabi-gcc --version must succeed for NuttX targets. If it does not, the host needs Tools/setup/ubuntu.sh (Ubuntu) — tell the user rather than installing it, or build in the container: docker run --rm -w "$PWD" --user "$(id -u):$(id -g)" -v "$PWD:$PWD" px4io/px4-dev:v1.17.0 make <target>. Tools/docker_run.sh passes -it and fails without a TTY.
  2. The build initializes submodules itself; do not overwrite locally modified ones.

Build

bash
set -o pipefail
make <target> 2>&1 | tail -n 40

Report failures with the output; never treat an existing artifact as evidence of success. After changing a defconfig or Kconfig option, or switching toolchains, rm -rf build/<target> first: a stale build dir recompiles nothing and links mixed objects.

Do not run a NuttX build concurrently with make tests or SITL in the same tree.

Report

The artifact is build/<target>/<target>.px4 (NuttX) or build/px4_sitl_default/bin/px4 (SITL). Report the ref, commit, dirty state, target, and artifact path. Building is not flashing; never upload without a separate request.

© PX4, BSD-3-Clause. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/build-px4-linux of PX4/PX4-Autopilot.

Open the folder on GitHubat commit df387bd

Compare with similar skills

Build Px4 Linux next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Build Px4 Linux compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Build Px4 Linux this skillPX4/PX4-Autopilot13k—~385Automated safety check: PassBSD-3-Clause
Update .NET OS Packagesdotnet/core22k—~2.3kAutomated safety check: PassMIT
Cut Releasejfernandez/bpftop2.7k—~2kAutomated safety check: PassApache-2.0
Native Feel Cross Platform Desktopyetone/native-feel-skill1.9k1 repos~1.5kAutomated safety check: PassMIT
PlotJuggler 4 Perf ProfilingPlotJuggler/PlotJuggler6.2k—~1.6kAutomated safety check: NotesMPL-2.0
ONNX Runtime Source Buildmicrosoft/onnxruntime22k—~1.4kAutomated safety check: PassMIT

Similar skills

  • Official

    Audits and updates os-packages.json files listing the Linux packages each .NET release needs per distro, then regenerates the Markdown from the JSON.

    22k GitHub stars~2.3k tokensUpdated today
    DevelopmentAuto-check passed
  • Cut Release

    jfernandez/bpftop

    Cut a new versioned release of bpftop — pick the version, open a version-bump PR, sign-tag the merge commit on main, and draft GitHub release notes in the project's established format.

    2.7k GitHub stars~2k tokensUpdated 1 mo ago
    DevelopmentAuto-check passed
  • Native Feel Cross Platform Desktop

    yetone/native-feel-skill

    A skill your agent uses when the user is designing, prototyping, or rewriting a desktop app that must run on multiple OSes (macOS + Windows, optionally Linux) AND feel indistinguishable from a…

    1.9k GitHub starsUsed in 1 repo~1.5k tokens
    DevelopmentAuto-check passed
  • PlotJuggler 4 Perf Profiling

    PlotJuggler/PlotJuggler

    Guides CPU profiling of PlotJuggler 4 on Linux with perf: count first, record cheaply with LBR, then read per-thread, flat, flamegraph or time-window views.

    6.2k GitHub stars~1.6k tokensUpdated 7 days ago
    DevelopmentAuto-check: notes
  • ONNX Runtime Source Build

    microsoft/onnxruntime

    Official

    Builds ONNX Runtime from source with its build scripts, explaining the update, build and test phases, key flags and where the build output lands.

    22k GitHub stars~1.4k tokensUpdated today
    DevelopmentAuto-check passed
  • JS Cpp Protocol

    notepadqq/notepadqq

    Reference for the communication protocol between the JavaScript editor (CodeMirror or Monaco) and the C++/Qt UI layer via QWebChannel.

    2.3k GitHub stars~3.2k tokensUpdated 3 days ago
    DevelopmentAuto-check passed

More from PX4/PX4-Autopilot

  • Build Px4 macOS

    PX4/PX4-Autopilot

    Build PX4 board firmware on macOS in the px4-dev Docker container, including git worktrees, and stage commit-labeled artifacts without flashing hardware.

    13k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Rebase Onto Main

    PX4/PX4-Autopilot

    Rebase a branch onto main, handling squash-merged parent branches cleanly

    13k GitHub stars~1.1k tokensUpdated today
    Auto-check: notes
  • Review PR

    PX4/PX4-Autopilot

    Substance-focused review of a PX4 pull request — merit, first-principles correctness, architecture fit.

    13k GitHub stars~1k tokensUpdated today
    Auto-check: notes
  • Commit

    PX4/PX4-Autopilot

    Create a conventional commit for PX4 changes. An agent skill from PX4/PX4-Autopilot.

    13k GitHub stars~527 tokensUpdated today
    Auto-check: notes
  • PR

    PX4/PX4-Autopilot

    Create a pull request with conventional commit title and description

    13k GitHub stars~581 tokensUpdated today
    Auto-check: notes

Works with

Categories

Questions about Build Px4 Linux

What does Build Px4 Linux do?

Build PX4 firmware or SITL natively on a Linux host, in the current checkout, without flashing hardware. Build Px4 Linux is an agent skill from PX4/PX4-Autopilot. Build PX4 firmware or SITL natively on a Linux host, in the current checkout, without flashing hardware.

When should I use Build Px4 Linux?

Build Px4 Linux fits situations like: development work in your project.

How do I install Build Px4 Linux in Claude Code?

Run `npx skills add PX4/PX4-Autopilot --skill build-px4-linux -a claude-code`. Or copy the skill folder (.agents/skills/build-px4-linux in PX4/PX4-Autopilot) into .claude/skills/build-px4-linux in your project. Claude Code loads it when a task matches its description.

How do I install Build Px4 Linux in Codex?

Run `npx skills add PX4/PX4-Autopilot --skill build-px4-linux -a codex`. Or copy the skill folder (.agents/skills/build-px4-linux in PX4/PX4-Autopilot) into .agents/skills/build-px4-linux in your project. Codex loads it when a task matches its description.

Can I use Build Px4 Linux in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add PX4/PX4-Autopilot --skill build-px4-linux -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/build-px4-linux, .gemini/skills/build-px4-linux, .github/skills/build-px4-linux and .opencode/skills/build-px4-linux in your project.

What does Build Px4 Linux need to run?

Going by SKILL.md and its folder, Build Px4 Linux needs the command-line tools its instructions call (make and docker). Our summary lists: Docker.

Does Build Px4 Linux access the network?

SKILL.md contains no URLs. Its commands use docker, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Build Px4 Linux safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Build Px4 Linux use?

Build Px4 Linux is published under the BSD-3-Clause licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Build Px4 Linux use?

About 385 tokens (SKILL.md is roughly 1.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Build Px4 Linux?

Skills that share tags, products or a category with Build Px4 Linux: Update .NET OS Packages (dotnet/core, 22k stars), Cut Release (jfernandez/bpftop, 2.7k stars), Native Feel Cross Platform Desktop (yetone/native-feel-skill, 1.9k stars) and PlotJuggler 4 Perf Profiling (PlotJuggler/PlotJuggler, 6.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Build Px4 Linux?

PX4 (a GitHub organization) maintains it in PX4/PX4-Autopilot, which has 12,756 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on October 7, 2026.

Source: PX4/PX4-Autopilot on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.