ebpf

ebpf is a skill for Codex from OutlineDriven/outline-driven-development. It costs 78 tokens per session (5,159 once invoked), scanned B, original, Apache-2.0.

A tool for writing and loading eBPF programs, which run small verified programs in the Linux kernel for tracing or packet processing. It supports common eBPF libraries and Rust-based loaders.

In plain words
What is it for?
Use it for kernel probes, tracepoints, XDP network hooks, shared kernel and user-space maps, CO-RE porting, or eBPF load-error diagnosis.
Why use it?
It helps connect kernel events to user-space programs and diagnose verifier or loading errors while managing attached programs and their cleanup.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it for kernel probes, tracepoints, XDP network hooks, shared kernel and user-space maps, CO-RE porting, or eBPF load-error diagnosis.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/outlinedriven/outline-driven-development/ebpf
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 OutlineDriven/outline-driven-development --skill ebpf
Clone the repo
git clone --depth 1 https://github.com/OutlineDriven/outline-driven-development

Made for: 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 ebpf

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/outlinedriven/outline-driven-development/ebpf"><img src="https://agentmods.dev/badge/skills/outlinedriven/outline-driven-development/ebpf.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 78 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,159 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00078 $0.05159
Opus 5.5 $0.00031 $0.02064
Sonnet 5.5 $0.00016 $0.01032
Haiku 4.5 $0.00008 $0.00516

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

Security

Grade B, and why

ebpf scanned grade B 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 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

| `Permission denied` | No `CAP_BPF` or `CAP_SYS_ADMIN` | Run as root or grant the capability |
.devin/skills/ebpf/SKILL.md · 412 lines

How it starts

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

eBPF with libbpf, bpftrace, and Aya

Contract

Field Bound contract
Trigger A kernel event needs tracing, a C/libbpf or Rust/Aya program needs writing or loading, the verifier rejects a program, kernel and user space need to share data, or an XDP filter needs attaching.
Authority Reversible local. The write set is the user's C, Rust, or script source and object files, programs and maps loaded into the running kernel, pins under /sys/fs/bpf, and XDP attachments on a named interface. Rollback is detaching the program, unpinning, and ip link set dev <if> xdp off. Loading needs CAP_BPF or root. No remote mutation.
Side effect Kernel state changes while a program or loader is loaded. Every load in this skill is paired with its detach; an Aya loader exits cleanly on Ctrl-C.
Done The chosen program loads, attaches, and produces output for the traced event, the Aya loader exits cleanly on Ctrl-C, or the verifier/Aya load error is mapped to its cause and the fix is applied.

Inputs

  • Goal (required): a one-off trace, a production program with a user-space side, an inspection of loaded objects, or packet processing.
  • Implementation (required for a production program): C with libbpf or Rust with Aya; use bpftrace for a one-off trace.
  • Program type and attach point (required for a program): tracepoint, kprobe, uprobe, XDP, TC, LSM, or another type from the mode table in step 4.
  • Kernel (required): the running kernel must expose BTF at /sys/kernel/btf/vmlinux for C/libbpf CO-RE and Aya's target-BTF binding generation. The grounded floor is Linux 7.2 mainline or the 6.18 LTS line; every kernel feature named below exists in both.
  • Toolchain (required for libbpf work): clang with the bpf target, bpftool, and libbpf 1.x with its headers. For Aya work: stable Rust plus a nightly with rust-src, bpf-linker, cargo-generate, bpftool, and a log backend such as env_logger, using Rust edition 2024.

Procedure

  1. Pick the tool and implementation mode by goal. A one-line trace or script is bpftrace. A production program with a loader is libbpf in C or Aya in Rust. Inspecting loaded programs and maps is bpftool. High-rate packet processing is XDP with libbpf or Aya. Done when: one tool and, for a production program, one language mode are chosen.
  2. For a quick trace, write the bpftrace one-liner and confirm the probe exists. Done when: the probe prints for a live event.

Read the full file on GitHub · 412 lines

Files

What ships with it

2 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. 2mo ago First seen · 412 lines · 78 tokens per session scan B 47e16b04820f

Subscribe to this mod's changes

ebpf is a skill published in the GitHub repository OutlineDriven/outline-driven-development (54 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 78 tokens to every session and 5,159 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-13.

Related

ebpf compared with skills from other repositories

ebpf next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ebpfOutlineDriven/outline-driven-developmentSkill542mo agoApache-2.0B78Codex
audit-projectOutlineDriven/odin-claude-pluginSkill402mo agoApache-2.0A50Claude Code, Codex
optimizeOutlineDriven/odin-claude-pluginSkill402mo agoApache-2.0A123Claude Code, Codex
debugOutlineDriven/odin-claude-pluginSkill402mo agoApache-2.0A33Claude Code, Codex
ios-build-fixOutlineDriven/odin-claude-pluginSkill402mo agoApache-2.0A49Claude Code, Codex
strike-the-rootOutlineDriven/odin-claude-pluginSkill402mo agoApache-2.0A52Claude Code, Codex
extremely-optimizeOutlineDriven/odin-claude-pluginSkill402mo agoApache-2.0A30Claude Code, Codex