Standard guide for using the sp.h C library.

Install

mkdir -p .claude/skills/sp && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/13442" && unzip -o skill.zip -d .claude/skills/sp && rm skill.zip

Installs to .claude/skills/sp

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Guide for sp.h, a single-header C standard library replacement. You must use this guide when using or discussing sp.h in any capacity.
134 chars✓ has a “when” trigger
Advanced

Key capabilities

  • →Annotate references to functions from sp.h with verbatim function headers
  • →Search for relevant APIs in sp.h using `references/index.md`
  • →Create strings using `sp_str_lit`, `sp_str_view`, or `sp_str_from_cstr`
  • →Manage dynamic arrays with `sp_da(T)` and `sp_dyn_array_*` functions
  • →Manage hash tables with `sp_ht(T)` and `sp_ht_*` functions
  • →Log messages using `SP_LOG()` with type-safe formatting

How it works

This skill provides guidance for using sp.h, a single-header C standard library replacement, by enforcing specific usage rules, requiring verbatim function headers for references, and directing searches through its reference index and source code.

Inputs & outputs

You give it
C code snippets, function names, or search queries related to sp.h
You get back
Annotated function declarations, code examples, or formatted log messages

When to use sp

  • →Writing code with sp.h
  • →Searching sp.h reference index
  • →Implementing sp.h data structures
  • →Annotating C library calls

About this skill

sp

This page used to hold an archived copy of this skill. The archive now lives in the registry's data repository.

This pointer keeps old links working. It is not an installable skill.

When not to use it

  • →When standard C library functions for memory allocation (malloc) or string manipulation (strcmp) are required
  • →When using `const char*` instead of `sp_str_t` for strings
  • →When iterating C arrays without `sp_carr_for()`

Limitations

  • →Never use `malloc`, `calloc`, or `realloc`; use `sp_alloc`
  • →Never use `strcmp`, `strlen`, or any `string.h` functions with `sp_str_t`
  • →Always explicitly handle all enum cases in a switch statement

How it compares

This skill enforces a strict, opinionated approach to C programming using sp.h, replacing many standard library functions with its own, which differs significantly from typical C development practices.

Compared to similar skills

sp side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
sp (this skill)09moNo flagsAdvanced
w3c-specs05moNo flagsAdvanced
zireael-code-style09moNo flagsIntermediate
unity-developer1427moNo flagsAdvanced

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry