Agent skill

Measure Build Cost

by fair-acc in fair-acc/gnuradio4

Measure the peak memory and wall time of a single translation unit or link step, so build parallelism can be sized from evidence.

LGPL-3.0Auto-check passedWriting & Content

Install Measure Build Cost

skills CLI
$ npx skills add fair-acc/gnuradio4 --skill measure-build-cost -a claude-code

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

GitHub CLI
$ gh skill install fair-acc/gnuradio4 measure-build-cost --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/fair-acc/gnuradio4.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/measure-build-cost .claude/skills/measure-build-cost && 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
measure-build-cost
GitHub stars
115
Token cost
~408 tokens
SKILL.md length
156 words
Files
1
Skills in repo
4
Repo updated
First seen
Licence
LGPL-3.0

At a glance

Measure the peak memory and wall time of a single translation unit or link step, so build parallelism can be sized from evidence.

  • Tasks that involve Translation
  • SKILL.md covers Recipe, Why each step, Flags that change the answer and Sizing
  • Calls cmake

What it does

Measure Build Cost is an agent skill from fair-acc/gnuradio4. Measure the peak memory and wall time of a single translation unit or link step, so build parallelism can be sized from evidence. Use before changing GRBUILDPARALLELLEVEL or when diagnosing an out-of-memory build.

Its SKILL.md is about 410 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 Writing & Content, covering Translation. The repository describes itself as: Prototype implementations for a more compile-time efficient flowgraph API. The licence is LGPL-3.0.

When your agent uses it

  • Tasks that involve Translation

Example prompts

  • “/measure-build-cost”

What it can do on your machine

Read from SKILL.md and the folder at commit 442345b. 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:

    • cmake

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

  • Network

    No URLs in SKILL.md.

    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

Measure Build Cost loads about 408 tokens when it runs. Until then it costs about 59 tokens; SKILL.md has 156 words of instructions outside code blocks.

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

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 fair-acc/gnuradio4 at commit 442345b, republished under its LGPL-3.0 licence (© fair-acc). 156 words, ~408 tokens.

