gcc

gcc is a skill for Claude Code, Codex from mohitmishra786/low-level-dev-skills. It costs 85 tokens per session (1,632 once invoked), scanned A, original, MIT.

A guide to using GCC, the GNU compiler for C and C++ programs, including its build options and common diagnostics.

In plain words
What is it for?
Use it to configure Make, CMake, or shell builds, understand compilation and linker errors, enable warnings or sanitizers, and apply LTO or PGO.
Why use it?
It helps choose suitable settings for debugging, releases, warnings, size, speed, sanitizers, and link-time optimisation instead of guessing at flags.

Skill for Claude CodeCodex

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

Good fit Use it to configure Make, CMake, or shell builds, understand compilation and linker errors, enable warnings or sanitizers, and apply LTO or PGO.

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

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 gcc

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/mohitmishra786/low-level-dev-skills/gcc"><img src="https://agentmods.dev/badge/skills/mohitmishra786/low-level-dev-skills/gcc.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 85 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,632 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
  • Socket pass 14 Sept 2026
  • Snyk pass 20 Nov 2026
  • 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.00085 $0.01632
Opus 5.5 $0.00034 $0.00653
Sonnet 5.5 $0.00017 $0.00326
Haiku 4.5 $0.00009 $0.00163

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

Security

Grade A, and why

gcc 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 9d 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.

skills/compilers/gcc/SKILL.md · 154 lines

How it starts

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

GCC

Purpose

Guide agents through GCC invocation: flag selection, build modes, warning triage, PGO, LTO, and common error patterns. Assume the project uses GNU Make, CMake, or a shell script.

Triggers

  • "What flags should I use for a release build?"
  • "GCC is giving me a warning/error I don't understand"
  • "How do I enable LTO / PGO with GCC?"
  • "How do I compile with -fsanitize?"
  • "My binary is too large / too slow"
  • Undefined reference errors, ABI mismatch, missing symbols

Workflow

1. Choose a build mode

Goal Recommended flags
Debug -g -O0 -Wall -Wextra
Debug + debuggable optimisation -g -Og -Wall -Wextra
Release -O2 -DNDEBUG -Wall
Release (max perf, native only) -O3 -march=native -DNDEBUG
Release (min size) -Os -DNDEBUG
Sanitizer (dev) -g -O1 -fsanitize=address,undefined

Always pass -std=c11 / -std=c++17 (or the required standard) explicitly. Never rely on the implicit default.

2. Warning discipline

Start with -Wall -Wextra. For stricter standards compliance add -Wpedantic. To treat all warnings as errors in CI: -Werror.

Suppress a specific warning only in a narrow scope:

#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-parameter"
// ...
#pragma GCC diagnostic pop

Do not pass -w (silences everything) except as a last resort for third-party headers.

3. Debug information

  • -g — DWARF debug info, default level 2
  • -g3 — includes macro definitions (useful with GDB macro expand)
  • -ggdb — DWARF extensions optimal for GDB
  • -gsplit-dwarf — splits .dwo files; reduces link time, needed for debuginfod

Pair -g with -Og (not -O0) when you need readable optimised code in GDB.

4. Optimisation decision tree

Need max throughput on a fixed machine?
  yes -> -O3 -march=native -flto
  no  -> profiling available?
           yes -> -O2 -fprofile-use
           no  -> -O2
Size-constrained (embedded, shared lib)?
  yes -> -Os  (or -Oz with clang)

Read the full file on GitHub · 154 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 9d ago Changed · +1 lines c10e61622908
  2. 3mo ago First seen · 153 lines · 85 tokens per session scan A 944ca89fab68

Subscribe to this mod's changes

gcc is a skill published in the GitHub repository mohitmishra786/low-level-dev-skills (304 stars, last pushed 10d ago), licensed MIT. It adds 85 tokens to every session and 1,632 once invoked, about $0.0003 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

gcc compared with skills from other repositories

gcc next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
gccmohitmishra786/low-level-dev-skillsSkill30410d agoMITA85Claude Code, Codex
cpp-proJeffallan/claude-skillsSkill13ktodayMITA79Claude Code
memory-safety-patternsrmyndharis/antigravity-skillsSkill2.1k23d agoMITA45Claude Code, Codex
cuda-c-optimizationmindspore-ai/akgSkill269yesterdayApache-2.0A20Claude Code, Codex
cppcrazyguitar/cppcheatsheetSkill2976d agoMITA0Claude Code
memory-safety-patternsRudyCity/superagentSkill73todayMITA45Claude Code, Codex
fix-cppheadersHLND2T/CS2_VibeSignaturesSkill674d agoMITA89Claude Code, Codex