/vibe:verifierfrom vibe
Helps debug BPF verifier rejections by identifying pointer classes, error patterns, and adding missing proofs for packet access, map lookups, stack init, and bounded loops.
Ships in vibe. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use this file for verifier failures, pointer-class reasoning, and constraint-aware program design.
When a verifier error appears:
Do not answer with generic folklore if the user provided a real verifier log. Explain the failing path in that log.
| Error | Usual Cause | Default Fix |
|---|---|---|
invalid indirect read from stack | uninitialized stack passed to helper | zero-init local buffers |
R0 invalid mem access 'scalar' | nullable result used unchecked | add if (!ptr) return ... |
math between pkt pointer and unbounded register | packet offset not proven safe | bounds-check against data_end |
back-edge from insn X to Y | unverifiable loop | unroll or use bounded loop with constant limit |
register R1 type=map_value expected=fp | wrong helper argument shape | use the helper's expected pointer type and stage through locals |
invalid stack type | stack escape the verifier cannot model | simplify locals and pass stable stack addresses only |
too many instructions | oversized program | split with tail calls or subprograms |
Every dereference needs a prior bound:
void *data = (void *)(long)ctx->data;
void *data_end = (void *)(long)ctx->data_end;
struct ethhdr *eth = data;
if ((void *)(eth + 1) > data_end)
return XDP_DROP;
u64 *val = bpf_map_lookup_elem(&my_map, &key);
if (!val)
return 0;
__sync_fetch_and_add(val, 1);
char buf[64] = {};
bpf_get_current_comm(buf, sizeof(buf));
#pragma unroll
for (int i = 0; i < 4; i++) {
// ...
}
Or, on newer kernels:
static long cb(u32 i, void *ctx) {
return 0;
}
bpf_loop(128, cb, NULL, 0);
-g so source lines appear in logsmount -t bpf bpffs /sys/fs/bpf
bpftool prog load prog.bpf.o /sys/fs/bpf/test
export LIBBPF_LOG_LEVEL=debug
If the user has a libbpf log, explain:
bpf_loop reduces the need for manual unrolling on newer kernelsWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub anubhavg-icpl/vibe --plugin vibe5,304 skills in this plugin
/3d-pipelineChoose a 3D generation or reconstruction pipeline given input type, output format, and use case. Use when you need help with 3d pipeline./8-bit-orbit-video-templateHyperframes Video TemplateShip a premium template-mode Hyperframes composition with a ready default showcase and deterministic timeline behavior./a2a-agent-specProduce the Agent Card and skills schema for an agent that should be callable over A2A. Use when you need help with a2a agent spec.Other plugins' skills for the same job