af-xdp

af-xdp is a skill for Codex from OutlineDriven/outline-driven-development. It costs 45 tokens per session (2,004 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,004 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.02004
Opus 5 $0.00023 $0.01002
Sonnet 5 $0.00009 $0.00401
Haiku 4.5 $0.00005 $0.00200

Measured 3d ago against content hash acb17143cd3f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 3d 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. 3d 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 (52 stars, last pushed 4d ago), licensed Apache-2.0. It adds 45 tokens to every session and 2,004 once invoked, about $0.0002 per session on Opus 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

Other skills, from other repositories

ruview-cli-api

Use the RuView wifi-densepose CLI binary (incl. MAT scan/status/zones/survivors/alerts/export subcommands), the REST API (wifi-densepose-api, Axum), and the browser/WASM build (wifi-densepose-wasm, wifi-densepose-wasm-edge). Use when integrating RuView into another program, scripting it from the shell, exposing it…

ruvnet/RuView · 104 tokens

amazon-alexa

Integracao completa com Amazon Alexa para criar skills de voz inteligentes, transformar Alexa em assistente com Claude como cerebro (projeto Auri) e integrar com AWS ecosystem (Lambda, DynamoDB, Polly, Transcribe, Lex, Smart Home).

sickn33/agentic-awesome-skills · 53 tokens

jetson-customize-pcie

Per-controller PCIe enable / disable / lanes / link-speed for a Jetson Thor or Orin custom carrier via ODMDATA + kernel-DT overlay. Do NOT use for UPHY lane allocation or endpoint-mode bring-up.

NVIDIA/skills · 53 tokens

telnyx-networking-curl

Configure private networks, WireGuard VPN gateways, internet gateways, and virtual cross connects. This skill provides REST API (curl) examples.

team-telnyx/ai · 35 tokens

mqtt-development

Best practices and guidelines for MQTT messaging in IoT and real-time communication systems.

Mindrally/skills · 18 tokens

ros2-web-integration

Patterns and best practices for integrating ROS2 systems with web technologies including REST APIs, WebSocket bridges, and browser-based robot interfaces. Use this skill when building web dashboards for robots, streaming camera feeds to browsers, exposing ROS2 services as REST endpoints, or implementing bidirectional…

arpitg1304/robotics-agent-skills · 202 tokens