Download SKILL.mdSave it as .claude/skills/measure-build-cost/SKILL.md (or your agent's skills folder).
name
measure-build-cost
description
Measure the peak memory and wall time of a single translation unit or link step, so build parallelism can be sized from evidence. Use before changing GR_BUILD_PARALLEL_LEVEL or when diagnosing an out-of-memory build.

Measure build cost

Memory, not core count, bounds this build: single translation units have exceeded 7 GB.

Recipe

bash
cmake -S . -B <tree> -G Ninja -DCMAKE_BUILD_TYPE=<type> -DCMAKE_CXX_COMPILER=<cxx> [flags]
cd <tree>
o=$(grep -o "[^ ]*/<name>\.cpp\.o" build.ninja | head -1)
ninja -j4 "$o"                                     # build dependencies FIRST
rm -f "$o"
CCACHE_DISABLE=1 /usr/bin/time -f "%M %e" ninja -j1 "$o"   # KB peak RSS, seconds

Why each step

Pre-build the dependencies. /usr/bin/time on a ninja invocation charges the whole dependency chain to the target. Skipping this produced a 149 s figure for a 21 s translation unit and a 2.7 GB figure for a 0.2 GB link — both wrong, both used to justify wrong conclusions.

CCACHE_DISABLE=1, or a cache hit reports the cost of copying a file.

Delete only the target, never the whole tree.

Flags that change the answer

Match the CI configuration exactly. -DADDRESS_SANITIZER=ON adds 12-21 % peak RSS; coverage instrumentation adds its own. A measurement without the sanitiser understates every GCC matrix job.

Sizing

Sum the peak RSS of the translation units that appear together in the failing log, add the shared-library link (heavy: ~3 GB; executable links are ~0.2 GB), and compare against ~16 GB. Set -DGR_BUILD_PARALLEL_LEVEL=<N> from that sum.

© fair-acc, LGPL-3.0. 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 .claude/skills/measure-build-cost of fair-acc/gnuradio4.

Open the folder on GitHubat commit 442345b

Compare with similar skills

Measure Build Cost 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.

Measure Build Cost compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Measure Build Cost this skillfair-acc/gnuradio4115—~408Automated safety check: PassLGPL-3.0
Translation Diff ExportDevolutions/UniGetUI26k—~1.1kAutomated safety check: PassMIT
Sync Translationssymfony/symfony31k—~1.9kAutomated safety check: PassMIT
Translation Diff ImportDevolutions/UniGetUI26k—~750Automated safety check: PassMIT
Translation Diff TranslateDevolutions/UniGetUI26k—~934Automated safety check: PassMIT
Generate Translationspayloadcms/payload45k—~1.1kAutomated safety check: PassMIT

Similar skills

  • Translation Diff Export

    Devolutions/UniGetUI

    Compares UniGetUI JSON locale files against English, identifies untranslated or source-changed keys, and generates patch, reference, and handoff files for a target language.

    26k GitHub stars~1.1k tokensUpdated yesterday
    Writing & ContentAuto-check passed
  • Sync Translations

    symfony/symfony

    Synchronize translation catalogs across maintained Symfony branches: find messages that newer branches added to the English catalogs but that are still missing from the oldest maintained branch…

    31k GitHub stars~1.9k tokensUpdated today
    Writing & ContentAuto-check passed
  • Translation Diff Import

    Devolutions/UniGetUI

    Merges translated key-value pairs from a UniGetUI JSON localization patch back into the full language file and validates the merged result.

    26k GitHub stars~750 tokensUpdated yesterday
    Writing & ContentAuto-check passed
  • Translation Diff Translate

    Devolutions/UniGetUI

    Translates a sparse UniGetUI JSON language patch, writes completed entries into the working copy, preserves placeholders and terminology, and prepares the patch for merge-back.

    26k GitHub stars~934 tokensUpdated yesterday
    Writing & ContentAuto-check passed
  • Generate Translations

    payloadcms/payload

    A skill your agent uses when new translation keys are added to packages to generate new translations strings

    45k GitHub stars~1.1k tokensUpdated yesterday
    Writing & ContentAuto-check passed
  • Drives long-form fiction, scripts, storyboards, interactive films and long-document translation through InkOS, with every change made by a typed action.

    10k GitHub starsUsed in 1 repo~1.1k tokens
    Writing & ContentAuto-check passed

More from fair-acc/gnuradio4

  • CI Triage

    fair-acc/gnuradio4

    Fetch and classify a failed GitHub Actions job for this repo — distinguish out-of-memory kills, six-hour timeouts, configure errors and genuine test failures, and identify what was in flight.

    115 GitHub stars~548 tokensUpdated today
    Auto-check passed
  • Wasm Build

    fair-acc/gnuradio4

    Configure and run the local Emscripten/WebAssembly build with ONNX Runtime, including the tests.

    115 GitHub stars~394 tokensUpdated today
    Auto-check passed
  • Restyle

    fair-acc/gnuradio4

    Check or apply the exact formatter set the Restyled CI bot runs (clang-format v18, cmake-format, prettier for markdown and yaml, shellcheck, whitespace, black).

    115 GitHub stars~405 tokensUpdated today
    Auto-check passed

Questions about Measure Build Cost

What does Measure Build Cost do?

Measure the peak memory and wall time of a single translation unit or link step, so build parallelism can be sized from evidence. Measure Build Cost is an agent skill from fair-acc/gnuradio4. Measure the peak memory and wall time of a single translation unit or link step, so build parallelism can be sized from evidence.

When should I use Measure Build Cost?

Measure Build Cost fits situations like: tasks that involve Translation.

How do I install Measure Build Cost in Claude Code?

Run `npx skills add fair-acc/gnuradio4 --skill measure-build-cost -a claude-code`. Or copy the skill folder (.claude/skills/measure-build-cost in fair-acc/gnuradio4) into .claude/skills/measure-build-cost in your project. Claude Code loads it when a task matches its description.

How do I install Measure Build Cost in Codex?

Run `npx skills add fair-acc/gnuradio4 --skill measure-build-cost -a codex`. Or copy the skill folder (.claude/skills/measure-build-cost in fair-acc/gnuradio4) into .agents/skills/measure-build-cost in your project. Codex loads it when a task matches its description.

Can I use Measure Build Cost 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 fair-acc/gnuradio4 --skill measure-build-cost -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/measure-build-cost, .gemini/skills/measure-build-cost, .github/skills/measure-build-cost and .opencode/skills/measure-build-cost in your project.

What does Measure Build Cost need to run?

Going by SKILL.md and its folder, Measure Build Cost needs the command-line tools its instructions call (cmake).

Does Measure Build Cost access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Measure Build Cost 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 Measure Build Cost use?

Measure Build Cost is published under the LGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Measure Build Cost use?

About 408 tokens (SKILL.md is roughly 1.6k 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 Measure Build Cost?

Skills that share tags, products or a category with Measure Build Cost: Translation Diff Export (Devolutions/UniGetUI, 26k stars), Sync Translations (symfony/symfony, 31k stars), Translation Diff Import (Devolutions/UniGetUI, 26k stars) and Translation Diff Translate (Devolutions/UniGetUI, 26k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Measure Build Cost?

fair-acc (a GitHub organization) maintains it in fair-acc/gnuradio4, which has 115 GitHub stars. The repository holds 4 skills in this directory. The repository was last updated on October 11, 2026.

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