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.
npx skills add DamiMartinez/book-skills --skill c-programming-languagegit clone --depth 1 https://github.com/DamiMartinez/book-skillsWrote 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.
[](https://agentmods.dev/skills/damimartinez/book-skills/c-programming-language)<a href="https://agentmods.dev/skills/damimartinez/book-skills/c-programming-language"><img src="https://agentmods.dev/badge/skills/damimartinez/book-skills/c-programming-language/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.
<a href="https://agentmods.dev/skills/damimartinez/book-skills/c-programming-language"><img src="https://agentmods.dev/badge/skills/damimartinez/book-skills/c-programming-language.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00167 | $0.01379 |
| Opus 5.5 | $0.00067 | $0.00552 |
| Sonnet 5.5 | $0.00033 | $0.00276 |
| Haiku 4.5 | $0.00017 | $0.00138 |
Grade A, and why
c-programming-language 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.
How it starts
The opening of the file, as written. The whole thing — 43 lines — stays where its author put it; the contents beside it link to each section on GitHub.
The C Programming Language (K&R, 2nd Edition)
Apply this skill when writing, reviewing, or debugging C code, or explaining C semantics — grounded in K&R's philosophy that C trusts the programmer completely: no hidden costs, no runtime safety net, and correctness is the programmer's explicit responsibility at every step.
Core concepts
"Trust the programmer" — C deliberately omits bounds checking, garbage collection, and most runtime safety nets, on the premise the programmer knows what they're doing and wants no hidden cost. This means C code that "looks fine" can still be wrong in ways the compiler won't catch — when reviewing C, actively look for what the language won't stop, not just syntax errors.
Pointer/array duality & pointer arithmetic — a[i] is defined as *(a + i); arrays decay to pointers in most expressions, and pointer arithmetic is scaled by the pointee's size automatically. Understanding this equivalence is the key to reading and writing idiomatic C (pointer-walking a buffer instead of indexing, passing arrays as pointer+length). When debugging array/pointer code, mentally rewrite between the two forms to spot off-by-one or scaling errors.
Declarations mirror use (the right-left / "spiral" rule) — A declaration like int *a[10] or int (*a)[10] should be read by working outward from the identifier following C's precedence rules ([] and () bind tighter than *), not left-to-right. When a declaration is confusing (arrays of pointers, pointers to functions, pointers to arrays), decompose it this way rather than guessing — this is the single most common source of "wait, what does this even declare" confusion in C.
Manual memory management & ownership — Every malloc/calloc needs an unambiguous owner responsible for exactly one matching free; there's no garbage collector to fall back on. When reviewing allocation code, explicitly trace: who allocates, who's responsible for freeing, and what happens on every exit path (including error returns) — leaks and double-frees are almost always a broken answer to "who owns this."
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.
- 2mo ago First seen · 43 lines · 167 tokens per session scan A 87a4ecb37ea6
c-programming-language is a skill published in the GitHub repository DamiMartinez/book-skills (13 stars, last pushed 3mo ago), licensed MIT. It adds 167 tokens to every session and 1,379 once invoked, about $0.0007 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.
c-programming-language compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| c-programming-languageDamiMartinez/book-skills | Skill | 13 | 3mo ago | MIT | A | 167 | Claude Code, Codex |
| erlang-otp-behaviorsbenchflow-ai/skillsbench | Skill | 1.9k | 3d ago | Apache-2.0 | A | 52 | Claude Code, Codex |
| omh-rustrlaope/oh-my-hermes | Skill | 5.2k | today | MIT | A | 74 | Claude Code, Codex |
| axiom-concurrencyCharlesWiltgen/Axiom | Skill | 1.3k | yesterday | MIT | A | 49 | Claude Code |
| tddcodewithmukesh/dotnet-claude-kit | Skill | 807 | 2d ago | MIT | A | 81 | Claude Code |
| precisemicroprediction/precise | Skill | 338 | 5d ago | MIT | A | 76 | Claude Code, Codex |
| haskell-prormyndharis/antigravity-skills | Skill | 2.0k | 23d ago | MIT | A | 41 | Claude Code, Codex |