c-systems

c-systems is a skill for Claude Code from iliaal/ai-skills. It costs 83 tokens per session (1,016 once invoked), scanned A, original, MIT.

A set of guidelines for writing, reviewing, refactoring, and debugging C code used in systems, libraries, and native extensions.

In plain words
What is it for?
Use it when working with C functions, allocated memory, buffers, status errors, sanitizers, Valgrind, or native extensions.
Why use it?
It helps developers handle memory, errors, undefined behavior, and performance consistently while following the repository's existing conventions.

Skill for Claude Code

Written for Claude Code: paths in frontmatter. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

Good fit Use it when working with C functions, allocated memory, buffers, status errors, sanitizers, Valgrind, or native extensions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/iliaal/ai-skills/c-systems
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 iliaal/ai-skills --skill c-systems
Clone the repo
git clone --depth 1 https://github.com/iliaal/ai-skills

Made for: Claude Code.

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 c-systems

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/iliaal/ai-skills/c-systems"><img src="https://agentmods.dev/badge/skills/iliaal/ai-skills/c-systems.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 83 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,016 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • 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.00083 $0.01016
Opus 5.5 $0.00033 $0.00406
Sonnet 5.5 $0.00017 $0.00203
Haiku 4.5 $0.00008 $0.00102

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

Security

Grade A, and why

c-systems scanned grade A with 1 finding 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 15d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

| `goto cleanup` / `goto err` | Kernel, OpenSSL, curl, php-src: the dominant multi-resource release idiom |
skills/c-systems/SKILL.md · 71 lines

How it starts

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

C Systems & Native Code

Covers C11 and later for libraries, systems code, and native extensions. For C++ (RAII, templates, move semantics), see the ia-cpp-systems skill.

Working rules

  • Preserve the repository's sanctioned idioms and ABI; do not turn a scoped fix into a restyle.
  • State ownership, check fallible calls, validate public boundaries, and assert internal invariants.
  • Preserve recovery outside optimizer assumptions. An assertion that becomes an assumption can remove the branch handling its false case. Keep recoverable checks as runtime branches with diagnostic-only assertions behind a debug preprocessor guard. Exercise the fallback in an optimized release build.
  • Guard staged initialization against reentry. Set an in-progress marker before callback-capable work on every constructor or factory path. Permit retry after failure only after fully releasing and resetting partial state. Test recursive entry and retry after failed initialization.
  • Bound traversal of external input and check sizes before allocation or narrowing.
  • Choose helpers only when they name a concept, own an error, or isolate a side effect.
  • Verify the actual rebuilt artifact; use instrumented tests for safety and representative release builds for performance.

Repo conventions outrank this skill

Read the repo's AGENTS.md/CLAUDE.md, its public headers, and two adjacent .c files before writing anything. Where they conflict with the rules below, they win, and the diff carries no note about it.

Do not skip this gate. Established C codebases sanction idioms these rules would otherwise flag:

Local idiom Where it is correct
Tab indentation php-src and its extensions, Linux kernel
goto cleanup / goto err Kernel, OpenSSL, curl, php-src: the dominant multi-resource release idiom
Macros containing return RETURN_*/RETVAL_* in PHP extensions, Py_RETURN_* in CPython
Project status types zend_result, CURLcode, int plus errno: do not invent a parallel enum beside one

Read the full file on GitHub · 71 lines

Files

What ships with it

8 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. 15d ago Changed · +4 lines 4e0b8525ba75
  2. 1mo ago Changed f2ca54fdd8d7
  3. 1mo ago Changed · -124 lines 45143fbed2ea
  4. 1mo ago First seen · 191 lines · 83 tokens per session scan A a10fc33ca61a

Subscribe to this mod's changes

c-systems is a skill published in the GitHub repository iliaal/ai-skills (45 stars, last pushed yesterday), licensed MIT. It adds 83 tokens to every session and 1,016 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

kotlin-tooling-native-build-performance

Diagnoses and fixes slow Kotlin/Native compilation and linking in Kotlin Multiplatform projects that target iOS. Use when the user reports slow iOS or shared-framework builds, long linkDebug/linkRelease or XCFramework tasks, cold CI builds that re-download the Kotlin/Native toolchain, KSP or other generated code on…

Kotlin/kotlin-agent-skills · 96 tokens

blazing-fast-dotnet

High-performance .NET guidance for writing and tuning C# apps and benchmarks (BenchmarkDotNet, ASP.NET, challenges). Use when asked to make .NET code faster, reduce allocations or GC overhead, fix lock contention or thread pool starvation, inspect JIT codegen, profile apps, or tune runtime/NativeAOT settings.

managedcode/dotnet-skills · 72 tokens

xcode-compilation-analyzer

Analyze Swift and mixed-language compile hotspots using build timing summaries and Swift frontend diagnostics, then produce a recommend-first source-level optimization plan. Use when a developer reports slow compilation, type-checking warnings, expensive clean-build compile phases, long CompileSwiftSources tasks…

AvdLee/Xcode-Build-Optimization-Agent-Skill · 74 tokens

profiling

Use the free official .NET diagnostics CLI tools for profiling and runtime investigation in .NET repositories. USE FOR: the repo needs performance or runtime profiling for a .NET application; the user asks about slow code, high CPU, GC pressure, allocation growth, exception storms, lock. DO NOT USE FOR: replacing…

managedcode/dotnet-skills · 119 tokens

python-performance

Profile and optimize Python code using cProfile, memory profilers, and performance best practices. Use when debugging slow Python code, optimizing bottlenecks, or improving application performance.

seaworld008/Commonly-used-high-value-skills · 38 tokens

pair-programming

AI-assisted pair programming with multiple modes (driver/navigator/switch), real-time verification, quality monitoring, and comprehensive testing. Supports TDD, debugging, refactoring, and learning sessions. Features automatic role switching, continuous code review, security scanning, and performance optimization with…

frankxai/claude-skills-library · 85 tokens