c

c is a skill for Claude Code, Codex from jnPiyush/AgentX. It costs 51 tokens per session (1,741 once invoked), scanned A, original, Apache-2.0.

A guide to writing portable and efficient C for systems software, embedded devices, native libraries, command-line tools, and interfaces between languages. It focuses on memory, layout, portability, and predictable runtime behavior.

In plain words
What is it for?
Use it to build C libraries and tools, write embedded components, design interfaces for other languages, and improve pointer- or buffer-heavy code.
Why use it?
It helps make low-level C code safer and clearer when direct control over memory and execution is required.

Skill for Claude CodeCodex

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

Good fit Use it to build C libraries and tools, write embedded components, design interfaces for other languages, and improve pointer- or buffer-heavy code.

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

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 c

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/jnpiyush/agentx/c"><img src="https://agentmods.dev/badge/skills/jnpiyush/agentx/c.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,741 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
  • 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.00051 $0.01741
Opus 5.5 $0.00020 $0.00696
Sonnet 5.5 $0.00010 $0.00348
Haiku 4.5 $0.00005 $0.00174

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

Security

Grade A, and why

c 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 2mo 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.

.github/skills/languages/c/SKILL.md · 222 lines

How it starts

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

C Development

WHEN: Writing or reviewing C code, native libraries, embedded components, POSIX tools, or C interfaces where memory layout, portability, and deterministic runtime behavior matter.

When to Use This Skill

  • Building native C libraries and command-line tools
  • Implementing embedded or systems-level components
  • Designing FFI-safe interfaces for other languages
  • Hardening pointer-heavy or buffer-heavy code
  • Modernizing legacy C to safer, clearer patterns

Decision Tree

C Project Decision
+-- Hosted application?
|   +-- Portable CLI? -> ISO C23 + small platform abstraction layer
|   +-- POSIX-only tooling? -> C23 + POSIX APIs with portability notes
+-- Embedded / firmware?
|   +-- No allocator allowed? -> static storage + arena/fixed buffers
|   +-- ISR / hard real-time? -> avoid blocking, heap, and hidden copies
+-- Public API?
|   +-- Cross-language FFI? -> opaque handles + explicit ownership rules
|   +-- Internal only? -> expose structs only when layout coupling is acceptable
+-- Error handling?
|   +-- Recoverable runtime errors? -> status codes + out parameters
|   +-- Fatal init/config errors? -> fail fast at process boundary
+-- Build system?
|   +-- Small library/app? -> CMake
|   +-- Toolchain-heavy or embedded? -> CMake or Meson with toolchain files
-- Need concurrency? -> C11/C23 atomics and threads only when platform support is explicit

Prerequisites

  • C23-capable compiler such as GCC 15.2+ or Clang 22.1+
  • Build system such as CMake 3.30+ or Meson
  • AddressSanitizer and UndefinedBehaviorSanitizer available in CI/dev builds

Table of Contents

  1. Project Structure
  2. Language Standard
  3. Memory and Ownership
  4. Error Handling
  5. Interfaces and ABI Safety
  6. Concurrency
  7. Testing and Tooling
  8. Security
  9. Checklist

Project Structure

Read the full file on GitHub · 222 lines

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. 2mo ago Changed c41e3d6de2b2
  2. 2mo ago First seen · 222 lines · 51 tokens per session scan A a553986d6861

Subscribe to this mod's changes

c is a skill published in the GitHub repository jnPiyush/AgentX (19 stars, last pushed today), licensed Apache-2.0. It adds 51 tokens to every session and 1,741 once invoked, about $0.0002 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-09-03.

Related

c compared with skills from other repositories

c next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cjnPiyush/AgentXSkill19todayApache-2.0A51Claude Code, Codex
zoom-meeting-sdk-unrealanthropics/knowledge-work-pluginsSkill37ktodayApache-2.0A41Claude Code
cudnn-installNVIDIA/skillsSkill4.2ktodayApache-2.0A49Claude Code, Codex
ccclNVIDIA/skillsSkill4.2ktodayApache-2.0A206Claude Code, Codex
doca-argpNVIDIA/skillsSkill4.2ktodayApache-2.0A277Claude Code
cpu-kernelshuggingface/kernelsSkill796todayApache-2.0A89Claude Code
cpp-prormyndharis/antigravity-skillsSkill2.2k23d agoMITA49Claude Code, Codex