Agent skill

Cpp Compiler Flags

by Serial-Studio in Serial-Studio/Serial-Studio

C++ compiler/linker flag guidance for Serial Studio's build (GCC, Clang, AppleClang, MSVC cl.exe, clang-cl, MinGW, IntelLLVM).

Custom licenceAuto-check passedDevelopment

Install Cpp Compiler Flags

skills CLI
$ npx skills add Serial-Studio/Serial-Studio --skill cpp-compiler-flags -a claude-code

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

GitHub CLI
$ gh skill install Serial-Studio/Serial-Studio cpp-compiler-flags --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/Serial-Studio/Serial-Studio.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/cpp-compiler-flags .claude/skills/cpp-compiler-flags && 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
cpp-compiler-flags
GitHub stars
7.2k
Token cost
~2.1k tokens
SKILL.md length
944 words
Files
3 (incl. references)
Skills in repo
15
Repo updated
First seen
Licence
Custom licence

At a glance

C++ compiler/linker flag guidance for Serial Studio's build (GCC, Clang, AppleClang, MSVC cl.exe, clang-cl, MinGW, IntelLLVM).

  • Reasoning about the cmake flag modules (Optimization/Hardening/Sanitizers/MiMalloc)
  • SKILL.md covers This skill does NOT build, Build-option matrix (all…, Non-negotiable invariants (do… and The clang-cl / lld-link gotcha…, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Tuning -O/-march/LTO/PGO

What it does

Cpp Compiler Flags is an agent skill from Serial-Studio/Serial-Studio. C++ compiler/linker flag guidance for Serial Studio's build (GCC, Clang, AppleClang, MSVC cl.exe, clang-cl, MinGW, IntelLLVM). Use when reading, changing, or reasoning about the cmake flag modules (Optimization/Hardening/Sanitizers/MiMalloc), tuning -O/-march/LTO/PGO, adding a per-toolchain branch, debugging a flag that one compiler rejects, or explaining what a flag does. Encodes this repo's actual flag layout and its non-negotiable invariants (IEEE-stable math, Lua unwind tables, x86-64-v2 baseline, the…

Its SKILL.md is about 2.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including reference files (for example `references/flag-catalog.md` and `references/serial-studio-build-flags.md`).

It sits in Development. It works with C++ and Lua. The repository describes itself as: Open-source telemetry dashboard. Supports UART, BLE, MQTT, Modbus, CAN Bus and more.

When your agent uses it

  • Reasoning about the cmake flag modules (Optimization/Hardening/Sanitizers/MiMalloc)
  • Tuning -O/-march/LTO/PGO
  • Adding a per-toolchain branch
  • Debugging a flag that one compiler rejects

Example prompts

  • “/cpp-compiler-flags”

What it can do on your machine

Read from SKILL.md and the folder at commit 34c87a4. 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

    No scripts in the folder and no shell commands in SKILL.md.

    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

Cpp Compiler Flags loads about 2.1k tokens when it runs, and up to ~8.9k if it reads all its reference files. Until then it costs about 155 tokens; SKILL.md has 944 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~155
When it runs · the whole SKILL.md, loaded when a task matches
~2.1k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~8.9k

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

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 944 words (~2,097 tokens).

“Serial Studio's release builds are aggressively optimized and hardened across seven toolchains. The flag surface lives in four cmake modules, not scattered through CMakeLists.txt or per-target calls, and those modules are the single source of truth -- read them before…”

— opening of SKILL.md by Serial-Studio, Custom licence
name
cpp-compiler-flags

Read the full SKILL.md on GitHub

Files

SKILL.md and 2 other files (references) in .claude/skills/cpp-compiler-flags of Serial-Studio/Serial-Studio.

  • SKILL.md
  • references/flag-catalog.md
  • references/serial-studio-build-flags.md

Open the folder on GitHubat commit 34c87a4

Compare with similar skills

Cpp Compiler Flags 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.

Cpp Compiler Flags compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Cpp Compiler Flags this skillSerial-Studio/Serial-Studio7.2k—~2.1kAutomated safety check: PassCustom licence
Bee Luaactboy168/bee.lua194—~613Automated safety check: PassMIT
Defold Native Extension Editingselimanac/defold-astar111—~2.1kAutomated safety check: PassNone
Defold API Fetchselimanac/defold-astar111—~2.5kAutomated safety check: PassNone
Lua Plugin Authoringscragnog/HOT-Step-CPP170—~7kAutomated safety check: PassMIT
Qt C++ Code Reviewx-tools-author/x-tools1.1k2 repos~4.3kAutomated safety check: PassBSD-3-Clause

Similar skills

  • Bee Lua

    actboy168/bee.lua

    bee.lua 运行时库指南——Lua 5.4/5.5 上的跨平台系统级绑定(异步 I/O、网络、子进程、线程、文件系统、文件监控、崩溃 dump)。当需要在本项目里编写、修改或排查使用 require "bee." 的 Lua 代码,涉及 socket/select/epoll/async、thread/channel/serialization、subprocess、filesystem/f…

    194 GitHub stars~613 tokensUpdated 8 days ago
    DevelopmentAuto-check passed
  • Defold Native Extension Editing

    selimanac/defold-astar

    Defold native extension development. An agent skill from selimanac/defold-astar.

    111 GitHub stars~2.1k tokensUpdated 5 mo ago
    DevelopmentAuto-check passed
  • Defold API Fetch

    selimanac/defold-astar

    Fetches Defold API documentation. An agent skill from selimanac/defold-astar.

    111 GitHub stars~2.5k tokensUpdated 5 mo ago
    Game DevelopmentAuto-check passed
  • Lua Plugin Authoring

    scragnog/HOT-Step-CPP

    Explains how to write, test, and debug HOT-Step Lua plugins (solvers, schedulers, guidance modes, postprocess) including the apg()/poststep() API and UI param flow.

    170 GitHub stars~7k tokensUpdated 2 days ago
    Testing & QAAuto-check passed
  • Qt C++ Code Review

    x-tools-author/x-tools

    Read-only review of Qt6 C++ code that combines a deterministic lint script with six parallel analysis agents and reports only high-confidence issues.

    1.1k GitHub starsUsed in 2 repos~4.3k tokens
    DevelopmentAuto-check passed
  • YugabyteDB ASH Instrumentation

    yugabyte/yugabyte-db

    Procedure for adding or changing YugabyteDB Active Session History wait states in TServer and DocDB C++ code, including the macro to use for sync and async paths.

    11k GitHub stars~4.5k tokensUpdated today
    DevelopmentAuto-check passed

More from Serial-Studio/Serial-Studio

All 15 skills in this repo
  • Qt Cpp Review

    Serial-Studio/Serial-Studio

    Qt6/C++ deep code review for Serial Studio. An agent skill from Serial-Studio/Serial-Studio.

    7.2k GitHub stars~4.3k tokensUpdated yesterday
    Auto-check passed
  • Qt Qml Review

    Serial-Studio/Serial-Studio

    Qt6/QML deep code review for Serial Studio. An agent skill from Serial-Studio/Serial-Studio.

    7.2k GitHub stars~3.7k tokensUpdated yesterday
    Auto-check passed
  • Ss Spec

    Serial-Studio/Serial-Studio

    Phase 1 of Serial Studio's spec-driven workflow: capture WHAT a feature must do and WHY, with no implementation detail.

    7.2k GitHub stars~766 tokensUpdated yesterday
    Auto-check passed
  • Ss Cpp Modern

    Serial-Studio/Serial-Studio

    Modern C++20 authoring guidance for Serial Studio (Qt 6.11, C++20): concepts, ranges, move/RAII, std smart pointers, constexpr, lock-free SPSC atomics.

    7.2k GitHub stars~1.6k tokensUpdated yesterday
    Auto-check passed
  • Ss Docs

    Serial-Studio/Serial-Studio

    Write, update, or review Serial Studio's user-facing documentation: the doc/help manual, README.md, and examples READMEs.

    7.2k GitHub stars~1.6k tokensUpdated yesterday
    Auto-check passed
  • Qt Qml

    Serial-Studio/Serial-Studio

    QML authoring best practices for Serial Studio (Qt 6.11). An agent skill from Serial-Studio/Serial-Studio.

    7.2k GitHub stars~2.9k tokensUpdated yesterday
    Auto-check passed

Works with

Categories

Questions about Cpp Compiler Flags

What does Cpp Compiler Flags do?

C++ compiler/linker flag guidance for Serial Studio's build (GCC, Clang, AppleClang, MSVC cl.exe, clang-cl, MinGW, IntelLLVM). Cpp Compiler Flags is an agent skill from Serial-Studio/Serial-Studio.exe, clang-cl, MinGW, IntelLLVM).

When should I use Cpp Compiler Flags?

Cpp Compiler Flags fits situations like: reasoning about the cmake flag modules (Optimization/Hardening/Sanitizers/MiMalloc); tuning -O/-march/LTO/PGO; adding a per-toolchain branch; debugging a flag that one compiler rejects.

How do I install Cpp Compiler Flags in Claude Code?

Run `npx skills add Serial-Studio/Serial-Studio --skill cpp-compiler-flags -a claude-code`. Or copy the skill folder (.claude/skills/cpp-compiler-flags in Serial-Studio/Serial-Studio) into .claude/skills/cpp-compiler-flags in your project. Claude Code loads it when a task matches its description.

How do I install Cpp Compiler Flags in Codex?

Run `npx skills add Serial-Studio/Serial-Studio --skill cpp-compiler-flags -a codex`. Or copy the skill folder (.claude/skills/cpp-compiler-flags in Serial-Studio/Serial-Studio) into .agents/skills/cpp-compiler-flags in your project. Codex loads it when a task matches its description.

Can I use Cpp Compiler Flags 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 Serial-Studio/Serial-Studio --skill cpp-compiler-flags -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/cpp-compiler-flags, .gemini/skills/cpp-compiler-flags, .github/skills/cpp-compiler-flags and .opencode/skills/cpp-compiler-flags in your project.

What does Cpp Compiler Flags need to run?

SKILL.md names no scripts, command-line tools or credentials: Cpp Compiler Flags is instructions for the agent only.

Does Cpp Compiler Flags 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 Cpp Compiler Flags 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 Cpp Compiler Flags use?

Cpp Compiler Flags has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Cpp Compiler Flags use?

About 2.1k tokens (SKILL.md is roughly 8.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 6.8k tokens, read only when the agent opens those files.

What are the alternatives to Cpp Compiler Flags?

Skills that share tags, products or a category with Cpp Compiler Flags: Bee Lua (actboy168/bee.lua, 194 stars), Defold Native Extension Editing (selimanac/defold-astar, 111 stars), Defold API Fetch (selimanac/defold-astar, 111 stars) and Lua Plugin Authoring (scragnog/HOT-Step-CPP, 170 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Cpp Compiler Flags?

Serial-Studio (a GitHub organization) maintains it in Serial-Studio/Serial-Studio, which has 7,224 GitHub stars. The repository holds 15 skills in this directory. The repository was last updated on October 6, 2026.

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