af-xdp

af-xdp is a skill for Codex from OutlineDriven/outline-driven-development. It costs 45 tokens per session (2,002 once invoked), scanned A, original, Apache-2.0.

A guide to AF_XDP, a Linux networking interface for sending and receiving packets from user-space programs with low overhead. It covers shared packet memory, receive and transmit rings, XDP redirection, and copy versus zero-copy modes.

In plain words
What is it for?
Use it to create AF_XDP sockets, configure UMEM and queue rings, write an XDP redirect program, and decide between copy and zero-copy operation.
Why use it?
It helps developers design the packet path correctly and choose a mode that matches their network driver and performance needs.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it to create AF_XDP sockets, configure UMEM and queue rings, write an XDP redirect program, and decide between copy and zero-copy operation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/outlinedriven/outline-driven-development/af-xdp
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 af-xdp
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 af-xdp

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/outlinedriven/outline-driven-development/af-xdp"><img src="https://agentmods.dev/badge/skills/outlinedriven/outline-driven-development/af-xdp.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,002 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00045 $0.02002
Opus 5.5 $0.00018 $0.00801
Sonnet 5.5 $0.00009 $0.00400
Haiku 4.5 $0.00005 $0.00200

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

Security

Grade A, and why

af-xdp 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.

.devin/skills/af-xdp/SKILL.md · 150 lines

How it starts

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

AF_XDP sockets

Contract

Field Bound contract
Trigger Building a userspace packet path on AF_XDP: UMEM and ring setup, an XDP redirect program, the RX loop, copy versus zero-copy mode, or an AF_XDP versus DPDK decision.
Authority Read-only. Writes nothing. Chat output only. No remote mutation.
Side effect Returns setup code, ring lifecycle rules, and a mode recommendation. No source files are modified.
Done The socket setup code, the fill-ring refill rule, the redirect program, and a mode choice tied to driver support are delivered.

Inputs

  1. Interface and queue (required): the interface name and the RX queue the socket serves. One socket per queue.
  2. Mode intent (optional): copy or zero-copy. Default to copy and confirm from the bind.
  3. Build setup (optional): libbpf installed (pkg-config --libs libbpf returns -lbpf; -lxdp when libxdp is installed separately).

Procedure

  1. Lay out the object model before writing code. UMEM is the shared frame pool. The fill ring carries empty frame addresses from user space to the kernel. The completion ring returns transmitted frames. The RX ring delivers received packets. The TX ring carries outgoing packets. Done when: each ring and the UMEM has a named struct in the design.

  2. Create the UMEM and the socket.

    #include <bpf/xsk.h>
    
    #define NUM_FRAMES    4096
    #define FRAME_SIZE    XSK_UMEM__DEFAULT_FRAME_SIZE
    #define RX_BATCH_SIZE 64
    
    /* mmap one anonymous region; the UMEM describes it to the kernel */
    void *buffer = mmap(NULL, NUM_FRAMES * FRAME_SIZE,
                        PROT_READ | PROT_WRITE,
                        MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
    
    struct xsk_umem_config umem_cfg = {
        .fill_size = XSK_RING_PROD__DEFAULT_NUM_DESCS,
        .comp_size = XSK_RING_CONS__DEFAULT_NUM_DESCS,
        .frame_size = FRAME_SIZE,
        .frame_headroom = XSK_UMEM__DEFAULT_FRAME_HEADROOM,
        .flags = 0,
    };
    int ret = xsk_umem__create(&umem->umem, buffer, NUM_FRAMES * FRAME_SIZE,
                               &umem->fill, &umem->comp, &umem_cfg);
    
    struct xsk_socket_config xsk_cfg = {
        .rx_size = XSK_RING_CONS__DEFAULT_NUM_DESCS,
        .tx_size = XSK_RING_PROD__DEFAULT_NUM_DESCS,
        /* the skill loads its own program in step 4, so stop libbpf */
        .libbpf_flags = XSK_LIBBPF_FLAGS__INHIBIT_PROG_LOAD,
        .xdp_flags = XDP_FLAGS_UPDATE_IF_NOEXIST,
        .bind_flags = XDP_COPY, /* or XDP_ZEROCOPY, see step 6 */
    };
    ret = xsk_socket__create(&xsk->xsk, ifname, queue_id, umem->umem,
                             &xsk->rx, &xsk->tx, &xsk_cfg);
    

Read the full file on GitHub · 150 lines

Files

What ships with it

1 file 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 Changed c025c55b6813
  2. 2mo ago First seen · 150 lines · 45 tokens per session scan A acb17143cd3f

Subscribe to this mod's changes

af-xdp is a skill published in the GitHub repository OutlineDriven/outline-driven-development (54 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 45 tokens to every session and 2,002 once invoked, about $0.0002 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-09-06.

Related

af-xdp compared with skills from other repositories

af-xdp next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
af-xdpOutlineDriven/outline-driven-developmentSkill542mo agoApache-2.0A45Codex
ruview-cli-apiruvnet/RuViewSkill106ktodayMITA104Claude Code
amazon-alexasickn33/agentic-awesome-skillsSkill51kyesterdayMITA53Claude Code
jetson-customize-pcieNVIDIA/skillsSkill4.2k2d agoApache-2.0A53Claude Code, Codex
telnyx-networking-curlteam-telnyx/aiSkill230yesterdayMITA35Claude Code
datacake-webhookshookdeck/webhook-skillsSkill1043d agoMITA62Claude Code, Codex
mqtt-developmentMindrally/skillsSkill3221mo agoApache-2.0A18Claude Code