zeroserve-script-create — community zeroserve-script-create, zeroserve, community, ide skills, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Perfect for Performance Optimization Agents needing high-performance, scriptable HTTP server capabilities with io_uring and eBPF. Zero-config, fast `io_uring`-based HTTPS server.

losfair losfair
[4]
[0]
Updated: 2/7/2026

Agent Capability Analysis

The zeroserve-script-create skill by losfair is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance.

Ideal Agent Persona

Perfect for Performance Optimization Agents needing high-performance, scriptable HTTP server capabilities with io_uring and eBPF.

Core Value

Empowers agents to create high-performance Zeroserve request scripts in C, utilizing io_uring and eBPF for efficient HTTP and HTTPS serving, with features like hot reload and reverse proxy from scripts.

Capabilities Granted for zeroserve-script-create

Generating Zeroserve request scripts for custom HTTP server setups
Creating high-performance static website servers with tarball support
Implementing eBPF request scripts for advanced HTTP request handling

! Prerequisites & Limits

  • Requires C programming language compatibility
  • Limited to HTTP and HTTPS protocols
  • Dependent on io_uring and eBPF support
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

zeroserve-script-create

Install zeroserve-script-create, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

SKILL.md
Readonly

Zeroserve Script Create

Overview

Zeroserve is a high-performance, scriptable HTTP server that uses io_uring and eBPF. It serves a static website from a tarball, and optionally runs eBPF request scripts. It supports HTTP, HTTPS, hot reload, a small templating pass for text responses, and an opt-in reverse proxy from scripts.

This skill creates a Zeroserve request script in C from requirements, using the SDK helpers and eBPF constraints. Output is a single .c file ready to place under .zeroserve/scripts/. It includes JSON helper usage for parsing structured inputs from headers or params.

Basic zeroserve usage

Serve a prebuilt tarball:

bash
1zeroserve --addr 0.0.0.0:8080 site.tar

Package a directory into a tarball and serve it:

bash
1# Create a tarball from the current directory 2zeroserve --pack . > site.tar 3 4# Serve it 5zeroserve --addr 0.0.0.0:8080 site.tar

Packaging a site: Zeroserve expects a tarball whose root corresponds to the site root. Use --pack to build one from a directory:

bash
1zeroserve --pack ./public > site.tar

Packaging notes:

  • All regular files under the directory are added to the tarball.
  • Request scripts live under .zeroserve/scripts/.
  • Any .c file in .zeroserve/scripts/ is compiled to an .o eBPF object. The resulting .o is included in the tarball and the .c is omitted.
  • If a .c and .o share the same name, the .o is skipped in favor of recompiling.
  • Script compilation requires clang and llc on your PATH.

If you want the SDK header without packing:

bash
1zeroserve --dump-sdk > zeroserve.h

Workflow

  1. Gather requirements
    • Trigger: path, method, header, query param, peer, or scheme.
    • Action: log, mutate URI/headers, set metadata, respond, or reverse proxy.
    • Short-circuit: confirm if the script should terminate the chain with zs_respond or zs_reverse_proxy.
  2. Choose a base
    • Start from assets/script_template.c for a new script.
    • Keep the entry signature and ZS_ENTRY section if editing an existing script.
  3. Implement logic
    • Read request data with zs_req_* helpers into fixed buffers; clamp lengths before use.
    • Use ZS_STR("literal") for helper calls needing (ptr, len) for string literals.
    • For JSON parsing, use zs_json_parse/zs_json_get/zs_json_array_get and zs_json_read_*, then free handles with zs_object_free (handle table is limited).
    • To parse the request body as JSON, use zs_req_body_json() which returns a handle (-1 on empty body, body > 256KB, or invalid JSON). The body is read lazily and cached.
    • To build JSON dynamically, use zs_json_new_object/zs_json_new_array and modify with zs_json_set, zs_json_array_push, zs_json_set_string, zs_json_set_i64, etc.
    • To send a JSON response, use zs_json_respond(status, handle) which auto-sets Content-Type.
    • To parse a static JSON file from the tarball, call zs_load_static_json(path, path_len) and treat the returned handle like any other JSON handle.
    • To read tarball entry metadata as JSON, call zs_load_file_metadata(path, path_len) and access size, etag, and mtime.
    • For response headers, set metadata keys zs.response.header.<name>.
    • To rate limit, use zs_rate_limit(key, key_len, per_second, per_minute, per_hour); it returns a result code indicating allowed or which limit was exceeded.
    • Call zs_respond, zs_json_respond, or zs_reverse_proxy to stop later scripts.
  4. Validate eBPF constraints
    • Avoid unbounded loops and recursion.
    • Keep stack usage small (BPF stack is limited).
  5. Deliver result
    • Provide the .c file and note it should live under .zeroserve/scripts/.
    • Remind that zeroserve --pack compiles .c to .o automatically.
    • If needed, dump the SDK header with zeroserve --dump-sdk to inspect the full API.

References

  • references/sdk_api.md for the SDK helper list and notes.
  • references/scripting_behavior.md for execution order, short-circuit rules, and packaging.
  • references/examples.md for common patterns (logging, health response, reverse proxy, templating).
  • assets/script_template.c for a starter skeleton.

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is zeroserve-script-create?

Perfect for Performance Optimization Agents needing high-performance, scriptable HTTP server capabilities with io_uring and eBPF. Zero-config, fast `io_uring`-based HTTPS server.

How do I install zeroserve-script-create?

Run the command: npx killer-skills add losfair/zeroserve/zeroserve-script-create. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for zeroserve-script-create?

Key use cases include: Generating Zeroserve request scripts for custom HTTP server setups, Creating high-performance static website servers with tarball support, Implementing eBPF request scripts for advanced HTTP request handling.

Which IDEs are compatible with zeroserve-script-create?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for zeroserve-script-create?

Requires C programming language compatibility. Limited to HTTP and HTTPS protocols. Dependent on io_uring and eBPF support.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add losfair/zeroserve/zeroserve-script-create. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use zeroserve-script-create immediately in the current project.

Related Skills

Looking for an alternative to zeroserve-script-create or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI