Sandbox
@h0x0er/ebpf-skill

eBPF skill for Claude Code and other agents

This repo packages eBPF guidance as a skill that coding agents can load on demand. `SKILL.md` acts as the router, then pulls in `program-types/`, `map-types/`, and `workflows/` only when needed.

43 stars4 forksUpdated 5mo ago
Who it's for

Builders who want their agent to pick eBPF hooks, model maps, and work through verifier or test issues.

What it delivers

You can ask your agent for eBPF help without loading the whole reference set up front.

What it does

Skill routing

`SKILL.md` directs the agent to the right reference files instead of making it read everything at once.

Program type guidance

`program-types/` covers where to attach eBPF programs, including network, tracing, cgroup, and misc cases.

Map type guidance

`map-types/` explains how to model state and output with key-value, queue/stack/bloom, event output, specialized, and tail call patterns.

Workflow playbooks

`workflows/` includes development, debugging, verifier, and testing guidance for agent-led eBPF work.

How to get it

  1. 1With Claude Code
    # From within this repo
    claude "use the skill ./SKILL.md and write an XDP packet counter using ebpf-go"
    
    # From any directory, using an absolute or relative path
    claude "use the skill ~/ebpf-skill/SKILL.md and help me debug a verifier failure"

README

eBPF Skill

An eBPF reference skill for coding agents.

  • SKILL.md: routing and decision layer
  • program-types/: where to attach
  • map-types/: how to model state and output
  • workflows/: development, debugging, verifier, and testing guidance

Contributions are welcome, and if this skill helps you, consider giving the repo a star.

Usage

Point your agent at SKILL.md as the entry skill file. It routes into the repo’s program-types/, map-types/, and workflows/ references on demand, so the agent does not need to load everything upfront.

With Claude Code:

# From within this repo
claude "use the skill ./SKILL.md and write an XDP packet counter using ebpf-go"

# From any directory, using an absolute or relative path
claude "use the skill ~/ebpf-skill/SKILL.md and help me debug a verifier failure"

With any agent that supports skill/context injection:

Pass SKILL.md as the skill or system context and keep the full repository available, since the skill opens sibling reference files on demand.

What to ask:

  • Program type selection: "what hook should I use to trace outgoing TCP connections?"
  • Map design: "I need per-cgroup packet counters, what map type fits?"
  • Build and loader setup: "set up an ebpf-go project with bpf2go"
  • Verifier failures: "my BPF program fails with invalid mem access, here's the log"

Files in the repo

Repository payload8 top-level entries
  • map-types
  • program-types
  • workflows
  • .gitignore
  • LICENSE
  • README.md
  • references.md
  • SKILL.md

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More skills

obra/
superpowers

An agentic skills framework & software development methodology that works.

285k
1 add

Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local deterministic AST parsing, every edge explained, no vector store.

117k
1 add
Vincentwei1021/
anything2explainer

Topic in, narrated explainer video out. A Claude Code / Codex skill that turns any topic into a black-canvas motion-graphics explainer video with TTS voiceover, subtitles and a chapter progress bar. Chinese or English; every frame drawn in code with Remotion.

666

Open-source AI job search: scan job portals, evaluate listings into a structured A-H report with a global 1-5 score, tailor your CV, track applications — runs locally in your AI coding CLI (Claude Code, Codex, OpenCode, Antigravity…)

71k