# Node HTTP

> Node HTTP is an open-source agent skill for developer tools. Rules for node:http servers that answer requests Node would otherwise handle itself. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/afel6/section-team/tree/main/skills/node-http
- **Repository:** https://github.com/afel6/section-team
- **GitHub stars:** 14
- **License:** MIT
- **Skill name:** node-http
- **Collection:** https://github.com/afel6/section-team
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

This skill covers building an HTTP server directly on Node's node:http module, without Express, Fastify or Koa. It focuses on requests that node:http answers on its own, such as unknown Expect headers, CONNECT requests, malformed request lines and unknown methods, and explains how to route those through your own handler so each gets the reply the spec calls for.

The guidance explains how to handle 'clientError' and 'connect' events, including writing replies by hand, ending sockets safely after a client reset, and keeping replies in order when pipelined requests arrive in one write. It also covers half-closed connections, reading a declared request body before replying, and timeouts for slow or missing bodies.

The skill includes guidance for in-process tests that create a server with short timeouts and check the 400, 408 and delayed-body behaviour. It expects a Node.js backend using node:http and is written for the backend section of a section-team repository.

## When your agent uses it

> Rules for a Node.js HTTP server built on node:http itself (http.createServer, no Express, Fastify or Koa): requests Node answers on its own, client errors, CONNECT, Expect, pipelining, half-close, reading a declared body before replying, and in-process tests for them. For the backend section.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/afel6/section-team/tree/HEAD/skills/node-http)
- [License: MIT](https://github.com/afel6/section-team/tree/HEAD/skills/node-http)

## Features

- **Client error handling:** Explains how to answer 'clientError' events with the reply the spec requires, using the error code to choose the status.
- **CONNECT and Expect handling:** Covers replying to CONNECT requests as ordinary requests and handling unknown Expect headers through checkExpectation.
- **Pipelining and half-close:** Describes keeping replies in order for pipelined requests and letting clients that half-close still receive a response.
- **Body and timeout rules:** Sets out when to read a declared body before replying and how to respect server.requestTimeout for slow bodies.
- **In-process test patterns:** Shows how to test timeout and unknown-method behaviour on a short-timeout server created within the test.

## Good for

- Make a node:http server answer unknown HTTP methods with the correct reply
- Handle CONNECT requests on a plain Node server without opening a tunnel
- Respond correctly to pipelined requests that arrive in a single write
- Write tests for 408 timeouts on slow request bodies

## Install

### Claude Code

This skill ships in the `section-team` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add afel6/section-team
/plugin install section-team@section-team
```

Or copy only this skill to `~/.claude/skills/node-http`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/afel6/section-team.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/node-http &&
cp -R "$tmp/skills/node-http" ~/.claude/skills/node-http &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/node-http` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/node-http` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/afel6/section-team.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/node-http &&
cp -R "$tmp/skills/node-http" ~/.agents/skills/node-http &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/node-http` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/node-http` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/afel6/section-team.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/node-http &&
cp -R "$tmp/skills/node-http" ~/.cursor/skills/node-http &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/node-http` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/afel6/section-team.git --path skills/node-http
```

Or copy the folder to `~/.gemini/skills/node-http` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/node-http`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/afel6/section-team.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/node-http &&
cp -R "$tmp/skills/node-http" ~/.copilot/skills/node-http &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/node-http` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/afel6/section-team.git
```

Then copy `section-team/skills/node-http` into your agent's skills folder as `node-http`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Which frameworks does Node HTTP apply to?

It is written for servers built on node:http itself, with http.createServer, and explicitly excludes Express, Fastify and Koa.

### Does Node HTTP need any scripts or tools?

The skill is a single SKILL.md file with no scripts, and it does not set allowed tools.

### How do I install Node HTTP in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/node-http to use it in all your projects, or to .claude/skills/node-http in one project. Or install the section-team plugin, which includes it: /plugin marketplace add afel6/section-team, then /plugin install section-team@section-team.

### Does Node HTTP run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Node HTTP?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Node HTTP?

The closest alternatives to Node HTTP are Backend patterns, Error handling, API design, Nuxt and Backend nestjs.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Backend patterns](https://ai-powered.com/skills/backend-patterns): Backend patterns is an open-source agent skill for developer tools.
- [Error handling](https://ai-powered.com/skills/error-handling): Error handling is an open-source agent skill for developer tools.
- [API design](https://ai-powered.com/skills/api-design): API design is an open-source agent skill for developer tools.
- [Nuxt](https://ai-powered.com/skills/nuxt): Nuxt is an open-source agent skill for developer tools.
- [Backend nestjs](https://ai-powered.com/skills/backend-nestjs): Backend nestjs is an open-source agent skill for developer tools.
- [Server](https://ai-powered.com/skills/server): Server is an open-source agent skill for developer tools.
- [Vue data](https://ai-powered.com/skills/vue-data): Vue data is an open-source agent skill for developer tools.
- [Flutter use HTTP package](https://ai-powered.com/skills/flutter-use-http-package): Flutter use HTTP package is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/node-http
