Skill Creator

cassamajor

12 published skills · 12 GitHub stars across the catalog. View on GitHub ↗

cnf-networking

cassamajor's avatarfrom cassamajor★ 1

Configure CNF networking components including netkit BPF-programmable network devices, tcx (Traffic Control eXpress for kernel 6.6+), virtual interfaces, network namespaces, routing, and eBPF program attachment. Use when setting up network topology for eBPF-based CNFs or testing packet processing pipelines.

ebpf-attach-hook

cassamajor's avatarfrom cassamajor★ 1

Implement eBPF program attachment logic for various hooks (XDP, TC/tcx, netkit, kprobe, tracepoint, cgroup) with proper error handling, cleanup, and link management. Includes Go code using cilium/ebpf library. Use when attaching CNF programs to kernel hooks.

ebpf-cnf-scaffold

cassamajor's avatarfrom cassamajor★ 1

Scaffold new eBPF-based Cloud Native Network Function (CNF) projects with proper directory structure, boilerplate C kernel code, Go userspace application, bpf2go generation, and build configuration following established patterns. Use when creating new CNF examples or starting fresh eBPF projects.

ebpf-map-handler

cassamajor's avatarfrom cassamajor★ 1

Create eBPF maps (hash, array, ringbuf, LRU, per-CPU) with corresponding Go userspace code for reading and writing data between kernel and userspace. Includes map definitions, update/lookup operations, and event handling. Use when implementing state management or kernel-userspace communication in CNFs.

ebpf-packet-parser

cassamajor's avatarfrom cassamajor★ 1

Generate verifier-safe packet parsing logic for eBPF programs including bounds checking, header extraction (Ethernet, IPv4/IPv6, TCP/UDP, ICMP), protocol identification, and proper pointer arithmetic. Use when implementing packet inspection or manipulation in CNFs.

ebpf-packet-redirect

cassamajor's avatarfrom cassamajor★ 1

Implement packet redirection and routing in eBPF programs using bpf_redirect and bpf_redirect_neigh helpers. Includes source-based policy routing, map-based routing tables, load balancing, and CNF router patterns. Use when building routers, gateways, load balancers, or any CNF that needs to control packet forwarding paths.

ebpf-test-harness

cassamajor's avatarfrom cassamajor★ 1

Generate test infrastructure for eBPF CNF programs including network namespace setup, virtual interface creation, traffic generation, packet injection, and validation of packet processing logic. Use when implementing automated tests for CNFs.

go-functional-options

cassamajor's avatarfrom cassamajor★ 1

Use the Functional Option Pattern for configurable Go constructors. Applies to types needing multiple optional parameters with validation and defaults. Includes Go 1.25 generics support.

go-upgrade

cassamajor's avatarfrom cassamajor★ 1

Upgrade Go to the latest version via Homebrew and update all go.mod files in the examples directory. Use when the user mentions upgrading Go, updating Go version, or wants to use the latest Go.

investigating-warnings

cassamajor's avatarfrom cassamajor★ 1

Don't dismiss warnings without understanding them - investigate to determine if they indicate bugs, misconfigurations, or are cosmetic, then document findings either way

questioning-hardcoded-values

cassamajor's avatarfrom cassamajor★ 1

Hardcoded strings and numbers need justification - they're either conventions that need documentation, magic numbers that should be constants, or assumptions that need verification

tdd-in-target-environment

cassamajor's avatarfrom cassamajor★ 1

Run tests in the actual execution environment, not just where they compile - TDD's "watch it fail" step is meaningless if tests skip or can't run where code will execute